/* ============================================================
   Landing page styles
   ============================================================ */

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: oklch(0.985 0.004 270 / 0.78);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
html[data-theme='dark'] .nav { background: oklch(0.165 0.014 274 / 0.82); }
.nav.scrolled { border-color: var(--border); }
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand-mark { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: var(--accent); color: var(--accent-contrast); box-shadow: 0 4px 12px oklch(0.55 0.2 280 / 0.35); }
.brand-mark svg { width: 21px; height: 21px; }

.nav-links { display: flex; gap: 4px; margin-left: 14px; flex: 1; }
.nav-links a { font-size: 14.5px; font-weight: 600; color: var(--text-2); padding: 8px 13px; border-radius: var(--r-md); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: var(--card-2); }

.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-burger { display: none; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 74px 0 90px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, oklch(0.6 0.2 285 / 0.22), transparent 70%);
  filter: blur(8px);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(38px, 5vw, 60px); margin: 20px 0 18px; }
.hero-sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--text-2); max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; }
.hero-stats { display: flex; align-items: center; gap: 22px; margin-top: 40px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--muted); }
.stat-div { width: 1px; height: 34px; background: var(--border); }

/* Hero mockup */
.hero-visual { position: relative; }
.mock-app {
  position: relative; z-index: 2; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl); padding: 18px; display: flex; flex-direction: column; gap: 14px;
}
.mock-prompt { background: var(--card-2); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 14px; }
.mock-prompt-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mock-prompt-row { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
.mock-prompt-text { flex: 1; font-size: 15px; font-weight: 600; color: var(--text); }
.mock-gen { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--accent-contrast); font-size: 13px; font-weight: 700; padding: 8px 13px; border-radius: var(--r-pill); }
.mock-gen svg { width: 15px; height: 15px; }

.mock-slide { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; background: var(--bg-elev); border: 1px solid var(--border-2); border-radius: var(--r-lg); padding: 18px; min-height: 188px; }
.mock-slide-side { display: flex; flex-direction: column; }
.mock-kicker { font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--accent); }
.mock-slide-title { font-size: 21px; margin: 6px 0 6px; }
.mock-slide-body { font-size: 13px; color: var(--text-2); line-height: 1.45; }
.mock-bars { display: flex; align-items: flex-end; gap: 7px; height: 46px; margin-top: auto; }
.mock-bars span { width: 14px; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(var(--accent), var(--accent-2)); opacity: .9; }
.mock-slide-media { border-radius: var(--r-md); }

.mock-thumbs { display: flex; gap: 8px; }
.mock-thumbs span { flex: 1; height: 30px; border-radius: 6px; background: var(--card-2); border: 1px solid var(--border-2); }
.mock-thumbs span.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }

.float-card { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); border-radius: var(--r-pill); padding: 9px 15px; font-weight: 700; font-size: 13.5px; }
.float-card svg { width: 17px; height: 17px; color: var(--green); }
.float-1 { top: 8%; right: -14px; animation: floaty 5s ease-in-out infinite; }
.float-2 { bottom: 6%; left: -20px; color: var(--accent-ink); animation: floaty 5.6s ease-in-out infinite reverse; }
.spark { width: 13px; height: 13px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, oklch(0.85 0.15 285), var(--accent)); box-shadow: 0 0 0 3px var(--accent-soft); }
@keyframes floaty { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-9px) } }

/* ---------- Placeholder image ---------- */
.ph-img {
  position: relative; display: flex; align-items: center; justify-content: center;
  background-color: var(--card-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 9px, oklch(0.5 0.02 274 / 0.06) 9px 10px);
  border: 1px dashed var(--border);
}
.ph-tag { font-family: 'Space Grotesk', monospace; font-size: 11px; color: var(--muted); background: var(--surface); padding: 3px 8px; border-radius: 6px; }

/* ---------- TRUST ---------- */
.trust { padding: 10px 0 36px; }
.trust-label { text-align: center; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 38px; margin-top: 22px; opacity: .62; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--text-2); }

/* ---------- SECTIONS ---------- */
.section { padding: 86px 0; }
.section-alt { background: var(--card); border-block: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 16px 0 12px; }
.section-sub { font-size: 17px; color: var(--text-2); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; text-align: left; max-width: none; gap: 24px; }
.section-head-row h2 { margin-bottom: 8px; }

/* ---------- FEATURES ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--faint); }
.feat-card h3 { font-size: 19px; margin: 16px 0 8px; }
.feat-card p { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }
.feat-ic { display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 13px; background: var(--accent-soft); color: var(--accent-ink); }
.feat-ic svg { width: 24px; height: 24px; }
.feat-hero { grid-row: span 2; background: linear-gradient(160deg, var(--accent-soft), var(--surface) 60%); border-color: var(--accent-soft); display: flex; flex-direction: column; }
.feat-hero .feat-ic { background: var(--accent); color: var(--accent-contrast); }
.feat-hero h3 { font-size: 24px; }

/* ---------- HOW ---------- */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.how-step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px 26px; }
.how-num { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--accent-contrast); background: var(--accent); width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; }
.how-step h3 { font-size: 20px; margin: 18px 0 8px; }
.how-step p { font-size: 14.5px; color: var(--text-2); }

/* ---------- TEMPLATES ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tpl-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; cursor: pointer; }
.tpl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--faint); }
.tpl-thumb { aspect-ratio: 16/10; padding: 16px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.tpl-thumb .tt-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.tpl-thumb .tt-line { height: 6px; border-radius: 3px; background: currentColor; opacity: .28; }
.tpl-thumb .tt-line.s { width: 60%; }
.tpl-thumb .tt-chip { position: absolute; bottom: 14px; left: 16px; display: inline-flex; gap: 6px; }
.tpl-thumb .tt-chip i { width: 22px; height: 22px; border-radius: 6px; background: currentColor; opacity: .85; }
.tpl-meta { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-top: 1px solid var(--border); }
.tpl-cat { font-size: 13.5px; font-weight: 700; }
.tpl-use { font-size: 13px; font-weight: 700; color: var(--accent-ink); display: inline-flex; align-items: center; gap: 5px; }
.tpl-use svg { width: 14px; height: 14px; }

/* ---------- AI BAND ---------- */
.ai-band { margin: 0 0; padding: 0; }
.ai-inner { background: linear-gradient(150deg, oklch(0.33 0.13 282), oklch(0.24 0.12 285)); border-radius: var(--r-xl); padding: 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; color: oklch(0.97 0.01 285); margin: 86px auto; max-width: var(--maxw); }
.ai-inner h2 { color: #fff; font-size: clamp(26px, 3vw, 38px); margin: 16px 0 12px; }
.ai-inner > .ai-copy > p { font-size: 17px; color: oklch(0.88 0.03 285); max-width: 28em; }
.eyebrow-invert { background: oklch(1 0 0 / 0.14); color: oklch(0.92 0.04 285); }
.eyebrow-invert .dot { background: oklch(0.85 0.12 285); }
.ai-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0 28px; }
.ai-chip { font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: var(--r-pill); background: oklch(1 0 0 / 0.1); border: 1px solid oklch(1 0 0 / 0.16); color: oklch(0.95 0.02 285); }
.ai-btn { background: #fff; color: oklch(0.33 0.13 282); box-shadow: 0 10px 30px oklch(0 0 0 / 0.3); }
.ai-btn:hover { background: oklch(0.96 0.01 285); }

.ai-visual { background: oklch(0.18 0.04 285 / 0.5); border: 1px solid oklch(1 0 0 / 0.12); border-radius: var(--r-lg); padding: 22px; font-family: 'Space Grotesk', monospace; }
.ai-line { display: flex; align-items: center; gap: 4px; margin-bottom: 18px; }
.ai-typed { font-size: 14px; color: oklch(0.85 0.1 285); }
.ai-cursor { width: 8px; height: 16px; background: oklch(0.85 0.12 285); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-rows { display: flex; flex-direction: column; gap: 11px; }
.ai-row { display: flex; align-items: center; gap: 11px; font-size: 14px; color: oklch(0.78 0.03 285); }
.ai-row.done { color: #fff; }
.ai-check { width: 18px; height: 18px; border-radius: 50%; background: oklch(0.7 0.16 150); position: relative; flex: none; }
.ai-check::after { content: ""; position: absolute; left: 5px; top: 4px; width: 5px; height: 8px; border: solid oklch(0.2 0.05 150); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ai-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid oklch(1 0 0 / 0.25); border-top-color: oklch(0.85 0.12 285); animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- CTA ---------- */
.cta-card { position: relative; overflow: hidden; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 70px 40px; box-shadow: var(--shadow-md); }
.cta-glow { position: absolute; inset: auto 0 -60% 0; height: 80%; background: radial-gradient(closest-side, oklch(0.6 0.2 285 / 0.16), transparent 70%); pointer-events: none; }
.cta-card h2 { position: relative; font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 12px; }
.cta-card p { position: relative; font-size: 17px; color: var(--text-2); margin-bottom: 28px; }
.cta-card .btn { position: relative; }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 30px; background: var(--card); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { margin-top: 14px; font-size: 14.5px; color: var(--muted); max-width: 24em; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--text-2); padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 520px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-hero { grid-row: auto; grid-column: span 2; }
  .tpl-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-inner { grid-template-columns: 1fr; padding: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links, .nav-login { display: none; }
  .nav-burger { display: inline-flex; }
  .lang-seg { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px 24px; gap: 2px; box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 12px; }
  .how-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .feat-grid, .tpl-grid, .footer-grid { grid-template-columns: 1fr; }
  .feat-hero { grid-column: auto; }
  .hero-stats { gap: 14px; }
  .stat strong { font-size: 22px; }
  .ai-inner, .cta-card { padding: 32px 22px; }
  .mock-slide { grid-template-columns: 1fr; }
}
