/* Kratt landing — circuit-tech, green, light + dark. Self-hosted fonts. */
@font-face { font-family: 'Hanken Grotesk'; font-weight: 400; font-display: swap; src: url('/fonts/hanken-400.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 500; font-display: swap; src: url('/fonts/hanken-500.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 600; font-display: swap; src: url('/fonts/hanken-600.woff2') format('woff2'); }
@font-face { font-family: 'Hanken Grotesk'; font-weight: 700; font-display: swap; src: url('/fonts/hanken-700.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 700; font-display: swap; src: url('/fonts/sora-700.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 800; font-display: swap; src: url('/fonts/sora-800.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('/fonts/jbmono-400.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('/fonts/jbmono-500.woff2') format('woff2'); }

:root {
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Sora', var(--sans);
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --bg: #070b08; --bg-2: #0c120e; --bg-3: #111a14; --border: #1b291f; --border-2: #294234;
  --text: #e7f0e9; --muted: #8a9c8e;
  --accent: #38c66c; --grad: linear-gradient(135deg, #43d473 0%, #20a24e 58%, #0f7d3c 118%);
  --grad-soft: linear-gradient(135deg, rgba(67,212,115,.16), rgba(31,158,76,.08));
  --ring: rgba(56,198,108,.22); --glow: rgba(31,158,76,.45); --dot: rgba(67,212,115,.05);
  --card: rgba(12,18,14,.72); --shadow: 0 24px 60px -24px rgba(0,0,0,.7);
  --nav-bg: rgba(7,11,8,.7);
}
[data-theme="light"] {
  --bg: #eef3ec; --bg-2: #ffffff; --bg-3: #e8f0e7; --border: #dde8db; --border-2: #c6d8c5;
  --text: #14231a; --muted: #5c6e60;
  --accent: #15873b; --grad: linear-gradient(135deg, #2cb54e, #0f8239);
  --grad-soft: linear-gradient(135deg, rgba(44,181,78,.14), rgba(15,130,57,.07));
  --ring: rgba(21,135,59,.18); --glow: rgba(20,140,62,.3); --dot: rgba(15,130,57,.06);
  --card: rgba(255,255,255,.78); --shadow: 0 24px 60px -26px rgba(20,60,35,.28);
  --nav-bg: rgba(238,243,236,.72);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; font-family: var(--sans); background: var(--bg); color: var(--text);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(50% 38% at 88% -4%, rgba(31,158,76,.16), transparent 60%),
    radial-gradient(44% 36% at 4% 18%, rgba(67,212,115,.10), transparent 60%),
    radial-gradient(circle at 1px 1px, var(--dot) 1px, transparent 1.7px);
  background-size: 100% 100%, 100% 100%, 26px 26px;
}
main, .nav, .footer { position: relative; z-index: 1; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.025em; line-height: 1.05; margin: 0; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section { width: 100%; max-width: 1920px; margin: 0 auto; padding: 100px clamp(24px, 5vw, 104px); }
.center { text-align: center; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.section-lead { font-size: 19px; color: var(--muted); max-width: 640px; margin: 20px 0 0; }
.section-lead.center { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans); font-weight: 600; font-size: 15px; border-radius: 12px; padding: 12px 20px; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, filter .15s ease, background .15s ease, border-color .15s; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px -10px var(--glow); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 15px 26px; font-size: 16.5px; border-radius: 14px; }
.btn.full { width: 100%; }
.icon-btn { width: 42px; height: 42px; border-radius: 11px; display: inline-grid; place-items: center; background: transparent; border: 1px solid var(--border-2); color: var(--muted); cursor: pointer; }
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn .moon { display: none; }
[data-theme="light"] .icon-btn .sun { display: none; }
[data-theme="light"] .icon-btn .moon { display: block; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px; width: 100%; max-width: 1920px; margin: 0 auto; padding: 14px clamp(24px, 5vw, 104px); }
.nav::before { content: ""; position: absolute; inset: 0; background: var(--nav-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); z-index: -1; }
.nav-brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 21px; color: var(--text); }
.nav-brand .nav-mark { height: 30px; }
.nav-links { display: flex; gap: 26px; margin-left: 18px; }
.nav-links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Hero */
.hero { width: 100%; max-width: 1920px; margin: 0 auto; padding: 76px clamp(24px, 5vw, 104px) 64px; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 5vw, 88px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); background: var(--grad-soft); border: 1px solid var(--border-2); padding: 7px 14px; border-radius: 30px; margin-bottom: 26px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(46px, 7vw, 78px); }
.lead { font-size: 20px; color: var(--muted); margin: 24px 0 34px; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 13px; color: var(--muted); margin: 18px 0 0; }
.hero-note .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--ring); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--ring); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero-trust { display: flex; align-items: center; gap: 14px; margin-top: 24px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.hero-trust i { width: 4px; height: 4px; border-radius: 50%; background: var(--border-2); }

/* Hero demo card */
.hero-demo { display: flex; justify-content: center; }
.demo-card { width: 100%; max-width: 420px; background: var(--card); backdrop-filter: blur(14px); border: 1px solid var(--border-2); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; transform: rotate(.6deg); }
.demo-head { display: flex; align-items: center; gap: 9px; padding: 14px 18px; border-bottom: 1px solid var(--border); font-family: var(--display); font-weight: 700; }
.demo-head img { height: 24px; }
.demo-head em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.demo-head em::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.demo-body { position: relative; display: flex; flex-direction: column; padding: 18px; height: 250px; overflow: hidden; }
.demo-scene { display: none; flex-direction: column; gap: 12px; opacity: 0; transition: opacity .42s ease; }
.demo-scene.active { display: flex; flex: 1; justify-content: flex-end; }
.demo-scene.show { opacity: 1; }
.demo-nav { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 18px 16px; }
.demo-arrow { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: transparent; border: 1px solid var(--border-2); color: var(--muted); cursor: pointer; transition: color .15s ease, border-color .15s ease; }
.demo-arrow:hover { color: var(--accent); border-color: var(--accent); }
.demo-arrow svg { width: 15px; height: 15px; }
.demo-dots { display: flex; justify-content: center; gap: 8px; padding: 0; }
.demo-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--border-2); cursor: pointer; transition: width .25s ease, background .25s ease, border-radius .25s ease; }
.demo-dot:hover { background: var(--muted); }
.demo-dot.active { width: 20px; border-radius: 6px; background: var(--accent); }
.bubble { padding: 11px 14px; border-radius: 15px; font-size: 14.5px; max-width: 85%; line-height: 1.5; }
.bubble.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.bubble.bot { align-self: flex-start; background: var(--bg-3); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.bubble.bot p { margin: 6px 0 0; } .bubble.bot small { color: var(--muted); }
.tool-chip { font-family: var(--mono); font-size: 11px; color: var(--accent); background: var(--grad-soft); border: 1px solid var(--border-2); padding: 3px 9px; border-radius: 20px; display: inline-block; margin-right: 4px; }
.bot-link { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 13.5px; }

/* Why */
.why h2, .tools h2, .privacy h2, .pricing h2, .cta-final h2, .apps h2 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 800; }
.why-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 28px; backdrop-filter: blur(8px); }
.stat-card b { font-family: var(--display); font-size: 46px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; line-height: 1; margin-bottom: 12px; }
.stat-card span { color: var(--muted); font-size: 15px; }

/* Apps suite */
.apps .center { margin-bottom: 50px; }
.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.app-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 28px 26px; backdrop-filter: blur(8px); color: var(--text); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.app-card:hover { transform: translateY(-5px); border-color: var(--border-2); box-shadow: var(--shadow); }
.app-card .a-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--border-2); margin-bottom: 18px; color: var(--accent); }
.app-card .a-ic svg { width: 26px; height: 26px; }
.app-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.app-card p { color: var(--muted); font-size: 14.5px; margin: 0 0 18px; flex: 1; }
.app-card .a-go { font-family: var(--mono); font-size: 12.5px; color: var(--accent); font-weight: 500; }
.apps-foot { text-align: center; color: var(--muted); font-size: 15px; margin-top: 26px; }
.apps-foot a { text-decoration: underline; text-underline-offset: 2px; }

/* Tools */
.tools .center { margin-bottom: 50px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tool { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 26px; backdrop-filter: blur(8px); transition: transform .18s ease, border-color .18s ease; }
.tool:hover { transform: translateY(-4px); border-color: var(--border-2); }
.tool .t-ic { font-size: 26px; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--border-2); margin-bottom: 16px; }
.tool h3 { font-size: 19px; font-weight: 700; margin-bottom: 7px; }
.tool p { color: var(--muted); font-size: 15px; margin: 0; }
.tool.more { background: var(--grad-soft); }

/* Privacy */
.privacy-inner { background: var(--card); border: 1px solid var(--border-2); border-radius: 28px; padding: 56px; backdrop-filter: blur(10px); box-shadow: var(--shadow); }
.privacy h2 { font-size: clamp(30px, 4vw, 44px); }
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.p-card .p-ic { font-size: 32px; margin-bottom: 14px; }
.p-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 7px; }
.p-card p { color: var(--muted); font-size: 15px; margin: 0; }

/* Pricing */
.pricing .center { margin-bottom: 52px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 32px 28px; backdrop-filter: blur(10px); display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 20px 50px -22px var(--glow); transform: translateY(-8px); }
.badge-pop { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--grad); padding: 5px 13px; border-radius: 20px; white-space: nowrap; box-shadow: 0 8px 20px -8px var(--glow); }
.p-name { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--muted); letter-spacing: .02em; }
.p-price { margin: 12px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.p-price .amt { font-family: var(--display); font-weight: 800; font-size: 46px; }
.p-price .per { color: var(--muted); font-size: 15px; }
.p-tag { color: var(--muted); font-size: 14.5px; margin: 6px 0 20px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-card li { position: relative; padding-left: 28px; font-size: 15px; }
.price-card li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--grad-soft); border: 1px solid var(--border-2); }
.price-card li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 6px; height: 3px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.price-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 24px; }

/* Final CTA */
.cta-final { padding-top: 40px; }
.cta-box { background: var(--grad-soft); border: 1px solid var(--border-2); border-radius: 28px; padding: 64px 32px; text-align: center; position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, rgba(67,212,115,.14), transparent 60%); pointer-events: none; }
.cta-box h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; }
.cta-box p { color: var(--muted); font-size: 18px; max-width: 520px; margin: 16px auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { width: 100%; max-width: 1920px; margin: 0 auto; padding: 48px clamp(24px, 5vw, 104px) 60px; border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.foot-brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-weight: 800; font-size: 20px; }
.foot-brand img { height: 26px; }
.foot-tag { color: var(--muted); margin: 0; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.foot-links a { color: var(--muted); font-weight: 500; font-size: 15px; }
.foot-links a:hover { color: var(--accent); }
.foot-copy { color: var(--muted); font-size: 13px; font-family: var(--mono); margin: 6px 0 0; }

/* Coming-soon modal */
.lmodal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 22px; background: rgba(3,6,4,.62); backdrop-filter: blur(6px); animation: lmfade .18s ease; }
.lmodal[hidden] { display: none; }
@keyframes lmfade { from { opacity: 0; } to { opacity: 1; } }
.lmodal-card { position: relative; width: 100%; max-width: 420px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 22px; padding: 38px 32px 30px; text-align: center; box-shadow: var(--shadow); animation: lmpop .22s cubic-bezier(.2,.9,.3,1.2); }
@keyframes lmpop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
.lmodal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: transparent; border: 1px solid var(--border); color: var(--muted); cursor: pointer; }
.lmodal-x:hover { color: var(--accent); border-color: var(--accent); }
.lmodal-x svg { width: 17px; height: 17px; }
.lmodal-ic { font-size: 42px; margin-bottom: 12px; }
.lmodal-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.lmodal-card p { color: var(--muted); font-size: 15.5px; margin: 0 0 24px; }
.lmodal-actions { display: flex; flex-direction: column; gap: 10px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .hero-note .pulse { animation: none; } html { scroll-behavior: auto; } }

/* Responsive */
@media (max-width: 1100px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 40px; }
  .hero-demo { order: 2; }
  .why-stats, .tool-grid, .privacy-grid, .price-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .privacy-inner { padding: 36px 24px; }
  .nav-links { display: none; }
  .section { padding: 64px 22px; }
}
@media (max-width: 560px) { .app-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero-trust { gap: 10px; }
  .nav-brand span { display: none; }
  .nav-login { display: none; }
}

.foot-sources { color: var(--muted); font-size: 12.5px; margin: 2px 0; }
.foot-sources a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.foot-sources a:hover { color: var(--accent); }
