/*
  Wavy FX Interactive public site styling.
  Local static public-site files only. No runtime app, no external dependencies, no protected system integration.
*/

:root {
  color-scheme: light;
  --page: #f4fbff;
  --page-tint: #dff8ff;
  --ocean-950: #05243f;
  --ocean-900: #07345d;
  --ocean-700: #0969b5;
  --ocean-600: #0788ea;
  --ocean-500: #0aa6ff;
  --ocean-300: #69dcff;
  --aqua-500: #18ccea;
  --aqua-300: #91f5ff;
  --gold-500: #ffb31a;
  --gold-100: #fff7d6;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --border-soft: rgba(10, 166, 255, 0.24);
  --border-strong: rgba(10, 166, 255, 0.5);
  --text: #07233d;
  --text-soft: #315a78;
  --text-muted: #66839a;
  --inverse: #ffffff;
  --brand-gradient: linear-gradient(135deg, #0788ea 0%, #18ccea 55%, #69dcff 100%);
  --hero-gradient: radial-gradient(circle at 18% 18%, rgba(145, 245, 255, 0.58), transparent 34%), linear-gradient(135deg, #07345d 0%, #0788ea 46%, #18ccea 100%);
  --gold-gradient: linear-gradient(135deg, #ffd44d 0%, #ffb31a 100%);
  --shadow-sm: 0 6px 18px rgba(5, 36, 63, 0.08);
  --shadow-md: 0 18px 42px rgba(5, 36, 63, 0.13);
  --shadow-lg: 0 26px 80px rgba(5, 36, 63, 0.18);
  --aqua-glow: 0 0 0 1px rgba(24, 204, 234, 0.35), 0 18px 48px rgba(24, 204, 234, 0.24);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --max: 1280px;
  --hero-max: 1360px;
  --space-page: clamp(18px, 3.5vw, 58px);
  --ease-water: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-emphasized: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(105, 220, 255, 0.42), transparent 30rem),
    linear-gradient(180deg, var(--page) 0%, #ffffff 52%, #eefbff 100%);
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(7, 136, 234, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 136, 234, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 72%);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ocean-900);
  box-shadow: var(--shadow-sm);
}

.skip-link:focus {
  top: 14px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: calc(var(--max) + 2 * var(--space-page));
  margin: 0 auto;
  padding: 16px var(--space-page);
  backdrop-filter: blur(18px) saturate(150%);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-icon,
.mini-logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--ocean-700);
  background: var(--surface-strong);
  box-shadow: var(--shadow-sm);
  font-weight: 900;
}

.brand-name,
.brand-sub {
  display: block;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.brand-sub {
  color: var(--ocean-700);
  font-size: 0.86rem;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.nav-links a,
.header-cta,
.button {
  text-decoration: none;
  border-radius: var(--radius-pill);
  font-weight: 800;
  transition: transform 220ms var(--ease-water), box-shadow 220ms var(--ease-water), background 220ms var(--ease-water);
}

.nav-links a {
  padding: 10px 13px;
  color: var(--text-soft);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--surface-glass);
  transform: translateY(-2px);
}

.header-cta,
.button-primary {
  padding: 12px 18px;
  color: var(--inverse);
  background: var(--brand-gradient);
  box-shadow: var(--aqua-glow);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-3px);
}

.button-secondary {
  padding: 12px 18px;
  color: var(--ocean-900);
  background: var(--surface-strong);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.82fr);
  gap: clamp(30px, 4vw, 64px);
  align-items: center;
  max-width: calc(var(--hero-max) + 2 * var(--space-page));
  min-height: calc(100vh - 84px);
  margin: 0 auto;
  padding: clamp(46px, 8vw, 110px) var(--space-page) clamp(56px, 8vw, 96px);
  overflow: hidden;
}

.hero-bg,
.wave,
.bubble {
  position: absolute;
  pointer-events: none;
}

.hero-bg {
  inset: 26px var(--space-page);
  border-radius: clamp(30px, 6vw, 56px);
  background: var(--hero-gradient);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.38) 46%, transparent 58%);
  transform: translateX(-90%);
  animation: shine 6s var(--ease-water) infinite;
}

.wave {
  left: -8%;
  right: -8%;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  filter: blur(1px);
}

.wave-one {
  bottom: -68px;
  transform: rotate(-2deg);
  animation: tide 7s var(--ease-water) infinite alternate;
}

.wave-two {
  bottom: -104px;
  background: rgba(255, 255, 255, 0.11);
  transform: rotate(3deg);
  animation: tide 9s var(--ease-water) infinite alternate-reverse;
}

.bubble {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  filter: blur(0.2px);
}

.bubble-one {
  right: 14%;
  top: 18%;
}

.bubble-two {
  width: 46px;
  height: 46px;
  left: 11%;
  bottom: 26%;
}

.bubble-three {
  width: 64px;
  height: 64px;
  right: 36%;
  bottom: 16%;
}

.hero-copy,
.hero-console {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ocean-700);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-brand {
  margin: 0;
  color: var(--inverse);
  letter-spacing: 0;
  text-shadow: 0 8px 0 rgba(5, 36, 63, 0.13), 0 24px 44px rgba(5, 36, 63, 0.2);
}

.hero-brand span {
  display: block;
}

.hero-brand-main {
  width: max-content;
  max-width: 100%;
  font-size: clamp(4.6rem, 10vw, 8.8rem);
  line-height: 0.88;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero-brand-sub {
  width: max-content;
  max-width: 100%;
  margin-top: clamp(8px, 1vw, 16px);
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(2.65rem, 5.4vw, 5.45rem);
  line-height: 0.94;
  text-transform: none;
}

.motto {
  margin: 22px 0 0;
  color: var(--inverse);
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  font-weight: 800;
  text-shadow: 0 12px 24px rgba(5, 36, 63, 0.18);
}

.tagline {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 800;
}

.hero-text {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
}

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

.hero-console {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(22px) saturate(150%);
}

.console-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 800;
}

.console-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--aqua-500);
}

.console-topbar span:nth-child(2) {
  background: var(--gold-500);
}

.console-topbar span:nth-child(3) {
  background: #10c783;
}

.console-topbar strong {
  margin-left: auto;
}

.console-card,
.phone-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: var(--surface-strong);
}

.console-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.console-label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.trigger-deck span,
.phone-trigger-grid span {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 15px;
  color: var(--ocean-900);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(233, 253, 255, 0.86));
  border: 1px solid var(--border-soft);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.trigger-deck span:first-child,
.phone-trigger-grid span:first-child {
  color: #704700;
  background: var(--gold-gradient);
  border-color: rgba(255, 179, 26, 0.46);
}

.media-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.media-strip span,
.phone-media-grid span {
  display: grid;
  place-items: end start;
  min-height: 74px;
  padding: 10px;
  border-radius: 16px;
  color: var(--inverse);
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.65), transparent 26%),
    linear-gradient(135deg, var(--ocean-700), var(--aqua-500));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  font-size: 0.78rem;
  font-weight: 900;
}

.media-strip span:nth-child(2),
.phone-media-grid span:nth-child(2) {
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.62), transparent 25%),
    linear-gradient(135deg, var(--gold-500), var(--ocean-500));
}

.media-strip span:nth-child(3),
.phone-media-grid span:nth-child(3) {
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.6), transparent 24%),
    linear-gradient(135deg, var(--ocean-950), var(--ocean-600));
}

.community-pulse {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 9px;
  margin-top: 12px;
}

.community-pulse div {
  position: relative;
  min-height: 78px;
  padding: 13px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: var(--surface-strong);
}

.community-pulse strong {
  display: block;
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.community-pulse span {
  display: block;
  margin-top: 6px;
  font-size: 1.2rem;
  font-weight: 900;
}

.community-pulse em {
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 13px;
  height: 8px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(10, 166, 255, 0.13);
}

.community-pulse em::after {
  content: "";
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: var(--gold-gradient);
}

.console-card p,
.phone-card p {
  margin: 2px 0 0;
  color: var(--text-soft);
}

.console-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--inverse);
  background: var(--brand-gradient);
  font-size: 1.9rem;
  font-weight: 900;
}

.status-pill,
.mini-chips span,
.roadmap span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill {
  margin-left: auto;
  padding: 8px 11px;
  color: #7a4d00;
  background: var(--gold-100);
  border: 1px solid rgba(255, 179, 26, 0.44);
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.console-grid div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(10, 166, 255, 0.1);
  border: 1px solid var(--border-soft);
}

.metric {
  display: block;
  font-size: 1.7rem;
  font-weight: 900;
  line-height: 1;
}

.console-grid span:last-child {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.console-flow {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.console-flow span {
  height: 9px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--ocean-500), var(--aqua-300));
  animation: pulseLine 2.8s var(--ease-water) infinite;
}

.console-flow span:nth-child(2) {
  animation-delay: 180ms;
}

.console-flow span:nth-child(3) {
  animation-delay: 360ms;
}

.section {
  max-width: calc(var(--max) + 2 * var(--space-page));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 106px) var(--space-page);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.compact {
  max-width: 680px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.section p {
  color: var(--text-soft);
}

.glass-grid,
.module-grid,
.roadmap {
  display: grid;
  gap: 18px;
}

.glass-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.glass-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.glass-card,
.module-card,
.beta-cta,
.roadmap article,
.panel-preview,
.phone-preview {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px) saturate(145%);
}

.glass-card,
.module-card,
.roadmap article {
  padding: 24px;
  transition: transform 260ms var(--ease-water), box-shadow 260ms var(--ease-water), border-color 260ms var(--ease-water);
}

.glass-card:hover,
.module-card:hover,
.roadmap article:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--aqua-glow);
}

.card-icon,
.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  color: var(--inverse);
  background: var(--brand-gradient);
  font-weight: 900;
}

.card-icon {
  min-width: 56px;
}

.glass-card h3,
.module-card h3,
.roadmap h3 {
  margin: 18px 0 8px;
  font-size: 1.28rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
}

.split.reverse {
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1fr);
}

.split-copy p {
  font-size: 1.03rem;
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-soft);
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-gradient);
  box-shadow: 0 0 0 4px rgba(255, 179, 26, 0.14);
}

.panel-preview {
  display: grid;
  grid-template-columns: 72px 1fr;
  min-height: 390px;
  overflow: hidden;
}

.panel-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, var(--ocean-950), var(--ocean-700));
}

.panel-sidebar span:not(.mini-logo) {
  height: 38px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
}

.panel-main {
  padding: 22px;
  background: linear-gradient(180deg, rgba(223, 248, 255, 0.92), rgba(255, 255, 255, 0.96));
}

.panel-hero {
  display: grid;
  place-items: center;
  min-height: 122px;
  border-radius: 24px;
  color: var(--inverse);
  background: var(--brand-gradient);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
}

.panel-row,
.panel-cards {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.panel-row {
  grid-template-columns: repeat(3, 1fr);
}

.panel-row span,
.panel-cards span {
  display: grid;
  place-items: center;
  padding: 10px;
  min-height: 46px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

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

.panel-cards span {
  min-height: 92px;
}

.phone-preview {
  max-width: 455px;
  margin-inline: auto;
  padding: 18px;
  border-radius: 42px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.82), transparent 32%),
    linear-gradient(180deg, rgba(5, 36, 63, 0.18), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.68);
}

.phone-screen {
  height: 720px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 34px;
  border: 8px solid var(--ocean-950);
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 249, 201, 0.48), transparent 22%),
    linear-gradient(180deg, #effcff 0%, #ffffff 42%, #fffbea 100%);
  box-shadow: var(--shadow-lg);
}

.phone-extension-banner {
  position: relative;
  min-height: 142px;
  display: grid;
  place-items: center;
  padding: 18px 50px 16px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 26% 8%, rgba(255, 255, 255, 0.34), transparent 20%),
    linear-gradient(135deg, #003d99 0%, #0788ea 48%, #22d5ec 100%);
  box-shadow: 0 18px 34px rgba(0, 126, 255, 0.28);
  overflow: hidden;
}

.phone-extension-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40px;
  background: linear-gradient(180deg, transparent, rgba(0, 69, 146, 0.24));
}

.phone-menu-bubble,
.phone-offline-pill,
.phone-demo-pill {
  position: absolute;
  z-index: 2;
  top: 16px;
}

.phone-menu-bubble {
  left: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #07518a;
  background: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
  font-weight: 1000;
  box-shadow: 0 10px 22px rgba(0, 40, 90, 0.18);
}

.phone-offline-pill,
.phone-demo-pill {
  right: 14px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--radius-pill);
  color: #00539b;
  background: rgba(255, 255, 255, 0.96);
  font-size: 0.68rem;
  font-weight: 1000;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 75, 145, 0.14);
}

.phone-brand-lockup {
  position: relative;
  z-index: 1;
  text-align: center;
}

.phone-brand-lockup strong {
  display: block;
  font-family: Impact, "Arial Black", Arial, sans-serif;
  font-size: clamp(2.7rem, 8vw, 3.9rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}

.phone-brand-lockup span {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
}

.phone-category-row {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  padding: 2px 0 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.phone-category {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(0, 126, 255, 0.18);
  border-radius: var(--radius-pill);
  color: var(--ocean-900);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 1000;
  box-shadow: 0 9px 18px rgba(0, 110, 210, 0.08);
  cursor: pointer;
}

.phone-category.active {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: linear-gradient(135deg, #007bff, #20d3ee);
  box-shadow: 0 12px 24px rgba(0, 126, 255, 0.25);
}

.phone-category b {
  margin-left: 4px;
  color: inherit;
  opacity: 0.82;
}

.phone-panel {
  display: none;
  flex: 1;
  overflow: auto;
  padding: 12px 6px 6px;
}

.phone-panel.active {
  display: block;
  animation: phonePanelIn 0.24s ease both;
}

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

.phone-page-kicker {
  margin: 0 0 4px;
  color: #006fbb;
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.phone-panel h3 {
  margin: 0 0 12px;
  color: var(--ocean-950);
  font-size: 1.35rem;
  line-height: 1.02;
}

.phone-welcome-card,
.phone-trigger-card,
.phone-bottle-card,
.phone-challenge-card,
.phone-event-card,
.phone-achievement-card,
.phone-support-goal,
.phone-leader-row {
  border: 1px solid rgba(0, 126, 255, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 28px rgba(0, 90, 170, 0.1);
}

.phone-welcome-card,
.phone-trigger-card,
.phone-challenge-card,
.phone-event-card,
.phone-achievement-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.phone-welcome-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(234, 250, 255, 0.95));
}

.phone-play-orb,
.phone-trigger-icon,
.phone-date-tile,
.phone-achievement-thumb,
.phone-wheel {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #008dff, #22d5ec);
  color: #fff;
  font-weight: 1000;
  box-shadow: 0 12px 22px rgba(0, 126, 255, 0.24);
}

.phone-trigger-icon.sound,
.phone-trigger-icon.wave {
  font-size: 1.6rem;
}

.phone-trigger-icon.music {
  color: #101827;
  background: linear-gradient(135deg, #ffd447, #ff9f1a);
  font-size: 2rem;
}

.phone-panel strong {
  display: block;
  color: var(--ocean-950);
  font-weight: 1000;
}

.phone-panel p {
  margin: 3px 0 8px;
  color: #355b76;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.25;
}

.phone-gold-chip,
.phone-info-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 2px 5px 0 0;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 1000;
}

.phone-gold-chip {
  color: #5b4000;
  background: #fff1a8;
  border: 1px solid #ffd447;
}

.phone-info-chip {
  color: #004f8e;
  background: #e6f6ff;
  border: 1px solid #9ee3ff;
}

.phone-quick-grid,
.phone-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.phone-quick-grid button,
.phone-command-grid span,
.phone-contact-cta,
.phone-bottle-card button {
  min-height: 42px;
  border: 0;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #008dff, #22d5ec);
  font-weight: 1000;
  box-shadow: 0 10px 20px rgba(0, 126, 255, 0.2);
}

.phone-bottle-card {
  padding: 18px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #eefaff 100%);
}

.phone-bottle-card span {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 12px;
  border-radius: 22px;
  background: linear-gradient(135deg, #008dff, #21d1ff 58%, #e8da65);
  font-size: 1.8rem;
}

.phone-progress {
  height: 9px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: #e8f0f7;
  border: 1px solid rgba(0, 126, 255, 0.12);
}

.phone-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffcd2e, #ff9f1a);
}

.phone-progress.gold i {
  background: linear-gradient(90deg, #ffe27c, #16d4c8);
}

.phone-date-tile {
  color: #0b3b66;
  background: linear-gradient(135deg, #fff5b8, #ffc929);
  line-height: 1;
  font-size: 0.7rem;
}

.phone-date-tile b {
  font-size: 1.2rem;
}

.phone-leader-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
  padding: 10px;
  background: linear-gradient(135deg, #ffffff, #f3f0ff);
}

.phone-leader-row span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #008dff, #3129ff);
  font-weight: 1000;
}

.phone-leader-row b {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.phone-leader-row em {
  color: var(--ocean-950);
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 1000;
}

.phone-achievement-thumb {
  color: #0b3b66;
  background: linear-gradient(135deg, #e9f9ff, #ffd447);
}

.phone-achievement-thumb.blue {
  color: #fff;
  background: linear-gradient(135deg, #005eea, #22d5ec);
}

.phone-achievement-card small,
.phone-support-goal small {
  display: block;
  margin-top: 6px;
  color: var(--ocean-900);
  font-weight: 1000;
}

.phone-support-goal {
  padding: 14px;
  background: linear-gradient(135deg, rgba(255, 253, 236, 0.98), rgba(238, 252, 255, 0.96));
}

.phone-contact-cta {
  width: 100%;
  margin-top: 12px;
  color: #0b3b66;
  background: linear-gradient(135deg, #fff3bf, #22d5ec);
}

.mini-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.mini-chips span,
.roadmap span {
  padding: 8px 12px;
  color: var(--ocean-900);
  background: rgba(10, 166, 255, 0.12);
  border: 1px solid var(--border-soft);
}

.module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.module-card {
  min-height: 230px;
}

.module-icon {
  min-width: 58px;
  max-width: 100%;
  color: var(--ocean-950);
  background: var(--gold-gradient);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.safety-band,
.compatibility {
  padding-top: clamp(32px, 5vw, 70px);
  padding-bottom: clamp(32px, 5vw, 70px);
}

.safety-band {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
}

.safety-grid,
.compat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.safety-grid span,
.compat-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ocean-900);
  box-shadow: var(--shadow-sm);
  font-weight: 900;
}

.compatibility {
  text-align: center;
}

.compatibility .section-heading {
  margin-inline: auto;
}

.compat-strip {
  justify-content: center;
}

.roadmap {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.roadmap article {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(233, 253, 255, 0.76));
}

.beta-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 212, 77, 0.28), transparent 28%),
    var(--hero-gradient);
  color: var(--inverse);
  overflow: hidden;
}

.beta-cta h2,
.beta-cta p,
.beta-cta .eyebrow {
  color: var(--inverse);
}

.beta-cta .button-secondary {
  color: var(--ocean-900);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: calc(var(--max) + 2 * var(--space-page));
  margin: 0 auto;
  padding: 28px var(--space-page) 48px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

@keyframes shine {
  0% {
    transform: translateX(-90%);
  }
  42%,
  100% {
    transform: translateX(115%);
  }
}

@keyframes tide {
  from {
    transform: translateX(-2%) rotate(-2deg);
  }
  to {
    transform: translateX(2%) rotate(2deg);
  }
}

@keyframes pulseLine {
  0%,
  100% {
    opacity: 0.46;
    transform: scaleX(0.74);
    transform-origin: left;
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-console {
    max-width: 560px;
  }

  .glass-grid.three,
  .glass-grid.four,
  .module-grid,
  .roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .safety-band {
    grid-template-columns: 1fr;
  }

  .beta-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-block: 12px;
  }

  .brand-mark {
    gap: 8px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .header-cta {
    padding: 10px 12px;
  }

  .hero-bg {
    inset: 14px;
    border-radius: 28px;
  }

  .hero-brand-main {
    font-size: clamp(3.6rem, 18vw, 5.25rem);
  }

  .hero-brand-sub {
    font-size: clamp(2.25rem, 12vw, 3.45rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .console-grid,
  .glass-grid.three,
  .glass-grid.four,
  .module-grid,
  .roadmap,
  .panel-row,
  .panel-cards,
  .community-pulse {
    grid-template-columns: 1fr;
  }

  .trigger-deck,
  .phone-trigger-grid {
    grid-template-columns: 1fr;
  }

  .media-strip,
  .phone-media-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .panel-preview {
    grid-template-columns: 1fr;
  }

  .panel-sidebar {
    display: none;
  }

  .phone-screen {
    min-height: 460px;
    border-width: 6px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Task 17 phone preview enhancement: Wavy FX Viewer Hub-inspired static demo */
.phone-screen {
  height: 760px;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 248, 202, 0.48), transparent 22%),
    linear-gradient(180deg, #effcff 0%, #ffffff 43%, #fffbea 100%);
}

.phone-extension-banner {
  min-height: 132px;
  padding: 16px 48px 14px;
}

.phone-category-row {
  position: relative;
  margin: 12px -2px 8px;
  padding: 2px 0 10px;
  border-bottom: 4px solid rgba(5, 36, 63, 0.22);
}

.phone-category {
  min-height: 36px;
  padding-inline: 12px;
}

.phone-panel {
  padding: 12px 6px 10px;
  scrollbar-color: rgba(0, 126, 255, 0.38) transparent;
}

.phone-panel::-webkit-scrollbar,
.phone-category-row::-webkit-scrollbar {
  height: 5px;
  width: 5px;
}

.phone-panel::-webkit-scrollbar-thumb,
.phone-category-row::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(0, 126, 255, 0.32);
}

.phone-media-hero,
.phone-info-banner,
.phone-search-row,
.phone-sponsor-strip,
.phone-support-hero,
.phone-command-hero,
.phone-command-card,
.phone-info-list > div {
  border: 1px solid rgba(0, 126, 255, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 28px rgba(0, 90, 170, 0.1);
}

.phone-media-hero {
  min-height: 134px;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: end;
  padding: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.36), transparent 22%),
    linear-gradient(135deg, #004ec4 0%, #009dff 48%, #24d6ff 100%);
  overflow: hidden;
  position: relative;
}

.phone-media-hero::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  opacity: 0.55;
}

.phone-media-hero > * {
  position: relative;
  z-index: 1;
}

.phone-media-hero strong,
.phone-media-hero p,
.phone-command-hero strong,
.phone-command-hero p,
.phone-support-hero strong,
.phone-support-hero p {
  color: inherit;
}

.phone-quick-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.phone-info-banner {
  margin-top: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(240, 251, 255, 0.98), rgba(255, 251, 232, 0.92));
}

.phone-info-banner p {
  margin-bottom: 0;
}

.phone-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
}

.phone-search-row span {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding-inline: 12px;
  border-radius: 16px;
  color: #6c7790;
  background: #fff;
  font-weight: 900;
}

.phone-search-row button,
.phone-sub-tabs button {
  border: 0;
  border-radius: 16px;
  color: var(--ocean-950);
  background: #fff1a8;
  font-weight: 1000;
  cursor: pointer;
}

.phone-search-row button {
  min-height: 36px;
  padding-inline: 12px;
  box-shadow: 0 10px 18px rgba(255, 190, 0, 0.22);
}

.phone-card-grid {
  display: grid;
  gap: 10px;
}

.phone-card-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.phone-media-tile {
  min-height: 162px;
  position: relative;
  display: grid;
  align-content: end;
  gap: 6px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 126, 255, 0.18);
  border-radius: 24px;
  color: var(--ocean-950);
  background: #fff;
  box-shadow: 0 14px 26px rgba(0, 90, 170, 0.1);
}

.phone-media-tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 88px;
  background:
    radial-gradient(circle at 26% 24%, rgba(255, 255, 255, 0.46), transparent 18%),
    linear-gradient(135deg, #007bff, #22d5ec);
}

.phone-media-tile.blue::before { background: linear-gradient(135deg, #004ec4, #009dff 55%, #24d6ff); }
.phone-media-tile.wave-tile::before { background: linear-gradient(135deg, #007bff, #22d5ec 62%, #e9d95f); }
.phone-media-tile.aqua::before { background: linear-gradient(135deg, #00a8ff, #39e3ff); }
.phone-media-tile.deep::before { background: linear-gradient(135deg, #042d70, #008dff); }
.phone-media-tile.meme::before { background: linear-gradient(135deg, #ffb800, #22d5ec); }
.phone-media-tile.glitch::before { background: linear-gradient(135deg, #0842a0, #6b2dff 44%, #ff4ec7); }
.phone-media-tile.gold::before { background: linear-gradient(135deg, #ffcf32, #fff1a8 52%, #20d3ee); }
.phone-media-tile.music::before { background: linear-gradient(135deg, #007bff, #22d5ec); }

.phone-media-tile > * {
  position: relative;
  z-index: 1;
}

.phone-thumb-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ocean-950);
  font-size: 1.7rem;
  box-shadow: 0 10px 20px rgba(0, 70, 130, 0.12);
}

.phone-media-tile small {
  position: absolute;
  top: 56px;
  right: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #004f8e;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 126, 255, 0.2);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 1000;
}

.phone-media-tile strong {
  min-height: 34px;
  line-height: 1.05;
}

.phone-media-tile em {
  justify-self: start;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #008dff, #22d5ec);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 1000;
}

.phone-bottle-card.upgraded {
  background: linear-gradient(180deg, #ffffff 0%, #eefaff 100%);
}

.phone-info-list {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}

.phone-info-list > div {
  padding: 12px;
}

.phone-info-list.compact > div {
  padding: 10px;
}

.phone-info-list small {
  display: block;
  margin-top: 3px;
  color: #315b80;
  font-size: 0.72rem;
  font-weight: 850;
}

.phone-challenge-card.feature-card {
  margin-bottom: 10px;
}

.phone-challenge-card.locked {
  background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(240,248,255,0.92));
}

.phone-date-tile.target {
  font-size: 1.7rem;
}

.phone-sponsor-strip,
.phone-support-hero,
.phone-command-hero,
.phone-command-card {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  padding: 12px;
}

.phone-sponsor-strip {
  background: linear-gradient(135deg, rgba(255, 247, 196, 0.98), rgba(255, 253, 236, 0.96));
  border-color: rgba(255, 204, 45, 0.55);
}

.phone-sponsor-strip.spotlight {
  grid-template-columns: 58px 1fr;
  background: linear-gradient(135deg, rgba(244, 238, 255, 0.98), rgba(255, 252, 230, 0.92));
}

.phone-sponsor-thumb,
.command-art {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #008dff, #22d5ec);
  color: #fff;
  font-weight: 1000;
}

.phone-sub-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.phone-sub-tabs button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(0, 126, 255, 0.18);
  color: #0059bb;
  background: rgba(255,255,255,0.94);
}

.phone-sub-tabs button.active {
  color: var(--ocean-950);
  background: linear-gradient(135deg, #ffd447, #ffb21c);
  border-color: rgba(255, 184, 0, 0.52);
  box-shadow: 0 10px 18px rgba(255, 190, 0, 0.18);
}

.phone-subpanel {
  display: none;
}

.phone-subpanel.active {
  display: grid;
  gap: 9px;
  animation: phonePanelIn 0.2s ease both;
}

.phone-leader-row {
  grid-template-columns: 38px 1fr auto;
  gap: 9px;
  position: relative;
  align-items: center;
  padding: 10px;
}

.phone-leader-row span {
  min-width: 38px;
  height: 38px;
}

.phone-leader-row i {
  display: block;
  color: #3d7caf;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 950;
}

.phone-leader-row.rank-1 {
  border-color: rgba(255, 196, 0, 0.7);
  background: linear-gradient(90deg, rgba(255, 236, 138, 0.95), rgba(255, 255, 255, 0.96));
  box-shadow: 0 0 0 1px rgba(255, 212, 71, 0.4) inset, 0 16px 30px rgba(255, 196, 0, 0.18);
}

.phone-leader-row.rank-1 span {
  background: linear-gradient(135deg, #ffcf32, #ff9f1a);
  color: #4b3300;
}

.phone-leader-row.rank-2 {
  border-color: rgba(155, 204, 255, 0.72);
  background: linear-gradient(90deg, rgba(230, 245, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.phone-leader-row.rank-2 span {
  background: linear-gradient(135deg, #dfefff, #97c7ff);
  color: #073b70;
}

.phone-leader-row.rank-3 {
  border-color: rgba(190, 136, 255, 0.5);
  background: linear-gradient(90deg, rgba(242, 235, 255, 0.95), rgba(255, 255, 255, 0.96));
}

.phone-leader-row.rank-3 span {
  background: linear-gradient(135deg, #8b5cf6, #22d5ec);
  color: #fff;
}

.phone-leader-row.rank-4 span,
.phone-leader-row.rank-5 span {
  background: linear-gradient(135deg, #008dff, #22d5ec);
}

.phone-achievement-card.interactive {
  width: 100%;
  margin: 0;
  border: 1px solid rgba(0, 126, 255, 0.18);
  cursor: pointer;
  text-align: left;
}

.phone-achievement-card.completed {
  background: linear-gradient(135deg, #ffffff, #fff7d7);
}

.phone-achievement-thumb.gold {
  background: linear-gradient(135deg, #ffd447, #ff9f1a);
  color: #4b3300;
}

.achievement-detail {
  display: none;
  margin-top: 8px;
  padding: 8px 9px;
  border-radius: 14px;
  background: #fff7d6;
  color: #5b4000;
  font-size: 0.7rem;
  font-weight: 950;
}

.phone-achievement-card.is-expanded .achievement-detail {
  display: block;
}

.phone-support-hero,
.phone-command-hero {
  grid-template-columns: 1fr;
  min-height: 118px;
  align-content: center;
  color: #fff;
  background:
    radial-gradient(circle at 76% 18%, rgba(255,255,255,0.38), transparent 22%),
    linear-gradient(135deg, #005bd6, #00cfff 70%, #e8da65);
}

.phone-support-hero strong,
.phone-command-hero strong {
  font-size: 1.08rem;
}

.phone-support-goal {
  margin-top: 10px;
  padding: 12px;
}

.phone-command-hero {
  min-height: 150px;
  background:
    radial-gradient(circle at 75% 25%, rgba(255,255,255,0.3), transparent 18%),
    linear-gradient(135deg, #023d9b, #008dff 42%, #20d3ee 100%);
}

.phone-command-hero strong {
  font-size: 2.1rem;
  letter-spacing: 0.04em;
  text-shadow: 0 3px 0 rgba(0,0,0,0.18);
}

.phone-command-card {
  grid-template-columns: 58px 1fr;
}

.command-art.splash { background: linear-gradient(135deg, #007bff, #22d5ec); }
.command-art.lurk { background: linear-gradient(135deg, #1ab37b, #e8da65); }
.command-art.checkin { background: linear-gradient(135deg, #005bd6, #00cfff); }
.command-art.answer { background: linear-gradient(135deg, #8b5cf6, #22d5ec); }

.phone-preview-note {
  max-width: 390px;
  margin: 12px auto 0;
  color: #365f7c;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 720px) {
  .phone-screen { height: 690px; }
  .phone-brand-lockup strong { font-size: clamp(2.25rem, 12vw, 3.25rem); }
  .phone-card-grid.two-col { grid-template-columns: 1fr; }
}


/* Task 17 phone preview refinement: closer Wavy FX Viewer Hub-style demo */
.phone-welcome-media {
  align-items: center;
}

.phone-welcome-media div {
  align-self: center;
}

.phone-welcome-media p {
  max-width: 16rem;
}

.phone-info-banner strong {
  color: var(--ocean-950);
}

.phone-stock-chip,
.phone-price-chip,
.phone-gold-chip {
  position: relative;
  z-index: 2;
  border: 0;
  cursor: pointer;
}

.phone-stock-chip,
.phone-media-tile small {
  position: absolute;
  right: 10px;
  top: 62px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  color: #004f8e;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(10,166,255,.18);
  font-size: .64rem;
  font-weight: 1000;
  box-shadow: 0 8px 14px rgba(0, 90, 170, .12);
}

.phone-price-chip,
.phone-media-tile em {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  color: #fff;
  background: linear-gradient(135deg, #008dff, #22d5ec);
  font-size: .68rem;
  font-weight: 1000;
  font-style: normal;
  box-shadow: 0 8px 16px rgba(0, 126, 255, .2);
}

.phone-media-tile strong {
  position: relative;
  z-index: 2;
  margin-top: 84px;
}

.phone-thumb-art {
  position: absolute;
  z-index: 2;
  left: 12px;
  top: 16px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.55), transparent 30%),
    linear-gradient(135deg, #005eea, #22d5ec);
  font-size: 1.45rem;
  box-shadow: 0 10px 18px rgba(0, 70, 140, .18);
}

.phone-thumb-art::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.32);
}

.phone-thumb-art.laughing,
.phone-thumb-art.golden {
  background: linear-gradient(135deg, #ffca28, #22d5ec);
}

.phone-thumb-art.tv,
.phone-thumb-art.retro {
  background: linear-gradient(135deg, #0a3e8f, #7a2cff 48%, #ff4ec7);
}

.phone-thumb-art.music-note,
.phone-thumb-art.magical,
.phone-thumb-art.ocean {
  background: linear-gradient(135deg, #fff1a8, #18ccea 48%, #007bff);
  color: #0b2341;
}

.phone-list-button {
  width: 100%;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
  margin: 0 0 10px;
  padding: 12px;
  border: 1px solid rgba(0, 126, 255, 0.18);
  border-radius: 22px;
  color: var(--ocean-950);
  background: rgba(255,255,255,.94);
  box-shadow: 0 14px 28px rgba(0, 90, 170, 0.1);
  text-align: left;
  cursor: pointer;
}

.phone-list-button span {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #007bff, #22d5ec);
  color: #fff;
  font-weight: 1000;
  box-shadow: 0 10px 20px rgba(0, 126, 255, .16);
}

.phone-list-button b {
  font-size: 1.02rem;
}

.phone-list-button small {
  color: var(--text-soft);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.25;
}

.phone-leaderboard-hub,
.phone-leader-detail {
  display: none;
}

.phone-leaderboard-hub.active,
.phone-leader-detail.active {
  display: block;
  animation: phonePanelIn .22s ease both;
}

.phone-back-button {
  min-height: 38px;
  margin-bottom: 10px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-pill);
  color: var(--ocean-900);
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 20px rgba(0, 90, 170, .1);
  font-weight: 1000;
  cursor: pointer;
}

.phone-detail-copy {
  margin-top: -6px;
  padding-bottom: 4px;
}

.phone-leader-row.rank-1 {
  border-color: rgba(255, 190, 0, .68);
  background: linear-gradient(135deg, #fff8cf, #f5f7ff);
  box-shadow: 0 12px 32px rgba(255, 190, 0, .2), 0 0 0 2px rgba(255, 220, 90, .22);
}

.phone-leader-row.rank-1 span {
  background: linear-gradient(135deg, #ffca28, #ff9f1a);
  color: #3f2a00;
}

.phone-leader-row.rank-2 {
  border-color: rgba(174, 205, 230, .8);
  background: linear-gradient(135deg, #f5fbff, #f4f1ff);
}

.phone-leader-row.rank-2 span {
  background: linear-gradient(135deg, #d8e8f5, #7ea8c7);
  color: #08243d;
}

.phone-leader-row.rank-3 {
  border-color: rgba(210, 133, 71, .55);
}

.phone-leader-row.rank-3 span {
  background: linear-gradient(135deg, #d98244, #f4c16b);
  color: #351b00;
}

.phone-leader-row.rank-4 span,
.phone-leader-row.rank-5 span {
  background: linear-gradient(135deg, #008dff, #22d5ec);
}

.phone-achievement-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.phone-achievement-tabs button {
  min-height: 42px;
}

.phone-achievement-card.interactive {
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.achievement-detail {
  display: none;
  margin-top: 8px;
  padding: 8px;
  border-radius: 12px;
  color: #375870;
  background: #f0fbff;
  border: 1px solid rgba(0, 126, 255, .14);
  font-size: .68rem;
  font-weight: 850;
}

.phone-achievement-card.is-expanded .achievement-detail {
  display: block;
}

.phone-info-modal {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(5, 36, 63, .42);
  backdrop-filter: blur(6px);
}

.phone-info-modal[hidden] {
  display: none;
}

.phone-info-modal-card {
  width: min(100%, 310px);
  position: relative;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(10,166,255,.28);
  box-shadow: 0 24px 50px rgba(0, 40, 90, .24);
}

.phone-info-modal-card h3 {
  margin-right: 38px;
}

.phone-info-modal-card p:last-child {
  margin-bottom: 0;
}

.phone-info-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--ocean-900);
  background: #e7f7ff;
  font-weight: 1000;
  cursor: pointer;
}

.phone-preview-note {
  max-width: 390px;
  margin: 14px auto 0;
  color: var(--text-soft);
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 640px) {
  .phone-screen {
    height: 680px;
  }

  .phone-extension-banner {
    min-height: 116px;
  }

  .phone-brand-lockup strong {
    font-size: clamp(2.15rem, 13vw, 3rem);
  }

  .phone-card-grid.two-col {
    grid-template-columns: 1fr;
  }
}


/* Task 17 v3: final phone preview alignment refinements */
.phone-demo-pill:hover,
.phone-demo-pill:focus-visible {
  color: #003d73;
  outline: 2px solid rgba(255, 255, 255, 0.82);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.phone-welcome-media {
  grid-template-columns: 56px 1fr;
  text-align: left;
}

.phone-welcome-media strong,
.phone-welcome-media p {
  text-align: left;
}

.phone-card-grid.two-col {
  align-items: stretch;
}

.phone-media-tile {
  isolation: isolate;
  filter: none;
  transform: translateZ(0);
}

.phone-media-tile::before {
  filter: none;
  backdrop-filter: none;
}

.phone-media-tile strong {
  display: block;
  min-height: 2.15em;
  margin-top: 84px;
  line-height: 1.08;
  text-align: left;
}

.phone-media-tile .phone-stock-chip {
  top: 58px;
  right: 9px;
}

.phone-media-tile .phone-price-chip {
  margin-top: 2px;
}

.phone-media-tile.demo-meme-tile::before {
  background:
    radial-gradient(circle at 26% 24%, rgba(255, 255, 255, 0.42), transparent 20%),
    linear-gradient(135deg, #005bd6 0%, #008dff 52%, #22d5ec 100%);
}

.phone-media-tile.demo-meme-tile .phone-thumb-art {
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.5), transparent 30%),
    linear-gradient(135deg, #004ec4, #009dff 55%, #22d5ec);
}

.phone-thumb-art.splash,
.phone-thumb-art.wave-drop,
.phone-thumb-art.drop {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.5), transparent 30%),
    linear-gradient(135deg, #005bd6, #00a8ff 55%, #22d5ec);
  filter: none;
}

.phone-preview-note {
  max-width: 420px;
}

/* Task 17 v4: VFX category and phone preview alignment fixes */
.phone-card-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 12px;
  row-gap: 12px;
}

.phone-media-tile {
  min-width: 0;
  box-sizing: border-box;
  padding: 12px 10px 11px;
}

.phone-media-tile strong {
  overflow-wrap: anywhere;
}

.phone-media-tile.wave-tile,
.phone-media-tile.deep,
.phone-media-tile.vfx {
  overflow: hidden;
}

.phone-media-tile.vfx::before {
  background:
    radial-gradient(circle at 26% 24%, rgba(255, 255, 255, 0.42), transparent 20%),
    linear-gradient(135deg, #005bd6 0%, #008dff 48%, #22d5ec 100%);
}

.phone-thumb-art.vfx-burst,
.phone-thumb-art.vfx-screen,
.phone-thumb-art.vfx-neon,
.phone-thumb-art.vfx-glitch {
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.5), transparent 30%),
    linear-gradient(135deg, #004ec4, #009dff 55%, #22d5ec);
  filter: none;
}

.phone-info-banner.compact-copy {
  margin-top: 12px;
  padding: 11px;
  text-align: left;
}

.phone-info-banner.compact-copy p {
  margin: 4px 0 0;
  font-size: .72rem;
  line-height: 1.32;
}

@media (min-width: 721px) {
  .phone-panel .phone-card-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Task 17 v6: compact phone preview search rows, About panel and stable trigger-card alignment */
.phone-media-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  min-height: 164px;
  padding: 102px 10px 12px;
  gap: 7px;
  isolation: isolate;
  filter: none;
  transform: none;
  box-sizing: border-box;
}

.phone-media-tile::before {
  height: 88px;
  filter: none;
  backdrop-filter: none;
}

.phone-media-tile > * {
  position: relative;
  z-index: 2;
}

.phone-media-tile strong {
  display: flex;
  align-items: flex-start;
  min-height: 2.2em;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.08;
  text-align: left;
  overflow-wrap: anywhere;
}

.phone-media-tile .phone-price-chip {
  align-self: flex-start;
  justify-self: auto;
  margin-top: auto;
}

.phone-media-tile .phone-stock-chip {
  position: absolute;
  top: 58px;
  right: 10px;
  transform: none;
}

.phone-thumb-art {
  position: absolute;
  top: 14px;
  left: 12px;
  filter: none;
}

.phone-media-tile.wave-tile,
.phone-media-tile.deep,
.phone-media-tile.demo-meme-tile,
.phone-media-tile.vfx,
.phone-media-tile.music {
  overflow: hidden;
  filter: none;
  backdrop-filter: none;
}

.phone-media-tile.demo-meme-tile::before,
.phone-media-tile.wave-tile::before,
.phone-media-tile.deep::before,
.phone-media-tile.vfx::before,
.phone-media-tile.music::before {
  background:
    radial-gradient(circle at 26% 24%, rgba(255, 255, 255, 0.42), transparent 20%),
    linear-gradient(135deg, #005bd6 0%, #008dff 52%, #22d5ec 100%);
}

.phone-thumb-art.splash,
.phone-thumb-art.wave-drop,
.phone-thumb-art.drop,
.phone-thumb-art.laughing,
.phone-thumb-art.golden,
.phone-thumb-art.tv,
.phone-thumb-art.retro,
.phone-thumb-art.music-note,
.phone-thumb-art.magical,
.phone-thumb-art.ocean,
.phone-thumb-art.vfx-burst,
.phone-thumb-art.vfx-screen,
.phone-thumb-art.vfx-neon,
.phone-thumb-art.vfx-glitch {
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.5), transparent 30%),
    linear-gradient(135deg, #004ec4, #009dff 55%, #22d5ec);
  filter: none;
}

.phone-search-row {
  margin-bottom: 10px;
}

.phone-about-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(0, 126, 255, 0.18);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(232,250,255,.94));
  box-shadow: 0 14px 28px rgba(0, 90, 170, 0.1);
}

.phone-about-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #005bd6, #22d5ec);
  font-weight: 1000;
  box-shadow: 0 12px 20px rgba(0, 126, 255, 0.22);
}

.phone-about-card p {
  margin: 4px 0 0;
  font-size: .75rem;
  line-height: 1.34;
}


/* Task 17 v7: fix trigger-card alignment audit.
   The card class `wave` conflicted with the hero `.wave` decoration rule, making Ocean Splash/Wave Drop absolute-positioned.
   The trigger cards now use `.wave-tile`; this guard keeps any accidental future `.phone-media-tile.wave` local and aligned. */
.phone-media-tile.wave {
  position: relative;
  left: auto;
  right: auto;
  height: auto;
  pointer-events: auto;
  border-radius: 24px;
}


/* Task 17 v8: homepage hero and mission polish */
.platform-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.platform-pills span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius-pill);
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.hero-showcase {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.showcase-frame {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(22px) saturate(150%);
}

.showcase-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.showcase-topbar strong {
  color: var(--ocean-900);
  text-align: right;
}

.showcase-live-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.78), transparent 32%),
    linear-gradient(135deg, rgba(232, 250, 255, 0.96), rgba(255, 255, 255, 0.92));
}

.showcase-orb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: var(--aqua-glow);
  font-size: 1.6rem;
}

.showcase-live-card strong,
.showcase-grid strong {
  display: block;
  color: var(--ocean-950);
  font-weight: 1000;
}

.showcase-live-card p,
.showcase-grid small {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-weight: 720;
  line-height: 1.35;
}

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

.showcase-grid article {
  min-height: 142px;
  padding: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 28px rgba(0, 90, 170, 0.08);
}

.showcase-grid article span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0788ea, #18ccea);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
}

.showcase-banner-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.showcase-banner-row span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 9px;
  border-radius: 16px;
  color: #704700;
  background: var(--gold-gradient);
  font-size: 0.76rem;
  font-weight: 1000;
  text-align: center;
  box-shadow: 0 12px 22px rgba(255, 179, 26, 0.14);
}

.mission-band {
  position: relative;
}

.mission-band::before {
  content: "";
  position: absolute;
  inset: 48px var(--space-page);
  z-index: -1;
  border-radius: 42px;
  background:
    radial-gradient(circle at 18% 14%, rgba(145, 245, 255, 0.52), transparent 28%),
    linear-gradient(135deg, rgba(230, 249, 255, 0.78), rgba(255, 255, 255, 0.78));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-md);
}

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

.benefit-grid article {
  padding: 22px;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-sm);
}

.benefit-grid span {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 14px;
  border-radius: 18px;
  color: #fff;
  background: var(--brand-gradient);
  font-size: 1.3rem;
  box-shadow: var(--aqua-glow);
}

.benefit-grid h3 {
  margin: 0 0 8px;
  color: var(--ocean-950);
  font-size: 1.18rem;
}

.benefit-grid p {
  margin: 0;
  color: var(--text-soft);
  font-weight: 700;
}

.mission-note {
  margin: 18px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(255, 179, 26, 0.38);
  border-radius: 22px;
  background: rgba(255, 247, 214, 0.76);
  color: #5b4000 !important;
  font-size: 0.95rem;
  font-weight: 780;
}


@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-showcase {
    max-width: 620px;
  }
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .showcase-grid,
  .showcase-banner-row,
  .benefit-grid {
    grid-template-columns: 1fr;
  }
  .showcase-live-card {
    grid-template-columns: 1fr;
  }
}

/* Task 17 v9 homepage hero polish: visual brand + welcome video showcase.
   Static/local visual page only. The video source is the user-provided Wavy FX placeholder media URL. */
.hero {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.88fr);
  gap: clamp(28px, 4.2vw, 74px);
  min-height: min(780px, calc(100vh - 84px));
  padding: clamp(58px, 7.4vw, 104px) clamp(34px, 5.8vw, 88px) clamp(58px, 7vw, 92px);
}

.hero-bg {
  inset: 26px clamp(18px, 2.6vw, 36px);
  background:
    radial-gradient(circle at 18% 18%, rgba(145, 245, 255, 0.6), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.16), transparent 22%),
    linear-gradient(135deg, #07345d 0%, #0788ea 47%, #18ccea 100%);
}

.hero-copy {
  max-width: 720px;
  padding-left: clamp(4px, 1vw, 14px);
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 10px 24px rgba(5, 36, 63, 0.26);
}

.hero-brand {
  font-family: Impact, Haettenschweiler, "Arial Black", "Segoe UI Black", system-ui, sans-serif;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

.hero-brand-main {
  font-size: clamp(4.4rem, 7.8vw, 7.65rem);
  line-height: 0.86;
}

.hero-brand-sub {
  margin-top: clamp(10px, 1.25vw, 18px);
  font-size: clamp(2.55rem, 4.5vw, 4.35rem);
  line-height: 0.9;
  letter-spacing: 0.005em;
  text-transform: none;
}

.hero-text-large {
  max-width: 690px;
  font-size: clamp(1.08rem, 1.55vw, 1.28rem);
  line-height: 1.5;
  font-weight: 720;
}

.hero-video-showcase {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-video-shell {
  position: relative;
  padding: clamp(12px, 1.4vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: clamp(26px, 3.2vw, 42px);
  background: rgba(232, 250, 255, 0.88);
  box-shadow: 0 28px 78px rgba(5, 36, 63, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(22px) saturate(150%);
}

.video-shell-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 2px 12px;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.video-shell-topbar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #16cae8;
  box-shadow: 0 0 0 4px rgba(22, 202, 232, 0.12);
}

.video-shell-topbar .dot:nth-child(2) { background: #ffbd26; box-shadow: 0 0 0 4px rgba(255, 189, 38, 0.12); }
.video-shell-topbar .dot:nth-child(3) { background: #16c987; box-shadow: 0 0 0 4px rgba(22, 201, 135, 0.12); }
.video-shell-topbar strong { margin-left: auto; color: var(--ocean-900); }

.hero-video-card {
  position: relative;
  min-height: clamp(260px, 29vw, 390px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.48), transparent 24%),
    linear-gradient(135deg, #082d55 0%, #0788ea 46%, #22d5ec 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 24px 52px rgba(0, 65, 130, 0.2);
}

.hero-welcome-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.94;
  filter: saturate(1.08) contrast(1.04);
}

.hero-video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,36,63,0.05), rgba(5,36,63,0.26)),
    radial-gradient(circle at 78% 12%, rgba(255,255,255,.32), transparent 22%);
  pointer-events: none;
}

.video-fallback-copy,
.video-play-orb {
  position: absolute;
  z-index: 1;
}

.video-fallback-copy {
  left: clamp(18px, 2.2vw, 30px);
  bottom: clamp(18px, 2.2vw, 28px);
  display: grid;
  gap: 3px;
  color: #fff;
  text-shadow: 0 12px 28px rgba(5,36,63,0.38);
}

.video-fallback-copy span {
  font-family: Impact, Haettenschweiler, "Arial Black", system-ui, sans-serif;
  font-size: clamp(2.4rem, 4.5vw, 4.3rem);
  line-height: .86;
  letter-spacing: .02em;
}

.video-fallback-copy small {
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.video-play-orb {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: clamp(66px, 7vw, 92px);
  height: clamp(66px, 7vw, 92px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: #fff;
  background: rgba(5, 36, 63, 0.58);
  box-shadow: 0 0 0 10px rgba(255,255,255,.12), 0 18px 44px rgba(5,36,63,.24);
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.hero-feature-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.hero-feature-ribbon span {
  display: grid;
  place-items: center;
  min-height: 46px;
  padding: 9px 10px;
  border-radius: 16px;
  color: var(--ocean-950);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 24px rgba(0, 90, 170, 0.08);
  font-size: 0.78rem;
  font-weight: 1000;
  text-align: center;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-video-showcase {
    max-width: 680px;
  }
}

@media (max-width: 680px) {
  .hero {
    padding: 54px 22px 58px;
  }
  .hero-brand-main {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }
  .hero-brand-sub {
    font-size: clamp(2.05rem, 10vw, 3rem);
  }
  .hero-feature-ribbon {
    grid-template-columns: 1fr;
  }
}


/* Task 17 v10 hero refinement:
   Focused on the top homepage hero section only.
   - Removes video text overlay from the welcome media card.
   - Gives "Interactive" a stronger brand weight and visual width.
   - Replaces the old motto/tagline pairing with a single cleaner line.
   - Improves hero copy spacing/readability and replaces the odd plain circles with glass bubbles. */
.hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.92fr);
  gap: clamp(34px, 4.8vw, 86px);
  padding-left: clamp(56px, 7vw, 108px);
  padding-right: clamp(56px, 7vw, 108px);
}

.hero-copy {
  max-width: 650px;
  padding-left: clamp(12px, 1.5vw, 28px);
}

.hero .eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(160, 243, 255, 0.46);
  border-radius: 999px;
  color: #d9fbff;
  background: rgba(5, 36, 63, 0.28);
  box-shadow: 0 14px 34px rgba(5, 36, 63, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  letter-spacing: 0.11em;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.hero-brand {
  max-width: min(100%, 720px);
  margin-top: 12px;
}

.hero-brand-main {
  font-size: clamp(4.5rem, 7.55vw, 7.35rem);
  line-height: 0.84;
}

.hero-brand-sub {
  margin-top: clamp(8px, 0.85vw, 14px);
  font-family: Impact, Haettenschweiler, "Arial Black", "Segoe UI Black", system-ui, sans-serif;
  font-size: clamp(3.15rem, 5.95vw, 5.75rem);
  font-weight: 1000;
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 7px 0 rgba(5, 36, 63, 0.12), 0 22px 42px rgba(5, 36, 63, 0.22);
}

.motto {
  max-width: 600px;
  margin-top: clamp(20px, 2.2vw, 30px);
  color: #ffffff;
  font-size: clamp(1.24rem, 1.85vw, 1.72rem);
  font-weight: 950;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.hero .tagline {
  display: none;
}

.hero-text-large {
  max-width: 610px;
  margin-top: clamp(18px, 2vw, 26px);
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1rem, 1.26vw, 1.16rem);
  line-height: 1.48;
  text-wrap: pretty;
}

.platform-pills {
  margin-top: 20px;
}

.hero-actions {
  margin-top: 24px;
}

.hero-video-showcase {
  justify-self: end;
  width: min(100%, 620px);
}

.hero-video-shell {
  padding: clamp(10px, 1.15vw, 16px);
  border-radius: clamp(26px, 3.2vw, 40px);
}

.hero-video-card {
  min-height: clamp(300px, 28vw, 420px);
}

.video-fallback-copy {
  display: none !important;
}

.video-play-orb {
  background: rgba(5, 36, 63, 0.52);
  box-shadow: 0 0 0 12px rgba(255,255,255,.13), 0 20px 48px rgba(5,36,63,.26);
}

.hero-feature-ribbon span {
  min-height: 50px;
}

.bubble {
  border: 1px solid rgba(210, 252, 255, 0.52);
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.68), transparent 13%),
    radial-gradient(circle at 68% 72%, rgba(37, 217, 239, 0.22), transparent 34%),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.18),
    0 0 28px rgba(28, 220, 241, 0.15);
  filter: none;
}

.bubble-one {
  right: 16%;
  top: 14%;
  width: 72px;
  height: 72px;
  opacity: 0.72;
}

.bubble-two {
  left: 10%;
  bottom: 19%;
  width: 36px;
  height: 36px;
  opacity: 0.48;
}

.bubble-three {
  right: 47%;
  bottom: 12%;
  width: 52px;
  height: 52px;
  opacity: 0.5;
}

@media (max-width: 1180px) {
  .hero {
    padding-left: clamp(32px, 5vw, 64px);
    padding-right: clamp(32px, 5vw, 64px);
  }
  .hero-brand-main {
    font-size: clamp(4rem, 8vw, 6.4rem);
  }
  .hero-brand-sub {
    font-size: clamp(2.85rem, 6.3vw, 5rem);
  }
}

@media (max-width: 980px) {
  .hero-video-showcase {
    justify-self: start;
    max-width: 680px;
  }
}

@media (max-width: 680px) {
  .hero {
    padding: 54px 22px 58px;
  }
  .hero-copy {
    padding-left: 0;
  }
  .hero-brand-main {
    font-size: clamp(3.35rem, 17vw, 5rem);
  }
  .hero-brand-sub {
    font-size: clamp(2.45rem, 12vw, 3.85rem);
  }
  .motto {
    font-size: clamp(1.1rem, 5vw, 1.42rem);
  }
}


/* Task 17 v11: terminology, site mode preview, and roadmap page split. */
.nav-links a.active {
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  color: var(--ocean-900);
}

.site-modes {
  padding-top: clamp(62px, 8vw, 116px);
}

.site-mode-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: clamp(28px, 4vw, 44px);
  background:
    radial-gradient(circle at 12% 0%, rgba(145, 245, 255, 0.72), transparent 31%),
    radial-gradient(circle at 90% 18%, rgba(255, 247, 214, 0.62), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(221, 249, 255, 0.74));
  box-shadow: var(--shadow-lg);
  padding: clamp(18px, 3vw, 34px);
  backdrop-filter: blur(18px) saturate(150%);
}

.site-mode-card::before,
.site-mode-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.8), transparent 16%),
    rgba(24, 204, 234, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.54);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.2), 0 22px 52px rgba(24, 204, 234, 0.16);
}

.site-mode-card::before {
  width: 120px;
  height: 120px;
  right: 5%;
  top: 16%;
}

.site-mode-card::after {
  width: 54px;
  height: 54px;
  left: 42%;
  bottom: 8%;
  opacity: 0.72;
}

.mode-switch {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.mode-switch button {
  border: 0;
  cursor: pointer;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  background: transparent;
  font: inherit;
  font-weight: 950;
  transition: transform 220ms var(--ease-water), background 220ms var(--ease-water), color 220ms var(--ease-water), box-shadow 220ms var(--ease-water);
}

.mode-switch button:hover,
.mode-switch button:focus-visible {
  transform: translateY(-2px);
}

.mode-switch button.active {
  color: #fff;
  background: var(--brand-gradient);
  box-shadow: var(--aqua-glow);
}

.site-mode-panel {
  position: relative;
  z-index: 1;
  display: none;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.68fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: center;
  margin-top: 28px;
}

.site-mode-panel.active {
  display: grid;
  animation: sitePanelIn 420ms var(--ease-water) both;
}

.device-stack {
  position: relative;
  min-height: 500px;
  display: grid;
  align-items: center;
}

.desktop-preview {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 34px 88px rgba(5, 36, 63, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 14px;
  max-width: 790px;
}

.desktop-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 6px 10px;
  color: var(--text-soft);
  font-size: 0.77rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.desktop-topbar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #18ccea;
}
.desktop-topbar span:nth-child(2) { background: #ffb31a; }
.desktop-topbar span:nth-child(3) { background: #16c987; }
.desktop-topbar strong { margin-left: auto; color: var(--ocean-900); }

.desktop-screen {
  min-height: 380px;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(10, 166, 255, 0.22);
  background: linear-gradient(180deg, rgba(239, 253, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.viewer-site-screen {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at 84% 12%, rgba(24, 204, 234, 0.28), transparent 30%),
    linear-gradient(135deg, rgba(7, 136, 234, 0.12), rgba(255, 255, 255, 0.96) 54%);
}

.site-profile-card,
.site-feature-rail article {
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(5, 36, 63, 0.08);
}

.site-profile-card {
  align-self: stretch;
  padding: 22px;
  color: var(--ocean-950);
  background:
    radial-gradient(circle at 20% 10%, rgba(145, 245, 255, 0.8), transparent 28%),
    var(--brand-gradient);
}

.site-profile-card small,
.dashboard-site-screen small,
.site-mode-copy .eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ocean-900);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-profile-card h3,
.dashboard-site-screen h3,
.site-mode-copy h3 {
  margin: 14px 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
  color: var(--ocean-950);
}

.site-profile-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.94);
  font-weight: 800;
}

.site-mini-actions {
  display: grid;
  gap: 9px;
}

.site-mini-actions span,
.site-feature-rail article,
.dash-metric-row span,
.dash-control-grid span,
.mini-phone-screen span {
  font-weight: 900;
}

.site-mini-actions span {
  padding: 12px 13px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ocean-950);
  box-shadow: 0 12px 24px rgba(5, 36, 63, 0.08);
}

.site-feature-rail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.site-feature-rail article {
  padding: 18px;
}

.site-feature-rail b,
.site-feature-rail small {
  display: block;
}
.site-feature-rail b { color: var(--ocean-950); font-size: 1.06rem; }
.site-feature-rail small { color: var(--text-soft); margin-top: 4px; line-height: 1.45; }

.mini-phone-preview {
  position: absolute;
  right: -22px;
  bottom: -6px;
  width: 190px;
  padding: 10px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(5, 36, 63, 0.24), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 28px 70px rgba(5, 36, 63, 0.22);
}

.mini-phone-top {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 22px 22px 14px 14px;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 1000;
}

.mini-phone-screen {
  display: grid;
  gap: 9px;
  margin-top: 8px;
  padding: 12px;
  min-height: 240px;
  border-radius: 20px;
  border: 5px solid var(--ocean-950);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(226,248,255,.98));
}

.mini-phone-screen b {
  color: var(--ocean-950);
  line-height: 1.15;
}

.mini-phone-screen span {
  display: grid;
  place-items: center;
  min-height: 34px;
  padding: 7px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--ocean-500), var(--aqua-500));
  font-size: 0.78rem;
  text-align: center;
}

.dashboard-site-screen {
  display: grid;
  grid-template-columns: 76px 1fr;
  background: linear-gradient(135deg, rgba(5, 36, 63, 0.94), rgba(7, 136, 234, 0.22));
}

.dash-mini-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, var(--ocean-950), var(--ocean-700));
}

.dash-mini-sidebar b,
.dash-mini-sidebar i {
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
}

.dash-mini-sidebar b {
  height: 42px;
  color: var(--ocean-700);
  background: #fff;
  font-style: normal;
}

.dash-mini-sidebar i {
  height: 34px;
}

.dashboard-site-screen main {
  padding: 24px;
  background: linear-gradient(180deg, rgba(236, 251, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.dash-metric-row,
.dash-control-grid {
  display: grid;
  gap: 12px;
}

.dash-metric-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 14px;
}

.dash-metric-row span,
.dash-control-grid span {
  display: grid;
  place-items: center;
  min-height: 52px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text-soft);
  text-align: center;
  box-shadow: 0 10px 22px rgba(5, 36, 63, 0.06);
}

.dash-control-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash-control-grid span {
  min-height: 74px;
  color: var(--ocean-950);
}

.dashboard-mini-screen span {
  background: rgba(255,255,255,.92);
  color: var(--ocean-900);
  border: 1px solid var(--border-soft);
}

.site-mode-copy {
  align-self: center;
  padding: clamp(10px, 2vw, 18px);
}

.site-mode-copy p:not(.eyebrow) {
  max-width: 440px;
  color: var(--text-soft);
  font-size: 1.04rem;
  font-weight: 700;
}

.roadmap-page-hero {
  position: relative;
  overflow: hidden;
  max-width: calc(var(--max) + 2 * var(--space-page));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 128px) var(--space-page) clamp(36px, 5vw, 70px);
}

.roadmap-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: clamp(30px, 5vw, 56px);
  padding: clamp(34px, 6vw, 76px);
  color: #fff;
  background: var(--hero-gradient);
  box-shadow: var(--shadow-lg);
}

.roadmap-hero-card::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -82px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.roadmap-hero-card > * {
  position: relative;
  z-index: 1;
}

.roadmap-hero-card .eyebrow {
  color: #d9fbff;
}

.roadmap-hero-card h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.roadmap-hero-card p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.02rem, 1.4vw, 1.22rem);
  font-weight: 750;
}

.roadmap-wave-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.roadmap-wave-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  background: var(--surface-glass);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px) saturate(145%);
}

.roadmap-wave-card::before {
  content: "";
  position: absolute;
  inset: auto -16% -88px -16%;
  height: 130px;
  border-radius: 50%;
  background: rgba(24, 204, 234, 0.13);
}

.roadmap-wave-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 40px;
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  color: var(--ocean-900);
  background: rgba(145, 245, 255, 0.68);
  border: 1px solid var(--border-soft);
  font-weight: 1000;
}

.roadmap-wave-card h2 {
  margin: 18px 0 8px;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  line-height: 1.08;
}

.roadmap-wave-card p,
.roadmap-focus-card p {
  color: var(--text-soft);
  font-weight: 690;
}

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

.roadmap-focus-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(235,250,255,.72));
  box-shadow: var(--shadow-sm);
}

.roadmap-focus-card h3 {
  margin: 0 0 8px;
  font-size: 1.24rem;
}

@keyframes sitePanelIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1080px) {
  .site-mode-panel {
    grid-template-columns: 1fr;
  }
  .site-mode-copy p:not(.eyebrow) {
    max-width: 720px;
  }
  .roadmap-wave-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .device-stack {
    min-height: auto;
    padding-bottom: 0;
  }
  .mini-phone-preview {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 250px);
    margin-top: 16px;
  }
  .viewer-site-screen,
  .dashboard-site-screen,
  .dash-metric-row,
  .dash-control-grid,
  .roadmap-focus-grid {
    grid-template-columns: 1fr;
  }
  .desktop-topbar strong {
    max-width: 60%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .site-mode-card {
    padding: 14px;
  }
  .desktop-preview {
    border-radius: 24px;
    padding: 10px;
  }
  .desktop-screen {
    min-height: auto;
    border-radius: 20px;
  }
  .viewer-site-screen,
  .dashboard-site-screen main {
    padding: 16px;
  }
  .dash-mini-sidebar {
    display: none;
  }
  .mode-switch {
    display: grid;
    width: 100%;
  }
  .mode-switch button {
    width: 100%;
  }
}


/* Task 17 v12: premium typography, responsive hero stage, anchored navigation polish and footer foundation. */
:root {
  --header-h: 86px;
  --display-font: "Arial Black", "Impact", "Segoe UI Black", "Inter", system-ui, sans-serif;
  --body-font: "Segoe UI", "Inter", "Aptos", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --stage-shadow: 0 32px 110px rgba(5, 36, 63, 0.20), 0 0 0 1px rgba(255,255,255,.35) inset;
  --glass-highlight: linear-gradient(135deg, rgba(255,255,255,.94), rgba(238,252,255,.72));
}

html {
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  font-family: var(--body-font);
  font-size: clamp(15px, 0.55vw + 0.72rem, 17px);
  text-rendering: geometricPrecision;
  background:
    radial-gradient(circle at 12% 0%, rgba(105, 220, 255, 0.34), transparent 34rem),
    radial-gradient(circle at 88% 12%, rgba(145, 245, 255, 0.22), transparent 30rem),
    linear-gradient(180deg, #f6fcff 0%, #ffffff 48%, #eefbff 100%);
}

section[id],
.roadmap-page-hero {
  scroll-margin-top: calc(var(--header-h) + 26px);
}

.site-header {
  min-height: var(--header-h);
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(180deg, rgba(245, 253, 255, 0.78), rgba(235, 250, 255, 0.58));
  box-shadow: 0 18px 60px rgba(5, 36, 63, 0.08);
}

.brand-icon,
.mini-logo {
  box-shadow: 0 12px 34px rgba(5, 36, 63, 0.08), inset 0 1px 0 rgba(255,255,255,.9);
}

.brand-name {
  letter-spacing: -0.035em;
}

.brand-sub {
  letter-spacing: -0.02em;
}

.nav-links a,
.header-cta,
.button,
.mode-switch button {
  letter-spacing: -0.02em;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--ocean-950);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 12px 26px rgba(5, 36, 63, 0.06);
}

.hero {
  width: min(1580px, calc(100% - clamp(22px, 4.4vw, 84px)));
  max-width: none;
  grid-template-columns: minmax(420px, 1fr) minmax(380px, 0.78fr);
  min-height: clamp(650px, 78vh, 890px);
  margin-top: clamp(12px, 1.7vw, 26px);
  padding: clamp(58px, 8vw, 118px) clamp(38px, 5vw, 96px) clamp(68px, 7vw, 104px);
  isolation: isolate;
}

.hero-bg {
  inset: 0;
  border-radius: clamp(34px, 5vw, 66px);
  background:
    radial-gradient(circle at 16% 13%, rgba(181, 254, 255, 0.52), transparent 26%),
    radial-gradient(circle at 84% 19%, rgba(105, 220, 255, 0.40), transparent 26%),
    radial-gradient(circle at 72% 85%, rgba(19, 216, 235, 0.36), transparent 34%),
    linear-gradient(128deg, #07345d 0%, #066fc7 42%, #0db5ee 72%, #41e4ef 100%);
  box-shadow: var(--stage-shadow);
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.32), transparent 22%, transparent 72%, rgba(255,255,255,.26)),
    radial-gradient(ellipse at 18% 100%, rgba(255,255,255,.2), transparent 34%);
  mix-blend-mode: screen;
}

.hero-bg::after {
  opacity: .62;
}

.hero-copy,
.hero-video-showcase,
.hero-console {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 690px;
  padding-left: clamp(0px, 1.2vw, 10px);
}

.eyebrow {
  letter-spacing: 0.13em;
  line-height: 1.1;
}

.hero .eyebrow {
  width: fit-content;
  padding: 8px 14px;
  margin-bottom: clamp(16px, 2.2vw, 24px);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: var(--radius-pill);
  color: rgba(229, 252, 255, .98);
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 16px 36px rgba(5,36,63,.11);
  backdrop-filter: blur(10px);
}

.hero-brand {
  display: inline-grid;
  width: min-content;
  margin: 0;
  font-family: var(--display-font);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.075em;
  filter: drop-shadow(0 26px 36px rgba(3, 32, 60, .22));
  text-shadow:
    0 1px 0 rgba(255,255,255,.75),
    0 4px 0 rgba(13, 81, 142, .15),
    0 18px 34px rgba(0, 41, 93, .24);
}

.hero-brand span {
  display: block;
  white-space: nowrap;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4fcff 42%, #ccefff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: clamp(0.6px, 0.06vw, 1.2px) rgba(255,255,255,.72);
}

.hero-brand-main {
  font-size: clamp(5.2rem, 9.4vw, 11.25rem);
  line-height: 0.78;
}

.hero-brand-sub {
  justify-self: stretch;
  margin-top: clamp(4px, .55vw, 8px);
  font-size: clamp(3.25rem, 5.62vw, 6.65rem);
  line-height: 0.83;
  letter-spacing: clamp(0.08em, 0.85vw, 0.20em);
  text-align: justify;
  text-align-last: justify;
  transform: scaleX(1.018);
  transform-origin: left center;
}

.motto {
  max-width: 670px;
  margin-top: clamp(22px, 2.4vw, 34px);
  font-size: clamp(1.25rem, 1.55vw, 1.8rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.hero-text {
  max-width: 650px;
  margin-top: 20px;
  font-size: clamp(1rem, 0.66vw + .82rem, 1.18rem);
  line-height: 1.48;
  font-weight: 760;
}

.platform-pills {
  gap: 9px;
  margin-top: 20px;
}

.platform-pills span {
  min-height: 34px;
  padding-inline: 14px;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 20px rgba(5,36,63,.08);
}

.hero-actions {
  margin-top: 26px;
}

.button,
.header-cta {
  box-shadow: 0 18px 42px rgba(5, 36, 63, 0.08);
}

.button-primary,
.header-cta {
  background:
    radial-gradient(circle at 32% 16%, rgba(255,255,255,.34), transparent 28%),
    var(--brand-gradient);
}

.hero-video-showcase {
  min-width: 0;
  justify-self: stretch;
}

.hero-video-shell {
  position: relative;
  padding: clamp(14px, 1.7vw, 20px);
  border-radius: clamp(30px, 3.5vw, 46px);
  background:
    linear-gradient(180deg, rgba(236, 252, 255, .94), rgba(255, 255, 255, .82));
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 34px 100px rgba(5, 36, 63, 0.22), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(24px) saturate(150%);
}

.hero-video-shell::before,
.hero-video-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-video-shell::before {
  width: 128px;
  height: 128px;
  right: -44px;
  top: -44px;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.95), rgba(145,245,255,.28) 36%, transparent 68%);
  filter: blur(.2px);
}

.hero-video-shell::after {
  inset: auto 34px -22px 34px;
  height: 44px;
  background: rgba(7, 136, 234, .14);
  filter: blur(18px);
}

.video-shell-topbar {
  min-height: 30px;
  padding-inline: 4px;
  letter-spacing: .08em;
}

.hero-video-card {
  border-radius: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 74% 18%, rgba(255,255,255,.16), transparent 26%),
    linear-gradient(135deg, #06121f, #010812 80%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 18px 44px rgba(3,24,46,.20);
}

.video-play-orb {
  width: clamp(74px, 6vw, 96px);
  height: clamp(74px, 6vw, 96px);
  border: 9px solid rgba(255,255,255,.12);
  background: rgba(5, 36, 63, .76);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 16px 36px rgba(3,24,46,.34);
}

.hero-feature-ribbon {
  gap: 12px;
  margin-top: 16px;
}

.hero-feature-ribbon span {
  min-height: 50px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(235,250,255,.86));
  border: 1px solid rgba(10, 166, 255, .18);
  box-shadow: 0 14px 26px rgba(5,36,63,.07), inset 0 1px 0 rgba(255,255,255,.9);
}

.wave-one {
  height: 220px;
  bottom: -90px;
  background: rgba(255, 255, 255, .18);
}

.wave-two {
  height: 240px;
  bottom: -138px;
  background: rgba(255, 255, 255, .12);
}

.bubble {
  border-color: rgba(255, 255, 255, .48);
  background:
    radial-gradient(circle at 28% 22%, rgba(255,255,255,.82), transparent 18%),
    radial-gradient(circle at 72% 78%, rgba(145,245,255,.18), transparent 42%),
    rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 22px rgba(255,255,255,.14), 0 14px 36px rgba(5,36,63,.09);
}

.section {
  padding-top: clamp(70px, 9vw, 128px);
  padding-bottom: clamp(70px, 9vw, 128px);
}

.section-heading {
  margin-bottom: clamp(28px, 3vw, 42px);
}

.section h2,
.split-copy h2,
.site-mode-copy h3,
.roadmap-hero-card h1 {
  letter-spacing: -0.055em;
}

.section h2 {
  max-width: 900px;
  font-size: clamp(2.45rem, 4.8vw, 5.05rem);
  line-height: .98;
}

.section-heading p,
.split-copy p,
.glass-card p,
.module-card p,
.benefit-grid p,
.site-mode-copy p:not(.eyebrow) {
  line-height: 1.55;
  font-weight: 620;
}

.glass-grid,
.module-grid,
.benefit-grid {
  gap: clamp(16px, 1.8vw, 22px);
}

.glass-card,
.module-card,
.benefit-grid article,
.roadmap-focus-card,
.roadmap-wave-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 0%, rgba(145,245,255,.22), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(250,254,255,.72));
  box-shadow: 0 22px 54px rgba(5, 36, 63, 0.08), inset 0 1px 0 rgba(255,255,255,.86);
}

.glass-card::after,
.module-card::after,
.benefit-grid article::after {
  content: "";
  position: absolute;
  inset: auto -20% -70px -20%;
  height: 112px;
  border-radius: 50%;
  background: rgba(24,204,234,.08);
  pointer-events: none;
}

.card-icon,
.module-icon,
.benefit-grid span {
  min-width: 54px;
  height: 54px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.46), transparent 28%),
    var(--brand-gradient);
  box-shadow: 0 14px 32px rgba(7,136,234,.18), inset 0 1px 0 rgba(255,255,255,.35);
  font-size: .82rem;
  letter-spacing: -.02em;
}

.glass-card h3,
.module-card h3,
.benefit-grid h3,
.roadmap h3 {
  letter-spacing: -0.035em;
}

.dashboard-preview {
  position: relative;
  transform: perspective(1100px) rotateY(1.5deg);
}


.panel-preview,
.phone-preview,
.site-mode-card {
  box-shadow: 0 30px 86px rgba(5, 36, 63, 0.12), inset 0 1px 0 rgba(255,255,255,.75);
}

.panel-hero {
  background:
    radial-gradient(circle at 26% 18%, rgba(255,255,255,.38), transparent 24%),
    var(--brand-gradient);
  letter-spacing: -0.045em;
}

.panel-row span,
.panel-cards span {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(238,252,255,.86));
}

.phone-preview {
  position: relative;
  box-shadow: 0 38px 110px rgba(5, 36, 63, .14), inset 0 1px 0 rgba(255,255,255,.84);
}

.phone-preview::before {
  content: "";
  position: absolute;
  inset: 12% -26% 4% -18%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(24,204,234,.18), transparent 68%);
  filter: blur(12px);
}

.site-modes {
  padding-top: clamp(76px, 9vw, 130px);
}

.site-mode-card {
  border-radius: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(circle at 9% 9%, rgba(145,245,255,.52), transparent 26%),
    radial-gradient(circle at 86% 21%, rgba(255,245,194,.35), transparent 24%),
    linear-gradient(135deg, rgba(231,250,255,.82), rgba(255,255,255,.78));
}

.mode-switch {
  border: 1px solid rgba(10,166,255,.15);
  background: rgba(255,255,255,.76);
  box-shadow: 0 18px 44px rgba(5,36,63,.08), inset 0 1px 0 rgba(255,255,255,.95);
}

.desktop-preview {
  box-shadow: 0 38px 100px rgba(5, 36, 63, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.mini-phone-preview {
  box-shadow: 0 34px 86px rgba(5, 36, 63, .24), inset 0 1px 0 rgba(255,255,255,.8);
}

.compatibility {
  text-align: center;
}

.compatibility .section-heading {
  margin-left: auto;
  margin-right: auto;
}

.beta-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 6vw, 68px);
  border-radius: clamp(28px, 4vw, 46px);
  background:
    radial-gradient(circle at 18% 18%, rgba(181, 254, 255, .38), transparent 28%),
    radial-gradient(circle at 84% 30%, rgba(255,255,255,.22), transparent 22%),
    linear-gradient(128deg, #07345d 0%, #0788ea 56%, #18ccea 100%);
  box-shadow: 0 30px 86px rgba(5,36,63,.16);
}

.beta-cta::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -96px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
}

.beta-cta > * {
  position: relative;
  z-index: 1;
}

.site-footer {
  position: relative;
  max-width: none;
  margin-top: clamp(34px, 5vw, 72px);
  padding: 0 clamp(22px, 5vw, 72px) clamp(24px, 4vw, 42px);
  color: rgba(215, 240, 255, .88);
  background:
    radial-gradient(circle at 12% 0%, rgba(24,204,234,.22), transparent 30rem),
    linear-gradient(180deg, rgba(6, 45, 78, 0) 0%, #062d4e 16%, #041f38 100%);
}

.footer-wave {
  height: clamp(56px, 8vw, 96px);
  margin-inline: calc(clamp(22px, 5vw, 72px) * -1);
  background:
    radial-gradient(ellipse at 50% 100%, rgba(255,255,255,.72), transparent 58%),
    linear-gradient(90deg, rgba(7,136,234,.05), rgba(24,204,234,.36), rgba(7,136,234,.06));
  clip-path: ellipse(68% 72% at 50% 0%);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(150px, .7fr));
  gap: clamp(24px, 4vw, 54px);
  max-width: var(--max);
  margin: 0 auto;
  padding-top: clamp(22px, 4vw, 42px);
}

.footer-brand-mark {
  color: #fff;
}

.footer-brand p,
.footer-links p,
.footer-bottom p {
  margin: 12px 0 0;
  color: rgba(215, 240, 255, .78);
  font-weight: 600;
  line-height: 1.55;
}

.footer-links h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: .84rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  width: fit-content;
  margin-top: 8px;
  color: rgba(238, 252, 255, .94);
  text-decoration: none;
  font-weight: 750;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  max-width: var(--max);
  margin: clamp(26px, 4vw, 46px) auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(215, 240, 255, .16);
}

.footer-bottom p {
  margin: 0;
  font-size: .82rem;
}

.compact-footer .footer-grid {
  grid-template-columns: minmax(260px, 1.3fr) minmax(160px, .7fr) minmax(220px, .9fr);
}

@media (min-width: 1500px) {
  .hero {
    width: min(1660px, calc(100% - 70px));
  }
}

@media (max-width: 1180px) {
  .hero {
    width: min(100% - 28px, 1180px);
    grid-template-columns: 1fr;
    padding: clamp(42px, 7vw, 82px) clamp(24px, 5vw, 56px) clamp(54px, 8vw, 88px);
  }

  .hero-copy {
    max-width: 790px;
  }

  .hero-video-showcase {
    max-width: 650px;
  }

  .hero-brand-main {
    font-size: clamp(4.4rem, 14vw, 8.8rem);
  }

  .hero-brand-sub {
    font-size: clamp(2.8rem, 8vw, 5.2rem);
  }

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

@media (max-width: 760px) {
  :root { --header-h: 74px; }

  .site-header {
    align-items: flex-start;
    gap: 10px;
  }

  .hero {
    width: min(100% - 18px, 720px);
    min-height: auto;
    padding: 34px 18px 40px;
  }

  .hero-brand-main {
    font-size: clamp(3.35rem, 17vw, 5.8rem);
  }

  .hero-brand-sub {
    font-size: clamp(2.05rem, 9.5vw, 3.4rem);
    letter-spacing: .08em;
  }

  .motto {
    font-size: clamp(1.06rem, 5.4vw, 1.36rem);
  }

  .hero-video-shell {
    border-radius: 28px;
  }

  .hero-feature-ribbon {
    grid-template-columns: 1fr;
  }

  .section h2 {
    font-size: clamp(2.05rem, 12vw, 3.4rem);
  }

  .footer-grid,
  .compact-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    display: grid;
  }
}

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

/* Task 17 v13 focused fixes: brand text sizing/finish and anchor focus targets. */
.hero-copy {
  max-width: min(100%, 650px);
  position: relative;
  z-index: 3;
}

.hero-video-showcase {
  position: relative;
  z-index: 2;
}

.hero-brand {
  width: min(100%, 650px);
  max-width: 100%;
  letter-spacing: -0.055em;
  overflow: visible;
}

.hero-brand-main {
  max-width: 100%;
  font-size: clamp(4.65rem, 7.15vw, 8.9rem);
  line-height: 0.82;
  transform: scaleX(0.94);
  transform-origin: left center;
}

.hero-brand-sub {
  max-width: 100%;
  color: #ffffff;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #ffffff;
  -webkit-text-stroke: 0;
  filter: none;
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.38),
    0 12px 24px rgba(3, 32, 60, 0.2),
    0 0 24px rgba(53, 234, 255, 0.28);
  font-size: clamp(2.75rem, 4.32vw, 5.35rem);
  line-height: 0.9;
  letter-spacing: clamp(0.045em, 0.52vw, 0.13em);
  text-align: left;
  text-align-last: auto;
  transform: scaleX(0.98);
  transform-origin: left center;
}

/* Unique anchor fallbacks. JS above centres the real focal elements; these only help if JS is unavailable. */
#platform {
  scroll-margin-top: calc(var(--header-h) + 112px);
}

#platform .section-heading {
  scroll-margin-top: calc(var(--header-h) + 82px);
}

#dashboard {
  scroll-margin-top: calc(var(--header-h) + 190px);
}

#hub {
  scroll-margin-top: calc(var(--header-h) + 86px);
}

#site {
  scroll-margin-top: max(0px, calc(var(--header-h) - 190px));
}

.panel-main {
  scroll-margin-top: calc(var(--header-h) + 140px);
}

.phone-screen {
  scroll-margin-top: calc(var(--header-h) + 74px);
}

.site-mode-panel.active {
  scroll-margin-top: calc(var(--header-h) + 28px);
}

@media (max-width: 1180px) {
  .hero-copy {
    max-width: 790px;
  }

  .hero-brand {
    width: min(100%, 760px);
  }

  .hero-brand-main {
    font-size: clamp(4.1rem, 13vw, 7.75rem);
    transform: scaleX(0.96);
  }

  .hero-brand-sub {
    font-size: clamp(2.45rem, 7.4vw, 4.6rem);
    letter-spacing: clamp(0.035em, 0.55vw, 0.11em);
  }
}

@media (max-width: 760px) {
  .hero-brand {
    width: 100%;
  }

  .hero-brand-main {
    font-size: clamp(3.25rem, 15.5vw, 5.15rem);
    transform: scaleX(0.98);
  }

  .hero-brand-sub {
    font-size: clamp(1.95rem, 8.7vw, 3.15rem);
    letter-spacing: 0.055em;
    transform: none;
  }
}

/* Task 17 v16: align INTERACTIVE to the WAVY FX wordmark width without changing WAVY FX. */
.hero-brand {
  width: min(100%, 650px);
}

.hero-brand-sub {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-left: 0;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
  text-align: left;
  transform: none;
  transform-origin: left center;
  font-size: clamp(3.18rem, 5.18vw, 6.42rem);
  line-height: 0.86;
  letter-spacing: clamp(0.015em, 0.18vw, 0.052em);
  text-shadow:
    0 2px 0 rgba(255, 255, 255, 0.30),
    0 12px 24px rgba(3, 32, 60, 0.22),
    0 0 24px rgba(53, 234, 255, 0.22);
}

/* Brand mark can now use an image URL. Replace the img src in index.html with the profile/logo URL.
   If the image fails, the existing W remains visible as the fallback. */
.brand-icon-with-image {
  position: relative;
  overflow: hidden;
}

.brand-icon-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  z-index: 2;
}

.brand-icon-fallback-text {
  position: relative;
  z-index: 1;
}

@media (max-width: 1180px) {
  .hero-brand-sub {
    font-size: clamp(2.95rem, 9.25vw, 5.8rem);
    letter-spacing: clamp(0.006em, 0.16vw, 0.044em);
  }
}

@media (max-width: 760px) {
  .hero-brand-sub {
    font-size: clamp(2.12rem, 10.55vw, 3.75rem);
    letter-spacing: 0.012em;
    transform: none;
  }
}


/* Task 17 v18: optical hero subtitle placement.
   Keep WAVY FX untouched; tuck INTERACTIVE inside the inner visual joints of the wordmark. */
.hero-brand {
  --hero-brand-sub-w: 84%;
  --hero-brand-sub-inset: 5.1%;
}

.hero-brand-sub {
  display: flex !important;
  justify-content: space-between;
  align-items: flex-start;
  width: var(--hero-brand-sub-w) !important;
  max-width: 100%;
  margin-left: var(--hero-brand-sub-inset) !important;
  margin-top: clamp(3px, 0.45vw, 7px);
  white-space: nowrap;
  transform: none !important;
  text-align: left;
  letter-spacing: 0 !important;
  font-size: clamp(3.05rem, 5.02vw, 6.08rem);
  line-height: 0.84;
}

.hero-brand-sub > span {
  display: block;
  flex: 0 0 auto;
}

@media (max-width: 1180px) {
  .hero-brand {
    --hero-brand-sub-w: 85%;
    --hero-brand-sub-inset: 4.8%;
  }

  .hero-brand-sub {
    font-size: clamp(2.78rem, 8.85vw, 5.45rem);
    margin-top: clamp(2px, 0.45vw, 6px);
  }
}

@media (max-width: 760px) {
  .hero-brand {
    --hero-brand-sub-w: 90%;
    --hero-brand-sub-inset: 3.5%;
  }

  .hero-brand-sub {
    font-size: clamp(1.92rem, 9.5vw, 3.35rem);
    margin-top: clamp(2px, 0.4vw, 5px);
  }
}

/* Task 17 v19: custom font for only the hero subtitle word INTERACTIVE.
   To enable it, place MarlandSansinkedDemo-OGlBe.ttf at:
   public_site/assets/fonts/MarlandSansinkedDemo-OGlBe.ttf
   This selector is intentionally scoped only to .hero-brand-sub so no other text changes. */
@font-face {
  font-family: "WavyHeroInteractiveMarland";
  src: url("assets/fonts/MarlandSansinkedDemo-OGlBe.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.hero-brand-sub,
.hero-brand-sub > span {
  font-family: "WavyHeroInteractiveMarland", Impact, Haettenschweiler, "Arial Black", "Segoe UI Black", system-ui, sans-serif !important;
}

/* Task 17 v23: v19 wordmark alignment correction.
   Keep the v19 INTERACTIVE size/font/spacing, but line its start up with the start of WAVY FX. */
.hero-brand-sub {
  margin-left: 0 !important;
}


/* v31 mobile responsive safety patch
   Preserves the desktop layout above 980px while preventing desktop visual-editor
   offsets, grid columns and oversized wordmark values from breaking phone/tablet views. */
@media (max-width: 980px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    min-width: 0;
  }

  .site-header,
  .section,
  .hero {
    max-width: 100% !important;
  }

  .hero,
  .split,
  .split.reverse,
  .site-modes,
  .site-mode-card {
    grid-template-columns: 1fr !important;
  }

  .hero {
    width: min(100% - 20px, 760px) !important;
    min-height: auto !important;
    gap: clamp(26px, 6vw, 42px) !important;
    padding: clamp(34px, 7vw, 64px) clamp(18px, 5vw, 42px) clamp(42px, 8vw, 72px) !important;
    overflow: hidden;
  }

  .hero-bg {
    inset: 0 !important;
  }

  .hero-copy,
  .hero-video-showcase,
  .split-copy,
  .panel-preview,
  .phone-preview,
  .site-mode-card,
  .section-heading,
  .glass-card,
  .module-card,
  .benefit-grid article {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
  }

  .hero-video-showcase {
    margin-top: clamp(26px, 6vw, 42px);
  }

  .panel-preview,
  .phone-preview,
  .site-mode-card,
  .dashboard-preview,
  .desktop-preview,
  .mini-phone-preview {
    transform: none !important;
  }

  .glass-grid.four,
  .glass-grid.three,
  .module-grid,
  .benefit-grid,
  .roadmap,
  .footer-grid,
  .compact-footer .footer-grid {
    grid-template-columns: 1fr !important;
  }

  .section {
    padding-left: clamp(18px, 5vw, 36px) !important;
    padding-right: clamp(18px, 5vw, 36px) !important;
  }

  .phone-preview::before,
  .hero-video-shell::before,
  .hero-video-shell::after {
    max-width: 100vw;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 74px;
  }

  .site-header {
    width: min(100% - 18px, 720px) !important;
    min-height: 70px;
    padding: 10px 12px !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .nav-links {
    display: none !important;
  }

  .brand-mark {
    gap: 8px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .brand-name,
  .brand-sub {
    line-height: 1;
  }

  .header-cta {
    padding: 10px 12px !important;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .hero {
    width: min(100% - 18px, 420px) !important;
    padding: 32px 18px 38px !important;
    border-radius: 28px;
  }

  .hero-bg {
    border-radius: 28px !important;
  }

  .hero-copy,
  .hero-brand,
  .hero-brand-main,
  .hero-brand-sub,
  .motto,
  .hero-text,
  .hero-text-large,
  .platform-pills,
  .hero-actions,
  .hero-video-showcase,
  .hero-video-shell,
  .section-heading,
  .split-copy,
  .panel-preview,
  .phone-preview,
  .site-mode-card,
  .glass-card {
    left: auto !important;
    top: auto !important;
    scale: none !important;
  }

  .hero-brand {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible;
    letter-spacing: 0;
  }

  .hero-brand-main {
    display: block !important;
    width: max-content !important;
    max-width: 100% !important;
    font-size: clamp(3rem, 15.5vw, 4.2rem) !important;
    line-height: 0.84 !important;
    letter-spacing: -0.075em !important;
    transform: none !important;
    white-space: nowrap !important;
  }

  .hero-brand-sub {
    display: flex !important;
    width: min(100%, 100%) !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-top: clamp(5px, 1.4vw, 9px) !important;
    font-size: clamp(2.05rem, 10.4vw, 2.72rem) !important;
    line-height: 0.86 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    transform: none !important;
    white-space: nowrap !important;
  }

  .hero-brand-sub > span {
    font-family: inherit !important;
    flex: 0 1 auto;
  }

  .motto {
    margin-top: 18px !important;
    font-size: clamp(1.05rem, 5.2vw, 1.35rem) !important;
    line-height: 1.2 !important;
  }

  .hero-text,
  .hero-text-large {
    font-size: 0.98rem !important;
    line-height: 1.45 !important;
    max-width: 100% !important;
  }

  .platform-pills {
    gap: 8px !important;
  }

  .platform-pills span {
    font-size: 0.72rem;
    padding-inline: 10px;
  }

  .hero-actions {
    gap: 10px !important;
  }

  .hero-actions .button {
    flex: 1 1 auto;
    min-width: min(100%, 140px);
  }

  .hero-video-shell {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    border-radius: 24px !important;
  }

  .video-shell-topbar {
    gap: 6px;
  }

  .video-shell-topbar strong {
    margin-left: auto;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }

  .hero-video-card {
    min-height: clamp(190px, 54vw, 260px) !important;
  }

  .hero-feature-ribbon {
    grid-template-columns: 1fr !important;
  }

  .section h2,
  .split-copy h2,
  .site-mode-copy h3 {
    font-size: clamp(2.05rem, 11.5vw, 3.25rem) !important;
    line-height: 1 !important;
  }

  .panel-preview,
  .phone-preview {
    width: 100% !important;
    max-width: 100% !important;
  }

  .panel-preview {
    grid-template-columns: 1fr !important;
  }

  .panel-sidebar {
    display: none !important;
  }

  .panel-main {
    padding: 16px;
  }

  .panel-row,
  .panel-cards {
    grid-template-columns: 1fr !important;
  }

  .phone-preview {
    padding: 10px;
    border-radius: 30px;
  }

  .phone-screen {
    width: min(100%, 360px) !important;
    height: auto !important;
    min-height: 620px;
    margin-inline: auto;
    border-width: 6px;
    border-radius: 28px;
  }

  .phone-extension-banner {
    min-height: 112px;
    padding: 16px 42px 14px;
  }

  .phone-brand-lockup strong {
    font-size: clamp(2rem, 11vw, 2.8rem) !important;
  }

  .phone-category-row,
  .phone-trigger-grid,
  .phone-card-grid.two-col,
  .site-mode-shell,
  .mode-panels {
    grid-template-columns: 1fr !important;
  }

  .mini-chips,
  .mode-switch {
    max-width: 100%;
    overflow-x: auto;
  }

  .wfx-edit-bubble {
    width: 52px !important;
    height: 52px !important;
    right: 12px !important;
    bottom: 12px !important;
  }

  .wfx-edit-panel {
    right: 10px !important;
    bottom: 74px !important;
    width: calc(100vw - 20px) !important;
    max-height: 72vh !important;
  }
}

/* v35 phone presentation patch: mobile-only layout polish.
   These rules only apply below 640px and do not change the approved desktop layout. */
@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  #main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    position: sticky;
    top: 0;
    width: min(100% - 18px, 390px) !important;
    margin-inline: auto !important;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 18px 44px rgba(5, 36, 63, 0.08);
  }

  .brand-name { font-size: 0.86rem; }
  .brand-sub { font-size: 0.72rem; }

  .section,
  .hero,
  .section.intro,
  .section.split,
  .section.split.reverse,
  .section.site-modes {
    width: min(100% - 18px, 390px) !important;
    max-width: 390px !important;
    margin-inline: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow: hidden;
  }

  .section {
    padding-top: 54px !important;
    padding-bottom: 54px !important;
  }

  .hero {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    padding-top: 34px !important;
    padding-bottom: 32px !important;
    border-radius: 28px !important;
    min-height: auto !important;
  }

  .hero-bg {
    inset: 0 !important;
    border-radius: 28px !important;
  }

  .hero-copy,
  .hero-video-showcase,
  .section-heading,
  .split-copy,
  .panel-preview,
  .phone-preview,
  .site-mode-card,
  .glass-card,
  .module-card,
  .benefit-grid article {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
  }

  .hero .eyebrow {
    max-width: 100%;
    padding: 7px 11px;
    font-size: 0.64rem;
    letter-spacing: 0.09em;
  }

  .hero-brand {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
    filter: drop-shadow(0 18px 28px rgba(3, 32, 60, .20));
  }

  .hero-brand-main {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(3.15rem, 15.2vw, 4.2rem) !important;
    line-height: 0.84 !important;
    letter-spacing: -0.075em !important;
    white-space: nowrap !important;
    transform: none !important;
  }

  .hero-brand-sub {
    display: flex !important;
    align-items: flex-start;
    justify-content: space-between;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-top: 5px !important;
    font-size: clamp(2.05rem, 10.2vw, 2.86rem) !important;
    line-height: 0.86 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    transform: none !important;
    text-align: left !important;
  }

  .hero-brand-sub > span {
    flex: 0 1 auto;
    min-width: 0;
  }

  .motto {
    max-width: 100% !important;
    margin-top: 18px !important;
    font-size: clamp(1.08rem, 5.2vw, 1.35rem) !important;
    line-height: 1.17 !important;
    letter-spacing: -0.035em;
  }

  .hero-text,
  .hero-text-large,
  .section-heading p,
  .split-copy p,
  .site-mode-copy p:not(.eyebrow),
  .glass-card p,
  .module-card p,
  .benefit-grid p {
    max-width: 100% !important;
    font-size: 0.94rem !important;
    line-height: 1.5 !important;
    overflow-wrap: break-word;
  }

  .platform-pills,
  .mini-chips,
  .hero-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    max-width: 100%;
  }

  .platform-pills span,
  .mini-chips span {
    flex: 0 1 auto;
    min-height: 30px;
    padding: 7px 10px !important;
    font-size: 0.68rem !important;
  }

  .hero-actions .button {
    flex: 1 1 135px;
    min-width: 0;
    padding: 12px 14px;
    text-align: center;
  }

  .hero-video-showcase {
    margin-top: 4px !important;
  }

  .hero-video-shell {
    width: 100% !important;
    padding: 10px !important;
    border-radius: 24px !important;
  }

  .hero-video-card {
    min-height: clamp(184px, 54vw, 238px) !important;
    border-radius: 18px !important;
  }

  .hero-feature-ribbon {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  .hero-feature-ribbon span {
    min-height: 42px !important;
    border-radius: 14px !important;
  }

  .section-heading {
    margin-bottom: 22px !important;
  }

  .section h2,
  .split-copy h2,
  .site-mode-copy h3 {
    max-width: 100% !important;
    font-size: clamp(2.05rem, 10.6vw, 3.15rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.055em !important;
    overflow-wrap: break-word;
  }

  .glass-grid,
  .glass-grid.four,
  .glass-grid.three,
  .module-grid,
  .benefit-grid,
  .roadmap,
  .footer-grid,
  .compact-footer .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .glass-card,
  .module-card,
  .benefit-grid article {
    padding: 18px !important;
    border-radius: 24px !important;
  }

  .card-icon,
  .module-icon,
  .benefit-grid span {
    min-width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .split,
  .split.reverse,
  .site-mode-panel.active,
  .viewer-site-screen,
  .dashboard-site-screen,
  .site-mode-shell,
  .mode-panels,
  .site-modes,
  .site-mode-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .dashboard-preview,
  .panel-preview,
  .phone-preview,
  .site-mode-card,
  .desktop-preview,
  .mini-phone-preview,
  .device-stack {
    transform: none !important;
  }

  .panel-preview {
    display: grid !important;
    grid-template-columns: 1fr !important;
    border-radius: 26px !important;
    overflow: hidden;
  }

  .panel-sidebar {
    display: none !important;
  }

  .panel-main {
    padding: 14px !important;
  }

  .panel-hero {
    min-height: 82px !important;
    border-radius: 20px !important;
    font-size: clamp(1.35rem, 7vw, 1.95rem) !important;
    line-height: 1;
    text-align: center;
  }

  .panel-row {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }

  .panel-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .panel-row span,
  .panel-cards span {
    min-height: 44px !important;
    padding: 8px !important;
    font-size: 0.64rem !important;
    line-height: 1.12;
  }

  .panel-cards span {
    min-height: 78px !important;
  }

  .phone-preview {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
    padding: 10px !important;
    border-radius: 30px !important;
    overflow: visible;
  }

  .phone-screen {
    width: min(100%, 332px) !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 610px !important;
    margin-inline: auto !important;
    padding: 8px !important;
    border-width: 6px !important;
    border-radius: 28px !important;
    overflow: hidden !important;
  }

  .phone-extension-banner {
    min-height: 108px !important;
    padding: 14px 42px 12px !important;
    border-radius: 22px !important;
  }

  .phone-menu-bubble {
    left: 12px !important;
    top: 12px !important;
    width: 32px !important;
    height: 32px !important;
  }

  .phone-demo-pill {
    right: 10px !important;
    top: 12px !important;
    padding: 7px 10px !important;
    font-size: 0.58rem !important;
  }

  .phone-brand-lockup strong {
    font-size: clamp(1.75rem, 10vw, 2.45rem) !important;
    line-height: 0.9 !important;
  }

  .phone-brand-lockup span {
    font-size: 0.58rem !important;
    letter-spacing: 0.11em !important;
  }

  .phone-category-row,
  .phone-sub-tabs,
  .mini-chips,
  .mode-switch {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .phone-trigger-grid,
  .phone-card-grid.two-col,
  .phone-media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .phone-info-list,
  .phone-achievement-card,
  .phone-command-card,
  .phone-support-goal {
    min-width: 0;
  }

  .phone-preview-note {
    max-width: 100% !important;
    margin: 14px auto 0 !important;
    padding-inline: 6px;
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
    text-align: center;
    overflow-wrap: break-word;
  }

  .site-mode-card {
    padding: 18px !important;
    border-radius: 28px !important;
  }

  .mode-switch {
    justify-content: flex-start !important;
    padding: 6px !important;
    border-radius: 20px !important;
  }

  .mode-switch button {
    flex: 0 0 auto;
    padding: 9px 12px !important;
    font-size: 0.74rem !important;
  }

  .site-mode-panel.active {
    margin-top: 20px !important;
  }

  .device-stack {
    min-height: auto !important;
    display: block !important;
  }

  .desktop-preview {
    width: 100% !important;
    max-width: 100% !important;
    padding: 9px !important;
    border-radius: 24px !important;
  }

  .desktop-screen {
    min-height: auto !important;
    border-radius: 18px !important;
  }

  .viewer-site-screen,
  .dashboard-site-screen {
    padding: 14px !important;
  }

  .site-profile-card,
  .site-feature-rail article {
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .mini-phone-preview {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    width: min(100%, 180px) !important;
    margin: 16px auto 0 !important;
  }

  .site-mode-copy {
    max-width: 100% !important;
  }
}

/* v36 phone-only layout polish: keeps approved desktop untouched.
   Applies only to real phone widths. A matching preview patch is in design-editor.css. */
@media (max-width: 640px) {
  html,
  body,
  #main {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .site-header {
    width: min(100% - 18px, 390px) !important;
    max-width: 390px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 10px !important;
    padding: 10px 12px 12px !important;
    border-radius: 0 0 22px 22px !important;
  }

  .brand-mark { flex: 1 1 auto; min-width: 0; }
  .header-cta { flex: 0 0 auto; }

  .nav-links {
    order: 3 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    padding: 4px 1px 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a {
    flex: 0 0 auto !important;
    min-height: 28px !important;
    padding: 7px 10px !important;
    border: 1px solid rgba(10, 166, 255, 0.22) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    font-size: 0.72rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .section,
  .hero,
  .section.intro,
  .section.split,
  .section.split.reverse,
  .section.site-modes,
  .section.showcase,
  .section.mission-band,
  .section.compatibility,
  .section.beta-cta {
    width: min(100% - 18px, 390px) !important;
    max-width: 390px !important;
    margin-inline: auto !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }

  .section { padding-top: 52px !important; padding-bottom: 52px !important; }
  .hero { padding-top: 30px !important; padding-bottom: 30px !important; }

  .hero,
  .split,
  .split.reverse,
  .site-mode-panel.active,
  .site-mode-card,
  .site-mode-shell,
  .mode-panels,
  .viewer-site-screen,
  .dashboard-site-screen {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .hero-copy,
  .hero-video-showcase,
  .section-heading,
  .split-copy,
  .panel-preview,
  .phone-preview,
  .site-mode-card,
  .desktop-preview,
  .device-stack,
  .viewer-site-screen,
  .dashboard-site-screen,
  .glass-card,
  .module-card,
  .benefit-grid article {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    justify-self: stretch !important;
    transform: none !important;
    scale: none !important;
  }

  .hero-copy { order: 1; position: relative; z-index: 2; }
  .hero-video-showcase { order: 2; position: relative; z-index: 1; margin-top: 16px !important; }

  .hero-brand { width: 100% !important; max-width: 100% !important; overflow: visible !important; }
  .hero-brand-main {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(2.7rem, 13.2vw, 3.35rem) !important;
    line-height: 0.88 !important;
    letter-spacing: -0.07em !important;
    white-space: nowrap !important;
    transform: none !important;
  }
  .hero-brand-sub {
    width: 100% !important;
    max-width: 100% !important;
    margin: 5px 0 0 !important;
    font-size: clamp(1.82rem, 9.2vw, 2.32rem) !important;
    line-height: 0.9 !important;
    white-space: nowrap !important;
    transform: none !important;
  }

  .motto {
    margin-top: 18px !important;
    font-size: clamp(1.02rem, 4.8vw, 1.24rem) !important;
    line-height: 1.22 !important;
  }
  .hero-text,
  .hero-text-large,
  .section-heading p,
  .split-copy p,
  .site-mode-copy p:not(.eyebrow),
  .glass-card p,
  .module-card p,
  .benefit-grid p {
    font-size: 0.92rem !important;
    line-height: 1.48 !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
  }

  .section h2,
  .split-copy h2,
  .site-mode-copy h3 {
    max-width: 100% !important;
    font-size: clamp(2rem, 9.6vw, 2.62rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.055em !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }
  .section-heading { margin-bottom: 20px !important; }
  .eyebrow { font-size: 0.68rem !important; letter-spacing: 0.11em !important; }

  .platform-pills,
  .mini-chips,
  .hero-actions,
  .mode-switch {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    max-width: 100% !important;
    overflow: visible !important;
  }
  .hero-actions .button { flex: 1 1 132px !important; min-width: 0 !important; }

  .glass-grid,
  .glass-grid.four,
  .glass-grid.three,
  .module-grid,
  .benefit-grid,
  .roadmap,
  .footer-grid,
  .compact-footer .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .hero-video-shell {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    border-radius: 24px !important;
  }
  .hero-video-card { min-height: 184px !important; border-radius: 18px !important; }
  .hero-feature-ribbon { grid-template-columns: 1fr !important; gap: 8px !important; }

  .panel-preview {
    display: grid !important;
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    border-radius: 26px !important;
    overflow: hidden !important;
  }
  .panel-sidebar { display: none !important; }
  .panel-main { padding: 14px !important; }
  .panel-hero { min-height: 78px !important; font-size: 1.65rem !important; line-height: 1 !important; text-align: center !important; }
  .panel-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  .panel-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 9px !important; }
  .panel-row span,
  .panel-cards span { min-height: 42px !important; padding: 8px !important; font-size: 0.62rem !important; line-height: 1.15 !important; }
  .panel-cards span { min-height: 76px !important; }

  .phone-preview { padding: 10px !important; border-radius: 28px !important; overflow: visible !important; }
  .phone-screen {
    width: min(100%, 320px) !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 600px !important;
    margin-inline: auto !important;
    padding: 8px !important;
    border-width: 6px !important;
    border-radius: 28px !important;
    overflow: hidden !important;
  }
  .phone-extension-banner { min-height: 104px !important; padding: 14px 42px 12px !important; border-radius: 22px !important; }
  .phone-brand-lockup strong { font-size: clamp(1.72rem, 9.4vw, 2.24rem) !important; line-height: .9 !important; }
  .phone-brand-lockup span { font-size: .56rem !important; letter-spacing: .1em !important; }
  .phone-trigger-grid,
  .phone-card-grid.two-col,
  .phone-media-grid,
  .phone-quick-grid,
  .phone-quick-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 9px !important; }

  .site-mode-card { padding: 16px !important; border-radius: 28px !important; }
  .site-mode-panel.active { margin-top: 18px !important; }
  .device-stack { display: grid !important; gap: 16px !important; min-height: auto !important; }
  .desktop-preview { width: 100% !important; max-width: 100% !important; padding: 9px !important; border-radius: 24px !important; }
  .desktop-screen { min-height: auto !important; border-radius: 18px !important; }
  .viewer-site-screen,
  .dashboard-site-screen { padding: 14px !important; }
  .site-profile-card,
  .site-feature-rail article { padding: 14px !important; border-radius: 18px !important; }
  .site-profile-card h3,
  .dashboard-site-screen h3,
  .site-mode-copy h3 { font-size: clamp(1.55rem, 8vw, 2.05rem) !important; }
  .mini-phone-preview { position: relative !important; right: auto !important; bottom: auto !important; width: min(100%, 182px) !important; margin: 14px auto 0 !important; }
  .mini-phone-screen { min-height: 210px !important; }

  .mission-band { display: block !important; position: relative !important; }
  .mission-band::before { inset: 28px 0 !important; border-radius: 28px !important; }
}

/* v37 aggressive phone refit: phone-only layout, no desktop changes. */
@media (max-width: 640px) {
  html,
  body,
  #main {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    min-width: 0 !important;
    background: linear-gradient(180deg, #f3fbff 0%, #ffffff 48%, #ecfbff 100%) !important;
  }

  .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 80 !important;
    width: min(100% - 18px, 390px) !important;
    max-width: 390px !important;
    min-height: auto !important;
    margin: 0 auto 18px !important;
    padding: 10px 12px 11px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px 10px !important;
    border-radius: 0 0 22px 22px !important;
  }

  .brand-mark {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 8px !important;
  }
  .brand-icon { width: 38px !important; height: 38px !important; }
  .brand-name { font-size: 0.82rem !important; line-height: 0.95 !important; }
  .brand-sub { font-size: 0.70rem !important; line-height: 0.95 !important; }
  .header-cta {
    flex: 0 0 auto !important;
    padding: 10px 13px !important;
    font-size: 0.76rem !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
  }
  .nav-links {
    order: 3 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    display: flex !important;
    gap: 7px !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 3px 1px 0 !important;
  }
  .nav-links::-webkit-scrollbar { display: none !important; }
  .nav-links a {
    flex: 0 0 auto !important;
    padding: 7px 10px !important;
    min-height: 28px !important;
    font-size: 0.70rem !important;
    line-height: 1 !important;
    border-radius: 999px !important;
    border: 1px solid rgba(10, 166, 255, 0.22) !important;
    background: rgba(255,255,255,.72) !important;
    white-space: nowrap !important;
  }

  #main > section,
  #main > .section,
  #main > .hero {
    box-sizing: border-box !important;
    width: min(100% - 18px, 390px) !important;
    max-width: 390px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow-x: hidden !important;
  }

  .section,
  .section.intro,
  .section.split,
  .section.split.reverse,
  .section.site-modes,
  .section.showcase,
  .section.mission-band,
  .section.compatibility,
  .section.beta-cta {
    padding: 52px 16px !important;
  }

  .hero {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
    gap: 18px !important;
    padding: 24px 16px 26px !important;
    border-radius: 28px !important;
    overflow: hidden !important;
  }
  .hero-bg { inset: 0 !important; border-radius: 28px !important; }
  .hero-copy,
  .hero-video-showcase {
    position: relative !important;
    z-index: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    transform: none !important;
    scale: none !important;
    left: auto !important;
    top: auto !important;
  }
  .hero-copy { order: 1 !important; }
  .hero-video-showcase { order: 2 !important; justify-self: stretch !important; }
  .hero .eyebrow {
    max-width: 100% !important;
    margin-bottom: 12px !important;
    padding: 7px 10px !important;
    font-size: 0.60rem !important;
    letter-spacing: 0.085em !important;
    white-space: normal !important;
  }
  .hero-brand {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    filter: drop-shadow(0 14px 24px rgba(3,32,60,.2)) !important;
    text-align: left !important;
  }
  .hero-brand-main {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(2.48rem, 12.35vw, 3.05rem) !important;
    line-height: 0.88 !important;
    letter-spacing: -0.07em !important;
    white-space: nowrap !important;
    transform: none !important;
    scale: none !important;
    text-align: left !important;
  }
  .hero-brand-sub {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 4px 0 0 !important;
    font-size: clamp(1.66rem, 8.3vw, 2.08rem) !important;
    line-height: 0.9 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    transform: none !important;
    scale: none !important;
    text-align: left !important;
  }
  .hero-brand-sub > span { flex: 0 1 auto !important; min-width: 0 !important; }
  .motto {
    max-width: 100% !important;
    margin-top: 16px !important;
    font-size: clamp(1.02rem, 4.9vw, 1.22rem) !important;
    line-height: 1.18 !important;
    letter-spacing: -0.035em !important;
  }
  .hero-text,
  .hero-text-large {
    max-width: 100% !important;
    margin-top: 14px !important;
    font-size: 0.88rem !important;
    line-height: 1.42 !important;
    overflow-wrap: break-word !important;
  }
  .platform-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    margin-top: 16px !important;
    overflow: visible !important;
  }
  .platform-pills span {
    min-height: 28px !important;
    padding: 6px 9px !important;
    font-size: 0.64rem !important;
    line-height: 1 !important;
  }
  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 9px !important;
    margin-top: 18px !important;
  }
  .hero-actions .button {
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px 10px !important;
    font-size: 0.82rem !important;
    line-height: 1.1 !important;
    text-align: center !important;
  }
  .hero-video-shell {
    width: 100% !important;
    max-width: 100% !important;
    padding: 9px !important;
    border-radius: 22px !important;
    overflow: hidden !important;
  }
  .video-shell-topbar {
    min-height: 22px !important;
    gap: 5px !important;
  }
  .video-shell-topbar .dot { width: 8px !important; height: 8px !important; }
  .video-shell-topbar strong {
    margin-left: auto !important;
    font-size: 0.52rem !important;
    letter-spacing: 0.055em !important;
    max-width: 72% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .hero-video-card {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
  }
  .hero-welcome-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .hero-feature-ribbon {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    margin-top: 9px !important;
  }
  .hero-feature-ribbon span {
    min-height: 36px !important;
    padding: 8px 10px !important;
    border-radius: 13px !important;
    font-size: 0.68rem !important;
  }

  .section-heading,
  .split-copy,
  .site-mode-copy,
  .glass-card,
  .module-card,
  .benefit-grid article,
  .panel-preview,
  .phone-preview,
  .site-mode-card,
  .desktop-preview,
  .device-stack {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    transform: none !important;
    scale: none !important;
    left: auto !important;
    top: auto !important;
  }
  .section-heading { margin-bottom: 20px !important; }
  .section h2,
  .split-copy h2,
  .site-mode-copy h3 {
    max-width: 100% !important;
    font-size: clamp(1.95rem, 9.2vw, 2.55rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -0.055em !important;
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }
  .section-heading p,
  .split-copy p,
  .site-mode-copy p:not(.eyebrow),
  .glass-card p,
  .module-card p,
  .benefit-grid p,
  .mission-note {
    max-width: 100% !important;
    font-size: 0.90rem !important;
    line-height: 1.45 !important;
    overflow-wrap: break-word !important;
  }
  .glass-grid,
  .glass-grid.four,
  .glass-grid.three,
  .module-grid,
  .benefit-grid,
  .roadmap,
  .footer-grid,
  .compact-footer .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .glass-card,
  .module-card,
  .benefit-grid article {
    padding: 18px !important;
    border-radius: 22px !important;
  }
  .card-icon,
  .module-icon,
  .benefit-grid span {
    min-width: 46px !important;
    height: 46px !important;
    border-radius: 15px !important;
  }

  .split,
  .split.reverse,
  .site-mode-panel.active,
  .site-mode-shell,
  .mode-panels,
  .viewer-site-screen,
  .dashboard-site-screen,
  .site-modes,
  .site-mode-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .panel-preview {
    display: block !important;
    border-radius: 26px !important;
    overflow: hidden !important;
  }
  .panel-sidebar { display: none !important; }
  .panel-main {
    width: 100% !important;
    padding: 13px !important;
  }
  .panel-hero {
    min-height: 76px !important;
    border-radius: 20px !important;
    font-size: clamp(1.35rem, 6.6vw, 1.78rem) !important;
    line-height: 1.02 !important;
    text-align: center !important;
  }
  .panel-row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .panel-cards {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
  }
  .panel-row span,
  .panel-cards span {
    min-height: 40px !important;
    padding: 7px !important;
    font-size: 0.58rem !important;
    line-height: 1.14 !important;
    border-radius: 13px !important;
    overflow-wrap: break-word !important;
  }
  .panel-cards span { min-height: 70px !important; }

  .phone-preview {
    padding: 8px !important;
    border-radius: 28px !important;
    overflow: visible !important;
  }
  .phone-screen {
    box-sizing: border-box !important;
    width: min(100%, 306px) !important;
    max-width: 306px !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 auto !important;
    padding: 7px !important;
    border-width: 6px !important;
    border-radius: 28px !important;
    overflow: hidden !important;
  }
  .phone-extension-banner {
    min-height: 96px !important;
    padding: 12px 38px 10px !important;
    border-radius: 20px !important;
  }
  .phone-menu-bubble { width: 30px !important; height: 30px !important; left: 10px !important; top: 10px !important; }
  .phone-demo-pill { right: 9px !important; top: 10px !important; padding: 6px 9px !important; font-size: 0.54rem !important; }
  .phone-brand-lockup strong { font-size: 1.9rem !important; line-height: .9 !important; letter-spacing: -0.045em !important; }
  .phone-brand-lockup span { font-size: .50rem !important; letter-spacing: .095em !important; }
  .phone-category-row,
  .phone-sub-tabs {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .phone-category,
  .phone-sub-tab { flex: 0 0 auto !important; }
  .phone-panel { padding: 13px !important; }
  .phone-panel h3 { font-size: 1.24rem !important; line-height: 1.04 !important; }
  .phone-media-hero,
  .phone-support-hero,
  .phone-command-hero { padding: 13px !important; border-radius: 18px !important; }
  .phone-trigger-grid,
  .phone-card-grid.two-col,
  .phone-media-grid,
  .phone-quick-grid,
  .phone-quick-grid-wide {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .phone-trigger,
  .phone-quick-grid span,
  .phone-quick-grid-wide span { min-height: 42px !important; font-size: 0.72rem !important; }
  .phone-preview-note {
    width: 100% !important;
    max-width: 300px !important;
    margin: 12px auto 0 !important;
    padding: 0 !important;
    text-align: center !important;
    font-size: 0.70rem !important;
    line-height: 1.33 !important;
  }

  .site-mode-card {
    padding: 14px !important;
    border-radius: 26px !important;
  }
  .mode-switch {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 7px !important;
    padding: 6px !important;
    border-radius: 18px !important;
    overflow: visible !important;
  }
  .mode-switch button { flex: 1 1 130px !important; padding: 9px 10px !important; font-size: 0.72rem !important; }
  .site-mode-panel.active { margin-top: 16px !important; }
  .device-stack { display: grid !important; grid-template-columns: 1fr !important; gap: 14px !important; min-height: auto !important; }
  .desktop-preview {
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px !important;
    border-radius: 22px !important;
    overflow: hidden !important;
  }
  .desktop-topbar { min-height: 24px !important; }
  .desktop-topbar strong { max-width: 78% !important; font-size: 0.52rem !important; }
  .desktop-screen {
    min-height: auto !important;
    border-radius: 17px !important;
    overflow: hidden !important;
  }
  .viewer-site-screen,
  .dashboard-site-screen {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 12px !important;
  }
  .site-profile-card,
  .site-feature-rail article {
    padding: 13px !important;
    border-radius: 17px !important;
  }
  .site-profile-card h3,
  .dashboard-site-screen h3,
  .site-mode-copy h3 { font-size: 1.75rem !important; line-height: 1.02 !important; }
  .site-mini-actions { display: grid !important; grid-template-columns: 1fr !important; gap: 8px !important; }
  .site-feature-rail { display: grid !important; grid-template-columns: 1fr !important; gap: 10px !important; }
  .dash-mini-sidebar { display: none !important; }
  .dash-metric-row,
  .dash-control-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 8px !important; }
  .mini-phone-preview {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    width: min(100%, 175px) !important;
    margin: 12px auto 0 !important;
  }
  .mini-phone-screen { min-height: 205px !important; }
  .mission-band {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .mission-band::before { inset: 24px 0 !important; border-radius: 28px !important; }
}
