/* ============================================================
   Seufic — styles.css  (v2: airier, fewer boxes, inline icons)
   Dark by default; light via [data-theme="light"].
============================================================ */

:root {
  --bg:            #0a0a0b;
  --bg-elev:       #131316;
  --bg-elev-2:     #1a1a1e;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text:          #f4f4f5;
  --text-muted:    #a3a3ad;
  --text-faint:    #6b6b75;
  --accent:        #19c37d;
  --accent-2:      #5b8cff;
  --accent-soft:   rgba(25, 195, 125, 0.13);
  --invert-bg:     #f4f4f5;
  --invert-text:   #0a0a0b;
  --glow-a:        rgba(56, 132, 255, 0.26);
  --glow-b:        rgba(25, 195, 125, 0.20);
  --shadow:        0 30px 80px -40px rgba(0, 0, 0, 0.8);
  --nav-bg:        rgba(11, 11, 13, 0.6);
  --radius:        18px;
  --maxw:          1120px;
  --ease:          cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
[data-theme="light"] {
  --bg:            #fbfbfa;
  --bg-elev:       #ffffff;
  --bg-elev-2:     #f4f4f3;
  --border:        rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.15);
  --text:          #18181b;
  --text-muted:    #56565f;
  --text-faint:    #8c8c95;
  --accent:        #0f9d68;
  --accent-2:      #3b6fe0;
  --accent-soft:   rgba(15, 157, 104, 0.11);
  --invert-bg:     #18181b;
  --invert-text:   #fbfbfa;
  --glow-a:        rgba(56, 132, 255, 0.14);
  --glow-b:        rgba(15, 157, 104, 0.12);
  --shadow:        0 30px 80px -44px rgba(0, 0, 0, 0.22);
  --nav-bg:        rgba(255, 255, 255, 0.62);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
svg { display: block; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.1; font-weight: 600; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
@media (max-width: 640px) { .container { padding: 0 22px; } }

/* ---- Inline icon ---- */
.ico { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn .ico { width: 16px; height: 16px; }
.btn-primary { background: var(--invert-bg); color: var(--invert-text); }
.btn-primary:hover { transform: scale(1.03); opacity: 0.92; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { transform: scale(1.03); border-color: var(--text-faint); }
.btn-lg { padding: 15px 28px; font-size: 15px; }

/* ============================================================
   NAVBAR
============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100; background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.nav.scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px -22px rgba(0,0,0,0.6);
}
.nav-inner {
  height: 68px; display: flex; align-items: center; gap: 30px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 40px;
}
.brand { font-size: 20px; font-weight: 700; letter-spacing: -0.04em; }
.brand:hover { opacity: 0.8; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 12px; border-radius: 9px;
  font-size: 14px; color: var(--text-muted); font-weight: 450;
  transition: color 0.2s var(--ease);
}
.nav-link .ico { width: 15px; height: 15px; opacity: 0.85; }
.nav-link:hover { color: var(--text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; color: var(--text-muted);
  transition: color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
}
.icon-btn .ico { width: 19px; height: 19px; }
.icon-btn:hover { color: var(--text); background: var(--bg-elev); transform: scale(1.04); }

.menu-wrap { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; width: 270px;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow); padding: 8px;
  opacity: 0; transform: translateY(-6px) scale(0.98); pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.dropdown.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.dropdown-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--text-faint); padding: 10px 12px 6px; font-weight: 600; }
.dropdown-row { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 14px;
  transition: background 0.18s var(--ease); }
.dropdown-row:hover { background: var(--bg-elev-2); }
.dropdown-row .row-label { display: flex; align-items: center; gap: 10px; color: var(--text); }
.dropdown-row .row-label .ico { width: 16px; height: 16px; color: var(--text-muted); }

.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; border-radius: 999px;
  background: var(--bg-elev-2); border: 1px solid var(--border-strong);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease); pointer-events: none; }
.switch .thumb { position: absolute; top: 50%; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--text-muted); transform: translateY(-50%);
  transition: transform 0.22s var(--ease), background 0.22s var(--ease); pointer-events: none; }
.switch input:checked ~ .track { background: var(--accent-soft); border-color: var(--accent); }
.switch input:checked ~ .thumb { transform: translate(18px, -50%); background: var(--accent); }

.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 2px; background: var(--nav-bg); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); padding: 14px 22px 22px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link { padding: 13px 12px; }
  .nav-toggle { display: inline-flex; }
}

/* ============================================================
   HERO
============================================================ */
.hero { position: relative; padding: 140px 0 120px; overflow: hidden; }
.hero-glow { position: absolute; top: -180px; right: -140px; width: 760px; height: 760px;
  background: radial-gradient(circle at 60% 40%, var(--glow-a), transparent 60%),
              radial-gradient(circle at 30% 70%, var(--glow-b), transparent 62%);
  filter: blur(48px); opacity: 0.7; pointer-events: none; z-index: 0;
  animation: drift 20s ease-in-out infinite alternate; }
@keyframes drift { 0% { transform: translate(0,0) scale(1);} 100% { transform: translate(-40px,30px) scale(1.08);} }
.hero-grid { position: relative; z-index: 1; display: grid;
  grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; }
.hero-title { font-size: clamp(42px, 6.2vw, 72px); font-weight: 700; letter-spacing: -0.04em; }
.hero-title .em { color: var(--text-muted); }
.hero-sub { margin-top: 26px; font-size: clamp(16px, 2vw, 19px); color: var(--text-muted);
  max-width: 540px; font-weight: 400; }
.hero-actions { margin-top: 38px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { margin-top: 56px; display: flex; gap: 48px; flex-wrap: wrap; }
.hero-meta .stat .n { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; }
.hero-meta .stat .l { font-size: 13.5px; color: var(--text-faint); margin-top: 2px; }
.hero-visual { margin-right: -36px; }
.hero-visual .gfx { width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero { padding: 96px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; margin-right: 0; }
}

/* ============================================================
   SECTIONS — generous rhythm, mostly open text
============================================================ */
.section { padding: 130px 0; position: relative; border-top: 1px solid var(--border); }
@media (max-width: 900px) { .section { padding: 88px 0; } }
.section-tag { display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px; }
.section-tag .ico { width: 15px; height: 15px; }
.section-head { max-width: 640px; margin-bottom: 72px; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; }
.section-head p { margin-top: 18px; font-size: 18px; color: var(--text-muted); }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; }
.split.reverse .split-visual { order: 2; }
.split-text h2 { font-size: clamp(28px, 3.8vw, 40px); font-weight: 700; }
.split-text > p { margin-top: 20px; color: var(--text-muted); font-size: 17px; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 52px; }
  .split.reverse .split-visual { order: 0; }
}

/* checklist — open, no boxes */
.checklist { margin-top: 34px; display: grid; gap: 22px; padding: 0; }
.checklist li { list-style: none; display: flex; gap: 14px; align-items: flex-start; }
.checklist .ico { width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }
.checklist .lead { color: var(--text); font-weight: 550; }
.checklist .desc { color: var(--text-muted); }

/* features — open grid, NO cards/borders */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px 48px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 40px; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; gap: 40px; } }
.feature { }
.feature .f-ic { color: var(--accent); margin-bottom: 18px; }
.feature .f-ic .ico { width: 26px; height: 26px; }
.feature h3 { font-size: 18px; font-weight: 600; }
.feature p { margin-top: 10px; font-size: 15px; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   VISUALS
============================================================ */
.visual { position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(120% 120% at 80% 0%, var(--accent-soft), transparent 55%),
    linear-gradient(180deg, var(--bg-elev), var(--bg));
  border: 1px solid var(--border); box-shadow: var(--shadow); }
.visual-pad { padding: 18px; }
.gfx { width: 100%; height: auto; display: block; }

/* generic motion helpers used by graphics */
.spin-slow { transform-box: fill-box; transform-origin: center; animation: spin 26s linear infinite; }
.spin-rev  { transform-box: fill-box; transform-origin: center; animation: spin 18s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.breathe { transform-box: fill-box; transform-origin: center; animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.pulse-r { transform-box: fill-box; transform-origin: center; animation: pulseR 3.4s ease-in-out infinite; }
@keyframes pulseR { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.12); opacity: .5; } }
.pulse-ring { transform-box: fill-box; transform-origin: center; animation: pulseRing 3.4s ease-out infinite; }
@keyframes pulseRing { 0% { transform: scale(.72); opacity: .5; } 70% { opacity: 0; } 100% { transform: scale(1.28); opacity: 0; } }
.blink { animation: blink 2.2s steps(1) infinite; }
.blink.b2 { animation-delay: .6s; } .blink.b3 { animation-delay: 1.2s; }
@keyframes blink { 0%,45% { opacity: 1; } 46%,100% { opacity: .25; } }
.scan { animation: scan 3.6s ease-in-out infinite; }
@keyframes scan { 0%,100% { transform: translateY(-22px); opacity: .2; } 50% { transform: translateY(22px); opacity: .9; } }
.float-y { transform-box: fill-box; transform-origin: center; animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-6px);} }
.dataflow { stroke-dasharray: 4 8; animation: dash 2.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -120; } }

/* terminal */
.terminal { font-family: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px;
  border-bottom: 1px solid var(--border); }
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar .r { background: #ff5f57; } .terminal-bar .y { background: #febc2e; } .terminal-bar .g { background: #28c840; }
.terminal-bar .ttl { margin-left: 8px; font-size: 12px; color: var(--text-faint); }
.terminal-body { padding: 22px 24px; font-size: 13.5px; line-height: 1.9; min-height: 250px; }
.terminal-body .ln { white-space: pre-wrap; }
.t-prompt { color: var(--accent); } .t-cmd { color: var(--text); }
.t-flag { color: var(--accent-2); } .t-str { color: #e3b341; }
.t-com { color: var(--text-faint); } .t-ok { color: var(--accent); }
.cursor { display: inline-block; width: 8px; height: 15px; vertical-align: -2px;
  background: var(--accent); margin-left: 2px; animation: cblink 1s steps(1) infinite; }
@keyframes cblink { 50% { opacity: 0; } }

/* ============================================================
   UPDATES — open list, hairline dividers only
============================================================ */
.updates { display: grid; }
.update { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: baseline;
  padding: 30px 4px; border-top: 1px solid var(--border); }
.update:last-child { border-bottom: 1px solid var(--border); }
.update .u-date { font-size: 13.5px; color: var(--text-faint); }
.update .u-content { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.update .u-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); }
.update .u-title { font-size: 17px; font-weight: 600; }
.update .u-desc { font-size: 14.5px; color: var(--text-muted); }
@media (max-width: 720px) {
  .update { grid-template-columns: 1fr; gap: 8px; }
  .update .u-date { order: -1; }
}

/* ============================================================
   FAQ — clean, divider-only, no per-item boxes
============================================================ */
.faq { width: 100%; }
.faq-split { align-items: start; }
.faq-gfx { margin-top: 40px; max-width: 400px; }
.faq-gfx .gfx { width: 100%; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 26px 4px; font-size: 18px; font-weight: 500;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  transition: color 0.2s var(--ease); }
.faq summary:hover { color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { color: var(--text-faint); transition: transform 0.3s var(--ease); flex: none; }
.faq summary .chev .ico { width: 20px; height: 20px; }
.faq details[open] summary .chev { transform: rotate(180deg); color: var(--accent); }
.faq .faq-body { padding: 0 4px 28px; color: var(--text-muted); font-size: 16px; max-width: 680px; }

/* ============================================================
   FOOTER
============================================================ */
.footer { border-top: 1px solid var(--border); padding: 72px 0 48px; margin-top: 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { max-width: 290px; }
.footer-brand .b { font-size: 19px; font-weight: 700; letter-spacing: -0.04em; }
.footer-brand p { margin-top: 14px; font-size: 14px; color: var(--text-faint); }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-faint); margin-bottom: 16px; font-weight: 600; }
.footer-col a { display: flex; align-items: center; gap: 9px; font-size: 14px;
  color: var(--text-muted); padding: 7px 0; transition: color 0.18s var(--ease); }
.footer-col a .ico { width: 15px; height: 15px; }
.footer-col a:hover { color: var(--text); }
.footer-fine { margin-top: 22px; text-align: center; font-size: 12px; color: var(--text-faint); letter-spacing: 0.02em; }
.footer-bottom { margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-faint); }

/* ============================================================
   REVEAL
============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.07s; } .reveal.d2 { transition-delay: 0.14s; }
.reveal.d3 { transition-delay: 0.21s; } .reveal.d4 { transition-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
body.no-motion *, body.no-motion *::before, body.no-motion *::after { animation: none !important; }
body.no-motion .reveal { opacity: 1 !important; transform: none !important; }

/* ============================================================
   AUTH PAGE
============================================================ */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-aside { position: relative; padding: 56px 60px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 36px;
  background: radial-gradient(90% 70% at 18% 6%, var(--glow-a), transparent 55%),
              radial-gradient(80% 70% at 92% 94%, var(--glow-b), transparent 55%), var(--bg-elev);
  border-right: 1px solid var(--border); }
.auth-aside .a-brand { font-size: 22px; font-weight: 700; letter-spacing: -0.04em; position: relative; z-index: 2; }
.auth-aside .a-copy { position: relative; z-index: 2; max-width: 440px; }
.auth-aside .a-copy h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; }
.auth-aside .a-copy p { margin-top: 16px; color: var(--text-muted); font-size: 16px; }
.auth-aside .a-list { margin-top: 32px; display: grid; gap: 18px; }
.auth-aside .a-list .row { display: flex; gap: 12px; align-items: center; font-size: 15px; color: var(--text); }
.auth-aside .a-list .row .ico { width: 19px; height: 19px; color: var(--accent); }
.auth-aside .a-graphic { width: 100%; max-width: 408px; align-self: flex-start; }
.auth-aside .a-graphic .gfx { width: 100%; height: auto; }
.auth-aside .a-foot { position: relative; z-index: 2; font-size: 13px; color: var(--text-faint); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 32px; position: relative; }
.auth-card { width: 100%; max-width: 400px; }
.auth-back { display: inline-flex; align-items: center; gap: 7px; font-size: 14px;
  color: var(--text-muted); margin-bottom: 40px; transition: color 0.2s var(--ease); }
.auth-back .ico { width: 16px; height: 16px; }
.auth-back:hover { color: var(--text); }
.auth-card h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.auth-card .sub { margin-top: 10px; color: var(--text-muted); font-size: 15px; }
.tabs { display: flex; gap: 4px; margin: 30px 0 24px; padding: 4px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 999px; }
.tab { flex: 1; padding: 10px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--text-muted); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.tab.active { background: var(--invert-bg); color: var(--invert-text); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.field input { width: 100%; padding: 13px 15px; font-size: 15px; font-family: inherit;
  background: var(--bg-elev); color: var(--text); border: 1px solid var(--border); border-radius: 12px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input::placeholder { color: var(--text-faint); }
.auth-submit { width: 100%; justify-content: center; margin-top: 8px; }
.auth-alt { margin-top: 24px; text-align: center; font-size: 14px; color: var(--text-muted); }
.auth-alt a { color: var(--text); font-weight: 500; }
.auth-msg { margin-top: 16px; font-size: 14px; padding: 12px 14px; border-radius: 12px; display: none; }
.auth-msg.show { display: block; }
.auth-msg.err { background: rgba(255,95,87,0.12); color: #ff8b85; border: 1px solid rgba(255,95,87,0.3); }
.auth-msg.ok  { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent); }
.auth-theme { position: absolute; top: 24px; right: 28px; z-index: 5; }
@media (max-width: 860px) { .auth-page { grid-template-columns: 1fr; } .auth-aside { display: none; } }
