/* ============================================
   Track Link Solutions — Brand Site Styles
   Racing × Technology Theme
   ============================================ */

:root {
  /* Core palette — neon on asphalt */
  --bg-deep: #0a0b0f;
  --bg-surface: #12141c;
  --bg-elevated: #1a1d28;
  --bg-card: #151820;

  --accent-cyan: #00f0ff;
  --accent-magenta: #ff2d6a;
  --accent-amber: #ffb800;
  --accent-lime: #39ff14;
  --accent-violet: #8b5cf6;

  --text-primary: #f0f2f8;
  --text-secondary: #9ca3b8;
  --text-muted: #5c6378;

  --gradient-hero: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-magenta) 50%, var(--accent-amber) 100%);
  --gradient-card: linear-gradient(160deg, rgba(0, 240, 255, 0.08) 0%, rgba(255, 45, 106, 0.06) 100%);
  --gradient-speed: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-magenta), transparent);

  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --header-height: 72px;
  --section-pad: clamp(4rem, 10vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  overflow-x: hidden;
}

/* --- Ambient backgrounds --- */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.speed-lines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 120px,
    rgba(255, 45, 106, 0.015) 120px,
    rgba(255, 45, 106, 0.015) 121px
  );
  pointer-events: none;
  z-index: 0;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.15;
}

.logo-icon-wrap {
  --logo-block-height: calc((1.25rem * 1.15 + 0.15rem + 0.82rem * 1.15) * 0.88);
  flex-shrink: 0;
  height: var(--logo-block-height);
  width: calc(var(--logo-block-height) * 1.49);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: left center;
}

.logo-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-sub {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--accent-cyan);
}

.nav-cta {
  padding: 0.5rem 1.25rem !important;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan) !important;
  border-radius: var(--radius-sm);
}

.nav-cta:hover {
  background: rgba(0, 240, 255, 0.1);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--gradient-hero);
  color: var(--bg-deep);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(255, 45, 106, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
  border-color: var(--accent-magenta);
  color: var(--accent-magenta);
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 0.85rem;
}

/* --- Hero --- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 4rem) 2rem var(--section-pad);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--accent-lime);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.25);
  border-radius: 100px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-lime);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 8px rgba(57, 255, 20, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-line {
  display: block;
}

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

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Hero visual — vertical stack, no overlap */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  justify-self: center;
  align-self: start;
  margin-top: 6rem;
}

.app-mesh {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.app-panel {
  position: relative;
  width: 100%;
  background: rgba(12, 14, 20, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.65),
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.app-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  width: 100%;
}

.app-row .app-panel {
  min-width: 0;
}

.app-row .panel-feed {
  display: flex;
  flex-direction: column;
}

.panel-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.panel-live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-lime);
  font-size: 0.52rem;
}

.panel-live .pulse-dot {
  width: 5px;
  height: 5px;
}

.panel-title {
  color: var(--text-secondary);
}

.panel-meta {
  color: var(--accent-cyan);
}

.panel-timing {
  border-color: rgba(0, 240, 255, 0.2);
  overflow: visible;
}

.panel-timing .timing-table {
  overflow: visible;
}

.panel-feed {
  border-color: rgba(255, 45, 106, 0.22);
}

.panel-telemetry {
  border-color: rgba(139, 92, 246, 0.25);
}

.app-row .panel-chrome {
  padding: 0.38rem 0.6rem;
  font-size: 0.5rem;
}

.app-row .feed-item {
  font-size: 0.48rem;
  padding: 0.18rem 0;
  line-height: 1.2;
  grid-template-columns: 1.5rem 0.9rem 1fr;
  gap: 0.25rem;
}

.app-row .feed-item.highlight {
  margin: 0 -0.35rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.app-row .feed-lap {
  font-size: 0.46rem;
}

.app-row .feed-icon {
  font-size: 0.58rem;
}

.app-row .telemetry-body {
  padding: 0.4rem 0.55rem 0.45rem;
  gap: 0.3rem 0.6rem;
}

.app-row .tel-speed-val {
  font-size: 1.2rem;
}

.panel-timing .panel-meta {
  display: inline-block;
  min-width: 5.5rem;
  text-align: right;
}

.panel-timing .panel-meta.lap-tick {
  animation: lap-pulse 0.55s ease-out;
}

@keyframes lap-pulse {
  0% {
    color: var(--accent-cyan);
    transform: scale(1);
    text-shadow: none;
  }
  35% {
    color: var(--accent-lime);
    transform: scale(1.12);
    text-shadow: 0 0 14px rgba(57, 255, 20, 0.65);
  }
  100% {
    color: var(--accent-cyan);
    transform: scale(1);
    text-shadow: none;
  }
}

.timing-rows {
  position: relative;
  isolation: isolate;
}

.timing-row {
  position: relative;
  z-index: 1;
}

.timing-row.row-moving-up {
  z-index: 3;
  background: rgba(57, 255, 20, 0.18);
  box-shadow: inset 0 0 0 1px rgba(57, 255, 20, 0.25);
}

.timing-row.row-moving-down {
  z-index: 2;
  background: rgba(255, 45, 106, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 45, 106, 0.22);
}

.app-row .tel-speed-unit {
  font-size: 0.42rem;
  margin-top: 0.05rem;
}

.app-row .tel-gear-val {
  font-size: 1.1rem;
}

.app-row .tel-gear-label {
  font-size: 0.4rem;
}

.app-row .tel-bars {
  gap: 0.2rem;
}

.app-row .tel-bar-row {
  font-size: 0.4rem;
  gap: 0.3rem;
}

.app-row .tel-bar {
  height: 3px;
}

.app-row .tel-badges {
  gap: 0.25rem;
}

.app-row .tel-badge {
  font-size: 0.38rem;
  padding: 0.12rem 0.35rem;
}

/* --- Live timing table (F1-style) --- */
.panel-tabs {
  display: flex;
  gap: 0;
  padding: 0 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-tabs .tab {
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.65rem;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
}

.panel-tabs .tab.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.timing-table {
  padding: 0.4rem 0.7rem 0.75rem;
  font-size: 0.62rem;
}

.timing-head,
.timing-row {
  display: grid;
  grid-template-columns: 1.4rem 1.6fr 1.1fr 0.75fr 0.75fr 1.4rem;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.15rem;
}

.timing-head {
  font-family: var(--font-display);
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.35rem;
  margin-bottom: 0.1rem;
}

.timing-row {
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.timing-row:last-child {
  border-bottom: none;
}

.timing-row.leader {
  background: rgba(0, 240, 255, 0.06);
  border-radius: 4px;
}

.timing-row .pos {
  font-family: var(--font-display);
  font-size: 0.55rem;
  color: var(--text-muted);
}

.timing-row.leader .pos {
  color: var(--accent-lime);
}

.timing-row .driver {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-stripe {
  display: inline-block;
  width: 3px;
  height: 12px;
  border-radius: 1px;
  flex-shrink: 0;
}

.team-stripe.cyan { background: var(--accent-cyan); }
.team-stripe.magenta { background: var(--accent-magenta); }
.team-stripe.amber { background: var(--accent-amber); }
.team-stripe.violet { background: var(--accent-violet); }
.team-stripe.lime { background: var(--accent-lime); }

.timing-row .lap {
  font-family: var(--font-display);
  font-size: 0.52rem;
  color: var(--text-secondary);
}

.timing-row .lap.purple {
  color: #c084fc;
}

.timing-row .gap,
.timing-row .int {
  font-family: var(--font-display);
  font-size: 0.5rem;
  color: var(--text-muted);
}

.tyre {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.42rem;
  font-weight: 900;
  color: #0a0b0f;
}

.tyre.soft { background: #ef4444; }
.tyre.medium { background: #eab308; }
.tyre.hard { background: #e5e7eb; }

/* --- Race feed (NASCAR timeline-style) --- */
.feed-viewport {
  position: relative;
  overflow: hidden;
  max-height: 6.4rem;
}

.feed-viewport::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.5rem;
  background: linear-gradient(to bottom, transparent, rgba(12, 14, 20, 0.92));
  pointer-events: none;
}

.feed-list {
  list-style: none;
  padding: 0.45rem 0.7rem 0.15rem;
  margin: 0;
}

.app-row .feed-viewport {
  flex: 1;
  min-height: 0;
  max-height: none;
}

.app-row .feed-viewport::after {
  height: 0.35rem;
}

.app-row .feed-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
  padding: 0.15rem 0.5rem 0.1rem;
}

.app-row .feed-item {
  flex-shrink: 0;
}

.feed-item {
  display: grid;
  grid-template-columns: 2rem 1.2rem 1fr;
  align-items: start;
  gap: 0.35rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.62rem;
  line-height: 1.35;
}

.feed-item:last-child {
  border-bottom: none;
}

.feed-item.highlight {
  background: rgba(255, 184, 0, 0.06);
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 4px;
}

.feed-lap {
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--text-muted);
}

.feed-icon {
  font-size: 0.7rem;
  text-align: center;
}

.feed-icon.fastest { color: #c084fc; }
.feed-icon.pit { color: var(--accent-amber); }
.feed-icon.overtake { color: var(--accent-lime); }
.feed-icon.caution { color: #f97316; }
.feed-icon.green { color: var(--accent-lime); }
.feed-icon.leader { color: var(--accent-cyan); }

.feed-text {
  color: var(--text-secondary);
}

.feed-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

.feed-text em {
  font-family: var(--font-display);
  color: #c084fc;
  font-style: normal;
}

/* --- Telemetry panel --- */
.telemetry-body {
  padding: 0.75rem 0.85rem 0.85rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
}

.tel-speed {
  grid-column: 1;
}

.tel-speed-val {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.tel-speed-unit {
  display: block;
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.tel-gear {
  grid-column: 2;
  text-align: center;
  align-self: start;
}

.tel-gear-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.45rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.tel-gear-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
}

.tel-bars {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tel-bar-row {
  display: grid;
  grid-template-columns: 2rem 1fr 2rem;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.48rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.tel-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.tel-bar-fill {
  height: 100%;
  width: var(--w);
  border-radius: 3px;
}

.tel-bar-fill.thr {
  width: 100%;
  transform-origin: left center;
  transform: scaleX(0.82);
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-lime));
  animation: tel-thr 3s ease-in-out infinite;
}

.tel-bar-fill.brk {
  background: linear-gradient(90deg, var(--accent-magenta), var(--accent-amber));
}

@keyframes tel-thr {
  0%, 100% { transform: scaleX(0.82); }
  50% { transform: scaleX(0.94); }
}

.tel-pct {
  text-align: right;
  color: var(--text-secondary);
}

.tel-badges {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tel-badge {
  font-family: var(--font-display);
  font-size: 0.45rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.tel-badge.drs {
  background: rgba(57, 255, 20, 0.15);
  color: var(--accent-lime);
  border: 1px solid rgba(57, 255, 20, 0.3);
}

.tel-badge.fuel {
  background: rgba(255, 184, 0, 0.1);
  color: var(--accent-amber);
  border: 1px solid rgba(255, 184, 0, 0.25);
}

/* --- Driver card --- */
.driver-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.9rem 0.6rem;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, transparent 60%);
}

.driver-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-cyan);
  opacity: 0.9;
}

.driver-name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.driver-team {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.driver-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
}

.dstat-k {
  display: block;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.1rem;
}

.dstat-v {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
}

.dstat-v.purple { color: #c084fc; }
.dstat-v.green { color: var(--accent-lime); }

.driver-stint {
  padding: 0.5rem 0.9rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stint-label {
  display: block;
  font-size: 0.52rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.stint-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.stint-fill {
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, #ef4444, #eab308);
  border-radius: 2px;
}

/* --- Tyre strategy --- */
.tyre-body {
  padding: 0.65rem 0.8rem 0.75rem;
}

.tyre-current {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.compound {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  color: #0a0b0f;
  flex-shrink: 0;
}

.compound.soft { background: #ef4444; }
.compound.medium { background: #eab308; }
.compound.hard { background: #e5e7eb; }

.compound.sm {
  width: 18px;
  height: 18px;
  font-size: 0.5rem;
}

.tyre-name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.tyre-detail {
  display: block;
  font-size: 0.55rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.tyre-plan {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-step {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.plan-step.done { opacity: 0.5; }
.plan-step.active {
  background: rgba(239, 68, 68, 0.12);
  color: var(--text-primary);
}

.plan-arrow {
  color: var(--text-muted);
  font-size: 0.6rem;
}

/* --- Sections --- */
.section {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--section-pad) 2rem;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-magenta);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  line-height: 1.2;
}

.section-desc {
  color: var(--text-secondary);
  margin-top: 1rem;
  max-width: 600px;
}

/* --- About --- */
.about .section-header {
  margin-bottom: 3.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  transition: border-color 0.3s, transform 0.3s;
}

.about-card:hover {
  border-color: rgba(0, 240, 255, 0.25);
  transform: translateY(-4px);
}

.about-card.charter {
  grid-column: 1 / -1;
  background: var(--gradient-card);
  border-color: rgba(0, 240, 255, 0.15);
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--accent-cyan);
  margin-bottom: 1.25rem;
}

.about-card .card-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.5rem;
}

.card-icon.cyan { color: var(--accent-cyan); }
.card-icon.magenta { color: var(--accent-magenta); }
.card-icon.amber { color: var(--accent-amber); }
.card-icon.violet { color: #8b5cf6; }

.about-card h3 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.35;
}

/* --- Platform --- */
.platform {
  background: linear-gradient(180deg, transparent 0%, rgba(18, 20, 28, 0.5) 50%, transparent 100%);
}

.platform .section-header {
  margin-bottom: 3.5rem;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}

.platform-card:hover {
  border-color: rgba(0, 240, 255, 0.25);
  transform: translateY(-4px);
}

.platform-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.platform-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.45;
}

.card-icon.lime { color: var(--accent-lime); }
.card-icon.orange { color: #f97316; }

/* --- Services --- */
.services-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid rgba(0, 240, 255, 0.2);
  margin-left: 1.5rem;
}

.service-lane {
  display: flex;
  gap: 2rem;
  padding: 2rem 0 2rem 2.5rem;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.service-lane::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 2.5rem;
  width: 12px;
  height: 12px;
  background: var(--bg-deep);
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
}

.service-lane:hover::before {
  background: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan);
}

.lane-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: rgba(0, 240, 255, 0.15);
  flex-shrink: 0;
  width: 3rem;
}

.lane-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.lane-content p {
  color: var(--text-secondary);
}

/* --- Technology --- */
.tech-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tech-content p {
  color: var(--text-secondary);
  margin: 1.5rem 0 2rem;
}

.tech-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  transition: border-color 0.3s;
}

.pillar:hover {
  border-color: rgba(255, 184, 0, 0.3);
}

.pillar-icon {
  font-size: 1.25rem;
  width: 2.5rem;
  text-align: center;
}

.pillar strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pillar span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.circuit-board {
  position: relative;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 240, 255, 0.05) 0%, transparent 70%),
    var(--bg-elevated);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.circuit-node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-cyan);
  animation: node-glow 3s ease-in-out infinite;
}

.n1 { top: 20%; left: 30%; animation-delay: 0s; }
.n2 { top: 35%; right: 25%; animation-delay: 0.5s; background: var(--accent-magenta); box-shadow: 0 0 12px var(--accent-magenta); }
.n3 { bottom: 35%; left: 20%; animation-delay: 1s; background: var(--accent-amber); box-shadow: 0 0 12px var(--accent-amber); }
.n4 { bottom: 25%; right: 30%; animation-delay: 1.5s; }
.n5 { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 20px; height: 20px; background: var(--accent-lime); box-shadow: 0 0 20px var(--accent-lime); }

@keyframes node-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.circuit-trace {
  position: absolute;
  background: rgba(0, 240, 255, 0.2);
  height: 2px;
}

.t1 { top: 22%; left: 32%; width: 40%; transform: rotate(15deg); }
.t2 { top: 38%; left: 25%; width: 50%; height: 2px; transform: rotate(-10deg); background: rgba(255, 45, 106, 0.2); }
.t3 { bottom: 38%; left: 22%; width: 45%; transform: rotate(5deg); background: rgba(255, 184, 0, 0.2); }
.t4 { top: 50%; left: 35%; width: 30%; transform: rotate(90deg); transform-origin: left center; }

.circuit-data {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  background: rgba(10, 11, 15, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: var(--radius-sm);
}

.blink {
  color: var(--accent-lime);
  animation: blink 1.5s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* --- Contact --- */
.contact-inner {
  position: relative;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-surface);
  border: 1px solid rgba(255, 45, 106, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.checkered-band {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: repeating-conic-gradient(
    var(--text-primary) 0% 25%,
    var(--bg-deep) 0% 50%
  ) 0 0 / 16px 16px;
  opacity: 0.15;
}

.contact-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-inner > p {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.contact-channels {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-channels span:nth-child(odd) {
  color: var(--text-secondary);
}

.contact-form {
  max-width: 420px;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(0, 240, 255, 0.45);
}

.form-field textarea {
  resize: vertical;
  min-height: 6rem;
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.5rem;
  gap: 0.55rem;
}

.contact-form .btn:disabled {
  cursor: not-allowed;
  transform: none;
}

.contact-form .btn.is-sending {
  opacity: 0.85;
  box-shadow: none;
}

.contact-form .btn.is-sent {
  background: linear-gradient(135deg, #00c896 0%, #00f0ff 100%);
  opacity: 1;
  box-shadow: 0 0 24px rgba(0, 200, 150, 0.35);
}

.btn-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: var(--bg-deep);
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
}

.contact-form .btn.is-sending .btn-spinner {
  display: inline-block;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

.form-status {
  margin-top: 0.85rem;
  font-size: 0.9rem;
  text-align: center;
}

.form-status--success {
  color: var(--accent-cyan);
}

.form-status--error {
  color: #ff6b6b;
}

.contact-direct {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-direct a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.contact-direct a:hover {
  text-decoration: underline;
}

/* --- Footer --- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 2rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .logo-mark {
  font-size: 1.2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 280px;
}

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 2;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--accent-magenta);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.footer-legal-nav {
  display: flex;
  gap: 1rem;
}

.footer-legal-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-legal-nav a:hover {
  color: var(--text-secondary);
}

/* --- Legal pages --- */
.legal-page {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 3rem) 1.5rem var(--section-pad);
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  margin: 2rem 0 0.75rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.65;
}

.legal-page ul {
  margin: 0.5rem 0 1rem 1.25rem;
}

.legal-page a {
  color: var(--accent-cyan);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-back {
  display: inline-block;
  margin-top: 3rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.legal-back:hover {
  color: var(--accent-cyan);
}

.site-footer.legal-footer {
  padding-top: 0;
}

.site-footer.legal-footer .footer-bottom {
  border-top: none;
  padding-top: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: calc(var(--header-height) + 2rem);
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    max-width: 480px;
    margin-top: 2rem;
  }

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

  .tech-split {
    grid-template-columns: 1fr;
  }

  .tech-visual {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 11, 15, 0.98);
    padding: 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(0, 240, 255, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .about-grid,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .about-card.charter {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .hero-stats {
    gap: 2rem;
  }

  .app-row {
    grid-template-columns: 1fr;
  }

  .timing-head,
  .timing-row {
    font-size: 0.5rem;
    grid-template-columns: 1.2rem 1.4fr 1fr 0.7fr 0.7fr 1.2rem;
  }
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .panel-timing .panel-meta.lap-tick {
    animation: none;
    color: var(--accent-lime);
  }
}
