/* ============================================================
   Agency X — Premium Landing Page
   ============================================================ */

:root {
  --bg: #050508;
  --bg-soft: #0a0a12;
  --bg-card: #0d0d17;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f6fa;
  --text-dim: #9aa0b4;
  --text-faint: #6b7186;
  --blue: #38bdf8;
  --violet: #a855f7;
  --cyan: #22d3ee;
  --green: #34d399;
  --grad: linear-gradient(120deg, var(--blue), var(--violet));
  --radius: 16px;
  --radius-lg: 24px;
  --max-w: 1180px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --shadow-glow: 0 0 40px rgba(56, 189, 248, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* ---------- Background decor ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(600px 420px at 15% -5%, rgba(56, 189, 248, 0.14), transparent 60%),
    radial-gradient(700px 520px at 90% 10%, rgba(168, 85, 247, 0.12), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(56, 189, 248, 0.06), transparent 60%);
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 0%, transparent 75%);
  pointer-events: none;
}

/* ---------- Container & layout ---------- */
.container {
  width: min(var(--max-w), 92%);
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  position: relative;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.container--sm {
  max-width: 820px;
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1rem;
}

.section__title {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section__lead {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  border-radius: 10px;
}

.btn--lg {
  padding: 1rem 1.8rem;
  font-size: 1rem;
}

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

.btn--primary {
  color: #04050a;
  background: var(--grad);
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(56, 189, 248, 0.45);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(56, 189, 248, 0.06);
  transform: translateY(-2px);
}

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 5, 8, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.nav.scrolled {
  background: rgba(5, 5, 8, 0.85);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--grad);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4);
}

.brand__mark::after {
  content: 'X';
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
}

.brand__name strong {
  color: var(--blue);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav__links a:not(.btn) {
  font-size: 0.92rem;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav__links a:not(.btn):hover {
  color: var(--text);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 4% 1.4rem;
  border-top: 1px solid var(--line);
}

.nav__mobile a {
  padding: 0.8rem 0.5rem;
  color: var(--text-dim);
  font-weight: 500;
}

.nav__mobile a.btn {
  margin-top: 0.6rem;
  color: #04050a;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(9rem, 14vw, 11rem);
  padding-bottom: clamp(4rem, 7vw, 6rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__title {
  font-size: clamp(2.1rem, 4.6vw, 3.3rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 1.4rem 0 1.2rem;
}

.hero__sub {
  color: var(--text-dim);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.8rem;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-faint);
  font-size: 0.88rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.8);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Browser mockup ---------- */
.hero__visual {
  position: relative;
}

.browser {
  background: #0c0c15;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(56, 189, 248, 0.08);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: #11111c;
  border-bottom: 1px solid var(--line);
}

.browser__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser__dot--r { background: #ff5f57; }
.browser__dot--y { background: #febc2e; }
.browser__dot--g { background: #28c840; }

.browser__url {
  margin-left: 10px;
  font-size: 0.72rem;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  flex: 0 1 auto;
}

.browser__body {
  padding: 22px;
  background:
    radial-gradient(200px 120px at 20% 0%, rgba(56, 189, 248, 0.12), transparent 70%),
    radial-gradient(200px 120px at 90% 10%, rgba(168, 85, 247, 0.1), transparent 70%),
    #0c0c15;
}

.mini-hero {
  background: linear-gradient(135deg, #10101d, #14142a);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}

.mini-hero__bar {
  height: 8px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08));
  margin-bottom: 12px;
}

.mini-hero__bar--lg { width: 82%; height: 14px; background: var(--grad); opacity: 0.85; }
.mini-hero__bar--md { width: 58%; }
.mini-hero__bar--sm { width: 40%; }

.mini-hero__btn {
  width: 96px;
  height: 26px;
  border-radius: 8px;
  background: var(--grad);
  margin-top: 16px;
  opacity: 0.9;
}

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

.mini-cards span {
  height: 54px;
  border-radius: 10px;
  background: #14141f;
  border: 1px solid var(--line);
}

/* ---------- Floating metrics ---------- */
.metric {
  position: absolute;
  background: rgba(14, 14, 24, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  width: 168px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  animation: floaty 6s ease-in-out infinite;
}

.metric__label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.metric__bar {
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 7px;
}

.metric__bar span {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 4px;
  background: var(--grad);
}

.metric__value {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.metric__value small {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-faint);
}

.metric--perf { top: -20px; left: -30px; animation-delay: 0s; }
.metric--seo { top: 28%; right: -40px; animation-delay: 1.2s; }
.metric--acc { bottom: 24%; left: -44px; animation-delay: 2.4s; }
.metric--bp { bottom: -18px; right: 6%; animation-delay: 3.6s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero__note {
  margin-top: 1.4rem;
  font-size: 0.74rem;
  color: var(--text-faint);
  text-align: center;
}

/* ---------- Cards ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(56, 189, 248, 0.06);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-dim);
}

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

.card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-dim);
  font-size: 0.94rem;
}

.card--danger { position: relative; }

.card--danger::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.7rem;
  right: 1.7rem;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, rgba(248, 113, 113, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card--danger:hover::before { opacity: 1; }

.card--danger .card__icon {
  color: #f87171;
  background: rgba(248, 113, 113, 0.06);
  border-color: rgba(248, 113, 113, 0.18);
}

.card--service .card__icon--grad {
  color: #fff;
  background: var(--grad);
  border: none;
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.3);
}

/* ---------- Performance ---------- */
.perf__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
  margin-top: 2rem;
}

.perf__panel {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.perf__panel-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 500;
}

.perf__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
}

.perf__live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-left: auto;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.9);
  animation: pulse 1.8s ease-in-out infinite;
}

.perf__scores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  padding: 1.4rem;
}

.gauge {
  --val: 0;
  position: relative;
  width: 100%;
  max-width: 120px;
  margin-inline: auto;
}

.gauge svg {
  width: 100%;
  height: auto;
  transform: rotate(-90deg);
}

.gauge__track,
.gauge__fill {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}

.gauge__track {
  stroke: rgba(255, 255, 255, 0.07);
}

.gauge__fill {
  stroke: url(#gradGauge);
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gauge[data-animated="true"] .gauge__fill {
  stroke-dashoffset: calc(326.7 - (326.7 * var(--val) / 100));
}

.gauge__num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge__num strong {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gauge__num small {
  font-size: 0.6rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 0 2px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.check-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.check-list li strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 700;
}

.check-list li small {
  color: var(--text-dim);
  font-size: 0.86rem;
}

.check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 7px;
  background: var(--grad);
  position: relative;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.check::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  width: 5px;
  height: 9px;
  border: solid #04050a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.perf__disclaimer {
  margin-top: 1.8rem;
  font-size: 0.78rem;
  color: var(--text-faint);
  border-left: 2px solid rgba(56, 189, 248, 0.4);
  padding-left: 0.9rem;
}

/* ---------- Portfolio ---------- */
.project {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.project:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(56, 189, 248, 0.06);
}

.project__mock {
  padding: 1.6rem 1.6rem 0;
  background: radial-gradient(300px 160px at 50% 0%, rgba(56, 189, 248, 0.08), transparent 75%);
}

.mock-desk {
  background: #0f0f1a;
  border: 1px solid var(--line-strong);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  overflow: hidden;
}

.mock-desk__bar {
  display: flex;
  gap: 5px;
  padding: 9px 12px;
  background: #131320;
  border-bottom: 1px solid var(--line);
}

.mock-desk__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.mock-desk__hero {
  padding: 1.6rem 1.4rem 2rem;
  background: linear-gradient(160deg, #131323, #0d0d17);
  min-height: 170px;
}

.mock-desk__logo {
  width: 40px;
  height: 12px;
  border-radius: 4px;
  background: var(--grad);
  margin-bottom: 1.1rem;
  opacity: 0.85;
}

.mock-desk__nav {
  display: flex;
  gap: 10px;
}

.mock-desk__nav span {
  width: 26px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.14);
}

.mock-desk__title {
  width: 72%;
  height: 15px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  margin: 1.4rem 0 0.8rem;
}

.mock-desk__line {
  width: 48%;
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.13);
  margin-bottom: 1.1rem;
}

.mock-desk__btn {
  width: 88px;
  height: 22px;
  border-radius: 7px;
  background: var(--grad);
  opacity: 0.9;
}

.mock-desk__badge {
  width: 74px;
  height: 14px;
  border-radius: 6px;
  background: var(--grad);
  margin-bottom: 1rem;
  opacity: 0.85;
}

.mock-desk--violet .mock-desk__title,
.mock-desk--violet .mock-desk__badge,
.mock-desk--violet .mock-desk__btn {
  background: linear-gradient(90deg, var(--violet), #ec4899);
}

.mock-desk--violet .mock-desk__hero {
  background: linear-gradient(160deg, #1a1129, #0d0d17);
}

.mock-desk--cyan .mock-desk__title,
.mock-desk--cyan .mock-desk__badge,
.mock-desk--cyan .mock-desk__btn,
.mock-desk--cyan .mock-desk__offer-tag {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.mock-desk--cyan .mock-desk__hero {
  background: linear-gradient(160deg, #0e1c26, #0d0d17);
}

.mock-desk__sale {
  display: flex;
  gap: 12px;
  padding: 1.6rem 1.4rem 2rem;
}

.mock-desk__offer {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
}

.mock-desk__offer-tag {
  width: 50px;
  height: 10px;
  border-radius: 5px;
  margin-bottom: 0.8rem;
}

.mock-desk__offer-title {
  width: 90%;
  height: 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: 0.5rem;
}

.mock-desk__offer-price {
  width: 42%;
  height: 13px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.28);
  margin-bottom: 1rem;
}

.mock-desk__offer .mock-desk__btn {
  width: 100%;
  height: 20px;
}

.mock-desk__offer-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: flex-end;
}

.mock-desk__offer-side span {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.mock-desk__offer-side span:nth-child(1) { width: 90%; }
.mock-desk__offer-side span:nth-child(2) { width: 70%; }
.mock-desk__offer-side span:nth-child(3) { width: 80%; }

.mock-shop {
  padding: 1.6rem 1.4rem 2rem;
  background: linear-gradient(160deg, #0c1a16, #0d0d17);
}

.mock-shop__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mock-shop__item span {
  display: block;
  height: 70px;
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.18);
  margin-bottom: 7px;
}

.mock-shop__item i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
  margin-bottom: 5px;
}

.mock-shop__item i:last-child {
  width: 55%;
  background: rgba(52, 211, 153, 0.4);
}

.project__info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.6rem 1.5rem;
}

.project__info h3 {
  font-size: 1.08rem;
  font-weight: 700;
}

.project__tag {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.project__link {
  flex-shrink: 0;
}

/* ---------- Process ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem 1.7rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

.step:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.35);
}

.step__num {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--blue);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 1.2rem;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* ---------- Compare ---------- */
.compare__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.compare__card {
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  border: 1px solid var(--line);
}

.compare__card--bad {
  background: rgba(248, 113, 113, 0.03);
  border-color: rgba(248, 113, 113, 0.16);
}

.compare__card--good {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.07), rgba(168, 85, 247, 0.06));
  border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.08);
  position: relative;
}

.compare__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.compare__head h3 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.compare__card--bad .compare__head h3 {
  color: #fca5a5;
}

.compare__pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #04050a;
  background: var(--grad);
  padding: 5px 12px;
  border-radius: 20px;
}

.compare__card ul {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.compare__card li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dim);
  font-size: 0.98rem;
}

.compare__card--good li {
  color: var(--text);
}

.x {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: rgba(248, 113, 113, 0.14);
  position: relative;
}

.x::before,
.x::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 2px;
  border-radius: 2px;
  background: #f87171;
}

.x::before { transform: translate(-50%, -50%) rotate(45deg); }
.x::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- FAQ ---------- */
.faq__list {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq__item[open] {
  border-color: rgba(56, 189, 248, 0.35);
}

.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  user-select: none;
}

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

.faq__plus {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq__plus::before,
.faq__plus::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--text-dim);
  border-radius: 2px;
  transition: background 0.3s ease;
}

.faq__plus::before {
  width: 10px;
  height: 1.6px;
  transform: translate(-50%, -50%);
}

.faq__plus::after {
  width: 1.6px;
  height: 10px;
  transform: translate(-50%, -50%);
}

.faq__item[open] .faq__plus {
  transform: rotate(45deg);
  background: var(--grad);
  border-color: transparent;
}

.faq__item[open] .faq__plus::before,
.faq__item[open] .faq__plus::after {
  background: #04050a;
}

.faq__item p {
  color: var(--text-dim);
  font-size: 0.95rem;
  padding: 0 1.5rem 1.4rem;
  max-width: 62ch;
}

/* ---------- CTA / Form ---------- */
.cta__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  background:
    radial-gradient(500px 320px at 0% 0%, rgba(56, 189, 248, 0.1), transparent 60%),
    radial-gradient(400px 300px at 100% 100%, rgba(168, 85, 247, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(13, 13, 23, 0.9), rgba(13, 13, 23, 0.6));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.cta__title {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.cta__lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
  max-width: 44ch;
}

.cta__points {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cta__points li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  font-size: 0.98rem;
}

.form {
  background: rgba(5, 5, 8, 0.55);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.form h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 1.4rem;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form__full {
  grid-column: 1 / -1;
}

.form label span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  appearance: none;
}

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

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

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7186' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form select option {
  background: var(--bg-soft);
  color: var(--text);
}

.form .btn {
  margin-top: 1.2rem;
}

.form__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 1rem;
}

.form__success {
  display: none;
  text-align: center;
  color: var(--green);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 1rem;
  border: 1px solid rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
  padding: 0.8rem;
  border-radius: 10px;
}

.form__success.show {
  display: block;
}

.form input.invalid,
.form select.invalid {
  border-color: rgba(248, 113, 113, 0.7);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.12);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
  background: rgba(0, 0, 0, 0.3);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.footer__brand {
  max-width: 320px;
}

.footer__brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-top: 1rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}

.footer__nav a {
  color: var(--text-dim);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

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

.footer__copy {
  width: 100%;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.82rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .metric, .dot { animation: none; }
  .gauge__fill { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .metric { width: 140px; }
  .metric--perf { left: -10px; }
  .metric--seo { right: -16px; }
  .metric--acc { left: -16px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__content {
    text-align: center;
  }
  .hero__sub {
    margin-inline: auto;
  }
  .hero__cta {
    justify-content: center;
  }
  .hero__trust {
    justify-content: center;
  }
  .hero__visual {
    max-width: 560px;
    margin: 2rem auto 0;
  }
  .metric { width: 148px; }
  .metric--perf { left: -18px; top: -16px; }
  .metric--seo { right: -18px; }
  .metric--acc { left: -22px; }
  .perf__grid {
    grid-template-columns: 1fr;
  }
  .perf__scores {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .compare__grid {
    grid-template-columns: 1fr;
  }
  .cta__panel {
    grid-template-columns: 1fr;
  }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__mobile.open { display: flex; }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3 {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .form__grid {
    grid-template-columns: 1fr;
  }
  .metric--acc { display: none; }
  .metric--seo { display: none; }
  .metric--perf { top: -14px; left: -8px; }
  .metric--bp { bottom: -16px; right: -8px; }
  .compare__card { padding: 1.6rem; }
  .form { padding: 1.4rem; }
  .footer__inner {
    flex-direction: column;
  }
  .section { padding: 4rem 0; }
}
