:root {
  color-scheme: light dark;
  --blue: #007aff;
  --blue-ink: #0062cc;
  --bg: #ffffff;
  --bg-tint: #f5f7fa;
  --ink: #0d1117;
  --ink-2: #4b5563;
  --ink-3: #6b7280;
  --line: #e5e8ee;
  --card: #ffffff;
  --shadow: 0 24px 60px -24px rgba(15, 30, 60, .28), 0 4px 14px -6px rgba(15, 30, 60, .1);
  --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --blue-ink: #4da3ff;
    --bg: #0b0d12;
    --bg-tint: #11141b;
    --ink: #f3f5f8;
    --ink-2: #aab2bf;
    --ink-3: #8b94a3;
    --line: #232833;
    --card: #151922;
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .75), 0 4px 14px -6px rgba(0, 0, 0, .5);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
h1, h2 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 6.4vw, 4.5rem); line-height: 1.06; font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.9rem); line-height: 1.12; font-weight: 700; max-width: 22ch; }
h3 { font-size: 1.08rem; line-height: 1.3; font-weight: 650; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 48px); }
.center { text-align: center; }
.center h1 { font-size: 2.4rem; }
.center .actions { justify-content: center; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 12px; }
.eyebrow { color: var(--blue-ink); font-weight: 600; font-size: .95rem; margin-bottom: 14px; }
.lead { color: var(--ink-2); font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.5; }
.note { color: var(--ink-3); font-size: .9rem; margin-top: 18px; }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .04em; text-decoration: none; }
.top-nav { display: flex; gap: 26px; margin-left: 16px; font-size: .95rem; }
.top-nav a { color: var(--ink-2); text-decoration: none; }
.top-nav a:hover { color: var(--ink); }
.top .btn { margin-left: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: background-color .18s ease, transform .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #006ae0; }
.btn-ghost { border: 1px solid var(--line); background: var(--card); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-quiet { background: color-mix(in srgb, var(--blue) 11%, transparent); color: var(--blue-ink); }
.btn-light { background: #fff; color: #004a99; }
.btn-outline { border: 1px solid rgba(255, 255, 255, .55); color: #fff; }
.btn-outline:hover { border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero { padding-top: clamp(56px, 8vw, 104px); background: radial-gradient(70% 420px at 50% 0, color-mix(in srgb, var(--blue) 10%, transparent), transparent 75%); }
.hero-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-text h1 { max-width: 15ch; }
.hero-text .lead { max-width: 40rem; margin-top: 22px; }
.hero-text .actions { justify-content: center; }
.hero-shots { margin-top: clamp(44px, 6vw, 72px); }
.stage { position: relative; padding-right: 13%; }
.stage figcaption { text-align: center; color: var(--ink-3); font-size: .86rem; padding: 18px 13% 0 0; }
.window { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stage > .window { max-height: 660px; }
.window-bar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.phone { background: #05070b; border-radius: 40px; padding: 8px; box-shadow: var(--shadow); overflow: hidden; }
.phone img { border-radius: 32px; }
.stage-phone { position: absolute; right: 0; bottom: 46px; width: min(24%, 270px); }

.section { padding-block: clamp(72px, 10vw, 128px); }
.tint { background: var(--bg-tint); }
.feature-lead { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 64px); align-items: center; margin-top: clamp(40px, 5vw, 64px); }
.feature-lead h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.feature-lead p { color: var(--ink-2); margin-top: 12px; }
.window-flat { box-shadow: 0 14px 40px -24px rgba(15, 30, 60, .35); }
.ticks { margin-top: 20px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 12px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(30px, 4vw, 48px) clamp(28px, 4vw, 56px); margin-top: clamp(48px, 6vw, 72px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.features p { color: var(--ink-2); margin-top: 8px; font-size: .98rem; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: clamp(40px, 5vw, 60px); }
.steps li { counter-increment: s; border-top: 2px solid var(--blue); padding-top: 18px; }
.steps li::before { content: counter(s); display: block; color: var(--blue-ink); font-weight: 700; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.steps p { color: var(--ink-2); margin-top: 8px; font-size: .98rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); margin-top: clamp(40px, 5vw, 60px); }
.split h3 { font-size: 1.3rem; letter-spacing: -.015em; }

.devices { overflow: hidden; }
.devices-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.devices .lead { margin-top: 18px; }
.link { display: inline-block; margin-top: 24px; color: var(--blue-ink); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.phones { position: relative; display: flex; justify-content: center; padding-right: 22%; }
.phones .phone { width: min(58%, 290px); position: relative; z-index: 1; }
.phones .phone-back { position: absolute; width: min(46%, 240px); right: 8%; top: 8%; z-index: 0; opacity: .9; }

.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 27px; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .18s ease; }
.faq details[open] summary::after { transform: rotate(225deg); top: 31px; }
.faq details p { color: var(--ink-2); padding: 0 36px 22px 0; }

.cta { background: linear-gradient(135deg, #007aff, #0058c4); color: #fff; padding-block: clamp(72px, 9vw, 112px); text-align: center; }
.cta h2 { margin-inline: auto; }
.cta .actions { justify-content: center; }

.foot { padding-block: 56px 28px; font-size: .94rem; color: var(--ink-2); }
.foot-in { display: grid; grid-template-columns: 2fr 2fr 1.4fr; gap: 36px; }
.foot h2 { font-size: .85rem; font-weight: 600; letter-spacing: 0; color: var(--ink); margin-bottom: 10px; max-width: none; }
.foot p { margin-top: 6px; }
.foot a { text-decoration-color: var(--line); text-underline-offset: 3px; }
.foot .brand { color: var(--ink); }
.foot-end { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .86rem; }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .features li, .steps li, .feature-lead, .split > div { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 26%; }
    @keyframes rise { from { opacity: .001; transform: translateY(14px); } to { opacity: 1; transform: none; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Prag comun cu aplicatia: sub 1040px, aranjament de tableta/telefon. */
@media (max-width: 1039px) {
  .top-nav { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-lead { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: calc(100% - 32px); }
  .btn-small { min-height: 38px; padding: 0 13px; font-size: .84rem; }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
  .stage { padding-right: 0; }
  .stage > .window { max-height: 400px; }
  .stage-phone { width: 34%; right: -4px; bottom: 44px; border-radius: 26px; padding: 5px; }
  .stage-phone img { border-radius: 21px; }
  .stage figcaption { padding-right: 0; }
  .features, .steps, .split, .devices-in, .foot-in { grid-template-columns: 1fr; }
  .phones { padding-right: 20%; margin-top: 8px; }
}
