/* ============================================================
   LawnDrive — Design System & Styles
   Palette: off-white, charcoal, deep green, muted sage
   Aesthetic: Apple × Rivian × Matic × premium home robotics
   ============================================================ */

/* --- Tokens --- */
:root {
  /* Color tokens */
  --color-bg:           #F7F6F3;
  --color-bg-alt:       #EFEEE9;
  --color-bg-dark:      #1A1A1A;
  --color-bg-green:     #0B3D2E;
  --color-text:         #1A1A1A;
  --color-text-muted:   #5A5A58;
  --color-text-light:   #F7F6F3;
  --color-text-on-dark: #D4D4D0;
  --color-green:        #1B6B4A;
  --color-green-deep:   #0B3D2E;
  --color-sage:         #8FAE8B;
  --color-sage-muted:   #B2C5A8;
  --color-sage-light:   #D6E3D0;
  --color-charcoal:     #2C2C2B;
  --color-border:       #D8D6D0;
  --color-border-light: #E8E6E0;
  --color-white:        #FFFFFF;
  --color-error:        #C0392B;
  --color-success:      #1B6B4A;

  /* Typography tokens */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.75rem;
  --text-5xl:  3.5rem;
  --text-6xl:  4.5rem;

  --leading-tight:  1.15;
  --leading-snug:   1.3;
  --leading-normal: 1.6;

  --tracking-tight:  -0.03em;
  --tracking-normal:  0;
  --tracking-wide:    0.04em;
  --tracking-wider:   0.08em;

  /* Spacing tokens */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-40: 10rem;

  /* Layout tokens */
  --max-width:     1280px;
  --max-width-sm:  640px;
  --max-width-md:  768px;
  --max-width-lg:  960px;
  --max-width-xl:  1120px;
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 20px;

  /* Motion tokens */
  --duration-fast:   150ms;
  --duration-normal: 300ms;
  --duration-slow:   500ms;
  --easing-default:  cubic-bezier(0.25, 0.1, 0.25, 1);
  --easing-out:      cubic-bezier(0, 0, 0.25, 1);
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- Focus states (accessibility-first) --- */
:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 3px;
  border-radius: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  line-height: var(--leading-tight);
  color: var(--color-text);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl);  }
h6 { font-size: var(--text-lg);  }

p {
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
  max-width: 640px;
}

.label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-green);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.section {
  padding: var(--space-32) 0;
}

.section--tight {
  padding: var(--space-20) 0;
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 {
  color: var(--color-text-light);
}

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

.section--dark .label {
  color: var(--color-sage);
}

.section--green {
  background-color: var(--color-bg-green);
  color: var(--color-text-light);
}

.section--green h1,
.section--green h2,
.section--green h3,
.section--green h4,
.section--green h5,
.section--green h6 {
  color: var(--color-text-light);
}

.section--green p {
  color: var(--color-sage-light);
}

.section--green .label {
  color: var(--color-sage-muted);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

/* --- Grid system --- */
.grid {
  display: grid;
  gap: var(--space-8);
}

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

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  padding: var(--space-4) var(--space-8);
  border-radius: 100px;
  transition: all var(--duration-normal) var(--easing-default);
  min-height: 48px;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-green);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-green-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(11, 61, 46, 0.25);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-charcoal);
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-text);
  padding: var(--space-2) var(--space-4);
  min-height: auto;
}

.btn--ghost:hover {
  color: var(--color-green);
}

.btn--light {
  background-color: rgba(255,255,255,0.15);
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(10px);
}

.btn--light:hover {
  background-color: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.4);
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-green-deep);
}

.btn--white:hover {
  background-color: var(--color-bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn--lg {
  font-size: var(--text-base);
  padding: var(--space-5) var(--space-10);
  min-height: 56px;
}

.btn-group {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(247, 246, 243, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  transition: background-color var(--duration-normal) var(--easing-default),
              box-shadow var(--duration-normal) var(--easing-default);
}

.nav--scrolled {
  box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--color-text);
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  background-color: var(--color-green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav__logo-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--color-white);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-10);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--duration-fast) var(--easing-default);
  position: relative;
}

.nav__link:hover {
  color: var(--color-text);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1.5px;
  background-color: var(--color-green);
  transform: scaleX(0);
  transition: transform var(--duration-normal) var(--easing-out);
}

.nav__link:hover::after {
  transform: scaleX(1);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius-sm);
}

.nav__toggle-line {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--color-text);
  position: relative;
  transition: background-color var(--duration-fast);
}

.nav__toggle-line::before,
.nav__toggle-line::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform var(--duration-normal) var(--easing-default);
}

.nav__toggle-line::before { top: -6px; }
.nav__toggle-line::after  { top: 6px;  }

.nav__toggle.active .nav__toggle-line {
  background-color: transparent;
}

.nav__toggle.active .nav__toggle-line::before {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav__toggle.active .nav__toggle-line::after {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-bg) 0%, var(--color-bg-alt) 50%, var(--color-sage-light) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: var(--space-20) 0;
}

.hero__label {
  margin-bottom: var(--space-6);
}

.hero__title {
  font-size: var(--text-6xl);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: var(--space-8);
  color: var(--color-text);
}

.hero__subtitle {
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--color-text-muted);
  margin-bottom: var(--space-12);
  max-width: 540px;
}

.hero__visual {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: 55%;
  max-width: 750px;
  z-index: 1;
  opacity: 0.9;
}

.hero__visual-robot {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-sage-light) 0%, var(--color-sage-muted) 40%, var(--color-sage) 100%);
  border-radius: var(--border-radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(11, 61, 46, 0.15);
}

.hero__visual-robot::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(255,255,255,0.3) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(11, 61, 46, 0.15) 0%, transparent 40%);
}

/* Robot illustration elements */
.robot-body {
  position: absolute;
  width: 280px;
  height: 80px;
  background: var(--color-charcoal);
  border-radius: 140px / 40px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.robot-body::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 24px;
  background: var(--color-green);
  border-radius: 12px 12px 0 0;
}

.robot-body::after {
  content: 'LawnDrive';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-sage);
}

.robot-wheel {
  position: absolute;
  width: 40px;
  height: 50px;
  background: #333;
  border-radius: 8px;
  top: 50%;
  transform: translateY(-40%);
}

.robot-wheel--left  { left: calc(50% - 130px); }
.robot-wheel--right { left: calc(50% + 90px);  }

.robot-sensor {
  position: absolute;
  width: 16px;
  height: 16px;
  background: var(--color-sage);
  border-radius: 50%;
  top: calc(50% - 50px);
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(143, 174, 139, 0.6);
  animation: sensor-pulse 3s ease-in-out infinite;
}

@keyframes sensor-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(143, 174, 139, 0.4); }
  50%      { box-shadow: 0 0 40px rgba(143, 174, 139, 0.8); }
}

/* Lawn lines in hero */
.lawn-lines {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  overflow: hidden;
  opacity: 0.15;
}

.lawn-line {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--color-green);
}

/* --- Section Headers --- */
.section-header {
  max-width: 640px;
  margin-bottom: var(--space-16);
}

.section-header--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header--center p {
  margin-left: auto;
  margin-right: auto;
}

.section-header .label {
  margin-bottom: var(--space-4);
}

.section-header h2 {
  margin-bottom: var(--space-6);
}

/* --- Cards --- */
.card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: var(--space-10);
  transition: transform var(--duration-normal) var(--easing-default),
              box-shadow var(--duration-normal) var(--easing-default);
  border: 1px solid var(--color-border-light);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}

.card--flat {
  background-color: transparent;
  border: none;
  padding: var(--space-8);
}

.card--flat:hover {
  transform: none;
  box-shadow: none;
}

.card--dark {
  background-color: var(--color-charcoal);
  border-color: rgba(255,255,255,0.08);
}

.card--dark:hover {
  border-color: rgba(255,255,255,0.15);
}

.card__icon {
  width: 56px;
  height: 56px;
  background-color: var(--color-sage-light);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  color: var(--color-green-deep);
}

.card--dark .card__icon {
  background-color: rgba(143, 174, 139, 0.15);
  color: var(--color-sage);
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.card--dark .card__title {
  color: var(--color-text-light);
}

.card__text {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--color-text-muted);
}

.card--dark .card__text {
  color: var(--color-text-on-dark);
}

/* --- Explainer section --- */
.explainer-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  padding: var(--space-16) 0;
  border-bottom: 1px solid var(--color-border-light);
}

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

.explainer-item:nth-child(even) .explainer-visual {
  order: -1;
}

.explainer-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
}

.explainer-visual__inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
}

.explainer-content .label {
  margin-bottom: var(--space-4);
}

.explainer-content h3 {
  margin-bottom: var(--space-4);
  font-size: var(--text-3xl);
}

.explainer-content p {
  font-size: var(--text-base);
  margin-bottom: var(--space-6);
}

/* Visual placeholders */
.visual--vision {
  background: linear-gradient(135deg, #E8F0E4 0%, #C5D9BE 100%);
}

.visual--path {
  background: linear-gradient(135deg, #F0EDE4 0%, #D9D3C5 100%);
}

.visual--quiet {
  background: linear-gradient(135deg, #E4EAF0 0%, #BEC9D9 100%);
}

.visual--health {
  background: linear-gradient(135deg, #E4F0E8 0%, #BED9C5 100%);
}

/* --- Diagram elements inside visuals --- */
.diagram {
  width: 100%;
  height: 100%;
  position: relative;
}

/* Vision diagram */
.diagram--vision .scan-area {
  width: 200px;
  height: 200px;
  border: 2px dashed var(--color-sage);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.5;
}

.diagram--vision .scan-area:nth-child(2) {
  width: 140px;
  height: 140px;
  opacity: 0.7;
}

.diagram--vision .scan-center {
  width: 16px;
  height: 16px;
  background: var(--color-green);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Path diagram */
.diagram--path .path-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(6, 1fr);
  gap: 2px;
  width: 100%;
  height: 100%;
}

.diagram--path .path-cell {
  border-radius: 2px;
  background: rgba(27, 107, 74, 0.08);
}

.diagram--path .path-cell.active {
  background: rgba(27, 107, 74, 0.25);
}

.diagram--path .path-cell.current {
  background: var(--color-green);
  border-radius: 50%;
}

/* Health diagram */
.diagram--health .health-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 4px;
  width: 100%;
  height: 100%;
}

.diagram--health .health-cell {
  border-radius: 4px;
}

/* --- Trust Strip --- */
.trust-strip {
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.trust-strip__item {
  padding: var(--space-10) var(--space-8);
  text-align: center;
  border-right: 1px solid var(--color-border-light);
}

.trust-strip__item:last-child {
  border-right: none;
}

.trust-strip__icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-4);
  color: var(--color-green);
}

.trust-strip__icon svg {
  width: 100%;
  height: 100%;
}

.trust-strip__text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: var(--tracking-wide);
}

/* --- App Preview --- */
.app-preview {
  width: 320px;
  height: 580px;
  background: var(--color-charcoal);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
  margin: 0 auto;
  position: relative;
}

.app-preview__screen {
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.app-preview__status {
  padding: var(--space-4) var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.app-preview__header {
  padding: var(--space-2) var(--space-6) var(--space-4);
}

.app-preview__header h5 {
  font-size: var(--text-lg);
  font-weight: 600;
}

.app-preview__map {
  margin: 0 var(--space-4);
  height: 200px;
  background: linear-gradient(135deg, var(--color-sage-light) 0%, var(--color-sage-muted) 100%);
  border-radius: var(--border-radius-sm);
  position: relative;
  overflow: hidden;
}

.app-preview__map-zones {
  position: absolute;
  inset: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
}

.app-preview__zone {
  border-radius: 6px;
  border: 1.5px dashed rgba(11, 61, 46, 0.3);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 6px;
}

.app-preview__zone-label {
  font-size: 8px;
  font-weight: 600;
  color: var(--color-green-deep);
  opacity: 0.7;
}

.app-preview__zone--1 { background: rgba(27, 107, 74, 0.12); }
.app-preview__zone--2 { background: rgba(27, 107, 74, 0.08); }
.app-preview__zone--3 { background: rgba(27, 107, 74, 0.18); }
.app-preview__zone--4 { background: rgba(27, 107, 74, 0.06); }

.app-preview__stats {
  padding: var(--space-4) var(--space-6);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.app-preview__stat {
  background: var(--color-white);
  border-radius: var(--border-radius-sm);
  padding: var(--space-3) var(--space-4);
}

.app-preview__stat-label {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.app-preview__stat-value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-green);
}

.app-preview__nav {
  margin-top: auto;
  padding: var(--space-3) var(--space-6) var(--space-5);
  display: flex;
  justify-content: space-around;
  border-top: 1px solid var(--color-border-light);
}

.app-preview__nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  color: var(--color-text-muted);
}

.app-preview__nav-item.active {
  color: var(--color-green);
}

.app-preview__nav-icon {
  width: 20px;
  height: 20px;
}

/* --- Dock visual --- */
.dock-visual {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--color-charcoal) 0%, #333 100%);
  border-radius: var(--border-radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.2);
}

.dock-base {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 30px;
  background: #444;
  border-radius: 8px 8px 0 0;
}

.dock-ramp {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 4px;
  background: #555;
  border-radius: 2px;
}

.dock-indicator {
  position: absolute;
  bottom: calc(20% + 34px);
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background: var(--color-sage);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(143, 174, 139, 0.8);
  animation: sensor-pulse 2s ease-in-out infinite;
}

.dock-label {
  position: absolute;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-on-dark);
  letter-spacing: var(--tracking-wide);
}

/* --- Feature list (Why Different) --- */
.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

.feature-item {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

.feature-item__marker {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background-color: rgba(143, 174, 139, 0.15);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sage);
}

.feature-item__marker svg {
  width: 24px;
  height: 24px;
}

.feature-item__content h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text-light);
}

.feature-item__content p {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark);
}

/* --- FAQ --- */
.faq-list {
  max-width: 768px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border-light);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  transition: color var(--duration-fast);
  min-height: 48px;
}

.faq-question:hover {
  color: var(--color-green);
}

.faq-question__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-left: var(--space-4);
  transition: transform var(--duration-normal) var(--easing-default);
  color: var(--color-text-muted);
}

.faq-item.active .faq-question__icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--easing-default),
              padding var(--duration-slow) var(--easing-default);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: var(--space-6);
}

.faq-answer p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 640px;
}

/* --- Safety Grid --- */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-6);
}

.safety-item {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.safety-item__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto var(--space-5);
  background: var(--color-sage-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green-deep);
}

.safety-item__icon svg {
  width: 24px;
  height: 24px;
}

.safety-item__title {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.safety-item__text {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: var(--leading-normal);
}

/* --- Dock features --- */
.dock-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.dock-feature {
  text-align: center;
}

.dock-feature__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto var(--space-4);
  background: rgba(143, 174, 139, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-sage);
}

.dock-feature__icon svg {
  width: 22px;
  height: 22px;
}

.dock-feature__title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: var(--space-1);
}

.dock-feature__text {
  font-size: var(--text-xs);
  color: var(--color-text-on-dark);
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: var(--space-24) var(--space-8);
}

.cta-banner h2 {
  margin-bottom: var(--space-6);
}

.cta-banner p {
  margin: 0 auto var(--space-10);
  font-size: var(--text-lg);
}

/* --- Footer --- */
.footer {
  background-color: var(--color-bg-dark);
  color: var(--color-text-on-dark);
  padding: var(--space-20) 0 var(--space-10);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--space-12);
  margin-bottom: var(--space-16);
}

.footer__brand p {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark);
  margin-top: var(--space-4);
  max-width: 280px;
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}

.footer__link {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-on-dark);
  padding: var(--space-2) 0;
  transition: color var(--duration-fast);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer__bottom-links a {
  color: var(--color-text-muted);
  transition: color var(--duration-fast);
}

.footer__bottom-links a:hover {
  color: var(--color-text-on-dark);
}

/* --- Form --- */
.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: var(--space-4);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  transition: border-color var(--duration-fast),
              box-shadow var(--duration-fast);
  min-height: 48px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(27, 107, 74, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.5;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-2);
  display: none;
}

.form-group.has-error .form-error {
  display: block;
}

/* --- Checkbox --- */
.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.form-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.form-checkbox__mark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--duration-fast),
              border-color var(--duration-fast);
  margin-top: 1px;
}

.form-checkbox input:checked + .form-checkbox__mark {
  background-color: var(--color-green);
  border-color: var(--color-green);
}

.form-checkbox input:checked + .form-checkbox__mark::after {
  content: '';
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

.form-checkbox input:focus-visible + .form-checkbox__mark {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

.form-checkbox__label {
  color: var(--color-text-muted);
}

.form-checkbox__label a {
  color: var(--color-green);
  text-decoration: underline;
  text-decoration-color: rgba(27, 107, 74, 0.3);
  text-underline-offset: 2px;
}

.form-checkbox__label a:hover {
  text-decoration-color: var(--color-green);
}

.form-group.has-error .form-checkbox__mark {
  border-color: var(--color-error);
}

.form-success {
  background-color: rgba(27, 107, 74, 0.08);
  border: 1px solid rgba(27, 107, 74, 0.2);
  border-radius: var(--border-radius-sm);
  padding: var(--space-6);
  text-align: center;
  display: none;
}

.form-success.visible {
  display: block;
}

.form-success__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-green);
  margin-bottom: var(--space-2);
}

.form-success__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: none;
}

/* --- Page header (for secondary pages) --- */
.page-header {
  padding: calc(72px + var(--space-16)) 0 var(--space-16);
  background-color: var(--color-bg-alt);
}

.page-header h1 {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-4);
}

/* --- Product detail specifics --- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid var(--color-border-light);
}

.spec-table td {
  padding: var(--space-4) 0;
  font-size: var(--text-sm);
}

.spec-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
  width: 40%;
}

.spec-table td:last-child {
  color: var(--color-text-muted);
}

/* --- Scroll animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--easing-out),
              transform var(--duration-slow) var(--easing-out);
}

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

.reveal--delay-1 { transition-delay: 100ms; }
.reveal--delay-2 { transition-delay: 200ms; }
.reveal--delay-3 { transition-delay: 300ms; }
.reveal--delay-4 { transition-delay: 400ms; }

/* --- Mobile nav overlay --- */
.nav__mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(247, 246, 243, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: var(--space-8);
  flex-direction: column;
  gap: var(--space-2);
}

.nav__mobile.active {
  display: flex;
}

.nav__mobile a {
  display: block;
  font-size: var(--text-xl);
  font-weight: 600;
  padding: var(--space-4) 0;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
}

.nav__mobile a:hover {
  color: var(--color-green);
}

.nav__mobile .btn {
  margin-top: var(--space-4);
  width: 100%;
}

/* --- Answer Block (AI SEO) --- */
.answer-block {
  background-color: var(--color-bg-alt);
  border-left: 3px solid var(--color-green);
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
  padding: var(--space-6) var(--space-8);
  margin-bottom: var(--space-10);
}

.answer-block__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: var(--space-2);
}

.answer-block p {
  font-size: var(--text-base);
  color: var(--color-text);
  max-width: none;
  line-height: var(--leading-normal);
}

/* --- Related Pages --- */
.related-pages {
  border-top: 1px solid var(--color-border-light);
  padding-top: var(--space-10);
  margin-top: var(--space-10);
}

.related-pages__title {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.related-pages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
}

.related-pages__link {
  display: block;
  padding: var(--space-5) var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  transition: border-color var(--duration-fast), transform var(--duration-fast);
}

.related-pages__link:hover {
  border-color: var(--color-green);
  transform: translateY(-1px);
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-10);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-border-light);
}

.comparison-table th {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
  width: 30%;
}

.comparison-table .check {
  color: var(--color-green);
}

.comparison-table .cross {
  color: var(--color-text-muted);
  opacity: 0.5;
}

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

@media (max-width: 1024px) {
  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }

  .hero__title { font-size: var(--text-5xl); }

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

  .safety-grid { grid-template-columns: repeat(3, 1fr); }
  .dock-features { grid-template-columns: repeat(2, 1fr); }

  .footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-6); }
  .section { padding: var(--space-20) 0; }

  h1 { font-size: var(--text-3xl); }
  h2 { font-size: var(--text-2xl); }

  .hero__title { font-size: var(--text-4xl); }
  .hero__visual { display: none; }
  .hero__content { max-width: 100%; }

  .nav__links { display: none; }
  .nav__actions .btn--secondary { display: none; }
  .nav__toggle { display: flex; }

  .grid--2,
  .grid--3,
  .grid--4,
  .grid--2-1,
  .grid--1-2,
  .grid--1-1 { grid-template-columns: 1fr; }

  .explainer-item {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .explainer-item:nth-child(even) .explainer-visual {
    order: 0;
  }

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

  .trust-strip__item:nth-child(2) {
    border-right: none;
  }

  .trust-strip__item:nth-child(1),
  .trust-strip__item:nth-child(2) {
    border-bottom: 1px solid var(--color-border-light);
  }

  .safety-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: 1fr; }
  .dock-features { grid-template-columns: 1fr 1fr; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-4);
    text-align: center;
  }

  .btn-group {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-group .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero__title { font-size: var(--text-3xl); }
  .hero__subtitle { font-size: var(--text-base); }

  .trust-strip__grid { grid-template-columns: 1fr; }
  .trust-strip__item { border-right: none; border-bottom: 1px solid var(--color-border-light); }
  .trust-strip__item:last-child { border-bottom: none; }

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

  .footer__grid { grid-template-columns: 1fr; }

  .app-preview {
    width: 280px;
    height: 510px;
  }
}
