:root {
  color-scheme: light;
  --ink: #17110f;
  --muted: #625a52;
  --paper: #fff8e8;
  --paper-2: #f8e7c2;
  --line: #17110f;
  --red: #f23d4c;
  --orange: #ff8a00;
  --yellow: #ffe04b;
  --green: #11b86f;
  --blue: #1e73ff;
  --cyan: #3be7dc;
  --pink: #ff4fb8;
  --violet: #6c3cff;
  --shadow: 10px 10px 0 var(--line);
  --soft-shadow: 0 24px 80px rgba(23, 17, 15, 0.18);
  --radius: 8px;
  --font-display: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.dark-theme {
  color-scheme: dark;
  --ink: #fff6dd;
  --muted: #d9c9ab;
  --paper: #12100f;
  --paper-2: #211a16;
  --line: #fff6dd;
  --shadow: 10px 10px 0 #000;
  --soft-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    linear-gradient(90deg, rgba(23, 17, 15, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 17, 15, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 79, 184, 0.22), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(59, 231, 220, 0.22), transparent 28%),
    radial-gradient(circle at 60% 85%, rgba(255, 224, 75, 0.28), transparent 26%);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 3px solid var(--line);
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  box-shadow: 5px 5px 0 var(--line);
  color: #17110f;
  font-family: var(--font-display);
  font-size: 22px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
}

.site-nav a {
  border-radius: 999px;
  padding: 9px 14px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--ink);
  color: var(--paper);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.icon-button,
.theme-toggle,
.menu-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--line);
}

.icon-button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.theme-toggle .sun {
  width: 20px;
  height: 20px;
  border: 3px solid currentColor;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow:
    0 -10px 0 -6px currentColor,
    0 10px 0 -6px currentColor,
    10px 0 0 -6px currentColor,
    -10px 0 0 -6px currentColor;
}

.menu-toggle {
  display: none;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(26px, 4vw, 68px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(40px, 6vw, 88px) clamp(18px, 5vw, 72px) 42px;
  border-bottom: 3px solid var(--line);
  overflow: hidden;
}

.hero-pattern {
  position: absolute;
  inset: auto -120px 28px auto;
  width: 48vw;
  height: 48vw;
  max-width: 720px;
  max-height: 720px;
  border: 3px solid var(--line);
  transform: rotate(-8deg);
  background:
    linear-gradient(45deg, rgba(23, 17, 15, 0.18) 25%, transparent 25% 50%, rgba(23, 17, 15, 0.18) 50% 75%, transparent 75%),
    linear-gradient(135deg, var(--cyan), var(--yellow) 38%, var(--pink));
  background-size: 30px 30px, auto;
  opacity: 0.72;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  max-width: 100%;
  margin: 0 0 16px;
  padding: 8px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--yellow);
  color: #17110f;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(76px, 15vw, 190px);
  line-height: 0.82;
  text-transform: uppercase;
  text-shadow:
    4px 4px 0 var(--yellow),
    8px 8px 0 var(--pink),
    12px 12px 0 var(--cyan);
}

.hero-lede {
  max-width: 700px;
  margin: 34px 0 28px;
  font-size: clamp(21px, 2.4vw, 34px);
  font-weight: 900;
  line-height: 1.14;
}

.hero-actions,
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 18px;
  color: var(--ink);
  font-weight: 1000;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 6px 6px 0 var(--line);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translate(3px, 3px);
  box-shadow: 3px 3px 0 var(--line);
}

.button.primary {
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: #17110f;
}

.button.secondary {
  background: var(--paper);
}

.hero-metrics {
  margin: 32px 0 0;
}

.hero-metrics div {
  min-width: 148px;
  padding: 14px;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--line);
}

.hero-metrics dt {
  font-family: var(--font-display);
  font-size: 31px;
  line-height: 1;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-visual {
  display: grid;
  min-height: 620px;
  align-items: center;
}

.dashboard-shell {
  position: relative;
  width: min(100%, 660px);
  min-height: 510px;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow), var(--soft-shadow);
  overflow: hidden;
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 3px solid var(--line);
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.map-panel {
  position: absolute;
  inset: 70px 38px 188px 38px;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(23, 17, 15, 0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(23, 17, 15, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, #fff3d4, #cdf9f6);
  background-size: 22px 22px, 22px 22px, auto;
  overflow: hidden;
}

.route {
  position: absolute;
  height: 10px;
  border: 2px solid var(--line);
  border-radius: 999px;
  transform-origin: left center;
}

.route-a {
  width: 68%;
  left: 11%;
  top: 52%;
  background: var(--red);
  transform: rotate(-15deg);
}

.route-b {
  width: 58%;
  left: 21%;
  top: 36%;
  background: var(--yellow);
  transform: rotate(24deg);
}

.route-c {
  width: 48%;
  left: 26%;
  top: 67%;
  background: var(--green);
  transform: rotate(5deg);
}

.node {
  position: absolute;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: #17110f;
  font-family: var(--font-display);
  box-shadow: 4px 4px 0 var(--line);
}

.node-delhi { left: 8%; top: 20%; background: var(--pink); }
.node-jaipur { right: 18%; top: 17%; background: var(--yellow); }
.node-up { right: 10%; bottom: 15%; background: var(--cyan); }
.node-mp { left: 22%; bottom: 12%; background: var(--green); }

.status-stack {
  position: absolute;
  inset: auto 24px 24px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.fleet-card {
  min-height: 132px;
  padding: 14px;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  color: #17110f;
  box-shadow: 5px 5px 0 var(--line);
}

.fleet-card span,
.fleet-card small {
  display: block;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.fleet-card strong {
  display: block;
  margin: 10px 0 16px;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1;
}

.fleet-card.expired { background: var(--red); }
.fleet-card.warning { background: var(--yellow); }
.fleet-card.valid { background: var(--green); }

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(286px, 42vw);
  min-width: 230px;
  min-height: 440px;
  padding: 22px;
  border: 9px solid #17110f;
  border-radius: 32px;
  background: #12100f;
  color: #fff8e8;
  box-shadow: -12px 18px 0 rgba(23, 17, 15, 0.45);
}

.phone-status {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.phone-status span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
}

.phone h2 {
  margin: 0;
  color: #fff8e8;
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 0.95;
}

.phone p {
  color: #d7c8ad;
  font-size: 14px;
  font-weight: 800;
}

.phone-meter {
  height: 18px;
  margin: 24px 0;
  border: 2px solid #fff8e8;
  border-radius: 999px;
  overflow: hidden;
}

.phone-meter span {
  display: block;
  width: var(--value);
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--green));
}

.phone ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.phone li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 248, 232, 0.28);
  border-radius: var(--radius);
  font-size: 12px;
}

.ticker {
  border-block: 3px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 24s linear infinite;
}

.ticker span {
  padding: 18px 28px;
  border-right: 2px solid color-mix(in srgb, var(--paper) 35%, transparent);
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 48px);
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: clamp(54px, 8vw, 118px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.32fr) minmax(0, 0.68fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 34px;
}

.section-heading h2,
.command-copy h2,
.download-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 92px);
  line-height: 0.95;
  text-transform: uppercase;
}

.feature-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, auto);
  gap: 16px;
}

.feature-tile {
  position: relative;
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--line);
  overflow: hidden;
}

.feature-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 45%, rgba(23, 17, 15, 0.12) 45% 55%, transparent 55%),
    radial-gradient(circle at 82% 18%, rgba(23, 17, 15, 0.14) 0 12%, transparent 13%);
  pointer-events: none;
}

.feature-tile.tall {
  grid-row: span 2;
  background: linear-gradient(160deg, var(--yellow), var(--orange));
  color: #17110f;
}

.feature-tile.wide {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
}

.feature-tile.hot {
  background: var(--red);
  color: #fff;
}

.feature-tile.cool {
  background: var(--cyan);
  color: #17110f;
}

.feature-tile.dark {
  background: #17110f;
  color: #fff8e8;
}

.tile-index {
  position: absolute;
  top: 14px;
  right: 16px;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  opacity: 0.36;
}

.feature-tile h3 {
  position: relative;
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 48px);
  line-height: 0.95;
  text-transform: uppercase;
}

.feature-tile p {
  position: relative;
  max-width: 560px;
  margin: 0;
  font-weight: 800;
}

.command-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 34px;
  border-block: 3px solid var(--line);
  background: var(--paper-2);
}

.command-copy p:not(.eyebrow) {
  max-width: 580px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.workflow-grid article {
  min-height: 210px;
  padding: 20px;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 7px 7px 0 var(--line);
}

.workflow-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--pink);
  color: #17110f;
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.workflow-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 0.95;
  text-transform: uppercase;
}

.workflow-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.tech-section {
  overflow: hidden;
}

.tech-marquee {
  width: max-content;
  margin-bottom: 28px;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(52px, 10vw, 148px);
  line-height: 0.82;
  text-transform: uppercase;
  -webkit-text-stroke: 2px var(--line);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tech-grid article {
  min-height: 190px;
  padding: 20px;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--paper), var(--paper-2));
  box-shadow: 6px 6px 0 var(--line);
}

.tech-grid small,
.release-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
  text-transform: uppercase;
}

.tech-grid strong {
  display: block;
  margin: 12px 0;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 0.95;
  text-transform: uppercase;
}

.tech-grid span {
  color: var(--muted);
  font-weight: 800;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 34px;
  align-items: center;
  border-top: 3px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 224, 75, 0.84), rgba(255, 79, 184, 0.72)),
    var(--paper);
}

.download-section p:not(.eyebrow) {
  max-width: 760px;
  font-size: 19px;
  font-weight: 800;
}

.download-card {
  padding: 26px;
  border: 4px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.download-card strong {
  display: block;
  margin: 10px 0 18px;
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 0.95;
}

.download-card ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  margin: 0 0 24px;
  font-weight: 900;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(220px, 0.6fr);
  gap: 24px;
  align-items: start;
  padding: 34px clamp(18px, 5vw, 72px);
  border-top: 3px solid var(--line);
  background: #17110f;
  color: #fff8e8;
}

.site-footer strong {
  font-family: var(--font-display);
  font-size: 34px;
}

.site-footer p {
  margin: 8px 0 0;
  color: #d7c8ad;
  font-weight: 800;
}

.site-footer nav {
  display: grid;
  gap: 8px;
}

.site-footer a {
  color: #fff8e8;
  font-weight: 900;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
}

.credit {
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: auto auto auto;
  }

  .brand {
    order: 1;
  }

  .header-actions {
    order: 2;
  }

  .menu-toggle {
    order: 3;
  }

  .site-nav {
    order: 4;
    position: fixed;
    inset: 76px 16px auto 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: grid;
    justify-self: end;
  }

  .hero,
  .command-section,
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 590px;
  }

  .feature-board,
  .tech-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-tile.tall {
    grid-row: span 1;
  }
}

@media (max-width: 720px) {
  .site-header {
    gap: 10px;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-visual {
    min-height: auto;
  }

  .dashboard-shell {
    min-height: 600px;
  }

  .map-panel {
    inset: 68px 16px 308px;
  }

  .status-stack {
    inset: auto 16px 188px 16px;
    grid-template-columns: 1fr;
  }

  .fleet-card {
    min-height: 84px;
  }

  .fleet-card strong {
    margin: 7px 0 7px;
    font-size: 24px;
  }

  .phone {
    position: relative;
    width: calc(100% - 32px);
    min-width: 0;
    min-height: 330px;
    margin: -160px 16px 0;
  }

  .section-heading,
  .workflow-grid,
  .feature-board,
  .tech-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .feature-tile.wide {
    grid-column: span 1;
  }

  .hero-actions .button {
    width: 100%;
  }

  .credit {
    text-align: left;
  }
}

@media (max-width: 460px) {
  .header-actions .icon-button {
    display: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 21px;
  }

  h1 {
    font-size: 68px;
  }

  .hero-lede {
    font-size: 21px;
  }

  .dashboard-shell {
    min-height: 560px;
  }

  .phone {
    margin-top: -150px;
  }
}
