/* ==========================================================================
   RadiusMaps — Material 3 Dark Theme Stylesheet
   ========================================================================== */

:root {
  /* M3 Surfaces */
  --bg: #0b0f17;
  --surface: #121824;
  --surface-container: #182030;
  --surface-container-high: #202a3e;
  --surface-container-highest: #28344c;

  /* M3 Brand & Semantic Accents */
  --primary: #a8c7fa;
  --on-primary: #062e6f;
  --primary-container: #1d428a;
  --on-primary-container: #d3e3fd;

  --gold: #f5b727;
  --gold-container: rgba(245, 183, 39, 0.14);

  --green: #34d399;
  --green-container: #113826;
  --on-green-container: #a7f3d0;

  --error: #f87171;
  --error-container: rgba(248, 113, 113, 0.14);

  /* Text & Outlines */
  --text: #eef2f8;
  --text-muted: #9aa7bd;
  --text-subtle: #6f7d95;
  --outline: rgba(168, 199, 250, 0.14);
  --outline-strong: rgba(168, 199, 250, 0.28);

  /* M3 Motion & Shape */
  --ease-emphasized: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 9999px;

  /* Elevation */
  --shadow-sm: 0 4px 16px rgba(3, 6, 14, 0.35);
  --shadow-md: 0 12px 32px rgba(3, 6, 14, 0.48);
  --shadow-lg: 0 24px 64px rgba(2, 5, 12, 0.68);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  background-color: var(--bg);
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  font-family: inherit;
  color: inherit;
  text-decoration: none;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.container {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

/* Skip link & focus accessibility */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* ==========================================================================
   M3 Top App Bar (Header)
   ========================================================================== */

.top-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  background: rgba(11, 15, 23, 0.78);
  border-bottom: 1px solid var(--outline);
  transition: background-color 0.25s var(--ease-standard), box-shadow 0.25s var(--ease-standard);
}

.top-bar.scrolled {
  background: rgba(15, 21, 33, 0.92);
  box-shadow: var(--shadow-sm);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-name span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  padding: 0.5rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease-standard), background-color 0.2s var(--ease-standard);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(168, 199, 250, 0.1);
}

.nav-link.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--outline);
  background: var(--surface-container);
  color: var(--text);
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.75rem 1rem 1.25rem;
  background: var(--surface);
  border-bottom: 1px solid var(--outline);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer .nav-link {
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   M3 Buttons & Chips + Ink Ripple
   ========================================================================== */

.m3-btn,
.m3-chip,
.tab-btn {
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.m3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 46px;
  padding: 0 1.4rem;
  border-radius: var(--radius-pill);
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-emphasized), box-shadow 0.25s var(--ease-emphasized),
    background-color 0.2s var(--ease-standard), border-color 0.2s var(--ease-standard);
}

.m3-btn:hover {
  transform: translateY(-2px);
}

.m3-btn:active {
  transform: translateY(0) scale(0.98);
}

.m3-btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 8px 24px rgba(168, 199, 250, 0.2);
}

.m3-btn-primary:hover {
  background: #bdd6fc;
  box-shadow: 0 12px 28px rgba(168, 199, 250, 0.28);
}

.m3-btn-tonal {
  background: var(--surface-container-high);
  color: var(--on-primary-container);
  border-color: var(--outline);
}

.m3-btn-tonal:hover {
  background: var(--surface-container-highest);
  border-color: var(--outline-strong);
}

.m3-btn-sm {
  height: 38px;
  padding: 0 1.05rem;
  font-size: 0.85rem;
}

.m3-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.95rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--outline);
  background: var(--surface-container);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s var(--ease-emphasized);
}

.m3-chip:hover {
  color: var(--text);
  background: var(--surface-container-high);
  border-color: var(--outline-strong);
}

.m3-chip.active {
  background: var(--primary-container);
  color: var(--on-primary-container);
  border-color: rgba(168, 199, 250, 0.42);
  box-shadow: 0 4px 16px rgba(29, 66, 138, 0.35);
}

.ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.25);
  animation: ripple-anim 0.55s var(--ease-standard) forwards;
  pointer-events: none;
}

@keyframes ripple-anim {
  to {
    transform: scale(3.2);
    opacity: 0;
  }
}

/* ==========================================================================
   Hero Section & Animated Canvas
   ========================================================================== */

.hero {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--outline);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.8;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(29, 66, 138, 0.26), transparent 46%),
    radial-gradient(circle at 82% 35%, rgba(245, 183, 39, 0.11), transparent 42%),
    radial-gradient(circle at 60% 88%, rgba(52, 211, 153, 0.08), transparent 45%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--surface-container);
  border: 1px solid var(--outline-strong);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.35rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: pulse-dot 2.4s infinite;
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

.hero-title {
  font-size: clamp(2.15rem, 4.1vw, 3.35rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1.15rem;
}

.hero-title .accent {
  color: var(--gold);
}

.hero-lead {
  font-size: 1.07rem;
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 1.1rem;
}

.hero-rotator {
  min-height: 208px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.36s var(--ease-standard), transform 0.36s var(--ease-emphasized);
}

.hero-rotator.is-fading {
  opacity: 0;
  transform: translateY(8px);
}

.hero-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.55rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: var(--radius-pill);
  border: none;
  background: rgba(168, 199, 250, 0.25);
  cursor: pointer;
  transition: width 0.35s var(--ease-emphasized), background-color 0.25s var(--ease-standard);
}

.hero-dot:hover {
  background: rgba(168, 199, 250, 0.55);
}

.hero-dot.active {
  width: 24px;
  background: var(--gold);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.spec-item {
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(24, 32, 48, 0.78);
  border: 1px solid var(--outline);
  backdrop-filter: blur(8px);
}

.spec-value {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.spec-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* Hero Phone Showcase */
.hero-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.phone-frame {
  position: relative;
  width: min(300px, 100%);
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(155deg, #2b354b 0%, #141b28 48%, #0d121c 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(168, 199, 250, 0.08);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #090d14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 4;
}

.phone-screen-wrap {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #090d14;
  aspect-ratio: 9 / 19.5;
}

.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.28s var(--ease-emphasized), transform 0.35s var(--ease-emphasized);
}

.phone-screen.switching {
  opacity: 0.25;
  transform: scale(0.985);
}

/* Floating telemetry badges around hero phone */
.telemetry-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.52rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(18, 24, 36, 0.92);
  border: 1px solid var(--outline-strong);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  z-index: 5;
  transition: transform 0.35s var(--ease-emphasized), opacity 0.25s var(--ease-standard);
}

.telemetry-pill-top {
  top: 11%;
  left: -6%;
  animation: float-slow 5.5s ease-in-out infinite;
}

.telemetry-pill-bottom {
  bottom: 14%;
  right: -6%;
  animation: float-slow 6.2s ease-in-out infinite reverse;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pill-dot-green {
  background: var(--green);
}

.pill-dot-gold {
  background: var(--gold);
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.hero-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

/* ==========================================================================
   Banner Card Strip
   ========================================================================== */

.banner-section {
  padding: 2.5rem 0 1rem;
}

.banner-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.75rem;
  align-items: center;
  padding: 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-sm);
}

.banner-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.banner-media img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.banner-copy {
  padding: 0.5rem 0.75rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.banner-copy h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin-bottom: 0.7rem;
}

.banner-copy p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section {
  padding: 4.5rem 0;
}

.section-header {
  max-width: 68ch;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ==========================================================================
   M3 Bento Grid — All Capabilities & Benefits
   ========================================================================== */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.15rem;
}

.feature-card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  padding: 1.55rem;
  border-radius: var(--radius-lg);
  background: var(--surface-container);
  border: 1px solid var(--outline);
  transition: transform 0.3s var(--ease-emphasized), border-color 0.25s var(--ease-standard),
    background-color 0.25s var(--ease-standard), box-shadow 0.3s var(--ease-emphasized);
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--surface-container-high);
  border-color: var(--outline-strong);
  box-shadow: var(--shadow-md);
}

.feature-card.wide {
  grid-column: span 6;
}

.feature-card-top {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(168, 199, 250, 0.12);
  color: var(--primary);
  border: 1px solid rgba(168, 199, 250, 0.2);
}

.icon-badge.gold {
  background: var(--gold-container);
  color: var(--gold);
  border-color: rgba(245, 183, 39, 0.28);
}

.icon-badge.green {
  background: var(--green-container);
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.28);
}

.icon-badge.red {
  background: var(--error-container);
  color: var(--error);
  border-color: rgba(248, 113, 113, 0.28);
}

.feature-card h3 {
  font-size: 1.14rem;
  font-weight: 700;
  color: #ffffff;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.benefit-box {
  padding: 0.82rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(11, 15, 23, 0.55);
  border: 1px solid rgba(168, 199, 250, 0.1);
  font-size: 0.88rem;
  color: var(--on-primary-container);
}

.benefit-box strong {
  color: var(--green);
  font-weight: 700;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.52rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-list li {
  position: relative;
  padding-left: 1rem;
  line-height: 1.5;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.roadmap-card {
  margin-top: 1.35rem;
  padding: 1.55rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(245, 183, 39, 0.08) 0%, var(--surface-container) 55%);
  border: 1px solid rgba(245, 183, 39, 0.28);
}

.roadmap-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.roadmap-head h3 {
  font-size: 1.16rem;
  color: #ffffff;
}

.roadmap-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 1.25rem;
}

.roadmap-grid li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(11, 15, 23, 0.48);
  border: 1px solid var(--outline);
  font-size: 0.89rem;
  color: var(--on-primary-container);
}

.roadmap-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 0.48rem;
  flex-shrink: 0;
}

/* ==========================================================================
   Deep-Dive Tabbed Showcase
   ========================================================================== */

.deep-dive-section {
  background: linear-gradient(180deg, rgba(18, 24, 36, 0.55) 0%, rgba(11, 15, 23, 0) 100%);
  border-top: 1px solid var(--outline);
  border-bottom: 1px solid var(--outline);
}

.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2rem;
  padding: 0.45rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--outline);
  width: fit-content;
  max-width: 100%;
}

.tab-btn {
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-emphasized);
}

.tab-btn:hover {
  color: var(--text);
  background: rgba(168, 199, 250, 0.08);
}

.tab-btn.active {
  background: var(--primary);
  color: var(--on-primary);
}

.deep-dive-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: center;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-md);
}

.deep-dive-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.deep-dive-thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.thumb-pill {
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--outline);
  background: var(--surface-container);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease-standard);
}

.thumb-pill:hover {
  color: var(--text);
  border-color: var(--outline-strong);
}

.thumb-pill.active {
  background: var(--surface-container-highest);
  color: var(--primary);
  border-color: var(--primary);
}

.deep-dive-content h3 {
  font-size: 1.55rem;
  margin-bottom: 0.75rem;
}

.deep-dive-summary {
  color: var(--text-muted);
  margin-bottom: 1.35rem;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--surface-container);
  border: 1px solid var(--outline);
  font-size: 0.92rem;
}

.detail-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--green-container);
  color: var(--green);
}

.detail-list strong {
  color: #ffffff;
}

.deep-dive-note {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(29, 66, 138, 0.22);
  border: 1px solid rgba(168, 199, 250, 0.22);
  color: var(--on-primary-container);
  font-size: 0.88rem;
}

/* ==========================================================================
   Roles Grid ("Kellele")
   ========================================================================== */

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.role-card {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--surface-container);
  border: 1px solid var(--outline);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.28s var(--ease-emphasized), border-color 0.25s var(--ease-standard);
}

.role-card:hover {
  transform: translateY(-3px);
  border-color: var(--outline-strong);
}

.role-card h3 {
  font-size: 1.16rem;
}

.role-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

.role-points {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
  color: var(--on-primary-container);
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* ==========================================================================
   Screenshots Gallery & Lightbox
   ========================================================================== */

/* Tablet Showcase (4-up row + compact bottom Portrait <-> Landscape Roadbook card) */
.tablet-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.15rem;
}

.tablet-mini-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--surface-container);
  border: 1px solid var(--outline);
  cursor: pointer;
  transition: transform 0.28s var(--ease-emphasized), border-color 0.25s var(--ease-standard),
    background-color 0.25s var(--ease-standard), box-shadow 0.28s var(--ease-emphasized);
}

.tablet-mini-card:hover {
  transform: translateY(-4px);
  background: var(--surface-container-high);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.tablet-mini-thumb {
  border-radius: 12px;
  overflow: hidden;
  background: #090d14;
  aspect-ratio: 10 / 13.5;
  margin-bottom: 0.75rem;
}

.tablet-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s var(--ease-emphasized);
}

.tablet-mini-card:hover .tablet-mini-thumb img {
  transform: scale(1.03);
}

.tablet-mini-label {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
}

.tablet-roadbook-wrap {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
}

.tablet-roadbook-col {
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--surface-container);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-sm);
}

.tablet-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.tablet-bar-title {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.tablet-bar-title strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.94rem;
  color: #ffffff;
}

.tablet-bar-title span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.tablet-orient-pills {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: var(--radius-pill);
  background: rgba(11, 15, 23, 0.65);
  border: 1px solid var(--outline);
}

.tablet-orient-btn {
  padding: 0.26rem 0.62rem;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease-emphasized);
}

.tablet-orient-btn.active {
  background: var(--primary);
  color: var(--on-primary);
}

.tablet-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 232px;
  padding: 0.25rem 0;
  perspective: 900px;
}

.tablet-frame {
  position: relative;
  width: 140px;
  height: 218px;
  padding: 7px;
  border-radius: 18px;
  background: linear-gradient(155deg, #2b354b 0%, #141b28 50%, #0c111a 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(168, 199, 250, 0.1);
  cursor: pointer;
  transition: width 0.7s var(--ease-emphasized), height 0.7s var(--ease-emphasized),
    transform 0.7s var(--ease-emphasized), border-color 0.25s var(--ease-standard);
}

.tablet-frame:hover {
  border-color: var(--primary);
}

.tablet-frame.is-landscape {
  width: min(272px, 100%);
  height: 170px;
}

.tablet-frame.is-morphing {
  transform: scale(0.95) rotateZ(2.2deg);
}

.tablet-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 11px;
  overflow: hidden;
  background: #090d14;
}

.tablet-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 0.45s var(--ease-standard);
}

.tablet-img-landscape {
  opacity: 0;
}

.tablet-frame.is-landscape .tablet-img-portrait {
  opacity: 0;
}

.tablet-frame.is-landscape .tablet-img-landscape {
  opacity: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.15rem;
}

.shot-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--surface-container);
  border: 1px solid var(--outline);
  cursor: pointer;
  transition: transform 0.28s var(--ease-emphasized), border-color 0.25s var(--ease-standard),
    background-color 0.25s var(--ease-standard), box-shadow 0.28s var(--ease-emphasized);
}

.shot-card:hover {
  transform: translateY(-4px);
  background: var(--surface-container-high);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.shot-thumb {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #090d14;
  aspect-ratio: 9 / 17;
  margin-bottom: 0.85rem;
}

.shot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s var(--ease-emphasized);
}

.shot-card:hover .shot-thumb img {
  transform: scale(1.03);
}

.shot-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.shot-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.shot-caption {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(6, 9, 15, 0.88);
  backdrop-filter: blur(14px);
}

.lightbox.open {
  display: flex;
}

.lightbox-dialog {
  position: relative;
  width: min(1040px, 100%);
  max-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr);
  gap: 1.75rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--outline-strong);
  box-shadow: var(--shadow-lg);
}

/* Web Portal Gallery Block (Last in #galerii) */
.portal-showcase {
  margin-top: 2.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--outline);
}

.portal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.portal-header h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  color: #ffffff;
  margin-top: 0.25rem;
}

.portal-header p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.portal-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background: var(--surface-container);
  border: 1px solid var(--outline);
  cursor: pointer;
  transition: transform 0.28s var(--ease-emphasized), border-color 0.25s var(--ease-standard),
    background-color 0.25s var(--ease-standard), box-shadow 0.28s var(--ease-emphasized);
}

.portal-card:hover {
  transform: translateY(-4px);
  background: var(--surface-container-high);
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}

.portal-thumb {
  border-radius: 12px;
  overflow: hidden;
  background: #090d14;
  aspect-ratio: 16 / 10;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.portal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s var(--ease-emphasized);
}

.portal-card:hover .portal-thumb img {
  transform: scale(1.03);
}

.portal-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 0.2rem;
}

.portal-card.win:hover {
  border-color: var(--primary);
}

.portal-tag.win {
  color: var(--primary);
}

.lightbox-img-wrap {
  max-height: 78vh;
  border-radius: 18px;
  overflow: hidden;
  background: #090d14;
  display: flex;
  justify-content: center;
  border: 1px solid var(--outline);
}

.lightbox-img-wrap img {
  max-height: 78vh;
  width: auto;
  object-fit: contain;
}

.lightbox-meta h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.lightbox-meta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.lightbox-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--outline);
  background: var(--surface-container-high);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: var(--surface-container-highest);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--outline);
  padding: 2.5rem 0;
  background: #080b11;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-brand p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

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

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-subtle);
}

/* ==========================================================================
   M3 Scroll Reveal Animation
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-emphasized), transform 0.6s var(--ease-emphasized);
}

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

/* ==========================================================================
   Pricing Section (#hind)
   ========================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-bottom: 1.35rem;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.15rem;
  padding: 1.55rem;
  border-radius: var(--radius-lg);
  background: var(--surface-container);
  border: 1px solid var(--outline);
  transition: transform 0.28s var(--ease-emphasized), border-color 0.25s var(--ease-standard),
    background-color 0.25s var(--ease-standard), box-shadow 0.28s var(--ease-emphasized);
}

.price-card:hover {
  transform: translateY(-4px);
  background: var(--surface-container-high);
  border-color: var(--outline-strong);
  box-shadow: var(--shadow-md);
}

.price-card.featured {
  background: linear-gradient(165deg, rgba(29, 66, 138, 0.34) 0%, var(--surface-container) 62%);
  border-color: rgba(245, 183, 39, 0.48);
  box-shadow: 0 14px 36px rgba(2, 5, 12, 0.52);
}

.price-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.price-plan {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.price-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 700;
  background: var(--gold-container);
  color: var(--gold);
  border: 1px solid rgba(245, 183, 39, 0.35);
}

.price-value-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.6rem 0 0.25rem;
}

.price-amount {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  line-height: 1;
}

.price-period {
  font-size: 0.94rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price-sub {
  font-size: 0.84rem;
  color: var(--primary);
  margin-bottom: 0.85rem;
}

.price-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.88rem;
  color: var(--on-primary-container);
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.price-features svg {
  color: var(--green);
  flex-shrink: 0;
}

.price-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--outline);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.price-note strong {
  color: #ffffff;
}

/* ==========================================================================
   Download Section (#allalaadimine)
   ========================================================================== */

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.download-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.55rem;
  border-radius: var(--radius-lg);
  background: var(--surface-container);
  border: 1px solid var(--outline);
  transition: transform 0.28s var(--ease-emphasized), border-color 0.25s var(--ease-standard),
    background-color 0.25s var(--ease-standard), box-shadow 0.28s var(--ease-emphasized);
}

.download-card:hover {
  transform: translateY(-4px);
  background: var(--surface-container-high);
  border-color: var(--outline-strong);
  box-shadow: var(--shadow-md);
}

.download-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.platform-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.platform-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--green-container);
  color: #3ddc84;
  border: 1px solid rgba(61, 220, 132, 0.3);
}

.platform-icon.windows {
  background: rgba(29, 66, 138, 0.45);
  color: var(--primary);
  border-color: rgba(168, 199, 250, 0.34);
}

.platform-icon.web {
  background: var(--gold-container);
  color: var(--gold);
  border-color: rgba(245, 183, 39, 0.34);
}

.status-pill.beta {
  background: var(--gold-container);
  color: var(--gold);
  border-color: rgba(245, 183, 39, 0.36);
}

.download-card h3 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.download-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.72rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(11, 15, 23, 0.65);
  border: 1px solid var(--outline-strong);
  color: var(--text-muted);
  white-space: nowrap;
}

.download-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.download-btn {
  width: 100%;
  justify-content: space-between;
  padding: 0 1.25rem;
  height: 50px;
  border-radius: 16px;
}

.download-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.download-meta-box {
  padding: 0.78rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(11, 15, 23, 0.55);
  border: 1px solid rgba(168, 199, 250, 0.1);
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.download-meta-box strong {
  color: var(--on-primary-container);
  font-weight: 600;
}

/* M3 Snackbar */
.m3-snackbar {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 16px);
  z-index: 140;
  padding: 0.85rem 1.35rem;
  border-radius: 14px;
  background: #232d42;
  color: #ffffff;
  border: 1px solid var(--outline-strong);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-standard), transform 0.25s var(--ease-emphasized);
}

.m3-snackbar.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ==========================================================================
   Privacy Policy Page (/privaatsuspoliitika)
   ========================================================================== */

.legal-main {
  padding: 3.5rem 0 5rem;
}

.legal-hero {
  max-width: 820px;
  margin-bottom: 2.25rem;
}

.legal-hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.legal-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.legal-card {
  max-width: 900px;
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--outline);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.legal-callout {
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-md);
  background: rgba(17, 56, 38, 0.35);
  border: 1px solid rgba(52, 211, 153, 0.28);
  color: var(--on-green-container);
  font-size: 0.94rem;
}

.legal-section h2 {
  font-size: 1.24rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.legal-section h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.1rem 0 0.45rem;
}

.legal-section p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
}

.legal-list {
  margin: 0.4rem 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.legal-list strong {
  color: var(--text);
}

.legal-section a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 980px) {
  .hero-grid,
  .banner-card,
  .deep-dive-panel {
    grid-template-columns: 1fr;
  }

  .tablet-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding: 2.75rem 0 3.5rem;
  }

  .spec-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roles-grid,
  .pricing-grid,
  .download-grid,
  .roadmap-grid,
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .legal-card {
    padding: 1.5rem;
  }

  .telemetry-pill-top {
    left: 0;
  }

  .telemetry-pill-bottom {
    right: 0;
  }

  .lightbox-dialog {
    grid-template-columns: 1fr;
    max-height: 92vh;
    overflow-y: auto;
  }

  .lightbox-img-wrap {
    max-height: 52vh;
  }

  .lightbox-img-wrap img {
    max-height: 52vh;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-actions .m3-btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .feature-card,
  .feature-card.wide {
    grid-column: span 12;
  }

  .tabs-bar {
    border-radius: var(--radius-md);
    width: 100%;
  }

  .tab-btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .m3-btn,
  .feature-card,
  .shot-card,
  .phone-screen,
  .telemetry-pill {
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
