/* ============================================================================
   LULOLO — Marketing site styles
   Plain CSS, no build step. Edit freely.

   Structure:
     1. Design tokens (:root variables)  — change brand colors/spacing here
     2. Base / reset
     3. Layout helpers (.container, .section)
     4. Buttons & small bits
     5. Header / nav
     6. Hero + terminal
     7. Stack strip
     8. Features
     9. Code showcase
    10. Services
    11. CTA
    12. Footer
    13. Responsive
   ============================================================================ */

/* 1. ----------------------------------------------------------- DESIGN TOKENS */
:root {
  /* Backgrounds (deepest -> elevated) */
  --bg-1:        #0A0E16;
  --surface-1:   #111726;
  --surface-2:   #19202F;
  --surface-3:   #222B3D;

  /* Borders */
  --border-subtle:  #161D2B;
  --border-default: #232C3E;
  --border-strong:  #33405A;

  /* Text */
  --fg-1: #E8EDF5;   /* headings, primary */
  --fg-2: #8B97AD;   /* body */
  --fg-3: #58647E;   /* muted, labels */
  --fg-on-accent: #06080D;

  /* Accent — azure. Use sparingly. */
  --accent:        #5B8CFF;
  --accent-hover:  #769FFF;
  --accent-press:  #4A78E6;
  --accent-subtle: rgba(91,140,255,0.12);
  --accent-line:   rgba(91,140,255,0.32);
  --cyan:          #38BDF8;
  --success:       #3DD68C;

  /* Type */
  --font-sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-pill: 999px;

  /* Elevation */
  --elev-2: 0 4px 16px rgba(0,0,0,0.45);
  --elev-3: 0 16px 48px rgba(0,0,0,0.55);
  --glow-accent: 0 0 0 1px var(--accent-line), 0 8px 32px rgba(91,140,255,0.18);
  --focus-ring: 0 0 0 3px rgba(91,140,255,0.35);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;

  /* Layout */
  --maxw-content: 1200px;
}

/* 2. -------------------------------------------------------------------- BASE */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-1);
  color: var(--fg-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.025em; color: var(--fg-1); }
p { margin: 0; }

/* 3. ----------------------------------------------------------------- LAYOUT */
.container { max-width: var(--maxw-content); margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* faint background grid texture (hero) */
.bg-grid {
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* 4. -------------------------------------------------------- BUTTONS & BITS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  padding: 13px 24px; border-radius: var(--radius-md);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-out);
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: var(--fg-on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); transform: translateY(1px); }
.btn-primary.glow { box-shadow: var(--glow-accent); }
.btn-ghost { background: transparent; color: var(--fg-1); border-color: var(--border-default); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--surface-2); }
.btn-mono { font-family: var(--font-mono); font-weight: 700; font-size: 14px; }

.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
}
.tag {
  font-family: var(--font-mono); font-size: 12px; padding: 5px 11px;
  border-radius: var(--radius-sm); background: var(--accent-subtle);
  color: var(--accent); border: 1px solid var(--accent-line);
}

/* 5. ----------------------------------------------------------- HEADER / NAV */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10,14,22,0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; height: 68px;
}
.logo {
  font-family: var(--font-mono); font-weight: 700; font-size: 22px;
  letter-spacing: -0.01em; display: flex; align-items: baseline;
}
.logo .slash { color: var(--accent); }
.logo .name  { color: var(--fg-1); }
.logo .suffix { color: var(--fg-3); }

.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--fg-2);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--fg-1); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-signin { font-size: 14px; font-weight: 500; color: var(--fg-2); }
.nav-signin:hover { color: var(--fg-1); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--fg-1); }

/* 6. ------------------------------------------------------------------- HERO */
.hero { position: relative; overflow: hidden; }
.hero-glow {
  position: absolute; top: -120px; left: 52%; width: 720px; height: 520px;
  background: radial-gradient(closest-side, rgba(91,140,255,0.18), transparent);
  pointer-events: none;
}
.hero .container {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center; padding: 96px 32px 104px;
}
.hero h1 { font-size: 64px; line-height: 1.03; letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-family: var(--font-sans); font-weight: 300; font-size: 19px;
  line-height: 1.55; color: var(--fg-2); margin-top: 24px; max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; margin-top: 34px; align-items: center; }

/* terminal visual */
.terminal {
  background: var(--surface-1); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--elev-3);
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.terminal-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal-bar .title {
  font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); margin-left: 8px;
}
.terminal-body {
  padding: 18px 20px; font-family: var(--font-mono); font-size: 13.5px; line-height: 2;
  color: var(--fg-2);
}
.terminal-body .prompt { color: var(--accent); }
.terminal-body .dim { color: var(--fg-3); }
.terminal-body .ok { color: var(--success); }
.cursor {
  display: inline-block; width: 8px; height: 16px; background: var(--accent);
  vertical-align: middle; animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* 7. ------------------------------------------------------------ STACK STRIP */
.stack-strip { border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.stack-strip .container {
  display: flex; align-items: center; gap: 40px; padding: 24px 32px; flex-wrap: wrap;
}
.stack-strip .label {
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); letter-spacing: 0.1em;
}
.stack-list { display: flex; gap: 32px; flex-wrap: wrap; }
.stack-list span { font-family: var(--font-mono); font-size: 15px; color: var(--fg-2); font-weight: 700; }

/* 8. --------------------------------------------------------------- FEATURES */
.features h2 { font-size: 40px; margin-top: 16px; max-width: 640px; }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px;
}
.feature-card {
  background: var(--surface-2); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); padding: 28px;
  transition: border-color var(--dur-base) var(--ease-out);
}
.feature-card:hover { border-color: var(--border-strong); }
.feature-icon {
  width: 40px; height: 40px; border-radius: var(--radius-md);
  background: var(--accent-subtle); border: 1px solid var(--accent-line);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.feature-icon svg { width: 20px; height: 20px; stroke: var(--accent); }
.feature-card h3 { font-size: 20px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--fg-2); }

/* 9. ---------------------------------------------------------- CODE SHOWCASE */
.showcase .container { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.showcase h2 { font-size: 38px; margin-top: 16px; }
.showcase-lead { font-size: 19px; font-weight: 300; line-height: 1.55; color: var(--fg-2); margin-top: 20px; }
.showcase-checks { display: flex; gap: 16px; margin-top: 28px; font-family: var(--font-mono); font-size: 13px; flex-wrap: wrap; }
.showcase-checks span { display: flex; align-items: center; gap: 7px; color: var(--fg-2); }
.showcase-checks svg { width: 15px; height: 15px; stroke: var(--success); }
.code-window {
  background: var(--surface-1); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--elev-2);
}
.code-tabs { display: flex; border-bottom: 1px solid var(--border-subtle); }
.code-tab {
  font-family: var(--font-mono); font-size: 13px; padding: 14px 20px; cursor: pointer;
  background: transparent; border: none; border-bottom: 2px solid transparent;
  color: var(--fg-3); transition: color var(--dur-fast);
}
.code-tab:hover { color: var(--fg-2); }
.code-tab.active { color: var(--fg-1); border-bottom-color: var(--accent); }
.code-panel { margin: 0; padding: 22px 24px; font-family: var(--font-mono); font-size: 14px; line-height: 1.85; color: var(--fg-2); overflow-x: auto; }
.code-panel[hidden] { display: none; }
.code-panel .k { color: var(--accent); }   /* keyword */
.code-panel .n { color: var(--cyan); }      /* name */
.code-panel .t { color: #C792EA; }          /* type */

/* 10. ------------------------------------------------------------- SERVICES */
.services { background: var(--surface-1); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.services h2 { font-size: 40px; margin: 16px 0 48px; max-width: 640px; }
.service-row {
  display: grid; grid-template-columns: 80px 1fr 1.4fr; gap: 24px;
  padding: 26px 0; border-top: 1px solid var(--border-subtle); align-items: baseline;
}
.service-row:last-child { border-bottom: 1px solid var(--border-subtle); }
.service-row .num { font-family: var(--font-mono); font-size: 14px; color: var(--accent); }
.service-row h3 { font-size: 22px; }
.service-row p { font-size: 16px; color: var(--fg-2); }

/* 11. ------------------------------------------------------------------- CTA */
.cta-panel {
  position: relative; overflow: hidden; background: var(--surface-1);
  border: 1px solid var(--border-default); border-radius: var(--radius-xl);
  padding: 72px 56px; text-align: center;
}
.cta-glow {
  position: absolute; top: -160px; left: 50%; transform: translateX(-50%);
  width: 640px; height: 420px;
  background: radial-gradient(closest-side, rgba(91,140,255,0.20), transparent);
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta-panel h2 { font-size: 46px; margin: 18px auto 0; max-width: 620px; letter-spacing: -0.03em; }
.cta-sub { font-size: 19px; font-weight: 300; line-height: 1.55; color: var(--fg-2); margin: 18px auto 0; max-width: 480px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; }

/* 12. ---------------------------------------------------------------- FOOTER */
.site-footer { border-top: 1px solid var(--border-subtle); padding-top: 64px; padding-bottom: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-blurb { font-size: 14px; color: var(--fg-2); max-width: 260px; margin-top: 16px; }
.footer-tags { display: flex; gap: 8px; margin-top: 18px; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-3);
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 16px; font-weight: 400;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--fg-2); }
.footer-col a:hover { color: var(--fg-1); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border-subtle);
}
.footer-bottom span { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); display: flex; align-items: center; gap: 8px; }
.footer-bottom .status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

/* 13. ----------------------------------------------------------- RESPONSIVE */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .showcase .container { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 52px; }
}
@media (max-width: 760px) {
  .nav-links, .nav-signin { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 18px; position: absolute;
    top: 68px; left: 0; right: 0; background: var(--bg-1);
    border-bottom: 1px solid var(--border-subtle); padding: 24px 32px;
  }
  .feature-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 48px 1fr; }
  .service-row p { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 42px; }
  .section { padding: 64px 0; }
  .cta-panel { padding: 48px 28px; }
  .cta-panel h2 { font-size: 34px; }
}
