/* ============================================================
   apiegg — landing page styles
   Palette: yolk-amber + violet on deep ink. Egg motif, tasteful.
   ============================================================ */

:root {
  /* Colors */
  --ink: #0B0910;
  --ink-2: #14101C;
  --ink-3: #1B1626;
  --yolk: #FFC24B;
  --yolk-deep: #FF9E2C;
  --violet: #A78BFA;
  --violet-deep: #7C5CFC;
  --rose: #FB7185;
  --green: #34D399;
  --cream: #F5EFE6;
  --text: var(--cream);
  --text-muted: rgba(245, 239, 230, 0.64);
  --text-faint: rgba(245, 239, 230, 0.42);

  /* Gradients */
  --gradient-primary: linear-gradient(120deg, #FFC24B 0%, #FF9E2C 32%, #A78BFA 72%, #C4B5FD 100%);
  --gradient-btn: linear-gradient(135deg, #FFC24B 0%, #FF9E2C 55%, #F97316 100%);
  --gradient-rose: linear-gradient(135deg, #FB7185, #F43F5E);

  /* Surfaces */
  --glass-bg: rgba(245, 239, 230, 0.045);
  --glass-border: rgba(245, 239, 230, 0.10);
  --glass-strong: rgba(245, 239, 230, 0.08);

  /* Shadows */
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.45);
  --shadow-glow-amber: 0 0 60px rgba(255, 194, 75, 0.18);
  --shadow-glow-violet: 0 0 60px rgba(167, 139, 250, 0.16);

  /* Type */
  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* Motion */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

::selection { background: rgba(255, 194, 75, 0.35); color: var(--cream); }

img, svg { display: block; }

a { color: var(--yolk); }

button { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--yolk);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Keyframes ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes revealText {
  from { opacity: 0; transform: translateY(44px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
  50% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(1.5deg); }
}
@keyframes mockupFloat {
  0%, 100% { transform: perspective(1100px) rotateY(-6deg) rotateX(4deg) translateY(0); }
  50% { transform: perspective(1100px) rotateY(-6deg) rotateX(4deg) translateY(-14px); }
}
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 24px) scale(0.94); }
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@keyframes feedIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes sparkTwinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(12deg); }
}
@keyframes yolkBreathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.12); }
}
@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}
@keyframes shardFloat {
  0% { opacity: 0; transform: translateY(10px) rotate(-18deg) scale(0.5); }
  22% { opacity: 0.95; }
  62% { opacity: 0.95; }
  100% { opacity: 0; transform: translateY(-16px) rotate(22deg) scale(0.92); }
}

/* ---------- Utilities ---------- */
.animate-fade-down { opacity: 0; animation: fadeDown 0.7s var(--ease-expo) 0.1s forwards; }
.fade-up { opacity: 0; animation: fadeUp 0.7s var(--ease-expo) forwards; }
.scale-in { opacity: 0; animation: scaleIn 0.7s var(--ease-bounce) forwards; }
.text-reveal { display: inline-block; opacity: 0; transform: translateY(44px); animation: revealText 0.85s var(--ease-expo) forwards; }
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }

.gradient-text {
  background: var(--gradient-primary);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientShift 7s ease infinite;
}

.text-gradient-strong {
  background: linear-gradient(120deg, var(--yolk), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 700;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-border);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.footnote {
  color: var(--text-faint);
  font-size: 0.75rem;
  margin-top: 1rem;
}
.footnote.center { text-align: center; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11, 9, 16, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.egg-logo { width: 28px; height: 28px; filter: drop-shadow(0 0 12px rgba(255, 194, 75, 0.45)); }
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.3s var(--ease-smooth);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border: none;
  border-radius: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  color: #1F1300;
  background: var(--gradient-btn);
  box-shadow: 0 12px 34px -10px rgba(255, 158, 44, 0.55);
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s;
  white-space: nowrap;
  will-change: transform;
}
.btn:hover {
  box-shadow: 0 20px 44px -10px rgba(255, 158, 44, 0.65);
}
.btn:active { transform: translateY(-1px) scale(0.98); }
.btn-small { padding: 0.55rem 1.15rem; font-size: 0.875rem; border-radius: 0.7rem; }
.btn-arrow { width: 19px; height: 19px; transition: transform 0.3s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-shine::before {
  content: '';
  position: absolute;
  top: 0; left: -110%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease-smooth);
}
.btn-shine:hover::before { left: 160%; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
  box-shadow: none;
}
.btn-ghost:hover { border-color: rgba(255, 194, 75, 0.4); box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 9.5rem 0 4rem;
  overflow: hidden;
}

.bg-blobs { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: blobDrift 18s ease-in-out infinite;
}
.blob-yolk {
  width: 560px; height: 560px;
  top: -180px; right: -120px;
  background: radial-gradient(circle, rgba(255, 194, 75, 0.32), transparent 65%);
}
.blob-violet {
  width: 500px; height: 500px;
  bottom: -160px; left: -140px;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.26), transparent 65%);
  animation-delay: -6s;
}
.blob-rose {
  width: 340px; height: 340px;
  top: 42%; left: 38%;
  background: radial-gradient(circle, rgba(251, 113, 133, 0.12), transparent 65%);
  animation-delay: -12s;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
@media (max-width: 1023px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero { padding-top: 7.5rem; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 194, 75, 0.08);
  border: 1px solid rgba(255, 194, 75, 0.25);
  padding: 0.45rem 1rem;
  border-radius: 2rem;
  font-size: 0.845rem;
  font-weight: 600;
  color: var(--yolk);
  margin-bottom: 1.6rem;
  backdrop-filter: blur(10px);
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex: none;
  animation: pulse 2s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 8.2vw, 4.4rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
  max-width: 14ch;
}
.hero-title .line { display: block; }

.hero-subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 2.2rem;
}
.hero-subtitle strong { color: var(--text); font-weight: 600; }

.cta-group { max-width: 560px; }

.email-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
@media (min-width: 640px) { .email-form { flex-direction: row; } }
.email-form.center { justify-content: center; margin: 0 auto; max-width: 540px; }

.input-wrapper { position: relative; flex: 1; }
.email-input {
  width: 100%;
  padding: 0.95rem 1.2rem;
  border: 1.5px solid var(--glass-border);
  border-radius: 0.85rem;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text);
  background: rgba(245, 239, 230, 0.05);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.email-input::placeholder { color: var(--text-faint); }
.email-input:focus {
  border-color: rgba(255, 194, 75, 0.55);
  box-shadow: 0 0 0 4px rgba(255, 194, 75, 0.12);
  transform: scale(1.015);
}
.form-success {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.2rem;
  border-radius: 0.85rem;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: var(--green);
  font-weight: 600;
}

.cta-note {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.hero-agents {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}
.agent-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.32rem 0.75rem;
  border-radius: 2rem;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-muted);
  font-weight: 500;
}
.agent-pill .check { width: 13px; height: 13px; color: var(--green); }
.agent-pill.more { border-style: dashed; color: var(--text-faint); }

/* ---------- Terminal mockup ---------- */
.hero-visual { position: relative; }
.mockup-3d {
  background: linear-gradient(160deg, #171221 0%, #100C18 100%);
  border: 1px solid var(--glass-border);
  border-radius: 1.1rem;
  box-shadow:
    0 50px 100px -20px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(255, 194, 75, 0.07),
    inset 0 1px 0 rgba(245, 239, 230, 0.06);
  overflow: hidden;
  transform: perspective(1100px) rotateY(-6deg) rotateX(4deg);
  animation: mockupFloat 7s ease-in-out infinite;
}
.mockup-3d:hover { animation-play-state: paused; }
@media (hover: none) {
  .mockup-3d { animation: none; transform: none; }
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  background: rgba(245, 239, 230, 0.03);
  border-bottom: 1px solid var(--glass-border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.dot.red { background: #FF5F57; } .dot.yellow { background: #FEBC2E; } .dot.green { background: #28C840; }
.mockup-title {
  margin-left: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.egg-chip {
  margin-left: auto;
  font-size: 0.9rem;
  filter: drop-shadow(0 0 8px rgba(255, 194, 75, 0.5));
  animation: floaty 4s ease-in-out infinite;
}

.mockup-content {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.85;
  padding: 1.15rem 1.25rem 1.35rem;
  min-height: 284px;
  color: var(--text-muted);
}
.t-line { display: block; opacity: 0; animation: fadeUp 0.45s var(--ease-expo) forwards; white-space: pre-wrap; word-break: break-word; }
.t-cmd { color: var(--cream); font-weight: 500; }
.t-prompt { color: var(--yolk); }
.t-scan { color: var(--violet); }
.t-dim { color: var(--text-faint); }
.t-ok { color: var(--green); }
.t-cost { color: var(--yolk); }
.t-cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--yolk);
  vertical-align: -2px;
  animation: blink 1s step-end infinite;
}

.float-element {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.65rem 0.95rem;
  border-radius: 0.9rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(20, 16, 28, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-md);
  animation: floaty 6s ease-in-out infinite;
  z-index: 2;
}
.float-element small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
.float-1 { top: -18px; right: -6px; animation-delay: 0s; color: var(--yolk); }
.float-2 { bottom: 84px; left: -26px; animation-delay: 1.8s; }
.float-3 { bottom: -16px; right: 8%; animation-delay: 3.4s; color: var(--green); }
@media (max-width: 1023px) {
  .float-2 { left: -8px; }
  .float-1 { right: 0; }
}

/* ---------- Social proof (ATF) ---------- */
.social-proof-atf {
  margin-top: 4.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}
.rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-bottom: 1.4rem;
}
.stars { color: var(--yolk); letter-spacing: 3px; font-size: 0.95rem; }
.rating-text { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.protocol-mini {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-faint);
  font-family: var(--font-mono);
}
@media (max-width: 720px) { .protocol-mini { margin-left: 0; } }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }

.stat-card {
  padding: 1.3rem 1rem;
  border-radius: 1.1rem;
  text-align: center;
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s, border-color 0.35s;
}
.stat-card:hover {
  border-color: rgba(255, 194, 75, 0.3);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), var(--shadow-glow-amber);
}
.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.15;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--text-faint);
  font-weight: 500;
}

/* ---------- Sections ---------- */
.section { padding: 6rem 0; position: relative; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.2rem;
}
.section-kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--yolk);
  margin-bottom: 0.9rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 900px) { .features-grid { grid-template-columns: 1fr; } }

.feature-card {
  padding: 2.2rem 1.9rem;
  border-radius: 1.4rem;
  transition: box-shadow 0.35s, border-color 0.35s;
  will-change: transform;
}
.feature-card:hover {
  border-color: rgba(255, 194, 75, 0.28);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), var(--shadow-glow-amber);
}
.feature-icon {
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, rgba(255, 194, 75, 0.14), rgba(167, 139, 250, 0.14));
  border: 1px solid var(--glass-border);
  margin-bottom: 1.3rem;
  box-shadow: inset 0 1px 0 rgba(245, 239, 230, 0.08);
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }
.feature-card p strong { color: var(--text); font-weight: 600; }
.feature-card p em { color: var(--text-muted); }

.feature-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.4rem 2.2rem;
  background: linear-gradient(135deg, rgba(255, 194, 75, 0.05), rgba(124, 92, 252, 0.06));
}
@media (max-width: 900px) { .feature-wide { grid-template-columns: 1fr; padding: 2rem 1.7rem; } }

.mini-chart { width: 100%; }
.mini-chart svg { width: 100%; height: auto; }
.spark-line {
  stroke: var(--yolk);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(255, 194, 75, 0.5));
}
.spark-ghost {
  stroke: rgba(245, 239, 230, 0.14);
  stroke-width: 2;
  stroke-dasharray: 4 6;
  stroke-linecap: round;
}
.spark-label {
  fill: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.revealed .spark-line { stroke-dasharray: 640; stroke-dashoffset: 640; animation: drawLine 2s var(--ease-smooth) 0.3s forwards; }
.revealed .spark-area { opacity: 0; animation: fadeUp 0.9s var(--ease-expo) 1.2s forwards; }

/* ---------- Brainpower knob ---------- */
.knob-card {
  margin-top: 1.4rem;
  padding: 2.4rem 2.2rem 2.1rem;
  border-radius: 1.4rem;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.06), rgba(255, 194, 75, 0.05));
  transition: box-shadow 0.35s, border-color 0.35s;
}
.knob-card:hover { border-color: rgba(167, 139, 250, 0.3); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), var(--shadow-glow-violet); }
@media (max-width: 640px) { .knob-card { padding: 1.9rem 1.4rem 1.7rem; } }

.knob-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.9rem; }
.knob-head .feature-icon { margin-bottom: 0; flex: none; }
.knob-head h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.knob-sub { color: var(--text-muted); font-size: 0.92rem; }

.knob-dial { max-width: 620px; margin: 0 auto; }
.knob-input {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 10px;
  margin: 0;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 194, 75, 0.4), rgba(167, 139, 250, 0.45));
  outline-offset: 8px;
  cursor: pointer;
}
.knob-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD57E, #FF9E2C 55%, #A78BFA);
  border: 2px solid rgba(245, 239, 230, 0.9);
  box-shadow: 0 6px 20px rgba(255, 158, 44, 0.5), 0 0 30px rgba(167, 139, 250, 0.25);
  cursor: grab;
  transition: transform 0.25s var(--ease-bounce);
}
.knob-input:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.18); }
.knob-input::-moz-range-thumb {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD57E, #FF9E2C 55%, #A78BFA);
  border: 2px solid rgba(245, 239, 230, 0.9);
  box-shadow: 0 6px 20px rgba(255, 158, 44, 0.5), 0 0 30px rgba(167, 139, 250, 0.25);
  cursor: grab;
}
.knob-input::-moz-range-track { background: transparent; }

.knob-stops { position: relative; height: 8px; margin-top: 8px; }
.knob-stop-dot {
  position: absolute; top: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(245, 239, 230, 0.25);
  transform: translateX(-50%);
}
.knob-stop-dot.s0 { left: 15px; }
.knob-stop-dot.s1 { left: 50%; }
.knob-stop-dot.s2 { left: calc(100% - 15px); }

.knob-labels { display: flex; margin-top: 0.55rem; }
.knob-label {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-faint);
  transition: color 0.3s;
}
.knob-label:first-child { text-align: left; }
.knob-label:last-child { text-align: right; }
.knob-label.active { color: var(--yolk); font-weight: 700; }

.knob-meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem 2.2rem;
  max-width: 620px;
  margin: 2rem auto 0;
}
@media (max-width: 640px) { .knob-meters { grid-template-columns: 1fr; gap: 1.1rem; margin-top: 1.6rem; } }
.meter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
}
.meter-word {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.06em;
}
.meter-track {
  height: 12px;
  border-radius: 7px;
  background: rgba(245, 239, 230, 0.06);
  border: 1px solid var(--glass-border);
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  width: 52%;
  border-radius: inherit;
  transition: width 0.55s var(--ease-bounce);
  will-change: width;
}
.meter-fill.cost {
  background: linear-gradient(90deg, var(--green), var(--yolk) 55%, var(--rose));
  box-shadow: 0 0 14px rgba(255, 158, 44, 0.35);
}
.meter-fill.brain {
  background: linear-gradient(90deg, #C4B5FD, var(--violet-deep));
  box-shadow: 0 0 14px rgba(124, 92, 252, 0.4);
}

.knob-task {
  text-align: center;
  margin: 1.5rem auto 0;
  max-width: 46ch;
  color: var(--text-muted);
  font-size: 0.94rem;
}
.knob-task .task-kicker {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--yolk);
  margin-right: 0.5rem;
}
.knob-caption {
  text-align: center;
  margin: 1.7rem auto 0;
  color: var(--text-faint);
  font-size: 0.85rem;
  border-top: 1px solid rgba(245, 239, 230, 0.06);
  padding-top: 1.4rem;
}

/* residency teaser link (features section) */
.residency-teaser {
  text-align: center;
  margin: 2.2rem auto 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.residency-teaser a {
  color: var(--yolk);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 194, 75, 0.35);
  padding-bottom: 2px;
  transition: border-color 0.3s;
}
.residency-teaser a:hover { border-bottom-color: var(--yolk); }

/* ---------- Receipts / dashboard ---------- */
.receipts {
  background:
    radial-gradient(ellipse 60% 40% at 70% 10%, rgba(124, 92, 252, 0.07), transparent),
    radial-gradient(ellipse 50% 40% at 20% 90%, rgba(255, 194, 75, 0.05), transparent);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; } }

.dash-card {
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: 1.3rem;
  position: relative;
  overflow: hidden;
}
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.1rem;
}
.dash-head h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.dash-tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.28rem 0.6rem;
  border-radius: 2rem;
}
.dash-tag.amber { color: var(--yolk); background: rgba(255, 194, 75, 0.1); border: 1px solid rgba(255, 194, 75, 0.25); }
.dash-tag.green { color: var(--green); background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.25); }
.dash-note { margin-top: 1rem; font-size: 0.82rem; color: var(--text-faint); }

.chart-wrap { overflow-x: auto; }
.line-chart { width: 100%; height: auto; min-width: 420px; }
@media (max-width: 520px) { .line-chart { min-width: 380px; } }
.grid-lines line { stroke: rgba(245, 239, 230, 0.07); stroke-width: 1; }
.axis-labels text {
  fill: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 11px;
}
.line-before {
  stroke: var(--rose);
  stroke-width: 2.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(251, 113, 133, 0.35));
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.8s var(--ease-smooth) 0.2s;
}
.line-after {
  stroke: var(--yolk);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(255, 194, 75, 0.5));
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset 1.8s var(--ease-smooth) 0.7s;
}
.line-after-fill { opacity: 0; transition: opacity 1s ease 1.6s; }
.revealed .line-before, .revealed .line-after { stroke-dashoffset: 0; }
.revealed .line-after-fill { opacity: 1; }
.chart-legend circle { }
.legend-rose { fill: var(--rose); }
.legend-amber { fill: var(--yolk); }
.chart-legend text { fill: var(--text-muted); font-family: var(--font-mono); font-size: 11px; }

/* bars */
.bars {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 0.6rem;
  padding: 0.5rem 0.25rem 0;
  min-height: 250px;
}
.bar-group { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; flex: 1; }
.bar-pair {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 178px;
}
.bar {
  width: 26px;
  border-radius: 7px 7px 3px 3px;
  position: relative;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 1s var(--ease-bounce);
}
.bar::after {
  content: attr(data-val);
  position: absolute;
  top: -1.45rem; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-faint);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.4s ease 1s;
}
.bar.before {
  height: calc(var(--h) * 178px);
  background: rgba(245, 239, 230, 0.13);
  border: 1px solid rgba(245, 239, 230, 0.18);
  transition-delay: 0.15s;
}
.bar.after {
  height: calc(var(--h) * 178px);
  background: linear-gradient(180deg, #FFD57E, #FF9E2C);
  box-shadow: 0 0 22px rgba(255, 158, 44, 0.35);
  transition-delay: 0.45s;
}
.revealed .bar { transform: scaleY(1); }
.revealed .bar::after { opacity: 1; }
.bar-label {
  text-align: center;
  font-size: 0.7rem;
  line-height: 1.35;
  color: var(--text-faint);
  font-weight: 500;
}
@media (max-width: 520px) {
  .bar { width: 20px; }
  .bar-pair { gap: 5px; height: 150px; }
  .bar.before { height: calc(var(--h) * 150px); }
  .bar.after { height: calc(var(--h) * 150px); }
  .bars { min-height: 220px; }
}

/* donut */
.donut-wrap { position: relative; width: 205px; margin: 0.4rem auto 1rem; }
.donut { width: 100%; height: auto; transform: rotate(-90deg); }
.donut-track { fill: none; stroke: rgba(245, 239, 230, 0.06); stroke-width: 22; }
.donut-seg {
  fill: none;
  stroke-width: 22;
  stroke-linecap: butt;
  stroke-dasharray: 0 503;
  transition: stroke-dasharray 1.4s var(--ease-smooth);
}
.seg-amber { stroke: var(--yolk); transition-delay: 0.1s; }
.seg-violet { stroke: var(--violet-deep); transition-delay: 0.3s; }
.seg-rose { stroke: var(--rose); transition-delay: 0.5s; }
.seg-cream { stroke: #E8E0D0; transition-delay: 0.7s; }
.revealed .seg-amber { stroke-dasharray: 171 329; }
.revealed .seg-violet { stroke-dasharray: 136 329; }
.revealed .seg-rose { stroke-dasharray: 106 329; }
.revealed .seg-cream { stroke-dasharray: 91 329; }
.donut-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.donut-center strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.donut-center span { font-size: 0.68rem; color: var(--text-faint); }
.donut-legend {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
}
.donut-legend li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.sw { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sw-amber { background: var(--yolk); }
.sw-violet { background: var(--violet-deep); }
.sw-rose { background: var(--rose); }
.sw-cream { background: #E8E0D0; }

/* live feed */
.dash-live { display: flex; flex-direction: column; }
.live-feed {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  min-height: 252px;
}
.feed-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.8rem;
  background: rgba(245, 239, 230, 0.03);
  border: 1px solid rgba(245, 239, 230, 0.06);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  animation: feedIn 0.45s var(--ease-expo);
}
.feed-task { color: var(--text); font-weight: 500; }
.feed-arrow { color: var(--text-faint); }
.feed-route { color: var(--green); }
.feed-meta { margin-left: auto; color: var(--text-faint); font-size: 0.68rem; }
.feed-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.7);
  flex: none;
}
.live-magic {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.magic-spark {
  position: absolute;
  font-size: 0.9rem;
  animation: sparkTwinkle 3s ease-in-out infinite;
}
.magic-spark:nth-child(1) { top: 12%; right: 10%; }
.magic-spark:nth-child(2) { top: 42%; right: 4%; animation-delay: 1s; }
.magic-spark:nth-child(3) { bottom: 16%; right: 14%; animation-delay: 2s; }

/* ---------- Compatibility ---------- */
.protocol-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  max-width: 760px;
  margin: 0 auto 1.6rem;
}
@media (max-width: 720px) { .protocol-badges { grid-template-columns: 1fr; } }

.protocol-badge {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  border-radius: 1.2rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.protocol-badge:hover {
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), 0 0 50px rgba(52, 211, 153, 0.1);
}
.check-big { font-size: 1.7rem; flex: none; }
.protocol-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}
.protocol-badge span span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 0.15rem;
}
.protocol-badge code {
  font-family: var(--font-mono);
  color: var(--violet);
  font-size: 0.78rem;
}

.config-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  max-width: 820px;
  margin: 0 auto;
}
@media (max-width: 720px) { .config-cards { grid-template-columns: 1fr; } }
.config-card { padding: 1.2rem 1.3rem; border-radius: 1.1rem; min-width: 0; }
.config-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 0.7rem;
}
.config-card pre {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--text-muted);
  overflow-x: auto;
  max-width: 100%;
}
.config-card .hl { color: var(--yolk); }
.config-note {
  text-align: center;
  margin: 1.3rem auto 2.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 56ch;
}
.config-note a { color: var(--yolk); }

/* marquee */
.marquee {
  overflow: hidden;
  padding: 0.9rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-reverse .marquee-track { animation-direction: reverse; animation-duration: 40s; }
.marquee-set {
  display: flex;
  gap: 0.85rem;
  padding-right: 0.85rem;
  flex: none;
}
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: 2rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  white-space: nowrap;
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
}
.tool-chip:hover { color: var(--text); border-color: rgba(255, 194, 75, 0.35); transform: translateY(-2px); }
.tool-chip.chip-star {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--cream);
  background: linear-gradient(135deg, rgba(255, 194, 75, 0.13), rgba(167, 139, 250, 0.13));
  border: 1px solid rgba(255, 194, 75, 0.45);
  box-shadow: 0 0 30px rgba(255, 194, 75, 0.12);
}
.tool-chip.chip-star em {
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--yolk);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: 0.2rem;
}

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  padding: 2rem 1.8rem;
  border-radius: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.testimonial-card:hover { border-color: rgba(167, 139, 250, 0.3); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.quote-icon {
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0.6;
  color: var(--yolk);
  opacity: 0.85;
  height: 1.4rem;
}
.testimonial-card blockquote {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.author { display: flex; align-items: center; gap: 0.8rem; }
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  background: linear-gradient(135deg, rgba(255, 194, 75, 0.18), rgba(167, 139, 250, 0.18));
  border: 1px solid var(--glass-border);
  flex: none;
}
.author-avatar.big { width: 56px; height: 56px; font-size: 1.6rem; }
.author strong { display: block; font-size: 0.92rem; font-weight: 600; }
.author span { display: block; font-size: 0.78rem; color: var(--text-faint); }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.faq-item { border-radius: 1.1rem; transition: border-color 0.3s; }
.faq-item.open { border-color: rgba(255, 194, 75, 0.3); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  background: transparent;
  border: none;
  border-radius: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: color 0.3s;
}
.faq-question:hover { color: var(--yolk); }
.faq-icon {
  width: 22px; height: 22px;
  flex: none;
  color: var(--text-faint);
  transition: transform 0.35s var(--ease-bounce), color 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--yolk); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease-smooth);
}
.faq-answer p {
  padding: 0 1.4rem 1.35rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}
.faq-answer strong { color: var(--text); font-weight: 600; }
.faq-answer a { color: var(--yolk); }

/* ---------- Final CTA ---------- */
.cta-final { padding: 7rem 0 5rem; }
.cta-final-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.8rem;
  padding: 2.6rem 2rem 4rem;
  text-align: center;
  border-color: rgba(255, 194, 75, 0.18);
}
/* cracking egg above the final CTA */
.cta-egg-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 1.3rem;
}
.cta-yolk {
  position: absolute;
  top: 50%; left: 50%;
  width: 260px; height: 260px;
  transform: translate(-50%, -54%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 194, 75, 0.24), rgba(167, 139, 250, 0.12) 55%, transparent 72%);
  filter: blur(26px);
  animation: yolkBreathe 6s ease-in-out infinite;
  pointer-events: none;
}
.cta-egg {
  position: relative;
  width: 74px; height: 80px;
  animation: floaty 5s ease-in-out infinite;
}
.cta-egg svg { width: 100%; height: 100%; filter: drop-shadow(0 16px 30px rgba(255, 158, 44, 0.32)); }
.egg-crack { stroke-dasharray: 120; stroke-dashoffset: 120; }
.revealed .egg-crack { animation: drawLine 1.5s var(--ease-smooth) 0.5s forwards; }
.shell-shard {
  position: absolute;
  width: 11px; height: 13px;
  background: linear-gradient(135deg, #FFD57E, #A78BFA);
  clip-path: polygon(50% 0, 100% 100%, 0 82%);
  opacity: 0;
  animation: shardFloat 5.4s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  pointer-events: none;
}
.shard-1 { top: -4px; left: -9px; animation-delay: 1.2s; }
.shard-2 { top: 16px; right: -13px; width: 9px; height: 10px; clip-path: polygon(0 0, 100% 62%, 58% 100%); animation-delay: 2.9s; }
.shard-3 { bottom: 8px; left: -11px; width: 8px; height: 9px; clip-path: polygon(20% 0, 100% 45%, 45% 100%); animation-delay: 4.2s; }
.cta-final-card > * { position: relative; }
.cta-final-card h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.cta-final-card > p {
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 2.2rem;
  font-size: 1.05rem;
}
.cta-secondary {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  margin-top: 1.8rem;
  flex-wrap: wrap;
}
.cta-center-btn {
  display: flex;
  justify-content: center;
  margin: 0 auto 1.4rem;
}
.link-arrow {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.3s;
}
.link-arrow::after {
  content: '→';
  margin-left: 0.4rem;
  transition: transform 0.3s;
  display: inline-block;
}
.link-arrow:hover { color: var(--yolk); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Founder ---------- */
.founder-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.8rem 2.6rem;
  border-radius: 1.6rem;
  background: linear-gradient(160deg, rgba(255, 194, 75, 0.045), rgba(124, 92, 252, 0.05));
}
@media (max-width: 640px) { .founder-card { padding: 2rem 1.5rem; } }
.founder-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.6rem;
}
.founder-head h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.founder-sub { font-size: 0.85rem; color: var(--text-faint); }
.founder-body p {
  color: var(--text-muted);
  font-size: 0.99rem;
  line-height: 1.8;
  margin-bottom: 1.1rem;
}
.founder-body strong { color: var(--text); font-weight: 600; }
.founder-sign {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--yolk) !important;
  font-weight: 600;
  margin-bottom: 0 !important;
}

/* ---------- Footer ---------- */
.footer {
  padding: 5rem 0 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(124, 92, 252, 0.05) 100%);
  border-top: 1px solid var(--glass-border);
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yolk), var(--violet), transparent);
}
.footer-content {
  display: grid;
  gap: 2.6rem 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) and (max-width: 999px) {
  .footer-content { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .footer-content { grid-template-columns: 1.7fr repeat(4, 1fr); }
}
.footer-brand .logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.footer-brand .egg-logo { width: 24px; height: 24px; }
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 300px;
}
.footer-social { display: flex; gap: 0.7rem; }
.social-link {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
}
.social-link:hover {
  transform: translateY(-4px);
  color: var(--yolk);
  background: rgba(255, 194, 75, 0.1);
  border-color: rgba(255, 194, 75, 0.35);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}
.link-group h4 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--font-display);
}
.link-group a {
  display: block;
  width: fit-content;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.42rem 0;
  position: relative;
  transition: color 0.3s;
}
.link-group a::after {
  content: '';
  position: absolute;
  bottom: 0.2rem; left: 0;
  width: 0; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--yolk), var(--violet));
  transition: width 0.3s ease;
}
.link-group a:hover { color: var(--text); }
.link-group a:hover::after { width: 100%; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 239, 230, 0.06);
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-bottom p { color: var(--text-faint); font-size: 0.85rem; }
.footer-legal { display: flex; align-items: center; gap: 1.5rem; }
.footer-legal a {
  color: var(--text-faint);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s;
}
.footer-legal a:hover { color: var(--yolk); }
.footer-egg { font-size: 0.85rem; color: var(--text-faint); }

/* ---------- Anchor offset under fixed nav ---------- */
section[id] { scroll-margin-top: 84px; }

/* ---------- Scroll-spy ---------- */
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }

/* ---------- Mobile nav (hamburger) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: 0.7rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease-smooth), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  position: absolute;
  top: 100%; left: 0; right: 0;
  z-index: 99;
  background: rgba(11, 9, 16, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.45s var(--ease-expo), opacity 0.3s, visibility 0.3s;
}
.nav-menu.open { max-height: 540px; opacity: 1; visibility: visible; }
.nav-menu-inner {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 1.5rem 1.4rem;
}
.nav-menu .nav-m-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.85rem 0.4rem;
  border-bottom: 1px solid rgba(245, 239, 230, 0.06);
  transition: color 0.25s, padding-left 0.25s;
}
.nav-menu .nav-m-link:hover { color: var(--yolk); padding-left: 0.9rem; }
.nav-menu .nav-cta-menu { margin-top: 1.2rem; }
@media (max-width: 1020px) {
  .nav-links, .nav-inner .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Guardian teaser (safety section, index) ---------- */
.safety-teaser { padding: 0 0 6rem; }
.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}
@media (max-width: 1020px) { .safety-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .safety-grid { grid-template-columns: 1fr; } }

.safety-card {
  padding: 1.5rem 1.3rem;
  border-radius: 1.2rem;
  transition: box-shadow 0.35s, border-color 0.35s, transform 0.35s var(--ease-smooth);
}
.safety-card:hover {
  transform: translateY(-4px);
  border-color: var(--dot, rgba(255, 194, 75, 0.3));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35), 0 0 40px color-mix(in srgb, var(--dot, #FFC24B) 14%, transparent);
}
.safety-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}
.safety-dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  flex: none;
  background: var(--dot, var(--yolk));
  box-shadow: 0 0 14px var(--dot, var(--yolk));
}
.safety-head h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.safety-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.62;
}

.safety-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 0.9rem;
  max-width: 780px;
  margin: 0 auto;
  padding: 1rem 1.3rem;
  border-radius: 1rem;
  border: 1px dashed rgba(255, 194, 75, 0.32);
  background: rgba(255, 194, 75, 0.045);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.safety-trust .sep { color: var(--text-faint); }
.safety-explain {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
  max-width: 64ch;
  margin: 1.1rem auto 0;
}
.safety-links {
  display: flex;
  justify-content: center;
  gap: 2.2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ---------- Docs placeholder page ---------- */
.docs-egg-icon {
  width: 84px; height: 84px;
  display: grid;
  place-items: center;
  font-size: 2.6rem;
  border-radius: 1.4rem;
  background: linear-gradient(135deg, rgba(255, 194, 75, 0.14), rgba(167, 139, 250, 0.14));
  border: 1px solid var(--glass-border);
  box-shadow: 0 0 46px rgba(255, 194, 75, 0.14);
  margin-bottom: 1.5rem;
  animation: floaty 5s ease-in-out infinite;
}
.docs-cta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-top: 2.1rem;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .text-reveal, .fade-up, .scale-in, .animate-fade-down { opacity: 1 !important; transform: none !important; }
  .scroll-reveal { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; flex-wrap: wrap; width: auto; }
  .bar, .line-before, .line-after { transform: none; stroke-dashoffset: 0; }
  .egg-crack { stroke-dashoffset: 0 !important; }
  .shell-shard { display: none; }
}
