/* ============================================================
   TORKHOST — styles.css
   Premium web & WordPress hosting landing page
   ------------------------------------------------------------
   Design tokens are defined in :root. Edit colors, spacing and
   typography in one place.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Colors — dark surfaces */
  --ink-950: #070B14;
  --ink-900: #0B101D;
  --ink-850: #0E1424;
  --ink-800: #131A2C;
  --ink-700: #1C2438;
  --line-dark: rgba(148, 163, 184, 0.14);

  /* Colors — text on dark */
  --text-dark-hi: #F1F5F9;
  --text-dark-mid: #A8B3C7;
  --text-dark-low: #7C8AA0;

  /* Colors — accent */
  --accent: #A3E635;
  --accent-hover: #B8F04E;
  --accent-ink: #0B101D;
  --accent-soft: rgba(163, 230, 53, 0.12);
  --accent-glow: rgba(163, 230, 53, 0.28);

  /* Colors — light surfaces */
  --bg-light: #F6F7F9;
  --bg-white: #FFFFFF;
  --line-light: #E4E8EF;

  /* Colors — text on light */
  --text-light-hi: #0B101D;
  --text-light-mid: #4A5568;
  --text-light-low: #6B7686;

  /* Check icon color per context */
  --check-color: #4D7C0F;

  /* Focus ring (light sections default; dark sections override) */
  --focus-ring: #0B101D;

  /* Typography */
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing & shape */
  --header-h: 72px;
  --container: 1200px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  /* Shadows */
  --shadow-card: 0 1px 2px rgba(11, 16, 29, 0.04), 0 8px 24px rgba(11, 16, 29, 0.06);
  --shadow-pop: 0 12px 40px rgba(11, 16, 29, 0.14);
  --shadow-glow: 0 8px 24px -8px rgba(163, 230, 53, 0.5);
}

/* Dark sections get a lime focus ring and light ghost-button colors */
.section-dark,
.site-header,
.migration-card {
  --focus-ring: var(--accent);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  overflow-x: clip;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-light-hi);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection {
  background: rgba(163, 230, 53, 0.35);
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container--narrow {
  max-width: 840px;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light-low);
  margin-bottom: 16px;
}

.eyebrow--accent {
  color: var(--accent);
}

.eyebrow--accent::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-light-hi);
}

.section-head .section-sub {
  margin-top: 16px;
  font-size: 16.5px;
  color: var(--text-light-mid);
}

.section-dark .section-head h2 {
  color: var(--text-dark-hi);
}

.section-dark .section-head .section-sub {
  color: var(--text-dark-mid);
}

/* ---------- Icons ---------- */
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.icon--check {
  color: var(--check-color);
  margin-top: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 1px 2px rgba(163, 230, 53, 0.2), 0 8px 20px -8px rgba(163, 230, 53, 0.45);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(163, 230, 53, 0.25), 0 12px 28px -8px rgba(163, 230, 53, 0.55);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--ghost {
  --ghost-border: rgba(241, 245, 249, 0.25);
  --ghost-text: #F1F5F9;
  --ghost-hover: rgba(241, 245, 249, 0.08);
  --ghost-border-hover: rgba(241, 245, 249, 0.5);
  border-color: var(--ghost-border);
  color: var(--ghost-text);
  background: transparent;
}

.btn--ghost:hover {
  background: var(--ghost-hover);
  border-color: var(--ghost-border-hover);
  transform: translateY(-1px);
}

.section-light .btn--ghost {
  --ghost-border: #D5DBE4;
  --ghost-text: #0B101D;
  --ghost-hover: rgba(11, 16, 29, 0.05);
  --ghost-border-hover: #0B101D;
}

/* Dark card inside a light section keeps light ghost colors */
.section-light .migration-card .btn--ghost {
  --ghost-border: rgba(241, 245, 249, 0.28);
  --ghost-text: #F1F5F9;
  --ghost-hover: rgba(241, 245, 249, 0.08);
  --ghost-border-hover: rgba(241, 245, 249, 0.5);
}

.btn--lg {
  padding: 15px 28px;
  font-size: 16px;
  border-radius: 12px;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 11, 20, 0.94);
  border-bottom-color: var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-dark-hi);
}

/* Desktop nav */
.nav-desktop {
  display: flex;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark-mid);
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-link:hover {
  color: var(--text-dark-hi);
  background: rgba(148, 163, 184, 0.08);
}

.nav-link.is-active {
  color: var(--accent);
}

.nav-link--btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.has-dropdown.is-open .chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 280px;
  padding: 8px;
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.dropdown-link:hover {
  background: rgba(148, 163, 184, 0.1);
}

.dropdown-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark-hi);
}

.dropdown-desc {
  font-size: 13px;
  color: var(--text-dark-low);
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-dark);
  background: rgba(148, 163, 184, 0.06);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text-dark-hi);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: min(320px, 84vw);
  padding: calc(var(--header-h) + 16px) 24px 24px;
  background: var(--ink-900);
  border-left: 1px solid var(--line-dark);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
}

.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-list {
  border-top: 1px solid var(--line-dark);
}

.mobile-link {
  display: block;
  padding: 15px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark-hi);
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
  transition: color 0.15s ease;
}

.mobile-link:hover {
  color: var(--accent);
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(4, 7, 13, 0.6);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 120px 0 110px;
  background: var(--ink-950);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 30%, black 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 30%, black 25%, transparent 78%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 420px at 78% 18%, rgba(163, 230, 53, 0.1), transparent 62%),
    radial-gradient(720px 520px at 12% 85%, rgba(59, 130, 246, 0.08), transparent 62%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 64px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-dark-hi);
}

.hero-title-accent {
  background: linear-gradient(92deg, #D9F99D 0%, #A3E635 60%, #84CC16 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin-top: 22px;
  max-width: 540px;
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--text-dark-mid);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 36px;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark-mid);
}

.hero-trust .icon--check {
  color: var(--accent);
}

/* Hero visual */
.hero-visual {
  position: relative;
}

.hv-card {
  position: relative;
  padding: 18px;
  background: linear-gradient(180deg, #131A2C, #0B101D);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}

.hv-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px 180px at 50% 0%, rgba(163, 230, 53, 0.07), transparent 70%);
  pointer-events: none;
}

.hv-card-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-dark);
}

.hv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2A3450;
}

.hv-dot:first-child {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.hv-url {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.08);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dark-mid);
}

.hv-svg {
  width: 100%;
  height: auto;
  margin-top: 14px;
}

.hv-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  fill: #7C8AA0;
}

.hv-hub-title {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  fill: #F1F5F9;
}

.hv-hub-sub {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  fill: var(--accent);
}

.hv-line {
  animation: dash-move 1.8s linear infinite;
}

.hv-ping {
  fill: rgba(163, 230, 53, 0.35);
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 2.8s ease-out infinite;
}

.hv-ping--2 { animation-delay: 0.7s; }
.hv-ping--3 { animation-delay: 1.4s; }
.hv-ping--4 { animation-delay: 2.1s; }

.hv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hv-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(148, 163, 184, 0.05);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark-mid);
}

.hv-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: #0D1220;
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-pop);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark-hi);
  animation: float-y 6s ease-in-out infinite alternate;
}

.hv-float .icon {
  color: var(--accent);
}

.hv-float--shield {
  top: -20px;
  right: -12px;
}

.hv-float--backup {
  bottom: -20px;
  left: -12px;
  animation-delay: -3s;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing {
  padding: 100px 0;
  background: var(--bg-light);
}

.product-switcher {
  display: inline-flex;
  gap: 4px;
  margin-top: 40px;
  padding: 5px;
  background: #EDF0F4;
  border: 1px solid var(--line-light);
  border-radius: 14px;
}

.product-switcher-wrap {
  text-align: center;
}

.switcher-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-light-mid);
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.switcher-tab:hover:not(.is-active) {
  color: var(--text-light-hi);
}

.switcher-tab.is-active {
  background: var(--bg-white);
  color: var(--text-light-hi);
  box-shadow: 0 1px 3px rgba(11, 16, 29, 0.12);
}

.switcher-icon {
  width: 18px;
  height: 18px;
}

.pricing-panel {
  margin-top: 40px;
}

.pricing-panel[hidden] {
  display: none;
}

.pricing-panel.is-active {
  animation: panel-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Pricing layout: shared-features column + plan cards */
.pricing-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.shared-features {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 26px 24px;
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -24px rgba(11, 16, 29, 0.45);
}

.shared-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-dark-hi);
  padding-bottom: 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line-dark);
}

.shared-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dark-mid);
}

.shared-list .icon--check {
  color: var(--accent);
  margin-top: 3px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Plan cards */
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--bg-white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop);
  border-color: #C9D2DE;
}

.plan-card--popular {
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
  border-color: rgba(163, 230, 53, 0.35);
  box-shadow: 0 24px 60px -20px rgba(11, 16, 29, 0.45), 0 0 0 1px rgba(163, 230, 53, 0.1);
}

.plan-card--popular:hover {
  border-color: rgba(163, 230, 53, 0.6);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--shadow-glow);
}

.plan-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-light-hi);
}

.plan-tagline {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-light-mid);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin: 20px 0 4px;
}

.plan-currency {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-light-hi);
}

.plan-amount {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-light-hi);
}

.plan-period {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light-low);
}

.plan-features {
  margin: 16px 0 20px;
  padding-top: 12px;
  border-top: 1px solid var(--line-light);
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 5px 0;
  font-size: 14px;
  color: var(--text-light-mid);
}

.plan-card .btn {
  margin-top: auto;
}

/* Popular (dark) card overrides */
.plan-card--popular .plan-name,
.plan-card--popular .plan-currency,
.plan-card--popular .plan-amount {
  color: var(--text-dark-hi);
}

.plan-card--popular .plan-tagline,
.plan-card--popular .plan-period,
.plan-card--popular .plan-features li {
  color: var(--text-dark-mid);
}

.plan-card--popular .plan-features {
  border-top-color: var(--line-dark);
}

.plan-card--popular .icon--check {
  color: var(--accent);
}

/* ============================================================
   WHY TORKHOST
   ============================================================ */
.why {
  padding: 100px 0;
  background: var(--bg-white);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  padding: 28px;
  background: var(--bg-white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-pop);
  border-color: #C9D2DE;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: #4D7C0F;
}

.feature-icon .icon {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-light-hi);
}

.feature-card p {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-light-mid);
}

/* ============================================================
   WORDPRESS SECTION
   ============================================================ */
.wordpress {
  padding: 110px 0;
  background: var(--ink-900);
  position: relative;
  overflow: hidden;
}

.wordpress::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 380px at 12% 20%, rgba(163, 230, 53, 0.07), transparent 65%);
  pointer-events: none;
}

.wp-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.wp-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-dark-hi);
}

.wp-lead {
  margin: 18px 0 30px;
  max-width: 480px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text-dark-mid);
}

.wp-panel {
  padding: 28px;
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.5);
}

.wp-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
}

.wp-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(163, 230, 53, 0.3);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
}

.wp-panel-titles {
  flex: 1;
}

.wp-panel-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark-hi);
}

.wp-panel-sub {
  font-size: 13.5px;
  color: var(--text-dark-low);
}

.wp-chip {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(163, 230, 53, 0.3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.wp-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
  padding-top: 20px;
}

.wp-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dark-mid);
}

.wp-features .icon--check {
  color: var(--accent);
}

/* ============================================================
   INFRASTRUCTURE
   ============================================================ */
.infra {
  padding: 110px 0;
  background: var(--ink-950);
  position: relative;
  overflow: hidden;
}

.infra::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 460px at 50% 0%, rgba(163, 230, 53, 0.06), transparent 65%);
  pointer-events: none;
}

.infra-diagram {
  position: relative;
  margin-top: 56px;
}

.infra-svg {
  width: 100%;
  height: auto;
}

.infra-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  fill: #A8B3C7;
}

.infra-hub-title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  fill: #F1F5F9;
}

.infra-hub-sub {
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  fill: var(--accent);
}

.infra-line {
  animation: dash-move 2.2s linear infinite;
}

.infra-ping {
  fill: rgba(163, 230, 53, 0.3);
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 3s ease-out infinite;
}

.infra-ping--2 { animation-delay: 0.5s; }
.infra-ping--3 { animation-delay: 1s; }
.infra-ping--4 { animation-delay: 1.5s; }
.infra-ping--5 { animation-delay: 2s; }
.infra-ping--6 { animation-delay: 2.5s; }

/* Simplified vertical diagram for small screens */
.infra-mobile {
  display: none;
}

.infra-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
}

.infra-point {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  background: rgba(148, 163, 184, 0.05);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark-mid);
}

/* ============================================================
   MIGRATION CTA
   ============================================================ */
.migration {
  padding: 100px 0;
  background: var(--bg-light);
}

.migration-card {
  position: relative;
  padding: 64px 32px;
  text-align: center;
  background: var(--ink-900);
  border: 1px solid var(--line-dark);
  border-radius: 24px;
  overflow: hidden;
}

.migration-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(480px 300px at 50% 0%, rgba(163, 230, 53, 0.1), transparent 65%),
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
  pointer-events: none;
}

.migration-card h2 {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark-hi);
}

.migration-lead {
  position: relative;
  margin: 14px auto 0;
  max-width: 480px;
  font-size: 17px;
  color: var(--text-dark-mid);
}

.migration-cta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq {
  padding: 100px 0;
  background: var(--bg-white);
}

.faq-list {
  margin-top: 48px;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item.is-open {
  border-color: #C9D2DE;
  box-shadow: var(--shadow-card);
}

.faq-question-wrap {
  margin: 0;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 19px 22px;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-light-hi);
  border-radius: var(--radius-md);
}

.faq-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-light-low);
  transition: transform 0.25s ease, color 0.25s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  color: #4D7C0F;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer-inner p {
  padding: 0 22px 20px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-light-mid);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  padding: 110px 0;
  background: var(--ink-950);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 420px at 50% 50%, rgba(163, 230, 53, 0.1), transparent 65%),
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  pointer-events: none;
}

.final-card {
  position: relative;
  text-align: center;
}

.final-card h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-dark-hi);
}

.final-lead {
  margin-top: 16px;
  font-size: 18px;
  color: var(--text-dark-mid);
}

.final-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 72px 0 32px;
  background: var(--ink-950);
  border-top: 1px solid var(--line-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-tagline {
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--text-dark-low);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.social-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-dark);
  color: var(--text-dark-mid);
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.social-btn:hover {
  color: var(--accent);
  border-color: rgba(163, 230, 53, 0.45);
  background: var(--accent-soft);
}

.social-btn .icon {
  width: 18px;
  height: 18px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.footer-col h4 {
  margin-bottom: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark-low);
}

.footer-link {
  padding: 5px 0;
  font-size: 14.5px;
  color: var(--text-dark-mid);
  text-decoration: none;
  text-align: left;
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: var(--text-dark-hi);
}

.footer-link:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.footer-link:disabled:hover {
  color: var(--text-dark-mid);
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  text-align: center;
}

.footer-bottom p {
  font-size: 13.5px;
  color: var(--text-dark-low);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast-region {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--ink-800);
  border: 1px solid var(--line-dark);
  box-shadow: var(--shadow-pop);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dark-hi);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SCROLL REVEAL (enabled only when JS is active)
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal for grids */
.js .feature-grid .reveal:nth-child(2) { transition-delay: 0.06s; }
.js .feature-grid .reveal:nth-child(3) { transition-delay: 0.12s; }
.js .feature-grid .reveal:nth-child(4) { transition-delay: 0.18s; }
.js .feature-grid .reveal:nth-child(5) { transition-delay: 0.24s; }
.js .feature-grid .reveal:nth-child(6) { transition-delay: 0.3s; }

.js .pricing-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .pricing-grid .reveal:nth-child(3) { transition-delay: 0.16s; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes dash-move {
  to {
    stroke-dashoffset: -28;
  }
}

@keyframes ping {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  80%,
  100% {
    transform: scale(2.3);
    opacity: 0;
  }
}

@keyframes float-y {
  from {
    transform: translateY(-5px);
  }
  to {
    transform: translateY(5px);
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav-desktop {
    display: none;
  }

  .header-actions .btn {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 90px 0 80px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .hero-visual {
    max-width: 560px;
    margin-inline: auto;
    width: 100%;
  }

  .wp-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .pricing-layout {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  .shared-features {
    position: static;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1000px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .infra-svg {
    display: none;
  }

  .infra-mobile {
    display: flex;
    flex-direction: column;
    max-width: 320px;
    margin-inline: auto;
  }

  .infra-mobile li {
    position: relative;
    padding: 15px 0 15px 30px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark-mid);
  }

  .infra-mobile li::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(163, 230, 53, 0.35);
  }

  .infra-mobile li::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 50%;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    transform: translateY(-50%);
  }

  .infra-mobile li:first-child::before {
    top: 50%;
  }

  .infra-mobile li:last-child::before {
    bottom: 50%;
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .wp-features {
    grid-template-columns: 1fr;
  }

  .migration-card {
    padding: 48px 24px;
  }
}

@media (max-width: 560px) {
  .hv-float {
    display: none;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .pricing,
  .why,
  .faq {
    padding: 72px 0;
  }

  .wordpress,
  .infra,
  .final-cta {
    padding: 80px 0;
  }

  .migration {
    padding: 72px 0;
  }

  .plan-card {
    padding: 24px 22px;
  }

  .switcher-tab {
    padding: 10px 16px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    margin-top: 40px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}