/* ==========================================================================
   FinixCloud — design tokens & global styles
   Phoenix palette: ember orange → amber on deep navy-black
   ========================================================================== */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* color */
  --bg: #0a0e1a;
  --bg-elev: #111726;
  --bg-deep: #070a13;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f5fb;
  --text-muted: #9aa4bd;
  --text-dim: #7d88a3;
  --primary: #ff6b2c;
  --primary-soft: #ff8f57;
  --primary-deep: #e0521a;
  --accent: #ffb020;
  --cyan: #22d3ee;
  --on-primary: #1a0b03;
  --success: #22c55e;
  --danger: #ef4444;

  --grad-brand: linear-gradient(135deg, #ff6b2c 0%, #ffb020 100%);
  --grad-text: linear-gradient(120deg, #ffb020 0%, #ff8f57 55%, #ff6b2c 100%);
  --glow-primary: rgba(255, 107, 44, 0.35);
  --glow-accent: rgba(255, 176, 32, 0.28);

  /* spacing scale (8pt) */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;

  /* radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  /* elevation */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 12px 40px rgba(255, 107, 44, 0.28);

  /* motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur: 250ms;
  --dur-slow: 400ms;

  /* layering */
  --z-header: 100;
  --z-menu: 120;
  --z-skip: 200;

  --container: 1200px;
}

/* --------------------------------------------------------------------------
   base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

/* sticky header must not cover anchored sections */
[id] { scroll-margin-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Vazirmatn', system-ui, 'Segoe UI', Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(255, 107, 44, 0.2);
}

a, button, summary, input, select, textarea, [role='tab'] { touch-action: manipulation; }

body::before {
  /* ambient phoenix glow, fixed behind everything */
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(60rem 40rem at 82% -10%, rgba(255, 107, 44, 0.16), transparent 60%),
    radial-gradient(45rem 32rem at 8% 8%, rgba(255, 176, 32, 0.10), transparent 62%),
    radial-gradient(50rem 40rem at 50% 108%, rgba(34, 211, 238, 0.07), transparent 60%);
}

img, svg { max-width: 100%; }
img { height: auto; }

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

button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0 0 var(--space-2);
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.35rem + 2.9vw, 3.6rem); line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 0.98rem + 0.5vw, 1.35rem); font-weight: 700; }

p { margin: 0 0 var(--space-2); }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--primary);
  color: #fff;
}

/* numbers: keep prices/specs from jittering */
.num, .price-value, .spec-table td {
  font-variant-numeric: tabular-nums;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-2);
  top: -100px;
  z-index: var(--z-skip);
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--space-2); }

/* visually hidden, still read by screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  padding-inline: max(0px, env(safe-area-inset-left)) max(0px, env(safe-area-inset-right));
}

.section {
  padding-block: clamp(3.5rem, 2.2rem + 5vw, 6.5rem);
  position: relative;
}
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02), transparent); }

.section-head {
  max-width: 46rem;
  margin: 0 auto clamp(2rem, 1.4rem + 2vw, 3.25rem);
  text-align: center;
}
.section-head p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  margin-bottom: var(--space-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.eyebrow svg { width: 16px; height: 16px; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 100%;
  background: var(--grad-brand);
  z-index: var(--z-skip);
  transform: scaleX(0);
  transform-origin: right center; /* page is RTL: grow from the start edge */
  transition: transform 80ms linear;
}

/* --------------------------------------------------------------------------
   buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--grad-brand);
  color: var(--on-primary);
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 16px 44px rgba(255, 107, 44, 0.4); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-strong); border-color: var(--primary-soft); }

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary-soft); }

.btn-sm { min-height: 40px; padding: 0.45rem 1.1rem; font-size: 0.9rem; }
.btn-lg { min-height: 54px; padding: 0.9rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-block: 0.4rem;
  color: var(--primary-soft);
  font-weight: 600;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover svg { transform: translateX(4px); }
[dir='rtl'] .link-arrow svg { transform: scaleX(-1); }
[dir='rtl'] .link-arrow:hover svg { transform: scaleX(-1) translateX(4px); }

/* --------------------------------------------------------------------------
   header / navigation
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgba(10, 14, 26, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.nav.is-scrolled {
  background: rgba(7, 10, 19, 0.9);
  border-bottom-color: var(--border);
}
.nav > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.15rem;
  flex: none;
}
.brand svg { width: 38px; height: 38px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-links a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-full);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.96rem;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a[aria-current='page'] { color: var(--text); font-weight: 600; }

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded='true'] .icon-open { display: none; }
.nav-toggle[aria-expanded='true'] .icon-close { display: block; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 72px 0 auto;
  z-index: var(--z-menu);
  flex-direction: column;
  gap: 0.25rem;
  padding: var(--space-2);
  background: rgba(7, 10, 19, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  max-height: calc(100dvh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: calc(var(--space-2) + env(safe-area-inset-bottom));
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a {
  padding: 0.85rem 1rem;
  border-radius: var(--r-sm);
  color: var(--text-muted);
  font-weight: 500;
}
.mobile-menu a:hover { background: var(--surface); color: var(--text); }
.mobile-menu .btn { margin-top: var(--space-1); }

/* --------------------------------------------------------------------------
   hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(3rem, 1.5rem + 6vw, 6rem) clamp(3rem, 2rem + 4vw, 5rem);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* ember wash rising behind the headline */
  background:
    radial-gradient(38rem 22rem at 50% 4%, rgba(255, 107, 44, 0.2), transparent 70%),
    radial-gradient(28rem 18rem at 50% 96%, rgba(255, 176, 32, 0.07), transparent 72%);
}
.hero > .container { position: relative; }

.hero-inner {
  max-width: 54rem;
  margin-inline: auto;
  text-align: center;
}
.hero-inner h1 { margin-bottom: var(--space-3); }
.hero-lead {
  max-width: 42rem;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.15rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: var(--space-4);
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 1.8rem + 2.5vw, 4rem);
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 0.75rem;
  background: rgba(17, 23, 38, 0.6);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}
.trust-item svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

/* --------------------------------------------------------------------------
   domain search
   -------------------------------------------------------------------------- */

.domain-search {
  position: relative;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  background: linear-gradient(160deg, rgba(255, 107, 44, 0.1), rgba(17, 23, 38, 0.85));
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.domain-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: stretch;
}
.domain-field {
  position: relative;
  flex: 1 1 18rem;
  display: flex;
  align-items: center;
}
.domain-field svg {
  position: absolute;
  inset-inline-start: 1rem;
  width: 20px;
  height: 20px;
  color: var(--text-dim);
  pointer-events: none;
}
.domain-field input {
  width: 100%;
  min-height: 52px;
  padding: 0.7rem 3rem;
  background: rgba(7, 10, 19, 0.75);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.domain-field input::placeholder { color: var(--text-dim); }
.domain-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.25); }

.domain-form select {
  min-height: 52px;
  padding: 0.7rem 1rem;
  background: rgba(7, 10, 19, 0.75);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  color: var(--text);
  font: inherit;
}
.domain-form select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.25); }
.domain-form .btn { min-height: 52px; }

.domain-hint {
  margin: 0.9rem 0 0;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.domain-hint strong { color: var(--accent); font-weight: 600; }
.form-error {
  display: none;
  margin: 0.6rem 0 0;
  color: #ffb4a8;
  font-size: 0.9rem;
  font-weight: 500;
}
.form-error.is-visible { display: block; }

/* --------------------------------------------------------------------------
   cards & grids
   -------------------------------------------------------------------------- */

.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  background: var(--surface-strong);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.card h3 { margin-bottom: 0.5rem; }
.card p {
  color: var(--text-muted);
  font-size: 0.96rem;
  margin-bottom: var(--space-2);
}
.card p:last-child { margin-bottom: 0; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--space-2);
  border-radius: var(--r-md);
  background: linear-gradient(140deg, rgba(255, 107, 44, 0.22), rgba(255, 176, 32, 0.12));
  border: 1px solid rgba(255, 143, 87, 0.28);
  color: var(--primary-soft);
}
.card-icon svg { width: 26px; height: 26px; }

.card-meta {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: var(--space-2);
  color: var(--text-dim);
  font-size: 0.88rem;
}
.card-meta b {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
}

.feature-list { display: grid; gap: 0.6rem; margin-bottom: var(--space-3); }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}
.feature-list svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 4px;
  color: var(--success);
}

/* --------------------------------------------------------------------------
   pricing
   -------------------------------------------------------------------------- */

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  margin: 0 auto var(--space-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}
.billing-toggle button {
  min-height: 40px;
  padding: 0.4rem 1.2rem;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.94rem;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.billing-toggle button[aria-pressed='true'] {
  background: var(--grad-brand);
  color: var(--on-primary);
}
.billing-toggle .save-badge {
  display: inline-block;
  margin-inline-start: 0.35rem;
  padding: 0.05rem 0.45rem;
  border-radius: var(--r-full);
  background: rgba(34, 197, 94, 0.18);
  color: #6ee7a0;
  font-size: 0.75rem;
  font-weight: 700;
}
.billing-toggle button[aria-pressed='true'] .save-badge {
  background: rgba(26, 11, 3, 0.2);
  color: var(--on-primary);
}
.toggle-wrap { display: flex; justify-content: center; }

.plan {
  display: flex;
  flex-direction: column;
  padding: var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.plan:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.plan-featured {
  border-color: rgba(255, 143, 87, 0.5);
  background: linear-gradient(180deg, rgba(255, 107, 44, 0.09), var(--surface));
  box-shadow: var(--shadow-glow);
}
.plan-badge {
  position: absolute;
  top: -13px;
  inset-inline-end: var(--space-3);
  padding: 0.15rem 0.85rem;
  border-radius: var(--r-full);
  background: var(--grad-brand);
  color: var(--on-primary);
  font-size: 0.8rem;
  font-weight: 700;
}
.plan-wrap { position: relative; }

.plan-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.plan-desc { color: var(--text-dim); font-size: 0.9rem; margin-bottom: var(--space-2); }

.price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-2);
  border-bottom: 1px solid var(--border);
}
.price-value {
  font-size: clamp(1.6rem, 1.4rem + 0.8vw, 2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.price-unit { color: var(--text-dim); font-size: 0.9rem; }
.price-old {
  color: var(--text-dim);
  font-size: 0.9rem;
  text-decoration: line-through;
  margin-inline-start: 0.3rem;
}

.plan .btn { margin-top: auto; }

/* spec table (VPS / hosting plans) */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.spec-table {
  width: 100%;
  min-width: 46rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.spec-table th,
.spec-table td {
  padding: 0.9rem 1rem;
  text-align: start;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.spec-table thead th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.88rem;
}
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
.spec-table .plan-cell { font-weight: 700; color: var(--text); }
.spec-table .price-cell { color: var(--accent); font-weight: 700; }

/* location tabs */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--space-3);
}
.tab {
  min-height: 42px;
  padding: 0.45rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.tab:hover { color: var(--text); border-color: var(--border-strong); }
.tab[aria-selected='true'] {
  background: var(--grad-brand);
  border-color: transparent;
  color: var(--on-primary);
}
.tab-panel[hidden] { display: none; }

/* --------------------------------------------------------------------------
   datacenters
   -------------------------------------------------------------------------- */

.dc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: var(--space-2);
}
.dc-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.dc-item:hover { border-color: var(--border-strong); background: var(--surface-strong); }
.dc-flag {
  display: grid;
  place-items: center;
  width: 36px;
  height: 28px;
  flex: none;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.dc-name { font-weight: 600; font-size: 0.94rem; }
.dc-sub { display: block; color: var(--text-dim); font-size: 0.8rem; font-weight: 400; }

/* --------------------------------------------------------------------------
   stats
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2);
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  background: linear-gradient(140deg, rgba(255, 107, 44, 0.1), rgba(17, 23, 38, 0.7));
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-size: clamp(1.7rem, 1.4rem + 1.4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--text-muted); font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   testimonials
   -------------------------------------------------------------------------- */

.quote { display: flex; flex-direction: column; gap: var(--space-2); }
.quote-text { color: var(--text); font-size: 0.98rem; line-height: 1.85; margin: 0; }
.quote-author { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; }
.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--r-full);
  background: var(--grad-brand);
  color: var(--on-primary);
  font-weight: 800;
  font-size: 0.95rem;
}
.quote-author b { display: block; font-size: 0.94rem; font-weight: 600; }
.quote-author span { color: var(--text-dim); font-size: 0.84rem; }

.stars { display: flex; gap: 2px; color: var(--accent); }
.stars svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { max-width: 52rem; margin-inline: auto; display: grid; gap: 0.75rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.faq details[open] { border-color: var(--border-strong); background: var(--surface-strong); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 1.05rem var(--space-3);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 11px;
  height: 11px;
  flex: none;
  border-inline-end: 2px solid var(--text-muted);
  border-block-end: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq-body {
  padding: 0 var(--space-3) var(--space-3);
  color: var(--text-muted);
  font-size: 0.96rem;
}
.faq .faq-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  padding: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  text-align: center;
  background: linear-gradient(140deg, rgba(255, 107, 44, 0.18), rgba(255, 176, 32, 0.08) 55%, rgba(17, 23, 38, 0.85));
  border: 1px solid rgba(255, 143, 87, 0.28);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.cta-band h2 { margin-bottom: var(--space-2); }
.cta-band p { color: var(--text-muted); max-width: 40rem; margin-inline: auto; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   forms (contact)
   -------------------------------------------------------------------------- */

.form-grid { display: grid; gap: var(--space-2); }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field .req { color: var(--primary-soft); }
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1rem;
  background: rgba(7, 10, 19, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.7; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.22);
}
.field-help { color: var(--text-dim); font-size: 0.85rem; }
.field-error { color: #ffb4a8; font-size: 0.85rem; min-height: 1.2em; }

.contact-list { display: grid; gap: var(--space-2); }
.contact-item { display: flex; align-items: flex-start; gap: 0.8rem; }
.contact-item svg { width: 22px; height: 22px; color: var(--primary-soft); flex: none; margin-top: 4px; }
.contact-item b { display: block; font-size: 0.92rem; }
.contact-item span { color: var(--text-muted); font-size: 0.94rem; }

/* --------------------------------------------------------------------------
   footer
   -------------------------------------------------------------------------- */

.footer {
  margin-top: var(--space-6);
  padding-block: var(--space-5) var(--space-3);
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--space-4) var(--space-3);
}
.footer h4 {
  margin-bottom: var(--space-2);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.footer ul { display: grid; gap: 0.55rem; }
.footer ul a {
  display: inline-block;
  padding-block: 0.4rem;
}
.footer a { color: var(--text-muted); font-size: 0.93rem; }
.footer a:hover { color: var(--primary-soft); }
.footer-about p {
  color: var(--text-muted);
  font-size: 0.93rem;
  max-width: 24rem;
}
.footer .brand { margin-bottom: var(--space-2); }

.socials { display: flex; gap: 0.5rem; margin-top: var(--space-2); }
.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text-muted);
}
.socials a:hover { color: var(--primary-soft); border-color: var(--border-strong); }
.socials svg { width: 20px; height: 20px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.88rem;
}
.trust-badges { display: flex; gap: 0.6rem; align-items: center; }
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 0.82rem;
}
.trust-badge svg { width: 18px; height: 18px; color: var(--success); }

/* --------------------------------------------------------------------------
   page header (inner pages) & 404
   -------------------------------------------------------------------------- */

.page-head {
  position: relative;
  padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(2rem, 1.6rem + 2vw, 3rem);
  text-align: center;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-head p { color: var(--text-muted); max-width: 44rem; margin-inline: auto; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: var(--space-2);
  color: var(--text-dim);
  font-size: 0.86rem;
}
.breadcrumb a:hover { color: var(--primary-soft); }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-inline-start: 0.4rem; color: var(--text-dim); }

.error-page {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 60vh;
  padding-block: var(--space-6);
}
.error-code {
  font-size: clamp(4rem, 2rem + 12vw, 8rem);
  font-weight: 800;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   reveal animation
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn,
  .cta-actions .btn { width: 100%; }
  .domain-form .btn,
  .domain-form select { width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section { padding-block: 3rem; }
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
}
