/* ==========================================================================
   Loonie marketing site — bold, dark, Gen-Z-leaning design: near-black
   canvas, glowing green/gold/violet gradients, big geometric display type.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --bg: #0a0d0c;
  --bg-elevated: #14181a;
  --bg-alt: #101413;
  --border: #23292a;
  --border-strong: #343b3c;
  --text: #f4f6f4;
  --text-muted: #9aa39d;

  --accent: #37e08a;
  --accent-strong: #26c274;
  --accent-soft: rgba(55, 224, 138, 0.12);
  --gold: #ffcb47;
  --violet: #b18aff;
  --pink: #ff6fa5;

  --gradient-brand: linear-gradient(135deg, #37e08a 0%, #ffcb47 100%);
  --gradient-text: linear-gradient(100deg, #37e08a 0%, #ffcb47 55%, #ff9f5a 100%);
  --gradient-violet: linear-gradient(135deg, #b18aff 0%, #ff6fa5 100%);

  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 8px 30px rgba(55, 224, 138, 0.18);
  --container: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--accent-strong);
}

code, .mono {
  font-family: var(--font-mono);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.muted {
  color: var(--text-muted);
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 13, 12, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #06231a;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  box-shadow: 0 10px 36px rgba(55, 224, 138, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 13px;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 15px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 110px 0 76px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 10%, rgba(55, 224, 138, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(255, 203, 71, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 60% 90%, rgba(177, 138, 255, 0.14) 0%, transparent 50%);
}

.hero-inner {
  position: relative;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: 76px;
  margin-bottom: 4px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-lede {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}

.hero-body {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.hero-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-tagline-short {
  color: var(--border-strong);
}

/* ---------- sections ---------- */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 32px;
  text-align: center;
}

.section-lede {
  font-size: 17px;
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

/* ---------- module orbit ---------- */

.module-orbit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.module-center {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #06231a;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.module-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.module-card h3 {
  font-size: 17px;
  margin: 8px 0 4px;
}

.module-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

.module-live {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow-glow);
}

.module-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: #06231a;
}

.module-badge-soon {
  background: var(--border-strong);
  color: var(--text-muted);
}

/* ---------- ai ---------- */

.ai-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.ai-layout .section-title,
.ai-layout .section-lede {
  text-align: left;
  margin: 0 0 12px;
}

.ai-examples {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-bubble {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14.5px;
  box-shadow: var(--shadow-sm);
  border-left: 3px solid var(--violet);
}

/* ---------- privacy ---------- */

.privacy-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}

.privacy-layout .section-title,
.privacy-layout .section-lede {
  text-align: left;
  margin: 0 0 12px;
}

.privacy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.privacy-list li {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14.5px;
  border-left: 3px solid var(--accent);
}

/* ---------- pillars ---------- */

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.pillar-card {
  text-align: center;
  padding: 20px 12px;
}

.pillar-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--gradient-violet);
  color: #1a0f2e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.pillar-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- philosophy quote ---------- */

.philosophy {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--text);
  border: none;
  padding: 0;
}

.philosophy footer {
  margin-top: 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- install ---------- */

.install-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.install-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.install-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #05070a;
  border: 1px solid var(--border-strong);
  color: var(--accent);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 20px;
}

.install-command code {
  white-space: nowrap;
  overflow-x: auto;
}

.install-command .btn {
  flex-shrink: 0;
  background: transparent;
  border-color: #4b524d;
  color: #f2f1ea;
}

.install-command .btn:hover {
  border-color: var(--accent);
}

.install-steps {
  margin: 0 0 20px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.install-steps li {
  margin-bottom: 6px;
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 13.5px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-strong);
}

.footer-copy {
  font-size: 12.5px;
  margin: 0;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .ai-layout,
  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .module-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .privacy-layout .section-title,
  .privacy-layout .section-lede {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 44px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px;
    gap: 16px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .module-grid {
    grid-template-columns: 1fr;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 26px;
  }
}
