/* ============ Nuitée brand tokens ============ */
:root {
  --bg: #0b0616;
  --bg-alt: #120a24;
  --surface: #181030;
  --surface-2: #1f1440;
  --border: rgba(128, 108, 250, 0.22);
  --border-strong: rgba(128, 108, 250, 0.45);
  --ink: #f2eeff;
  --ink-soft: #b3a9d6;
  --ink-faint: #7d739f;
  --accent: #806cfa;
  --accent-bright: #a493ff;
  --accent-deep: #1c0847;
  --lavender: #e7e0ff;
  --green: #4ade80;
  --radius: 18px;
  --radius-lg: 26px;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(128, 108, 250, 0.14);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
}

/* ============ Reveal on scroll ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11, 6, 22, 0.78);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1160px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 32px;
}
.logo { display: flex; align-items: center; font-weight: 700; font-size: 18px; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo-img { height: 22px; width: auto; display: block; }
.nav-links { display: flex; gap: 26px; flex: 1; }
.nav-links a { color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; }
.nav-burger { display: none; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 12px;
  font-size: 14.5px; font-weight: 600; font-family: var(--font-sans);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6a52f5);
  color: #fff;
  box-shadow: 0 8px 30px -8px rgba(128, 108, 250, 0.55);
}
.btn-primary:hover { box-shadow: 0 12px 36px -8px rgba(128, 108, 250, 0.75); }
.btn-ghost { background: rgba(128, 108, 250, 0.08); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: rgba(128, 108, 250, 0.16); border-color: var(--border-strong); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 14px; }

/* ============ Hero ============ */
.hero { position: relative; padding: 90px 0 30px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -280px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(128, 108, 250, 0.28), transparent 65%);
  pointer-events: none;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(128, 108, 250, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(128, 108, 250, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--lavender);
  background: rgba(128, 108, 250, 0.1); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 16px; margin-bottom: 26px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}
.hero h1 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
.gradient-text {
  background: linear-gradient(120deg, var(--accent-bright), #d5cbff 55%, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin: 22px 0 30px; font-size: 17.5px; color: var(--ink-soft); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }

.hero-stats { display: flex; gap: 30px; margin-top: 42px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num, .stat-num span { font-family: var(--font-mono); font-size: 24px; font-weight: 600; color: var(--ink); }
.stat-unit { font-family: var(--font-mono); font-size: 15px; color: var(--accent-bright); margin-top: -6px; }
.stat-num { display: inline; }
.stat > .stat-num + .stat-unit { display: inline; }
.stat { flex-direction: row; align-items: baseline; gap: 2px; flex-wrap: wrap; }
.stat-label { width: 100%; font-size: 13px; color: var(--ink-faint); }

/* ============ Terminal ============ */
.hero-terminal { min-width: 0; }
.terminal {
  background: #0d0819;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(28, 8, 71, 0.8), 0 0 0 1px rgba(128, 108, 250, 0.08);
  overflow: hidden;
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; background: rgba(128, 108, 250, 0.07);
  border-bottom: 1px solid var(--border);
}
.t-dot { width: 11px; height: 11px; border-radius: 50%; }
.t-dot.red { background: #ff5f57; } .t-dot.yellow { background: #febc2e; } .t-dot.green { background: #28c840; }
.terminal-title { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.terminal-body {
  padding: 18px; min-height: 320px;
  font-family: var(--font-mono); font-size: 12.8px; line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
}
.terminal-body .tl-prompt { color: var(--accent-bright); }
.terminal-body .tl-cmd { color: var(--ink); }
.terminal-body .tl-key { color: #9cd6ff; }
.terminal-body .tl-str { color: #c8f5a9; }
.terminal-body .tl-dim { color: var(--ink-faint); }
.terminal-body .tl-ok { color: var(--green); font-weight: 600; }
.terminal-cursor {
  display: inline-block; width: 8px; height: 15px; background: var(--accent-bright);
  vertical-align: -2px; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.terminal-caption { margin-top: 14px; text-align: center; font-size: 13px; color: var(--ink-faint); }

/* ============ Marquee ============ */
.marquee { margin-top: 70px; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; }
.marquee-track {
  display: flex; gap: 34px; width: max-content;
  animation: scroll 38s linear infinite;
  font-size: 15px; font-weight: 600; color: var(--ink-faint); white-space: nowrap;
}
.marquee-track span:nth-child(even) { color: var(--accent); font-size: 11px; align-self: center; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee-caption { text-align: center; margin: 16px 0 0; font-size: 13.5px; color: var(--ink-faint); }

/* ============ Sections ============ */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-bright);
  margin-bottom: 14px;
}
.section-head h2, .agentic-copy h2, .cta-box h2 {
  font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
}
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 16.5px; }

/* ============ Product cards ============ */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 26px;
  color: var(--ink); transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  text-decoration: none; transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 60px -20px rgba(128, 108, 250, 0.35);
}
.product-tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: 12px;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 18px;
}
.product-tag.connect { background: rgba(128, 108, 250, 0.18); color: var(--accent-bright); border: 1px solid var(--border-strong); }
.product-tag.cloud { background: rgba(84, 190, 255, 0.12); color: #8fd4ff; border: 1px solid rgba(84, 190, 255, 0.35); }
.product-tag.cupid { background: rgba(255, 122, 178, 0.12); color: #ff9ec5; border: 1px solid rgba(255, 122, 178, 0.35); }
.product-card h3 { font-size: 21px; margin-bottom: 6px; }
.product-tagline { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 18px; }
.product-card ul { list-style: none; margin-bottom: 22px; flex: 1; }
.product-card li { position: relative; padding-left: 22px; margin-bottom: 9px; font-size: 14px; color: var(--ink-soft); }
.product-card li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }
.product-link { font-family: var(--font-mono); font-size: 13.5px; color: var(--accent-bright); font-weight: 500; }

/* ============ Quickstart ============ */
.flow-steps { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.flow-step {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 15px;
}
.flow-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 700;
}
.flow-arrow { color: var(--accent); font-size: 20px; }

.code-panel { max-width: 860px; margin: 0 auto; }
.code-tabs { display: flex; gap: 6px; margin-bottom: -1px; position: relative; z-index: 2; padding-left: 14px; }
.code-tab {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  padding: 9px 18px; border-radius: 10px 10px 0 0; cursor: pointer;
  background: rgba(128, 108, 250, 0.06); color: var(--ink-faint);
  border: 1px solid var(--border); border-bottom: none;
  transition: color 0.15s, background 0.15s;
}
.code-tab:hover { color: var(--ink); }
.code-tab.active { background: #0d0819; color: var(--accent-bright); }
.code-window {
  position: relative; background: #0d0819;
  border: 1px solid var(--border-strong); border-radius: 0 var(--radius) var(--radius) var(--radius);
  box-shadow: 0 30px 70px -25px rgba(28, 8, 71, 0.8);
}
.copy-btn {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  font-family: var(--font-mono); font-size: 12px;
  background: rgba(128, 108, 250, 0.12); color: var(--lavender);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 12px; cursor: pointer; transition: background 0.15s;
}
.copy-btn:hover { background: rgba(128, 108, 250, 0.25); }
.code-block {
  padding: 24px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.75;
  color: #d8d2ef;
}
.code-block .c-comment { color: var(--ink-faint); }
.code-block .c-key { color: #9cd6ff; }
.code-block .c-str { color: #c8f5a9; }
.code-block .c-kw { color: var(--accent-bright); }
.code-block .c-num { color: #ffca85; }

.quickstart-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 860px; margin: 30px auto 0; }
.mini-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.mini-card h4 { font-size: 15px; margin-bottom: 8px; }
.mini-card p { font-size: 13.5px; color: var(--ink-soft); }

/* ============ Agentic ============ */
.agentic-layout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.agentic-copy p { margin: 18px 0 24px; color: var(--ink-soft); font-size: 16px; }
.check-list { list-style: none; margin-bottom: 30px; }
.check-list li {
  position: relative; padding-left: 30px; margin-bottom: 14px;
  font-size: 15px; color: var(--ink-soft);
}
.check-list li strong { color: var(--ink); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 6px;
  background: rgba(74, 222, 128, 0.12); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

.agentic-diagram {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 30px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.agent-row { display: flex; gap: 12px; }
.agent-chip {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  background: rgba(128, 108, 250, 0.1); border: 1px solid var(--border);
  color: var(--lavender); border-radius: 10px; padding: 8px 16px;
}
.agent-chip.out { background: rgba(74, 222, 128, 0.07); border-color: rgba(74, 222, 128, 0.25); color: #a9ecc4; }
.agent-lines { display: flex; gap: 44px; height: 34px; }
.agent-line {
  width: 2px; height: 100%;
  background: repeating-linear-gradient(to bottom, var(--accent) 0 5px, transparent 5px 10px);
  animation: flow 1.2s linear infinite;
}
@keyframes flow { to { background-position-y: 10px; } }
.agent-hub {
  position: relative;
  background: linear-gradient(135deg, var(--accent-deep), #33147d);
  border: 1px solid var(--border-strong); border-radius: 16px;
  padding: 18px 36px; font-weight: 700; font-size: 17px;
  box-shadow: 0 16px 50px -12px rgba(128, 108, 250, 0.5);
}
.agent-hub-label {
  position: absolute; top: -10px; right: -12px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  background: var(--accent); color: #fff; border-radius: 999px; padding: 3px 10px;
}

/* ============ Principles ============ */
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 24px;
  transition: border-color 0.2s;
}
.principle:hover { border-color: var(--border-strong); }
.principle-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.principle h3 { font-size: 17px; margin: 10px 0 8px; }
.principle p { font-size: 14px; color: var(--ink-soft); }

/* ============ Ideas ============ */
.ideas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.idea-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 26px; color: var(--ink);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.idea-card:hover {
  text-decoration: none; transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px -18px rgba(128, 108, 250, 0.35);
}
.idea-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.idea-card h3 { font-size: 19px; }
.idea-card p { font-size: 14.5px; color: var(--ink-soft); flex: 1; }

/* ============ Community ============ */
.community-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.story-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 22px;
}
.story-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-bright); margin-bottom: 12px; }
.story-card h3 { font-size: 18px; margin-bottom: 8px; }
.story-card p { font-size: 13.5px; color: var(--ink-soft); }
.pull-quote {
  max-width: 760px; margin: 52px auto 0; text-align: center;
  font-size: 19px; line-height: 1.6; color: var(--lavender); font-weight: 500;
}
.pull-quote cite { display: block; margin-top: 16px; font-size: 14px; font-style: normal; color: var(--ink-faint); }

/* ============ CTA ============ */
.cta-section { padding-bottom: 120px; }
.cta-box {
  position: relative; text-align: center;
  background: linear-gradient(160deg, var(--surface-2), var(--accent-deep));
  border: 1px solid var(--border-strong); border-radius: 30px;
  padding: 70px 40px; overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 260px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(128, 108, 250, 0.35), transparent 70%);
}
.cta-box h2 { position: relative; max-width: 680px; margin: 0 auto; }
.cta-box p { position: relative; margin: 18px auto 30px; max-width: 520px; color: var(--ink-soft); font-size: 16.5px; }
.cta-box .hero-actions { position: relative; }
.cta-footnote { position: relative; margin-top: 24px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand p { margin-top: 16px; font-size: 14px; color: var(--ink-faint); }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--ink-soft); font-size: 14.5px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--ink-faint);
}
.footer-mono { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .product-grid, .principles-grid, .quickstart-cards { grid-template-columns: 1fr 1fr; }
  .community-grid { grid-template-columns: 1fr 1fr; }
  .agentic-layout { grid-template-columns: 1fr; gap: 44px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger {
    display: flex; flex-direction: column; gap: 5px; margin-left: auto;
    background: none; border: none; cursor: pointer; padding: 6px;
  }
  .nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
  .nav.open .nav-links, .nav.open .nav-cta {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; left: 0; right: 0; background: var(--bg-alt);
    padding: 20px 24px; border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links { top: 63px; gap: 16px; }
  .nav.open .nav-cta { top: 235px; }
  .hero { padding-top: 56px; }
  .product-grid, .principles-grid, .quickstart-cards, .ideas-grid, .community-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .hero-stats { gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}
