:root {
  color-scheme: dark;
  --bg: #0c0d0b;
  --surface: #141612;
  --surface-2: #1d2119;
  --text: #f4f7ee;
  --muted: #aeb7a5;
  --line: rgba(244, 247, 238, 0.14);
  --accent: #9dff6f;
  --accent-2: #62d7ff;
  --warn: #ffd36a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --nav-width: 286px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 82% 18%, rgba(98, 215, 255, 0.16), transparent 32%),
    linear-gradient(135deg, #0c0d0b 0%, #171c13 52%, #101219 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--nav-width) minmax(0, 1fr);
}

.side-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-right: 1px solid var(--line);
  background: rgba(12, 13, 11, 0.78);
  backdrop-filter: blur(20px);
}

.brand {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #0c0d0b;
  background: var(--accent);
  font-size: 0.88rem;
}

.rail {
  display: grid;
  gap: 8px;
}

.rail-link,
.bottom-link {
  border: 0;
  cursor: pointer;
  background: transparent;
}

.rail-link {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  color: var(--muted);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.rail-link:hover,
.rail-link:focus-visible,
.rail-link.is-active {
  color: var(--text);
  background: rgba(244, 247, 238, 0.08);
}

.rail-link:active,
.bottom-link:active,
.drawer-actions a:active,
.drawer-actions button:active {
  transform: scale(0.97);
}

.icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav-status {
  margin-top: auto;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 22px rgba(157, 255, 111, 0.75);
}

.content {
  min-width: 0;
  padding: 42px clamp(22px, 5vw, 72px) 48px;
}

.view {
  animation: viewIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero {
  min-height: min(720px, calc(100vh - 84px));
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 1.12fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 0.77rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 7.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  max-width: 560px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.7;
}

.hero-actions,
.store-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-button,
.secondary-button {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 800;
}

.primary-button {
  color: #0c0d0b;
  background: var(--accent);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(244, 247, 238, 0.04);
}

.device-stage {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.phone {
  width: min(380px, 88vw);
  aspect-ratio: 0.52;
  padding: 16px;
  border: 1px solid rgba(244, 247, 238, 0.2);
  border-radius: 34px;
  background: linear-gradient(160deg, #20251b, #0b0d0a);
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
}

.phone-screen {
  height: 100%;
  padding: 20px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(157, 255, 111, 0.16), transparent 34%),
    #10120f;
}

.screen-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.screen-copy {
  margin-top: 52px;
}

.screen-copy strong {
  display: block;
  max-width: 240px;
  font-size: 2.3rem;
  line-height: 1;
}

.screen-copy span {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.gesture-strip {
  margin-top: 42px;
  display: grid;
  gap: 12px;
}

.gesture-item {
  min-height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(244, 247, 238, 0.1);
  border-radius: 8px;
  background: rgba(244, 247, 238, 0.06);
}

.gesture-item:first-child {
  color: #0c0d0b;
  background: var(--accent);
}

.phone-nav {
  margin-top: 34px;
  min-height: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  border: 1px solid rgba(244, 247, 238, 0.11);
  border-radius: 20px;
  background: rgba(12, 13, 11, 0.9);
}

.phone-nav span {
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.phone-nav .active-pill {
  color: #0c0d0b;
  background: var(--accent);
  border-radius: 999px;
  padding: 11px 0;
}

.signal {
  position: absolute;
  right: 4%;
  bottom: 16%;
  width: min(250px, 36vw);
  padding: 18px;
  border: 1px solid rgba(244, 247, 238, 0.16);
  border-radius: 8px;
  background: rgba(12, 13, 11, 0.76);
  backdrop-filter: blur(18px);
  animation: floatSignal 3.8s ease-in-out infinite;
}

.signal strong {
  display: block;
  color: var(--accent-2);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.signal span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.section {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.section h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1;
}

.touch-grid,
.store-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.touch-cell,
.store-cell {
  min-height: 172px;
  padding: 22px;
  background: rgba(12, 13, 11, 0.92);
}

.touch-cell span,
.store-cell span {
  color: var(--accent);
  font-weight: 800;
}

.touch-cell h3,
.store-cell h3 {
  margin: 28px 0 10px;
  font-size: 1.2rem;
}

.touch-cell p,
.store-cell p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.store-hero {
  min-height: calc(100vh - 84px);
  display: grid;
  align-content: center;
}

.store-panel {
  max-width: 980px;
}

.store-title {
  font-size: clamp(2.6rem, 7vw, 6.8rem);
}

.config-readout {
  margin-top: 36px;
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.readout-row {
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(12, 13, 11, 0.92);
}

.readout-row span:first-child {
  color: var(--muted);
}

.readout-row strong {
  text-align: right;
}

.active-badge {
  color: #0c0d0b;
  background: var(--accent);
  border-radius: 999px;
  padding: 7px 12px;
}

.bottom-nav {
  display: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(0, 0, 0, 0.54);
  opacity: 0;
  transition: opacity 180ms ease;
}

.drawer-backdrop.is-open {
  opacity: 1;
}

.touch-drawer {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 40;
  width: min(520px, calc(100vw - 24px));
  padding: 10px 14px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 22, 18, 0.96);
  box-shadow: var(--shadow);
  transform: translate(-50%, calc(100% + 28px));
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.touch-drawer.is-open {
  transform: translate(-50%, 0);
}

.drawer-handle {
  width: 54px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(244, 247, 238, 0.28);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-head p {
  margin: 0;
  font-weight: 800;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(244, 247, 238, 0.04);
  cursor: pointer;
  font-size: 1.3rem;
}

.drawer-actions {
  margin-top: 14px;
  display: grid;
  gap: 8px;
}

.drawer-actions a,
.drawer-actions button {
  min-height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(244, 247, 238, 0.05);
  cursor: pointer;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatSignal {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@media (max-width: 980px) {
  .shell {
    display: block;
  }

  .side-nav {
    display: none;
  }

  .content {
    padding: 24px 18px 108px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .device-stage {
    min-height: 520px;
  }

  .phone {
    transform: rotate(0deg);
  }

  .signal {
    right: 0;
    bottom: 4%;
    width: min(230px, 62vw);
  }

  .touch-grid,
  .store-grid {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 20;
    min-height: 72px;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(12, 13, 11, 0.9);
    backdrop-filter: blur(20px);
  }

  .bottom-link {
    display: grid;
    place-items: center;
    gap: 3px;
    border-radius: 8px;
    color: var(--muted);
    transition: color 160ms ease, background 160ms ease, transform 160ms ease;
  }

  .bottom-link.is-active {
    color: #0c0d0b;
    background: var(--accent);
  }

  .bottom-icon {
    font-size: 1.08rem;
    line-height: 1;
  }

  .bottom-link span:last-child {
    font-size: 0.72rem;
    font-weight: 800;
  }
}

@media (max-width: 560px) {
  h1,
  .store-title {
    font-size: clamp(2.8rem, 16vw, 4.8rem);
  }

  .phone {
    width: min(340px, 92vw);
  }

  .screen-copy strong {
    font-size: 1.9rem;
  }

  .readout-row {
    min-height: 66px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .readout-row strong {
    text-align: left;
  }
}
