:root {
  color-scheme: dark;
  --bg: #050505;
  --surface: #151515;
  --surface-2: #1d1d1f;
  --line: #313134;
  --line-strong: #4a4a4f;
  --text: #f7f7f8;
  --muted: #a2a2a8;
  --blue: #3d8bfd;
  --blue-dark: #2369c9;
  --yellow: #ffc800;
  --green: #45c464;
  --radius: 14px;
  --shadow: 0 24px 70px rgba(0,0,0,.4);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --line: #dde1e7;
  --line-strong: #c7ccd4;
  --text: #121417;
  --muted: #68707c;
  --blue: #2369c9;
  --blue-dark: #1855aa;
  --green: #18813a;
  --shadow: 0 24px 70px rgba(24,31,42,.12);
}

@font-face { font-family: Fredoka; src: url('/static/fonts/Fredoka-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Fredoka; src: url('/static/fonts/Fredoka-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Fredoka; src: url('/static/fonts/Fredoka-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--text); background: var(--bg); font-family: Fredoka, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 14px; border-radius: 8px; color: #fff; background: var(--blue); }
.skip-link:focus { transform: none; }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; border-bottom: 1px solid rgba(255,255,255,.08); background: rgba(5,5,5,.84); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { display: block; width: 166px; height: auto; }
.brand .logo-light { display: none; }
[data-theme="light"] .brand .logo-dark { display: none; }
[data-theme="light"] .brand .logo-light { display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { position: relative; }
.lang summary { min-width: 68px; min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface); cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; }
.lang summary::-webkit-details-marker { display: none; }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; min-width: 142px; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: #111; box-shadow: var(--shadow); }
.lang-menu a { display: block; padding: 9px 11px; border-radius: 7px; color: var(--muted); text-decoration: none; font-size: 14px; }
.lang-menu a:hover, .lang-menu a[aria-current="page"] { color: #fff; background: var(--surface-2); }
.menu-button { display: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface); cursor: pointer; }
.menu-button svg { width: 21px; }
.theme-toggle { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface); cursor: pointer; }
.theme-toggle svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border: 1px solid transparent; border-radius: 10px; color: #fff; background: var(--blue); font-weight: 600; text-decoration: none; transition: transform .18s, background .18s, border-color .18s; }
.button:hover { transform: translateY(-2px); background: var(--blue-dark); }
.button.secondary { color: var(--text); border-color: var(--line-strong); background: var(--surface); }
.button.secondary:hover { border-color: #707077; background: var(--surface-2); }
.button.compact { min-height: 42px; padding-inline: 16px; font-size: 14px; }
.button svg { width: 19px; height: 19px; }

.hero { position: relative; min-height: 780px; display: grid; align-items: center; padding: 152px 0 90px; overflow: hidden; }
.hero::before { content: ''; position: absolute; width: 640px; height: 640px; top: 20px; right: -130px; border-radius: 50%; background: radial-gradient(circle, rgba(61,139,253,.22), rgba(61,139,253,0) 68%); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: 0; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, #000, transparent 90%); pointer-events: none; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); align-items: center; gap: 70px; }
.hero-grid > * { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; color: #8dbdff; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(69,196,100,.12); }
h1 { max-width: 760px; margin: 0; font-size: clamp(44px, 6vw, 76px); line-height: .98; letter-spacing: -.045em; }
.accent { color: var(--blue); }
.hero-copy { max-width: 660px; margin: 25px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 30px; color: var(--muted); font-size: 13px; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row i { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #06130a; background: var(--green); font-style: normal; font-size: 11px; font-weight: 700; }

.product-stack { position: relative; min-height: 470px; }
.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb.one { width: 290px; height: 290px; inset: 80px 0 auto auto; background: rgba(61,139,253,.16); }
.orb.two { width: 170px; height: 170px; inset: 30px auto auto 20px; background: rgba(255,200,0,.09); }
.product-card { position: absolute; display: flex; align-items: center; gap: 18px; padding: 20px; border: 1px solid var(--line-strong); border-radius: 18px; background: linear-gradient(145deg, rgba(32,32,35,.96), rgba(16,16,17,.96)); box-shadow: 0 28px 70px rgba(0,0,0,.5); }
.product-card img { width: 98px; height: 98px; object-fit: contain; }
.product-card strong { display: block; margin-bottom: 5px; font-size: 22px; }
.product-card span { color: var(--muted); font-size: 14px; }
.product-card.stars { z-index: 2; top: 36px; right: 0; width: 82%; transform: rotate(2deg); }
.product-card.premium { z-index: 3; bottom: 62px; left: 0; width: 82%; transform: rotate(-2deg); }
.mini-card { position: absolute; z-index: 4; right: 10px; bottom: 0; padding: 14px 18px; border: 1px solid rgba(69,196,100,.35); border-radius: 13px; color: #8be49f; background: rgba(19,53,27,.92); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; }

.metrics { position: relative; z-index: 2; margin-top: -24px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(21,21,21,.92); box-shadow: var(--shadow); overflow: hidden; }
.metric { padding: 24px 26px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; font-size: 24px; }
.metric span { color: var(--muted); font-size: 13px; }

.section { padding: 104px 0; }
.section.alt { background: #0a0a0b; border-block: 1px solid rgba(255,255,255,.055); }
.section-head { max-width: 680px; margin-bottom: 42px; }
.kicker { margin: 0 0 9px; color: #77adff; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
h2 { margin: 0; font-size: clamp(32px, 4.3vw, 50px); line-height: 1.05; letter-spacing: -.035em; }
.section-head > p:last-child { margin: 16px 0 0; color: var(--muted); font-size: 17px; }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.service-card { min-height: 330px; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: transform .2s, border-color .2s; }
.service-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.service-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 15px; background: var(--surface-2); }
.service-icon img { width: 42px; height: 42px; object-fit: contain; }
.service-icon svg { width: 29px; color: #78adff; }
.service-card h3 { margin: 0; font-size: 24px; }
.service-card p { margin: 11px 0 24px; color: var(--muted); }
.text-link { margin-top: auto; color: #81b3ff; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.price-card { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.price-card.featured { border-color: rgba(61,139,253,.6); background: linear-gradient(180deg, rgba(61,139,253,.12), var(--surface) 45%); }
.price-card.featured::after { content: ''; position: absolute; width: 90px; height: 90px; top: -30px; right: -30px; border-radius: 50%; background: rgba(61,139,253,.22); }
.price-name { min-height: 48px; display: flex; align-items: center; gap: 11px; color: var(--muted); font-weight: 600; }
.price-name img { width: 42px; height: 42px; object-fit: contain; }
.price { margin-top: 25px; font-size: clamp(29px, 3vw, 38px); font-weight: 700; letter-spacing: -.035em; white-space: nowrap; }
.price small { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.price-list { min-height: 125px; margin: 24px 0; padding: 20px 0 0; border-top: 1px solid var(--line); list-style: none; color: var(--muted); font-size: 14px; }
.price-list li { margin-bottom: 9px; }
.price-list li::before { content: '✓'; margin-right: 8px; color: var(--green); font-weight: 700; }
.price-card .button { width: 100%; }
.price-note { margin: 20px 0 0; color: var(--muted); font-size: 13px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); counter-increment: step; }
.step::before { content: '0' counter(step); display: block; margin-bottom: 36px; color: #6da6ff; font-size: 14px; font-weight: 700; }
.step h3 { margin: 0; font-size: 21px; }
.step p { margin: 10px 0 0; color: var(--muted); }

.api-panel { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.api-copy { padding: clamp(30px, 6vw, 68px); }
.api-copy p { color: var(--muted); }
.feature-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 30px; }
.feature-pills span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: var(--surface-2); font-size: 12px; }
.code { min-width: 0; padding: 36px; background: #090909; border-left: 1px solid var(--line); overflow: auto; }
.code pre { margin: 0; color: #d5d5d8; font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.code .blue { color: #72aaff; }
.code .green { color: #72db8a; }
.code .muted { color: #727279; }

.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 25px; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { max-width: 760px; margin: -5px 0 24px; color: var(--muted); }

.cta { padding: 0 0 104px; }
.cta-box { position: relative; padding: clamp(40px, 7vw, 78px); border: 1px solid rgba(61,139,253,.35); border-radius: 20px; background: linear-gradient(135deg, rgba(61,139,253,.17), rgba(21,21,21,.9) 55%); overflow: hidden; }
.cta-box::after { content: ''; position: absolute; width: 310px; height: 310px; right: -90px; top: -120px; border-radius: 50%; background: rgba(61,139,253,.13); }
.cta-box h2, .cta-box p, .cta-box .hero-actions { position: relative; z-index: 1; }
.cta-box p { max-width: 620px; color: #b2b2b8; }

.footer { padding: 42px 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.footer .brand img { width: 150px; }
.footer p { max-width: 380px; color: var(--muted); font-size: 13px; }
.footer h3 { margin: 0 0 14px; font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); color: #77777d; font-size: 12px; }

[data-theme="light"] .site-header { border-bottom-color: rgba(20,28,40,.1); background: rgba(244,246,249,.9); }
[data-theme="light"] .hero::after { opacity: .38; background-image: linear-gradient(rgba(28,43,65,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(28,43,65,.055) 1px, transparent 1px); }
[data-theme="light"] .section.alt { border-block-color: rgba(20,28,40,.08); background: #eef1f5; }
[data-theme="light"] .metrics .metric-grid { background: rgba(255,255,255,.94); }
[data-theme="light"] .nav-links a:hover, [data-theme="light"] .lang-menu a:hover, [data-theme="light"] .lang-menu a[aria-current="page"] { color: #111; }
[data-theme="light"] .lang-menu { background: #fff; }
[data-theme="light"] .product-card { color: #fff; }
[data-theme="light"] .product-card span { color: #b9bec7; }
[data-theme="light"] .eyebrow, [data-theme="light"] .kicker, [data-theme="light"] .text-link { color: #2369c9; }
[data-theme="light"] .service-card, [data-theme="light"] .price-card, [data-theme="light"] .step, [data-theme="light"] .api-panel { box-shadow: 0 8px 26px rgba(31,44,66,.055); }
[data-theme="light"] .footer-links a:hover { color: #111; }
[data-theme="light"] .code { color: #fff; }
[data-theme="light"] .cta-box { background: linear-gradient(135deg, rgba(61,139,253,.16), rgba(255,255,255,.94) 55%); }
[data-theme="light"] .cta-box p { color: var(--muted); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .nav-links { display: none; position: absolute; top: 76px; left: 18px; right: 18px; align-items: stretch; flex-direction: column; gap: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #111; box-shadow: var(--shadow); }
  [data-theme="light"] .nav-links { background: #fff; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; border-radius: 8px; }
  .nav-links a:hover { background: var(--surface-2); }
  .menu-button { display: grid; place-items: center; }
  .nav-actions > .button { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 25px; }
  .hero { min-height: auto; }
  .product-stack { min-height: 390px; max-width: 570px; width: 100%; margin: 0 auto; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .api-panel { grid-template-columns: 1fr; }
  .code { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1160px); }
  .nav { min-height: 68px; }
  .brand img { width: 138px; }
  .nav-links { top: 68px; }
  .lang summary { min-width: 62px; }
  .hero { padding: 124px 0 70px; }
  h1 { font-size: clamp(38px, 11vw, 48px); overflow-wrap: anywhere; }
  .hero-copy { font-size: 17px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .product-stack { min-height: 330px; }
  .product-card { padding: 14px; }
  .product-card img { width: 70px; height: 70px; }
  .product-card strong { font-size: 18px; }
  .product-card.stars, .product-card.premium { width: 90%; }
  .product-card.premium { bottom: 50px; }
  .mini-card { right: 0; }
  .section { padding: 76px 0; }
  .metric { padding: 18px; }
  .metric strong { font-size: 21px; }
  .service-grid, .pricing-grid, .steps { grid-template-columns: 1fr; }
  .service-card { min-height: 280px; }
  .price-list { min-height: 0; }
  .api-copy, .code { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
