/* ==========================================================================
   ChangeAnyWhere — Design System & Visual Styles
   Modern, elegant macOS/iOS developer tool styling with emerald theme
   ========================================================================== */

:root {
  /* Core Palette */
  --ink: #0f1c15;
  --ink-secondary: #273b31;
  --muted: #52665b;
  --muted-light: #788d82;

  --line: #e2ece6;
  --line-strong: #c8ded3;
  --line-glass: rgba(226, 236, 230, 0.8);

  --paper: #f9fbf9;
  --paper-soft: #f2f7f4;
  --paper-subtle: #ebf3ef;
  --white: #ffffff;

  /* Brand Accents */
  --primary: #059669;
  --primary-hover: #047857;
  --primary-dark: #064e3b;
  --primary-soft: #ecfdf5;
  --primary-glow: rgba(5, 150, 105, 0.16);
  --primary-glow-strong: rgba(5, 150, 105, 0.32);

  --accent-amber: #d97706;
  --accent-amber-soft: #fffbeb;
  --accent-amber-border: #fde68a;

  /* Dark Section */
  --dark-bg: #032018;
  --dark-bg-subtle: #063125;
  --dark-surface: #0a4032;
  --dark-line: rgba(255, 255, 255, 0.12);
  --dark-text: #f0fdf4;
  --dark-muted: #a7f3d0;

  /* Shadows & Elevations */
  --shadow-xs: 0 1px 2px rgba(15, 28, 21, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 28, 21, 0.05), 0 1px 2px rgba(15, 28, 21, 0.03);
  --shadow-md: 0 12px 28px -4px rgba(15, 28, 21, 0.07), 0 4px 10px -2px rgba(15, 28, 21, 0.03);
  --shadow-lg: 0 24px 48px -8px rgba(15, 28, 21, 0.10), 0 8px 16px -4px rgba(15, 28, 21, 0.04);
  --shadow-xl: 0 32px 64px -12px rgba(15, 28, 21, 0.14), 0 16px 28px -6px rgba(15, 28, 21, 0.06);
  --shadow-card-hover: 0 20px 40px -6px rgba(5, 150, 105, 0.12), 0 8px 16px -4px rgba(15, 28, 21, 0.04);

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Layout */
  --container: 1160px;
  --header-height: 72px;

  /* Transition Timing */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 160ms;
  --dur-normal: 240ms;
  --dur-slow: 400ms;
}

/* --------------------------------------------------------------------------
   Base & Reset
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-smooth);
}

button, select {
  font: inherit;
}

h1, h2, h3, h4, p {
  margin-top: 0;
}

h1, h2, h3 {
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 750;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 700;
}

p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

p:last-child {
  margin-bottom: 0;
}

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

/* --------------------------------------------------------------------------
   Layout Components
   -------------------------------------------------------------------------- */
.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  stroke-width: 2;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 14px;
  left: 14px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(-200%);
  transition: transform var(--dur-normal) var(--ease-spring);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Background Ambient Mesh & Graphic
   -------------------------------------------------------------------------- */
.atlas-bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 840px;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.atlas-glow-1 {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  height: 480px;
  background: radial-gradient(ellipse at center, rgba(5, 150, 105, 0.12) 0%, rgba(5, 150, 105, 0.04) 50%, rgba(249, 251, 249, 0) 70%);
  filter: blur(40px);
}

.atlas-glow-2 {
  position: absolute;
  top: 240px;
  right: 5%;
  width: 500px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(249, 251, 249, 0) 70%);
  filter: blur(50px);
}

.atlas-bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1440px;
  height: 840px;
  color: #b5d5c5;
  opacity: 0.42;
}

.atlas-bg path, .atlas-bg circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.atlas-bg .grid-dash {
  stroke-dasharray: 4 6;
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Header & Floating Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  padding: 16px 24px 0;
  transition: padding var(--dur-normal) var(--ease-smooth);
}

.site-header.is-scrolled {
  padding-top: 10px;
}

.site-header-bar {
  display: flex;
  width: min(100%, 1160px);
  min-height: 60px;
  margin-inline: auto;
  padding: 6px 10px 6px 18px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(226, 236, 230, 0.85);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 20px -2px rgba(15, 28, 21, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  transition: all var(--dur-normal) var(--ease-smooth);
}

.site-header.is-scrolled .site-header-bar {
  box-shadow: 0 8px 28px -4px rgba(15, 28, 21, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(200, 222, 211, 0.9);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 750;
  font-size: 1.02rem;
  letter-spacing: -0.025em;
  cursor: pointer;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
  transition: transform var(--dur-fast) var(--ease-spring);
}

.brand:hover .brand-mark {
  transform: scale(1.06);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav > a:not(.btn) {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--dur-fast) var(--ease-smooth);
  cursor: pointer;
}

.site-nav > a:not(.btn):hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.language-select-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 38px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--ink-secondary);
  background: var(--white);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-smooth);
  box-shadow: var(--shadow-xs);
}

.language-select:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.language-select-wrapper::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 8px;
  height: 8px;
  border-right: 1.75px solid var(--muted);
  border-bottom: 1.75px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  pointer-events: none;
  transition: border-color var(--dur-fast) var(--ease-smooth);
}

.language-select-wrapper:hover::after {
  border-color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: auto;
  border-radius: 2px;
  background: var(--ink);
  content: "";
  transition: transform var(--dur-fast) var(--ease-smooth);
}

.nav-toggle-bars::before {
  transform: translateY(-6px);
}

.nav-toggle-bars::after {
  transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(0) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-2px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Buttons & Interactive Pills
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  min-height: 46px;
  padding: 0 22px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-smooth);
  white-space: nowrap;
}

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

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

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--white);
  background: var(--primary);
  box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-small:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 14px var(--primary-glow-strong);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(180deg, #10b981 0%, #059669 100%);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px var(--primary-glow), 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #059669 0%, #047857 100%);
  box-shadow: 0 8px 24px var(--primary-glow-strong), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--white);
  border-color: #a3ccb8;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-light {
  color: var(--primary-dark);
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn-light:hover {
  background: #f4fdf8;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.btn-block {
  width: 100%;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 5px 13px;
  border: 1px solid rgba(5, 150, 105, 0.22);
  border-radius: var(--radius-pill);
  background: rgba(236, 253, 245, 0.85);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
  animation: pulse-dot 2.4s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  display: grid;
  padding-top: clamp(60px, 8vw, 100px);
  padding-bottom: 32px;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(36px, 5vw, 68px);
  align-items: center;
}

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

.hero-title {
  margin-bottom: 20px;
}

.hero-lead {
  max-width: 520px;
  margin-bottom: 30px;
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-secondary);
}

.hero-actions {
  display: flex;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}

.requirement-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.req-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.65);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* --------------------------------------------------------------------------
   macOS Window Preview Card
   -------------------------------------------------------------------------- */
.preview-card {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(200, 222, 211, 0.8);
  background: var(--white);
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
  transition: transform var(--dur-slow) var(--ease-spring), box-shadow var(--dur-slow) var(--ease-spring);
}

.preview-card:hover {
  transform: translateY(-4px) scale(1.008);
  box-shadow: 0 36px 72px -12px rgba(5, 150, 105, 0.16), 0 16px 32px -6px rgba(15, 28, 21, 0.08);
}

.preview-topbar {
  display: flex;
  height: 40px;
  padding: 0 16px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.preview-topbar b {
  margin-left: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.preview-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eaf2ee;
}

.preview-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-smooth);
}

.preview-card:hover .preview-media > img {
  transform: scale(1.015);
}

.preview-account-mask, .preview-device-mask {
  position: absolute;
  top: 2.2%;
  display: inline-flex;
  padding: 4px 9px;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(200, 222, 211, 0.9);
  border-radius: var(--radius-sm);
  color: var(--ink-secondary);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(15, 28, 21, 0.08);
  font-size: clamp(0.52rem, 0.75vw, 0.72rem);
  font-weight: 700;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.preview-account-mask {
  left: 11%;
}

.preview-account-mask img {
  width: 16px;
  height: 16px;
}

.preview-device-mask {
  left: 24.8%;
}

.preview-device-mask i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}

.preview-card figcaption {
  margin: 0;
  padding: 10px 18px 12px;
  color: var(--muted-light);
  background: var(--white);
  font-size: 0.78rem;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Trust Rail / Key Highlights
   -------------------------------------------------------------------------- */
.trust-rail {
  grid-column: 1 / -1;
  display: grid;
  margin: 24px 0 0;
  padding: 12px 16px;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  backdrop-filter: blur(12px);
}

.trust-rail li {
  display: flex;
  min-height: 52px;
  padding: 6px 14px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-secondary);
  font-size: 0.92rem;
  font-weight: 650;
}

.trust-rail li + li {
  border-left: 1px solid var(--line);
}

.trust-rail .trust-icon-wrap {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  color: var(--primary);
  background: var(--primary-soft);
}

/* --------------------------------------------------------------------------
   Sections General
   -------------------------------------------------------------------------- */
.section {
  padding-top: clamp(70px, 8vw, 110px);
  padding-bottom: clamp(70px, 8vw, 110px);
}

.section-heading {
  max-width: 640px;
  margin-bottom: 48px;
}

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

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Mode Grid (3 Core Features)
   -------------------------------------------------------------------------- */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.mode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-normal) var(--ease-spring);
  cursor: default;
}

.mode-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card-hover);
}

.mode-card.featured {
  border-color: #a7f3d0;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 60%);
  box-shadow: 0 12px 32px -4px rgba(5, 150, 105, 0.12), var(--shadow-sm);
}

.mode-card.featured:hover {
  border-color: #6ee7b7;
  box-shadow: 0 20px 48px -6px rgba(5, 150, 105, 0.2);
}

.card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-amber-soft);
  border: 1px solid var(--accent-amber-border);
  color: var(--accent-amber);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.icon-box {
  display: inline-grid;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 14px;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid rgba(5, 150, 105, 0.12);
  transition: transform var(--dur-fast) var(--ease-spring);
}

.mode-card:hover .icon-box {
  transform: scale(1.08);
}

.featured .icon-box {
  color: #c2410c;
  background: #fff7ed;
  border-color: rgba(194, 65, 12, 0.15);
}

.mode-card h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
}

.mode-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Workflow Section
   -------------------------------------------------------------------------- */
.section-tint {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper-soft) 0%, #edf4f0 100%);
  position: relative;
}

.step-grid {
  position: relative;
  display: grid;
  margin: 60px 0 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  list-style: none;
}

.step-grid::before {
  position: absolute;
  top: 25px;
  left: 18%;
  right: 18%;
  height: 2px;
  background: linear-gradient(90deg, #c3dcce 0%, #9fc7b3 50%, #c3dcce 100%);
  content: "";
  z-index: 0;
}

.step-item {
  position: relative;
  z-index: 1;
  padding: 0 16px;
  text-align: center;
}

.step-number {
  position: relative;
  display: inline-grid;
  width: 50px;
  height: 50px;
  margin-bottom: 24px;
  place-items: center;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  color: var(--primary-dark);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-sm), 0 0 0 6px var(--paper-soft);
  transition: all var(--dur-normal) var(--ease-spring);
}

.step-item:hover .step-number {
  transform: scale(1.1);
  border-color: var(--primary);
  color: var(--white);
  background: var(--primary);
}

.step-item h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.step-item p {
  max-width: 320px;
  margin-inline: auto;
  font-size: 0.94rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Compatibility & Data Boundaries
   -------------------------------------------------------------------------- */
.compatibility {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.compat-intro {
  position: sticky;
  top: 100px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-smooth);
}

.text-link:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.compat-panels {
  display: grid;
  gap: 20px;
}

.info-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: all var(--dur-normal) var(--ease-smooth);
}

.info-panel:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.panel-title {
  display: flex;
  margin-bottom: 22px;
  align-items: center;
  gap: 12px;
}

.panel-icon-wrap {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  color: var(--primary);
  background: var(--primary-soft);
}

.panel-title h3 {
  margin: 0;
  font-size: 1.2rem;
}

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

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-secondary);
  font-size: 0.95rem;
  line-height: 1.55;
}

.check-icon-wrap {
  display: inline-grid;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: var(--primary-soft);
  flex-shrink: 0;
}

.check-icon-wrap .icon {
  width: 0.8em;
  height: 0.8em;
}

/* --------------------------------------------------------------------------
   Pricing Section (Deep Emerald Stage)
   -------------------------------------------------------------------------- */
.pricing {
  position: relative;
  color: var(--dark-text);
  background: radial-gradient(ellipse at top center, #064e3b 0%, #03251c 65%, #011711 100%);
  overflow: hidden;
}

.pricing::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.4), transparent);
}

.pricing-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 7vw, 96px);
  align-items: center;
  position: relative;
  z-index: 1;
}

.pricing-copy .eyebrow-badge {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(52, 211, 153, 0.3);
  color: var(--dark-muted);
}

.pricing-copy .eyebrow-dot {
  background: #34d399;
}

.pricing-copy h2 {
  color: var(--white);
}

.pricing-copy p {
  color: #a7f3d0;
  font-size: 1.05rem;
}

.pricing-copy > p:last-child {
  color: #c7ead9;
  font-size: 0.96rem;
}

.plan-card {
  position: relative;
  padding: clamp(32px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 32px 80px -10px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: blur(24px);
  transition: transform var(--dur-normal) var(--ease-spring);
}

.plan-card:hover {
  transform: translateY(-2px);
}

.plan-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.plan-badge {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  color: var(--primary-dark);
  background: var(--primary-soft);
  border: 1px solid rgba(5, 150, 105, 0.2);
}

.price {
  display: flex;
  margin: 24px 0 6px;
  align-items: baseline;
  gap: 8px;
}

.price strong {
  color: var(--ink);
  font-size: clamp(3.8rem, 6.5vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 800;
}

.price span {
  color: var(--muted);
  font-weight: 700;
  font-size: 1.1rem;
}

.cycle {
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}

.plan-list {
  margin-bottom: 30px;
}

.pricing-note {
  margin: 16px 0 0;
  color: var(--muted-light);
  font-size: 0.8rem;
  line-height: 1.55;
  text-align: center;
}

.pricing-note a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   FAQ Accordion
   -------------------------------------------------------------------------- */
.faq {
  max-width: 860px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: all var(--dur-normal) var(--ease-smooth);
}

.faq-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.faq-item[open] {
  border-color: #a7f3d0;
  background: #fbfdfc;
  box-shadow: var(--shadow-sm);
}

.faq-summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: var(--primary-soft);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform var(--dur-normal) var(--ease-spring), background var(--dur-fast) var(--ease-smooth);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  background: var(--primary);
  color: var(--white);
}

.faq-content {
  padding: 0 24px 22px;
}

.faq-content p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.faq-content a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Support Banner
   -------------------------------------------------------------------------- */
.support-band-wrap {
  padding: 30px 0;
}

.support-banner {
  position: relative;
  padding: clamp(36px, 5vw, 54px) clamp(28px, 6vw, 64px);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, #047857 0%, #065f46 50%, #064e3b 100%);
  color: var(--white);
  box-shadow: 0 24px 48px -10px rgba(4, 120, 87, 0.35);
  overflow: hidden;
}

.support-banner::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.support-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.support-banner .eyebrow-badge {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #d1fae5;
}

.support-banner .eyebrow-dot {
  background: #6ee7b7;
}

.support-banner h2 {
  color: var(--white);
  margin-bottom: 8px;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
}

.support-banner p {
  color: #d1fae5;
  font-size: 1.02rem;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--line);
  background: var(--paper-soft);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 36px;
  align-items: start;
}

.footer-brand p {
  max-width: 420px;
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-smooth);
}

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

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted-light);
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   Not Found Page
   -------------------------------------------------------------------------- */
.error-page {
  display: grid;
  min-height: calc(100vh - 150px);
  padding-top: clamp(72px, 10vw, 128px);
  padding-bottom: clamp(72px, 10vw, 128px);
  place-items: center;
}

.error-panel {
  width: min(100%, 720px);
  padding: clamp(36px, 7vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.error-code {
  margin: 0 0 16px;
  color: var(--primary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: clamp(3.8rem, 11vw, 7.5rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.error-panel h1 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.error-message {
  max-width: 560px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 1.05rem;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Legal Pages (Terms, Privacy, Refund)
   -------------------------------------------------------------------------- */
body:not([data-page="home"]) {
  background: #f6f9f7;
}

.legal-page-header {
  padding: 40px 0 20px;
  text-align: center;
}

.legal-container {
  width: min(calc(100% - 40px), 880px);
  margin: 0 auto;
  padding: 30px 0 100px;
}

.legal-card {
  padding: clamp(32px, 6vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.legal-card h1 {
  margin-bottom: 8px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
}

.legal-card .updated {
  margin-bottom: 32px;
  color: var(--muted-light);
  font-size: 0.9rem;
  font-weight: 600;
}

.language-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 28px;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  color: #14532d;
  background: #f0fdf4;
  font-size: 0.92rem;
  font-weight: 500;
}

.legal-card h2 {
  margin-top: 40px;
  margin-bottom: 14px;
  font-size: 1.4rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.legal-card p, .legal-card li {
  color: var(--ink-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

.legal-card li + li {
  margin-top: 8px;
}

.legal-card a {
  color: var(--primary-dark);
  font-weight: 650;
  text-decoration: underline;
}

.legal-card strong {
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Scroll Animations & Micro-interactions
   -------------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-spring), transform 0.6s var(--ease-spring);
  will-change: opacity, transform;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy {
    max-width: 700px;
    margin-inline: auto;
  }

  .hero-actions, .requirement-pills {
    justify-content: center;
  }

  .preview-card {
    max-width: 860px;
    margin-inline: auto;
  }

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

  .compat-intro {
    position: static;
    max-width: 680px;
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 10px 16px 0;
  }

  .site-header-bar {
    min-height: 56px;
    padding: 6px 12px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(24px);
  }

  .site-nav.is-open {
    display: flex;
    animation: menu-slide 0.25s var(--ease-spring);
  }

  @keyframes menu-slide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .site-nav > a:not(.btn) {
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .site-nav-actions {
    flex-direction: column;
    gap: 10px;
    margin-left: 0;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .language-select-wrapper {
    width: 100%;
  }

  .language-select {
    width: 100%;
    min-height: 44px;
  }

  .site-nav .btn {
    width: 100%;
    min-height: 44px;
  }

  .mode-grid, .step-grid {
    grid-template-columns: 1fr;
  }

  .step-grid {
    gap: 36px;
  }

  .step-grid::before {
    top: 24px;
    bottom: 24px;
    left: 24px;
    width: 2px;
    height: auto;
  }

  .step-item {
    display: grid;
    padding: 0 0 0 72px;
    grid-template-columns: 1fr;
    text-align: left;
  }

  .step-number {
    position: absolute;
    left: 0;
    margin: 0;
  }

  .step-item p {
    max-width: none;
    margin: 0;
  }

  .pricing-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .hero {
    padding-top: 48px;
    gap: 32px;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .trust-rail {
    grid-template-columns: 1fr;
    padding: 12px;
    gap: 6px;
  }

  .trust-rail li {
    min-height: 44px;
    justify-content: flex-start;
    padding: 6px 10px;
  }

  .trust-rail li + li {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .mode-card, .info-panel, .plan-card {
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }

  .support-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .support-inner .btn {
    width: 100%;
  }

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

  .footer-copy {
    grid-column: 1;
  }

  .legal-container {
    width: min(calc(100% - 24px), 880px);
    padding: 20px 0 70px;
  }

  .legal-card {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }

  .error-panel {
    padding: 36px 20px;
    border-radius: var(--radius-lg);
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .btn {
    width: 100%;
  }
}

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

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

  .fade-up {
    opacity: 1 !important;
    transform: none !important;
  }
}
