:root {
  --bg: #F4F6FB;
  --surface: #FFFFFF;
  --ink: #1C2228;
  --ink-2: #3A4350;
  --muted: #5B6573;
  --line: #E3E8F0;
  --brand: #3F58D4;
  --brand-600: #2F45B5;
  --brand-50: #EEF1FD;
  --up: #12936B;

  --dark: #0E1320;
  --dark-2: #151C2C;
  --dark-line: #243049;
  --dark-ink: #E8ECF2;
  --dark-muted: #A3ADBD;
  --brand-light: #8D9CFF;

  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 28px -14px rgba(16, 24, 40, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
section { scroll-margin-top: 76px; }
section[tabindex="-1"]:focus { outline: none; }
.section { padding: 96px 0; }
.section-tight { padding-top: 32px; }

.eyebrow { display: inline-block; font-size: 14px; font-weight: 650; letter-spacing: .02em; color: var(--brand-600); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); font-weight: 760; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 720; }
h3 { font-size: 1.08rem; font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; }
.lead { font-size: clamp(1.03rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 660px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { margin: 10px 0 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 620; font-size: 16px; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 22px -10px rgba(63, 88, 212, .7); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #C9D1E0; }
.btn-white { background: #fff; color: var(--brand-600); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 15px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 246, 251, .85);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand img { height: 30px; width: auto; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-2); font-weight: 560; font-size: 15.5px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 12px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
  }
  .nav-toggle .i-close { display: none; }
  .nav-toggle[aria-expanded="true"] .i-open { display: none; }
  .nav-toggle[aria-expanded="true"] .i-close { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 8px 20px 20px; background: var(--surface);
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(16, 24, 40, .25);
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: block; padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-menu .btn { margin-top: 8px; height: 48px; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 88px; }
.hero::before {
  content: ""; position: absolute; top: -260px; right: -220px; width: 820px; height: 820px;
  background: radial-gradient(closest-side, rgba(63, 88, 212, .17), transparent 72%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { margin: 14px 0 0; }
.hero h1 .accent { color: var(--brand); }
.hero .lead { margin: 22px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .ic { width: 18px; height: 18px; color: var(--up); stroke-width: 2.2; }

.hero-visual { position: relative; height: 610px; }
.hero-visual .phone { position: absolute; }
.hero-visual .phone-front { width: 272px; right: 120px; top: 0; z-index: 2; }
.hero-visual .phone-back { width: 238px; right: 0; top: 76px; transform: rotate(6deg); }

/* Phone frame */
/* Frame wraps the screenshot at its natural ratio, so nothing is cropped. */
.phone {
  display: flow-root; /* keeps the img margins inside the frame */
  border-radius: 16% / 7.4%;
  background: #0F1218;
  box-shadow: 0 40px 80px -34px rgba(23, 35, 90, .5), 0 0 0 1px rgba(0, 0, 0, .05);
}
/* Bezel via img margin: % margins resolve against the frame's own width (padding % would use the parent's). */
.phone img { width: 94.8%; height: auto; margin: 2.6%; border-radius: 13.6% / 6.3%; background: #E9EDF5; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: auto; display: flex; align-items: flex-start; justify-content: center; gap: 14px; margin-top: 12px; }
  .hero-visual .phone { position: relative; right: auto; top: auto; flex: 1 1 0; max-width: 240px; width: auto; }
  .hero-visual .phone-back { transform: none; margin-top: 36px; }
}

/* Fiva */
.fiva-head { display: flex; align-items: center; gap: 20px; margin-bottom: 18px; }
.fiva-head h2 { margin-top: 10px; }
.app-icon { width: 76px; height: 76px; border-radius: 22.5%; box-shadow: 0 12px 24px -12px rgba(23, 50, 140, .55); flex: none; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--brand-50); color: var(--brand-600); font-size: 13.5px; font-weight: 620; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--up); }
#fiva > .container > .lead { margin-bottom: 40px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.icon-chip { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex: none; }
.icon-chip .ic { width: 22px; height: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chip { padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }

.shots {
  display: flex; align-items: flex-start; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -4px; padding: 52px 4px 18px; scrollbar-width: thin;
}
.shot { flex: 0 0 200px; margin: 0; scroll-snap-align: start; }
.shot .phone { box-shadow: 0 26px 50px -26px rgba(23, 35, 90, .45); }
.shot figcaption { margin-top: 14px; text-align: center; font-size: 14.5px; font-weight: 620; color: var(--ink-2); }

.try {
  margin-top: 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  padding: 28px 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.try h3 { font-size: 1.3rem; }
.try p { margin-top: 6px; color: var(--muted); max-width: 620px; }
.note { display: flex; align-items: center; gap: 7px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.note .ic { width: 16px; height: 16px; }

@media (max-width: 1020px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .fiva-head { align-items: flex-start; }
  .app-icon { width: 60px; height: 60px; }
  .try { padding: 24px 22px; }
  .try .btn { width: 100%; }
}

/* Services (dark band) */
.band-dark { position: relative; overflow: hidden; background: var(--dark); color: var(--dark-ink); }
.band-dark::before {
  content: ""; position: absolute; bottom: -320px; left: -260px; width: 760px; height: 760px;
  background: radial-gradient(closest-side, rgba(63, 88, 212, .28), transparent 72%);
  pointer-events: none;
}
.band-dark .container { position: relative; }
.band-dark .eyebrow { color: var(--brand-light); }
.band-dark h2 { color: #fff; margin: 10px 0 14px; }
.band-dark .lead { color: var(--dark-muted); }
.services-top { max-width: 760px; margin-bottom: 52px; }

.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-dark { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 26px; }
.card-dark h3 { color: #fff; margin: 22px 0 8px; }
.card-dark p { color: var(--dark-muted); font-size: 15.5px; }
.svc-ic { display: block; width: 28px; height: 28px; stroke-width: 1.5; color: var(--dark-ink); }

.callout { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding: 22px 26px; border: 1px dashed #34416B; border-radius: var(--radius); }
.callout p { color: var(--dark-muted); max-width: 720px; }
.callout strong { color: #fff; }
.link-light { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-light); font-weight: 620; }
.link-light .ic { width: 18px; height: 18px; }

@media (max-width: 960px) {
  .services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } }

/* Process */
.step-num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; }
.process-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.process-row {
  display: grid; grid-template-columns: 40px minmax(170px, .8fr) 2fr minmax(180px, .7fr);
  gap: 8px 32px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line);
}
.process-no { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.process-row h3 { font-size: 1.15rem; }
.process-row p { color: var(--muted); font-size: 15.5px; max-width: 560px; }
.process-out { color: var(--ink); font-size: 15px; font-weight: 560; }
.process-out small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 13px; font-weight: 500; }

/* Same columns as .process-row so the list lines up with the step descriptions. */
.principles-block { display: grid; grid-template-columns: 40px minmax(170px, .8fr) 2fr minmax(180px, .7fr); gap: 16px 32px; margin-top: 72px; }
.principles-block h3 { grid-column: 2; font-size: 1.15rem; padding-top: 2px; }
.principles-list { grid-column: 3 / 5; display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.principles-list li { padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15.5px; max-width: 760px; }
.principles-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.principles-list strong { color: var(--ink); font-weight: 640; }

@media (max-width: 900px) {
  .process-row { grid-template-columns: 28px 1fr; padding: 24px 0; }
  .process-row p, .process-out { grid-column: 2; }
  .process-out { margin-top: 6px; }
  .principles-block { grid-template-columns: 1fr; margin-top: 56px; }
  .principles-block h3, .principles-list { grid-column: 1 / -1; }
}

/* Investment */
.band-light { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.invest { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.invest h2 { margin: 10px 0 14px; }
.invest-steps { display: grid; gap: 20px; margin: 32px 0 0; padding: 0; list-style: none; }
.invest-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: start; }
.invest-steps h3 { margin: 6px 0 4px; }
.invest-steps p { color: var(--muted); font-size: 15.5px; }
.invest-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.invest-mail { font-weight: 620; }
.invest-card { padding: 30px; border-radius: 22px; background: var(--bg); border: 1px solid var(--line); }
.invest-card h3 { margin-bottom: 18px; font-size: 1.15rem; }
.checklist { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); }
.checklist .ic { width: 20px; height: 20px; margin-top: 2px; color: var(--brand); stroke-width: 2.2; }
.invest-note { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .invest { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .invest-card { padding: 24px 20px; } .invest-actions .btn { width: 100%; } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; margin-bottom: 10px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 620; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 24px; font-weight: 400; line-height: 1; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 0; } }

/* Contact */
.contact {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  padding: 56px; border-radius: 28px; color: #fff;
  background: linear-gradient(135deg, #3F58D4 0%, #2A3B9C 100%);
}
.contact::after {
  content: ""; position: absolute; top: -180px; right: -140px; width: 480px; height: 480px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .16), transparent 72%);
  pointer-events: none;
}
.contact > * { position: relative; z-index: 1; }
.contact h2 { color: #fff; }
.contact p { margin: 14px 0 18px; color: rgba(255, 255, 255, .86); max-width: 520px; }
.contact-checks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 8px; color: rgba(255, 255, 255, .92); }
.contact-checks li { display: flex; align-items: center; gap: 10px; }
.contact-checks .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { padding: 16px 20px; border-radius: 16px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); }
.contact-list small { display: block; margin-bottom: 2px; color: rgba(255, 255, 255, .72); font-size: 13.5px; }
.contact-list a { color: #fff; font-weight: 640; font-size: 17px; word-break: break-word; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; padding: 36px 24px; border-radius: 22px; } }

/* Footer */
.site-footer { background: #0B0F19; color: var(--dark-muted); padding: 56px 0 32px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer img { height: 28px; width: auto; margin-bottom: 14px; }
.site-footer p { max-width: 360px; }
.site-footer h4 { margin: 0 0 12px; color: #fff; font-size: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--dark-ink); }
.legal { display: grid; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #1D2436; font-size: 13px; line-height: 1.65; }
.legal p { max-width: none; }
.legal strong { color: var(--dark-ink); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-tight { padding-top: 16px; }
  .hero { padding: 36px 0 64px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
