/* ==========================================================================
   GarageMunky — AI Vehicle Assistant
   Brand palette:  #FF8A2A  #111214  #23262B  #3A3F45  #F4F5F7
   Typeface:       Noto Sans
   ========================================================================== */

:root {
  --orange: #FF8A2A;
  --orange-600: #e9761a;
  --bg: #111214;
  --surface: #23262B;
  --surface-2: #1a1d21;
  --line: #3A3F45;
  --light: #F4F5F7;
  --muted: #a2a7ae;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --font: "Noto Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

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

section { padding: 96px 0; }

.eyebrow {
  color: var(--orange);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.75rem); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .95rem;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: #1a1206; box-shadow: 0 8px 24px rgba(255, 138, 42, .28); }
.btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--light); background: transparent; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 18, 20, .8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 40px; height: 40px; }
.brand .wordmark { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.brand .sub {
  display: block;
  font-size: .58rem;
  letter-spacing: .22em;
  color: var(--orange);
  font-weight: 700;
  text-transform: uppercase;
  margin-top: -4px;
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a.link { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav-links a.link:hover { color: var(--light); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--light); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 90px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 60%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(255, 138, 42, .16), transparent 62%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 40px;
}
.hero-copy { text-align: left; }
.hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 28px;
  background: var(--surface-2);
}
.hero .badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin-bottom: 20px; }
.hero h1 .accent { color: var(--orange); }
.hero p.lede { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 0 34px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-props {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
  color: var(--muted);
  font-size: .92rem;
}
.hero-props span { display: inline-flex; align-items: center; gap: 8px; }
.hero-props svg { color: var(--orange); }

/* ---------- Animated phone ---------- */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.glow-ring {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 42, .28), transparent 60%);
  filter: blur(10px);
  animation: pulseGlow 4s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: .8; }
  50% { transform: scale(1.12); opacity: 1; }
}
.phone {
  position: relative;
  width: 290px;
  height: 590px;
  background: #05060a;
  border-radius: 44px;
  padding: 12px;
  border: 2px solid #2b2f36;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), inset 0 0 0 2px #000;
  animation: floatPhone 6s ease-in-out infinite;
}
@keyframes floatPhone {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(-1deg); }
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 26px;
  background: #05060a;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  height: 100%;
  background: linear-gradient(180deg, #191c21 0%, #111214 100%);
  border-radius: 34px;
  overflow: hidden;
  padding: 16px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--light);
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 6px 0;
}
.app-status-icons { display: inline-flex; align-items: center; gap: 5px; }

.app-head { display: flex; align-items: center; gap: 10px; }
.app-head img { width: 34px; height: 34px; }
.app-head strong { display: block; font-size: .92rem; }
.app-head small { color: var(--muted); font-size: .68rem; }
.live-dot {
  margin-left: auto;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #37d67a;
  box-shadow: 0 0 0 0 rgba(55, 214, 122, .6);
  animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(55, 214, 122, .5); }
  70% { box-shadow: 0 0 0 8px rgba(55, 214, 122, 0); }
  100% { box-shadow: 0 0 0 0 rgba(55, 214, 122, 0); }
}

.score-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ring { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring-bg { fill: none; stroke: #2b2f36; stroke-width: 9; }
.ring-fg {
  fill: none;
  stroke: var(--orange);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  animation: fillRing 2.6s ease-out forwards;
  animation-delay: .4s;
}
@keyframes fillRing { to { stroke-dashoffset: 26; } }
.ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.ring-num b { font-size: 1.7rem; }
.ring-num span { font-size: .62rem; color: var(--muted); margin-top: 2px; }
.score-meta p { font-size: .78rem; color: var(--muted); margin: 2px 0; }
.score-meta p.ok { color: #37d67a; font-weight: 600; }

.metric-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 12px;
}
.metric small { color: var(--muted); font-size: .66rem; display: block; }
.metric b { font-size: 1.05rem; display: block; margin: 2px 0 8px; }
.metric .bar { display: block; height: 5px; background: #2b2f36; border-radius: 4px; overflow: hidden; }
.metric .bar u {
  display: block;
  height: 100%;
  width: 0;
  background: var(--orange);
  border-radius: 4px;
  animation: growBar 2s ease-out forwards;
  animation-delay: 1s;
}
@keyframes growBar { to { width: var(--w); } }

.dtc-card {
  background: rgba(255, 138, 42, .1);
  border: 1px solid rgba(255, 138, 42, .35);
  border-radius: 14px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dtc-icon { color: var(--orange); display: flex; }
.dtc-card strong { font-size: .8rem; display: block; }
.dtc-card small { color: var(--muted); font-size: .68rem; }

.chat-bubble {
  margin: 2px 24px 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 12px;
  font-size: .78rem;
  color: var(--light);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: bubbleIn .6s ease-out both;
  animation-delay: 2.4s;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.typing { display: inline-flex; gap: 3px; }
.typing i {
  width: 5px; height: 5px;
  background: var(--orange);
  border-radius: 50%;
  animation: typingBounce 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .phone, .glow-ring, .ring-fg, .metric .bar u, .chat-bubble, .live-dot, .typing i { animation: none !important; }
  .ring-fg { stroke-dashoffset: 26; }
  .metric .bar u { width: var(--w); }
  .chat-bubble { opacity: 1; }
}

/* ---------- Feature cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--orange); }
.card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 138, 42, .12);
  color: var(--orange);
  margin-bottom: 20px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .96rem; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  padding: 34px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 2.4rem;
  font-weight: 800;
  color: rgba(255, 138, 42, .25);
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* ---------- Device ---------- */
.device-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.device-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.device-media::before {
  content: "";
  position: absolute;
  width: 78%;
  height: 78%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 42, .22), transparent 62%);
  filter: blur(12px);
  pointer-events: none;
}
.device-media img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55));
}
.device-copy .device-lede { color: var(--muted); font-size: 1.08rem; margin: 14px 0 26px; }
.device-list { list-style: none; display: grid; gap: 16px; margin-bottom: 30px; }
.device-list li { display: flex; gap: 14px; align-items: flex-start; }
.device-list .tick {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(255, 138, 42, .14);
  color: var(--orange);
  margin-top: 2px;
}
.device-list strong { color: var(--light); }
.device-list div { color: var(--muted); font-size: .98rem; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--orange); box-shadow: var(--shadow); position: relative; }
.plan.featured .tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #1a1206;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 5px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}
.plan h3 { font-size: 1.25rem; margin-bottom: 6px; }
.plan .price { font-size: 2.6rem; font-weight: 800; margin: 12px 0 4px; }
.plan .price span { font-size: 1rem; color: var(--muted); font-weight: 500; }
.plan .desc { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
.plan ul { list-style: none; margin-bottom: 26px; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--light); font-size: .94rem; }
.plan li svg { color: var(--orange); flex-shrink: 0; margin-top: 3px; }
.plan .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ---------- Beta signup ---------- */
.beta { background: var(--surface-2); }
.beta-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 54px 40px;
  position: relative;
  overflow: hidden;
}
.beta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -10%, rgba(255, 138, 42, .18), transparent 60%);
  pointer-events: none;
}
.beta-inner > * { position: relative; z-index: 1; }
.badge-beta { margin-bottom: 20px; }
.beta-inner p { color: var(--muted); max-width: 460px; margin: 12px auto 28px; }

.beta-form { max-width: 480px; margin: 0 auto; }
.beta-fields { display: flex; flex-wrap: wrap; gap: 10px; }
.beta-input {
  flex: 1 1 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--light);
  font-family: var(--font);
  font-size: .98rem;
  transition: border-color .2s, box-shadow .2s;
}
.beta-input::placeholder { color: #6c727a; }
.beta-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 138, 42, .18);
}
.beta-form .btn { flex: 1 1 100%; justify-content: center; }
.beta-note { font-size: .82rem; color: var(--muted); margin: 16px auto 0 !important; }
.beta-note.error { color: #ff6b6b; }
.beta-note.success { color: #37d67a; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.beta-form.sent .beta-fields { opacity: .5; pointer-events: none; }
#betaSubmit.loading { opacity: .7; pointer-events: none; }

@media (min-width: 560px) {
  .beta-input { flex: 1 1 calc(50% - 5px); }
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-inner {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 64px 32px;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 138, 42, .16), transparent 60%);
}
.cta-inner > * { position: relative; z-index: 1; }
.cta-inner p { color: var(--muted); max-width: 520px; margin: 14px auto 30px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 60px 0 34px; background: var(--surface-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin-top: 16px; max-width: 280px; }
.footer-col h4 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--light); font-size: .94rem; margin-bottom: 10px; opacity: .8; transition: opacity .2s, color .2s; }
.footer-col a:hover { opacity: 1; color: var(--orange); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: .86rem;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .features-grid, .steps, .pricing-grid { grid-template-columns: 1fr; }
  .device-grid { grid-template-columns: 1fr; gap: 32px; }
  .device-media { order: -1; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 56px; }
  .hero-copy { text-align: center; }
  .hero-copy .hero-cta, .hero-copy .hero-props { justify-content: center; }
  .hero p.lede { margin-left: auto; margin-right: auto; }
  .hero::before { left: 50%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
    gap: 18px;
  }
}
@media (max-width: 560px) {
  section { padding: 70px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-props { gap: 18px; }
}
