/* NORVA — Premium Smart Car Automation */

:root {
  --bg-deep: #050810;
  --bg-mid: #0A0E1A;
  --bg-elev: #11162A;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);
  --text: #F5F5F5;
  --text-mut: rgba(245,245,245,0.62);
  --text-dim: rgba(245,245,245,0.42);
  --gold: #D4A574;
  --gold-bright: #E8BD86;
  --gold-deep: #8C6A40;
  --blue: #7DD3FC;
  --blue-deep: #2B6A88;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg-deep); color: var(--text); }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Type */
.display {
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
}
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* Layout */
.wrap { max-width: 1360px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

section { position: relative; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-radius: 2px; cursor: pointer; border: 1px solid transparent;
  transition: all .35s cubic-bezier(.2,.7,.2,1);
  text-decoration: none;
  white-space: nowrap;
}
.btn-gold {
  background: var(--gold); color: #1a1208;
  box-shadow: 0 0 0 0 rgba(212,165,116,0);
}
.btn-gold:hover {
  background: var(--gold-bright);
  box-shadow: 0 12px 40px -8px rgba(212,165,116,0.55), 0 0 0 1px rgba(212,165,116,0.4);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--gold); color: var(--gold);
  background: rgba(212,165,116,0.04);
}
.btn-sm { height: 40px; padding: 0 18px; font-size: 11px; }

/* Mesh network canvas */
.mesh-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.85;
}

/* Particle field */
.particles {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.particle {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(212,165,116,0.8);
  animation: drift linear infinite;
}
@keyframes drift {
  from { transform: translateY(110vh) translateX(0); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.6; }
  to   { transform: translateY(-10vh) translateX(40px); opacity: 0; }
}

/* Glow */
.glow-gold {
  background: radial-gradient(closest-side, rgba(212,165,116,0.25), transparent 70%);
}

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

/* Section dividers */
.divider {
  height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* Card */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--line);
  border-radius: 4px;
  transition: all .4s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px circle at var(--mx,50%) var(--my,50%), rgba(212,165,116,0.08), transparent 40%);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.card:hover { border-color: rgba(212,165,116,0.35); transform: translateY(-2px); }
.card:hover::before { opacity: 1; }

/* Number bezel */
.bezel {
  width: 44px; height: 44px; border-radius: 2px;
  border: 1px solid var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 12px;
  color: var(--gold); letter-spacing: 0.1em;
}

/* Tag */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mut);
  background: rgba(255,255,255,0.02);
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* Hero scrim */
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 65%, rgba(212,165,116,0.18), transparent 70%),
    radial-gradient(50% 40% at 80% 20%, rgba(125,211,252,0.10), transparent 70%),
    radial-gradient(40% 50% at 10% 80%, rgba(212,165,116,0.08), transparent 70%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 80%);
}

/* Car silhouette placeholder */
.car-silhouette {
  position: absolute; left: 50%; top: 60%;
  transform: translate(-50%, -50%);
  width: 90%; max-width: 1100px; height: 320px;
  opacity: 0.55;
  filter: blur(0.5px);
  pointer-events: none;
}

/* Pulse */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,165,116,0.5); }
  50%      { box-shadow: 0 0 0 14px rgba(212,165,116,0); }
}
@keyframes wave {
  from { transform: scaleY(0.4); opacity: 0.4; }
  to   { transform: scaleY(1.1); opacity: 1; }
}
.pulse-gold { animation: pulse-gold 2.4s ease-in-out infinite; }

/* Marquee */
.marquee {
  display: flex; gap: 64px;
  animation: marquee 40s linear infinite;
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Underline link */
.ul-link {
  position: relative; color: var(--text); text-decoration: none;
  padding-bottom: 2px;
}
.ul-link::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1px; width: 0;
  background: var(--gold); transition: width .4s ease;
}
.ul-link:hover::after { width: 100%; }
.ul-link:hover { color: var(--gold); }

/* Phone mock */
.phone-mock {
  width: 280px; height: 560px;
  border-radius: 36px;
  background: linear-gradient(180deg, #1a1f2e, #0a0e1a);
  border: 1px solid var(--line-strong);
  padding: 14px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.04);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 24px;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  overflow: hidden; position: relative;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(212,165,116,0.3); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Hero grid + phone */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 64px;
  align-items: center;
  margin-top: 0;
}
.hero-title {
  font-size: clamp(72px, 11vw, 180px);
  line-height: 0.92;
}
.hero-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 320px;
  margin-right: 40px;
  transform: translateY(-32px);
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-phone-wrap { justify-content: center; }
  .hero-title { font-size: clamp(64px, 16vw, 160px); }
}
@media (max-width: 640px) {
  .hero-phone-wrap { display: none; }
}

.phone-frame {
  position: relative;
  width: 290px;
  flex-shrink: 0;
}
.phone-glow-a {
  position: absolute; inset: -60px -40px -40px -40px;
  background: radial-gradient(closest-side, rgba(212,165,116,0.18), transparent 70%);
  pointer-events: none; z-index: 0;
}
.phone-glow-b {
  position: absolute; inset: 40px -80px -60px 20px;
  background: radial-gradient(closest-side, rgba(125,211,252,0.10), transparent 70%);
  pointer-events: none; z-index: 0;
}
/* iPhone 14 style frame */
.phone-body {
  position: relative; z-index: 1;
  width: 290px; height: 590px; /* ~19.5:9 ratio */
  border-radius: 50px;
  /* titanium/black metal frame */
  background:
    linear-gradient(135deg, #2a2f3a 0%, #1a1d24 30%, #0d0f15 60%, #1a1d24 100%);
  padding: 9px; /* uniform thin bezel */
  box-shadow:
    0 50px 100px -30px rgba(0,0,0,0.9),
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.5);
}
/* inner bezel (the black bevel between frame and screen) */
.phone-body::before {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 41px;
  background: #000;
  pointer-events: none;
  z-index: 1;
}
/* side buttons (volume up = ::after on body, vol down + power below) */
.phone-body::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 110px;
  width: 3px;
  height: 32px;
  background: linear-gradient(90deg, #1a1d24, #2a2f3a);
  border-radius: 2px 0 0 2px;
  pointer-events: none;
  z-index: 0;
}
.phone-vol-down,
.phone-power {
  position: absolute;
  background: linear-gradient(90deg, #1a1d24, #2a2f3a);
  pointer-events: none;
  z-index: 0;
}
.phone-vol-down {
  left: -2px; top: 175px; width: 3px; height: 56px;
  border-radius: 2px 0 0 2px;
}
.phone-power {
  right: -2px; top: 145px; width: 3px; height: 70px;
  border-radius: 0 2px 2px 0;
}
/* Dynamic Island */
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%; transform: translateX(-50%);
  width: 110px; height: 32px;
  background: #000;
  border-radius: 20px;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}
/* tiny camera dot inside the island */
.phone-notch::after {
  content: '';
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #1a2030 0%, #050810 60%, #000 100%);
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.08);
}
.phone-screen-norva {
  width: 100%; height: 100%;
  border-radius: 41px;
  background: linear-gradient(180deg, #0a0e1a 0%, #050810 60%, #0a0e1a 100%);
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
  z-index: 2;
}
.phone-screen-norva::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 60% at 50% 0%, rgba(212,165,116,0.06), transparent 60%);
  pointer-events: none;
}
* { -webkit-tap-highlight-color: transparent; }

/* ==================== MOBILE RESPONSIVE ==================== */
.social-link:hover {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  background: rgba(212,165,116,0.06);
}
.hide-mobile { display: flex; }
.show-mobile { display: none; }

/* Demo video phone frame */
.demo-phone-wrap { display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.demo-phone {
  position: relative;
  width: 300px; height: 620px;
  border-radius: 50px;
  background: linear-gradient(135deg, #2a2f3a 0%, #1a1d24 30%, #0d0f15 60%, #1a1d24 100%);
  padding: 9px;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,0.9), 0 0 0 1px rgba(255,255,255,0.06), inset 0 1px 0 rgba(255,255,255,0.10), inset 0 -1px 0 rgba(0,0,0,0.5);
}
.demo-phone-notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 30px; background: #000; border-radius: 20px; z-index: 3;
}
.demo-phone-screen {
  width: 100%; height: 100%; border-radius: 41px; overflow: hidden; background: #000; position: relative;
}
.demo-phone-screen iframe {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(1.02);
  width: 100%; height: 100%;
}
@media (max-width: 880px) {
  .demo-grid { grid-template-columns: 1fr !important; gap: 48px !important; justify-items: center; text-align: center; }
}

@media (max-width: 860px) {
  .show-mobile { display: block; }
  .hide-mobile { display: none !important; }

  /* sections — reduce padding */
  section { padding-left: 0; padding-right: 0; }

  /* hero */
  .hero-title { font-size: clamp(56px, 14vw, 96px) !important; line-height: 0.95 !important; }

  /* long display titles must never overflow */
  .display { overflow-wrap: anywhere; word-break: break-word; }

  /* section header titles — cap size so long words fit */
  .section-title, h2.display { font-size: clamp(32px, 8vw, 46px) !important; }

  /* features grid → 1 column */
  .features-grid { grid-template-columns: 1fr !important; }

  /* specs split → stack */
  .specs-grid { grid-template-columns: 1fr !important; gap: 32px !important; }

  /* about roadmap → vertical */
  .roadmap-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .roadmap-grid > span[aria-hidden] { display: none !important; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }

  /* Reduce all section vertical padding */
  section[id] { padding-top: 80px !important; padding-bottom: 80px !important; }

  /* hero specifics */
  .hero-title { font-size: clamp(48px, 12vw, 72px) !important; }

  /* section titles a touch smaller on phones */
  h2.display { font-size: clamp(30px, 7.5vw, 40px) !important; }

  /* card paddings */
  .card { padding: 24px !important; }

  /* pricing card padding */
  .pricing-block { padding-left: 24px !important; padding-right: 24px !important; }
}
