/* ============== GARNER LANDING — STYLES ============== */
:root {
  --bg: #110B28;
  --bg-soft: #1a1140;
  --bg-light: #f6f3ec;
  --bg-cream: #fbf8f0;
  --card: #1E1445;
  --card-border: #3D2D7A;
  --surface: #160E36;
  --text: #F0EAFF;
  --text-soft: #8B7EC0;
  --text-muted: #5A4F80;
  --text-dark: #2a1f55;
  --gold: #FFD700;
  --green: #00E676;
  --amber: #FFAB00;
  --red: #FF5252;
  --purple: #BB86FC;
  --blue: #448AFF;
  --cyan: #22D3EE;
}

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

html, body {
  background: var(--bg-cream);
  color: var(--text-dark);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

.bungee { font-family: 'Bungee', sans-serif; letter-spacing: 0.02em; }

.text-gold { color: var(--gold); }
.text-cyan { color: var(--cyan); }
.text-purple { color: var(--purple); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }

/* ============== NAV ============== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17, 11, 40, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(187, 134, 252, 0.15);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Bungee', sans-serif;
  font-size: 22px;
  background: linear-gradient(135deg, #FFD700 0%, #FFAB00 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.04em;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-soft); font-weight: 600; font-size: 15px; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--bg) !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: 'Bungee', sans-serif;
  font-size: 12px !important;
  letter-spacing: 0.05em;
}
.nav-cta:hover { color: var(--bg) !important; transform: translateY(-1px); }

/* ============== HERO ============== */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--bg) 0%, #1c1248 100%);
  color: var(--text);
  overflow: hidden;
  padding: 64px 32px 96px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(187, 134, 252, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(187, 134, 252, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5;
}
.hero-glow-1 { width: 500px; height: 500px; background: var(--purple); top: -100px; left: -100px; }
.hero-glow-2 { width: 400px; height: 400px; background: var(--gold); bottom: -100px; right: -100px; opacity: 0.25; }

.hero-inner {
  position: relative; z-index: 1;
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.hero-text { max-width: 560px; }
.hero-tagline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  font-family: 'Bungee', sans-serif;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}
.hero-tagline img { width: 16px; height: 16px; }
.hero-headline {
  font-family: 'Bungee', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  margin-bottom: 22px;
  background: linear-gradient(180deg, #fff 0%, #BB86FC 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}
.hero-sub {
  font-size: 19px;
  color: var(--text-soft);
  margin-bottom: 32px;
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-form {
  display: flex; gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(187, 134, 252, 0.3);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 24px;
  max-width: 480px;
}
.hero-form input {
  flex: 1;
  background: transparent; border: none; outline: none;
  color: var(--text); font-size: 16px; padding: 12px 16px;
  font-family: inherit;
}
.hero-form input::placeholder { color: var(--text-muted); }
.hero-form button {
  background: linear-gradient(135deg, var(--gold) 0%, var(--amber) 100%);
  color: var(--bg);
  font-family: 'Bungee', sans-serif;
  font-size: 13px;
  padding: 12px 20px;
  border-radius: 10px;
  letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.hero-form button:hover { transform: translateY(-1px); box-shadow: 0 6px 24px -4px rgba(255, 215, 0, 0.5); }
.hero-form button:disabled, .hero-form input:disabled { opacity: 0.7; cursor: not-allowed; }
.hero-form button:disabled:hover { transform: none; box-shadow: none; }
.form-error {
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  margin: -12px 0 24px;
  max-width: 480px;
}
.cta-arrow { font-size: 16px; transition: transform 0.15s; }
.hero-form button:hover .cta-arrow { transform: translateX(3px); }

.hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
}
.hero-meta-item {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-soft); font-size: 14px; font-weight: 600;
}
.hero-meta-item img { width: 18px; height: 18px; }

/* SUCCESS CARD */
.success-card {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.1) 0%, rgba(255, 215, 0, 0.08) 100%);
  border: 1px solid rgba(0, 230, 118, 0.4);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 24px;
  max-width: 480px;
}
.success-banner {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 18px; margin-bottom: 18px;
  border-bottom: 1px dashed rgba(187, 134, 252, 0.3);
}
.success-banner img { width: 44px; height: 44px; }
.success-title { font-family: 'Bungee', sans-serif; font-size: 16px; color: var(--green); letter-spacing: 0.04em; }
.success-sub { color: var(--text-soft); font-size: 14px; margin-top: 2px; }
.position-label { font-family: 'Bungee', sans-serif; font-size: 11px; color: var(--text-soft); letter-spacing: 0.08em; }
.position-num { font-family: 'Bungee', sans-serif; font-size: 48px; color: var(--gold); line-height: 1; margin: 4px 0 12px; }
.position-bar {
  height: 12px; border-radius: 6px;
  background: rgba(255,255,255,0.08);
  overflow: hidden; position: relative;
}
.position-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--amber));
  position: relative;
}
.position-sub { color: var(--text-soft); font-size: 13px; margin-top: 8px; }

/* HERO PHONES */
.hero-phones {
  position: relative;
  height: 640px;
  display: flex; align-items: center; justify-content: center;
}
.hero-phone-front {
  position: relative; z-index: 2;
  transform: rotate(-3deg);
  animation: floatY 6s ease-in-out infinite;
}
.hero-phone-back {
  position: absolute;
  top: 30px; right: -30px;
  z-index: 1;
  transform: rotate(8deg) scale(0.85);
  opacity: 0.85;
  animation: floatY 7s ease-in-out infinite 0.5s;
}
@keyframes floatY {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-12px); }
}
.hero-phone-back { animation-name: floatY2; }
@keyframes floatY2 {
  0%, 100% { transform: rotate(8deg) scale(0.85) translateY(0); }
  50% { transform: rotate(8deg) scale(0.85) translateY(-10px); }
}

.hero-toast {
  position: absolute;
  bottom: 30px;
  left: -20px;
  z-index: 5;
  background: linear-gradient(135deg, var(--gold) 0%, var(--amber) 100%);
  color: var(--bg);
  padding: 14px 18px;
  border-radius: 14px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 16px 40px -10px rgba(255, 215, 0, 0.5);
  animation: toastIn 4s ease-in-out infinite;
}
.hero-toast img { width: 36px; height: 36px; }
.hero-toast-title { font-family: 'Bungee', sans-serif; font-size: 14px; letter-spacing: 0.04em; }
.hero-toast-sub { font-size: 12px; opacity: 0.8; font-weight: 700; }
@keyframes toastIn {
  0%, 100% { opacity: 0; transform: translateY(20px) scale(0.9); }
  20%, 80% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============== PHONE FRAME ============== */
.phone-frame {
  width: 320px;
  background: #000;
  border-radius: 42px;
  padding: 12px;
  border: 2px solid #2a1f55;
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 24px;
  background: #000;
  border-radius: 14px;
  z-index: 5;
}
.phone-screen {
  background: var(--bg);
  border-radius: 32px;
  height: 600px;
  overflow: hidden;
  padding: 38px 14px 14px;
  position: relative;
  color: var(--text);
}
.phone-label {
  position: absolute;
  bottom: -28px; left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* MINI HUD */
.mini-hud {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 4px 12px;
  border-bottom: 1px solid rgba(187, 134, 252, 0.15);
  margin-bottom: 14px;
}
.mini-hud-left { display: flex; align-items: center; gap: 10px; }
.mini-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  border: 2px solid var(--purple);
}
.mini-app-name {
  font-family: 'Bungee', sans-serif;
  font-size: 14px;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.04em;
}
.mini-system { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-soft); }
.mini-streak {
  display: flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, rgba(255, 82, 82, 0.2), rgba(255, 171, 0, 0.2));
  border: 1px solid rgba(255, 171, 0, 0.4);
  padding: 6px 10px; border-radius: 999px;
  font-family: 'Bungee', sans-serif;
  font-size: 13px;
  color: var(--amber);
}
.streak-icon { width: 16px; height: 16px; }

/* SCREEN BASE */
.screen { height: 100%; overflow: hidden; }
.screen-title {
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'Bungee', sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: var(--purple);
}
.screen-title-count { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--text-soft); }

/* HQ */
.hq-banner {
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.2), rgba(34, 211, 238, 0.2));
  border: 1px solid var(--green);
  border-radius: 12px;
  padding: 14px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: 'Bungee', sans-serif;
  font-size: 17px;
  color: var(--green);
  letter-spacing: 0.04em;
  text-shadow: 0 0 20px rgba(0, 230, 118, 0.5);
  margin-bottom: 6px;
}
.hq-banner-icon { font-size: 18px; }
.hq-subtitle {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 18px;
}
.bar-block { margin-bottom: 16px; }
.bar-label {
  display: flex; justify-content: space-between;
  font-family: 'Bungee', sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--text-soft);
}
.bar-amount { color: var(--text); }
.bar-track {
  height: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(187, 134, 252, 0.2);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.bar-fill {
  position: absolute; top: 0; left: 0;
  height: 100%;
  border-radius: 4px;
  transition: width 0.05s linear;
  overflow: hidden;
}
.bar-fill-income { background: linear-gradient(90deg, var(--green), #22D3EE); }
.bar-fill-bills { background: linear-gradient(90deg, var(--purple), #9D4EDD); }
.bar-fill-env { background: linear-gradient(90deg, var(--cyan), #06b6d4); }
.bar-shine {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shine 2.5s linear infinite;
}
@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}
.bar-legend {
  display: flex; gap: 14px; margin-top: 8px;
  font-size: 11px; color: var(--text-soft);
}
.chip { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.chip-purple { background: var(--purple); }
.chip-cyan { background: var(--cyan); }

.surplus-card {
  margin-top: 18px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.12), rgba(255, 171, 0, 0.06));
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.surplus-label {
  font-family: 'Bungee', sans-serif;
  font-size: 10px; color: var(--gold);
  letter-spacing: 0.08em;
}
.surplus-amount {
  font-family: 'Bungee', sans-serif;
  font-size: 30px; color: var(--gold);
  margin: 4px 0;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}
.surplus-amount span { font-size: 13px; opacity: 0.7; }
.surplus-sub { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-soft); }

/* TANKS */
.env-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.env-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.env-icon {
  width: 36px; height: 36px;
  background: rgba(187, 134, 252, 0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.env-icon img { width: 26px; height: 26px; object-fit: contain; }
.env-meta { flex: 1; min-width: 0; }
.env-name { font-weight: 700; font-size: 13px; color: var(--text); }
.env-budget { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-soft); }
.env-badge {
  font-family: 'Bungee', sans-serif;
  font-size: 9px;
  padding: 4px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.hp-track {
  height: 10px;
  background: rgba(0,0,0,0.3);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.hp-track-large { height: 18px; border-radius: 6px; }
.hp-track-mini { height: 8px; }
.hp-fill {
  height: 100%;
  border-radius: 4px;
  position: relative;
  transition: width 0.4s cubic-bezier(.5,0,.2,1);
  overflow: hidden;
}

/* GOALS */
.surplus-pop {
  position: absolute;
  top: 60px; left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: surplusPopIn 0.5s cubic-bezier(.3,1.5,.5,1);
}
.surplus-pop-inner {
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: 0 12px 30px -8px rgba(255, 215, 0, 0.6);
  white-space: nowrap;
}
.surplus-pop-icon { width: 32px; height: 32px; }
.surplus-pop-title { font-family: 'Bungee', sans-serif; font-size: 11px; letter-spacing: 0.04em; }
.surplus-pop-sub { font-size: 10px; font-weight: 700; opacity: 0.8; }
@keyframes surplusPopIn {
  0% { opacity: 0; transform: translateX(-50%) scale(0.5) translateY(-20px); }
  100% { opacity: 1; transform: translateX(-50%) scale(1) translateY(0); }
}

.goal-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}
.goal-card-hero { border-color: rgba(255, 215, 0, 0.5); }
.goal-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.goal-icon { width: 38px; height: 38px; object-fit: contain; }
.goal-meta { flex: 1; }
.goal-name { font-weight: 700; font-size: 14px; }
.goal-note { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--text-soft); }
.goal-rarity {
  font-family: 'Bungee', sans-serif;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}
.goal-rarity[data-rare="rare"] { background: rgba(34, 211, 238, 0.2); color: var(--cyan); border: 1px solid var(--cyan); }
.goal-rarity[data-rare="epic"] { background: rgba(255, 215, 0, 0.2); color: var(--gold); border: 1px solid var(--gold); }
.goal-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin-top: 10px;
  text-align: center;
}
.goal-stat-num { font-family: 'Bungee', sans-serif; font-size: 14px; color: var(--text); }
.goal-stat-label { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--text-soft); letter-spacing: 0.06em; margin-top: 2px; }

.coin-drop {
  position: absolute;
  top: -40px;
  width: 22px;
  animation: coinFall 1.5s cubic-bezier(.3,1,.5,1) forwards;
}
.coin-drop img { width: 100%; height: auto; }
@keyframes coinFall {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(160px) rotate(540deg); opacity: 0; }
}

.goal-card-mini {
  display: flex; align-items: center; gap: 10px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.goal-mini-icon { width: 28px; height: 28px; object-fit: contain; }
.goal-mini-meta { flex: 1; min-width: 0; }
.goal-mini-name { font-weight: 700; font-size: 12px; margin-bottom: 4px; }
.goal-mini-pct { font-family: 'Bungee', sans-serif; font-size: 11px; color: var(--cyan); }

/* CHAT */
.screen-chat { padding-top: 38px; }
.chat-header {
  display: flex; align-items: center; gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(187, 134, 252, 0.15);
  margin-bottom: 12px;
}
.chat-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--gold));
  border: 2px solid var(--gold);
  padding: 2px;
  object-fit: contain;
}
.chat-name { font-family: 'Bungee', sans-serif; font-size: 14px; color: var(--gold); }
.chat-status { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--green); }
.chat-body {
  display: flex; flex-direction: column; gap: 10px;
  height: calc(100% - 130px);
  overflow: hidden;
}
.chat-msg { display: flex; gap: 8px; align-items: flex-end; animation: msgIn 0.3s ease-out; }
.chat-msg-user { flex-direction: row-reverse; }
.chat-msg-avatar { width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 215, 0, 0.15); padding: 2px; flex-shrink: 0; }
.chat-bubble {
  max-width: 220px;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.4;
}
.chat-msg-user .chat-bubble {
  background: linear-gradient(135deg, var(--purple), #9D4EDD);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg-garner .chat-bubble {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
@keyframes msgIn {
  0% { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.chat-typing { display: flex; gap: 4px; padding: 12px; }
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-soft);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-6px); opacity: 1; }
}
.chat-input {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--card-border);
  font-size: 13px;
  color: var(--text-muted);
}

/* SYSTEM SWITCHER */
.sys-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.sys-card {
  background: #fff;
  border: 2px solid rgba(187, 134, 252, 0.2);
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
}
.sys-card-active {
  border-color: var(--sys-color);
  box-shadow: 0 20px 40px -12px color-mix(in oklab, var(--sys-color) 40%, transparent), 0 0 0 4px color-mix(in oklab, var(--sys-color) 12%, transparent);
  transform: translateY(-4px);
}
.sys-icon { font-size: 48px; margin-bottom: 12px; }
.sys-name { font-family: 'Bungee', sans-serif; font-size: 22px; color: var(--text-dark); letter-spacing: 0.04em; }
.sys-desc { color: #6b5d8a; font-size: 14px; margin-top: 4px; }
.sys-active-badge {
  position: absolute;
  top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--sys-color);
  color: var(--bg);
  font-family: 'Bungee', sans-serif;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ============== SECTIONS — SHARED ============== */
.section-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 96px 32px;
}
.section-eyebrow {
  font-family: 'Bungee', sans-serif;
  font-size: 12px;
  color: var(--purple);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.section-h2 {
  font-family: 'Bungee', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  margin-bottom: 18px;
  text-wrap: balance;
  max-width: 16ch;
  letter-spacing: 0.005em;
}
.section-lede {
  font-size: 19px;
  color: #574a7d;
  max-width: 56ch;
  text-wrap: pretty;
}

/* ============== PROBLEM ============== */
.problem { background: var(--bg-cream); }
.problem-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 56px;
}
.problem-card {
  background: #fff;
  border: 1px solid rgba(187, 134, 252, 0.18);
  border-radius: 18px;
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.problem-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -20px rgba(61, 45, 122, 0.25); }
.problem-icon { width: 52px; height: 52px; margin-bottom: 18px; }
.problem-card h3 {
  font-family: 'Bungee', sans-serif;
  font-size: 19px;
  margin-bottom: 12px;
  letter-spacing: 0.005em;
  color: var(--text-dark);
}
.problem-card p { color: #574a7d; line-height: 1.55; }

/* ============== FLOW ============== */
.flow {
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.flow::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  top: -350px; left: -200px;
  background: var(--purple);
  filter: blur(140px);
  opacity: 0.18;
  border-radius: 50%;
  pointer-events: none;
}
.flow .section-h2 {
  background: linear-gradient(180deg, #fff 0%, #BB86FC 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.flow .section-lede { color: var(--text-soft); }
.flow-diagram {
  position: relative;
  margin-top: 56px;
  padding: 48px 32px;
  background: linear-gradient(180deg, var(--card), var(--surface));
  border: 1.5px solid var(--card-border);
  border-radius: 24px;
  overflow: hidden;
}
.flow-glow {
  position: absolute; inset: 0;
  pointer-events: none;
  transition: background 0.5s;
}
.flow-nodes {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: start;
}
.flow-node {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; gap: 12px;
  transition: transform 0.5s;
}
.flow-node-active { transform: translateY(-6px); }
.flow-icon-box {
  width: 96px; height: 96px;
  border-radius: 20px;
  border: 2px solid var(--card-border);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.35s cubic-bezier(.2,.9,.3,1.1);
}
.flow-node-active .flow-icon-box { transform: scale(1.08); }
.flow-icon-box img {
  width: 64px; height: 64px;
  object-fit: contain;
  transition: filter 0.35s;
}
.flow-node:not(.flow-node-active) .flow-icon-box img { filter: grayscale(0.3) brightness(0.8); opacity: 0.7; }
.flow-label {
  font-family: 'Bungee', sans-serif;
  font-size: 14px;
  letter-spacing: 0.06em;
  transition: all 0.35s;
}
.flow-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-soft);
}
.flow-arrow {
  position: absolute;
  top: 38px;
  right: -12px;
  font-family: 'Bungee', sans-serif;
  font-size: 22px;
  color: var(--text-muted);
  z-index: 2;
}
.flow-coda {
  text-align: center;
  margin-top: 40px;
  font-size: 19px;
  color: var(--text-soft);
  text-wrap: pretty;
  max-width: 64ch;
  margin-left: auto; margin-right: auto;
}
@media (max-width: 980px) {
  .flow-nodes { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .flow-arrow { display: none; }
  .flow-icon-box { width: 80px; height: 80px; }
  .flow-icon-box img { width: 52px; height: 52px; }
}

/* ============== TOUR ============== */
.tour {
  background: linear-gradient(180deg, var(--bg-cream) 0%, #efe9da 100%);
  border-top: 1px solid rgba(187, 134, 252, 0.15);
  border-bottom: 1px solid rgba(187, 134, 252, 0.15);
}
.tour-tabs {
  display: flex; gap: 10px; margin: 40px 0 56px;
  flex-wrap: wrap;
}
.tour-tab {
  background: #fff;
  border: 2px solid rgba(187, 134, 252, 0.25);
  border-radius: 12px;
  padding: 12px 20px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Bungee', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  letter-spacing: 0.04em;
  transition: all 0.2s;
}
.tour-tab:hover { border-color: var(--purple); }
.tour-tab-active {
  background: var(--bg);
  color: var(--gold);
  border-color: var(--bg);
  box-shadow: 0 12px 30px -10px rgba(17, 11, 40, 0.6);
}
.tour-tab-icon { font-size: 18px; }

.tour-stage { position: relative; min-height: 720px; }
.tour-frame {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.tour-frame-active { display: grid; animation: tourIn 0.5s ease-out; }
@keyframes tourIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.tour-step {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--purple);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}
.tour-title {
  font-family: 'Bungee', sans-serif;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: 0.005em;
}
.tour-sub {
  font-family: 'Bungee', sans-serif;
  font-size: 16px;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,0.05));
}
.tour-body { font-size: 17px; color: #574a7d; line-height: 1.65; max-width: 48ch; }
.tour-phone-wrap { display: flex; justify-content: center; }

/* ============== PARTNER ============== */
.partner {
  background: var(--bg);
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.partner::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  top: -200px; right: -200px;
  background: var(--purple);
  filter: blur(120px);
  opacity: 0.2;
  border-radius: 50%;
}
.partner-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  position: relative; z-index: 1;
}
.partner .section-h2 {
  background: linear-gradient(180deg, #fff 0%, #BB86FC 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.partner .section-lede { color: var(--text-soft); font-size: 21px; }
.partner-body { color: var(--text-soft); margin-top: 18px; font-size: 17px; }
.partner-quote {
  margin-top: 32px;
  display: flex; gap: 14px;
  background: rgba(187, 134, 252, 0.08);
  border-left: 3px solid var(--gold);
  padding: 20px;
  border-radius: 12px;
}
.partner-quote img { width: 28px; height: 28px; flex-shrink: 0; }
.partner-quote-text { font-style: italic; font-size: 17px; line-height: 1.5; color: var(--text); }
.partner-quote-attr { color: var(--text-soft); font-size: 13px; margin-top: 6px; }

.partner-couple {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 20px;
}
.partner-bubble {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(187, 134, 252, 0.3);
  border-radius: 18px;
  padding: 14px 18px;
  font-size: 15px;
  max-width: 260px;
  position: relative;
  z-index: 2;
}
.partner-bubble-name {
  font-family: 'Bungee', sans-serif;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.partner-bubble-left { align-self: flex-start; border-bottom-left-radius: 4px; transform: translateX(-30px); }
.partner-bubble-right { align-self: flex-end; border-bottom-right-radius: 4px; transform: translateX(30px); }
.partner-phone { z-index: 1; }

/* ============== SYSTEMS ============== */
.systems {
  background: var(--bg-cream);
}

/* ============== AI CHAT ============== */
.aichat {
  background: linear-gradient(180deg, var(--bg-cream) 0%, #f0e9da 100%);
}
.aichat-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.aichat-visual { display: flex; justify-content: center; }
.aichat-list {
  list-style: none;
  margin-top: 24px;
}
.aichat-list li {
  padding: 12px 0;
  border-bottom: 1px dashed rgba(187, 134, 252, 0.25);
  color: var(--text-dark);
  font-size: 17px;
  display: flex; gap: 14px;
  font-style: italic;
}
.aichat-list li span {
  color: var(--gold);
  font-style: normal;
  font-family: 'Bungee', sans-serif;
}

/* ============== FOUNDER ============== */
.founder {
  background: var(--bg);
  color: var(--text);
  border-top: none;
}
.founder-inner {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: flex-start;
}
.founder-aside { text-align: center; }
.founder-avatar {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--gold));
  padding: 6px;
  margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
}
.founder-avatar img { width: 100%; height: 100%; object-fit: contain; background: var(--card); border-radius: 50%; padding: 12px; }
.founder-tag {
  font-family: 'Bungee', sans-serif;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.founder-h2 {
  background: linear-gradient(180deg, #fff 0%, #BB86FC 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 24px;
}
.founder-body p { color: var(--text-soft); margin-bottom: 18px; font-size: 18px; line-height: 1.6; }
.founder-body b { color: var(--text); }
.founder-sign {
  font-family: 'Bungee', sans-serif;
  color: var(--gold);
  font-size: 14px;
  margin-top: 24px;
  letter-spacing: 0.04em;
}

/* ============== FAQ ============== */
.faq { background: var(--bg-cream); }
.faq-list {
  margin-top: 40px;
  max-width: 820px;
}
.faq-item {
  background: #fff;
  border: 1px solid rgba(187, 134, 252, 0.2);
  border-radius: 14px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item:hover { border-color: var(--purple); }
.faq-item-open { box-shadow: 0 16px 40px -16px rgba(61, 45, 122, 0.25); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 17px;
  color: var(--text-dark);
}
.faq-toggle {
  font-family: 'Bungee', sans-serif;
  font-size: 22px;
  color: var(--purple);
  width: 28px; text-align: center;
}
.faq-a {
  padding: 0 24px 22px;
  color: #574a7d;
  font-size: 16px;
  line-height: 1.6;
}

/* ============== FOOTER CTA ============== */
.footer-cta {
  background: linear-gradient(135deg, var(--bg) 0%, #2a1c66 50%, var(--bg) 100%);
  color: var(--text);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.12), transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(187, 134, 252, 0.15), transparent 40%);
}
.footer-cta-inner { position: relative; z-index: 1; padding: 120px 32px; max-width: 720px; }
.footer-cta-icon { width: 80px; height: 80px; margin-bottom: 24px; }
.footer-cta-h2 {
  font-family: 'Bungee', sans-serif;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  margin-bottom: 18px;
  background: linear-gradient(180deg, #fff 0%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-cta-sub { color: var(--text-soft); font-size: 19px; margin-bottom: 28px; }
.footer-cta-form { margin: 0 auto 16px; }
.footer-cta-meta { color: var(--text-muted); font-size: 13px; }

/* ============== FOOTER ============== */
.footer {
  background: #0a0518;
  color: var(--text-soft);
  padding: 32px;
  border-top: 1px solid rgba(187, 134, 252, 0.15);
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-tag { font-size: 14px; }
.footer-meta { display: flex; gap: 20px; font-size: 14px; }
.footer-meta a:hover { color: var(--text); }

/* ============== RESPONSIVE ============== */
@media (max-width: 980px) {
  .hero-inner, .partner-inner, .aichat-inner, .tour-frame, .founder-inner { grid-template-columns: 1fr; gap: 48px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .problem-grid, .sys-switcher { grid-template-columns: 1fr; }
  .hero-phones { height: 580px; }
  .hero-phone-back { display: none; }
  .founder-inner { text-align: center; }
  .founder-aside { margin: 0 auto; }
}
