/* ==========================================================================
   RankQuix — Global Stylesheet
   Palette: #062C2C (ink) · #16D9D2 (accent) · #EFFFFE (paper)
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --ink: #062c2c;
  --ink-800: #04211f;
  --ink-700: #073634;
  --ink-600: #0a4644;
  --ink-500: #0d5654;

  --accent: #16d9d2;
  --accent-dim: #12b3ad;
  --accent-glow: rgba(22, 217, 210, 0.28);
  --accent-08: rgba(22, 217, 210, 0.08);
  --accent-12: rgba(22, 217, 210, 0.12);
  --accent-18: rgba(22, 217, 210, 0.18);
  --accent-30: rgba(22, 217, 210, 0.3);

  --paper: #effffe;
  --paper-70: rgba(239, 255, 254, 0.7);
  --paper-45: rgba(239, 255, 254, 0.45);
  --paper-25: rgba(239, 255, 254, 0.25);

  --line: rgba(22, 217, 210, 0.16);
  --line-soft: rgba(239, 255, 254, 0.09);

  --ok: #4ade80;
  --warn: #fbbf24;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-sm: 0 2px 10px rgba(4, 33, 31, 0.35);
  --shadow: 0 14px 40px rgba(4, 33, 31, 0.42);
  --shadow-lg: 0 30px 70px rgba(4, 33, 31, 0.55);
  --shadow-accent: 0 18px 44px rgba(22, 217, 210, 0.18);

  --container: 1200px;
  --container-narrow: 860px;
  --header-h: 78px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t: 0.25s var(--ease);

  --font: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--paper-70);
  background-color: var(--ink);
  background-image:
    radial-gradient(1000px 620px at 82% -8%, rgba(22, 217, 210, 0.14), transparent 62%),
    radial-gradient(760px 520px at 4% 12%, rgba(22, 217, 210, 0.07), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; transition: color var(--t); }
ul, ol { list-style: none; }

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

::selection { background: var(--accent); color: var(--ink); }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ink-800); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--accent-dim), var(--ink-600));
  border-radius: 99px;
  border: 3px solid var(--ink-800);
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5 {
  color: var(--paper);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.022em;
}

h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.7vw, 2.85rem); letter-spacing: -0.028em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; }

p { max-width: 74ch; }
p + p { margin-top: 1rem; }

.lead {
  font-size: clamp(1.03rem, 1.5vw, 1.2rem);
  color: var(--paper-70);
  max-width: 68ch;
}

.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.measure { max-width: 66ch; }
.mx-auto { margin-inline: auto; }
.mt-0 { margin-top: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.735rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.eyebrow.center { justify-content: center; }

/* ---------- 4. Layout ---------- */
.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}
.container-narrow { width: min(100% - 40px, var(--container-narrow)); margin-inline: auto; }

.section { padding: clamp(64px, 8vw, 108px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 76px) 0; }

.section-head { max-width: 700px; margin-bottom: clamp(38px, 5vw, 60px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 + p { margin-top: 16px; }

.grid { display: grid; gap: 22px; }
.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)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(4, 33, 31, 0.55) 12%, rgba(4, 33, 31, 0.55) 88%, transparent);
}

.divider { height: 1px; background: var(--line-soft); border: 0; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1.5px solid var(--btn-bg);
  border-radius: 100px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-accent); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; transition: transform var(--t); }
.btn:hover svg { transform: translateX(3px); }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border-color: var(--accent-30);
}
.btn-ghost:hover { --btn-bg: var(--accent-12); --btn-fg: var(--accent); border-color: var(--accent); }

.btn-solid-dark { --btn-bg: var(--ink); --btn-fg: var(--accent); border-color: var(--ink); }
.btn-solid-dark:hover { --btn-bg: var(--ink-800); --btn-fg: var(--paper); }

.btn-sm { padding: 10px 18px; font-size: 0.83rem; }
.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ---------- 6. Header / Navigation ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(6, 44, 44, 0.72);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background var(--t), border-color var(--t), box-shadow var(--t);
}
.header.scrolled {
  background: rgba(4, 33, 31, 0.93);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 34px rgba(4, 33, 31, 0.5);
}

.header-inner {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 11px; flex: none; }
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--accent), var(--accent-dim) 55%, var(--ink-500));
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(22, 217, 210, 0.3);
  flex: none;
}
.logo-mark svg { width: 21px; height: 21px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b { color: var(--paper); font-size: 1.16rem; font-weight: 800; letter-spacing: -0.03em; }
.logo-text span { font-size: 0.63rem; letter-spacing: 0.19em; text-transform: uppercase; color: var(--accent); font-weight: 700; }

/* Desktop nav */
.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--paper-70);
  border-radius: 100px;
  transition: color var(--t), background var(--t);
}
.nav-link:hover, .nav-item.open > .nav-link { color: var(--accent); background: var(--accent-08); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 2px;
}
.nav-link .chev {
  width: 13px; height: 13px;
  transition: transform var(--t);
  opacity: 0.75;
}
.nav-item.open .chev { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 10px);
  width: 340px;
  padding: 10px;
  background: linear-gradient(170deg, var(--ink-700), var(--ink-800));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.dropdown::before {
  content: "";
  position: absolute;
  top: -12px; left: 0; right: 0;
  height: 12px;
}
.nav-item.open .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.dropdown-label {
  padding: 10px 12px 8px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper-45);
}

.dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  color: var(--paper-70);
  transition: background var(--t), color var(--t), transform var(--t);
}
.dropdown-link:hover { background: var(--accent-12); color: var(--accent); transform: translateX(3px); }
.dropdown-link .di {
  width: 34px; height: 34px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--accent-08);
  border: 1px solid var(--accent-18);
  color: var(--accent);
  transition: background var(--t), color var(--t);
}
.dropdown-link:hover .di { background: var(--accent); color: var(--ink); }
.dropdown-link .di svg { width: 17px; height: 17px; }
.dropdown-link b { display: block; font-size: 0.9rem; font-weight: 700; color: var(--paper); }
.dropdown-link:hover b { color: var(--accent); }
.dropdown-link small { display: block; font-size: 0.755rem; color: var(--paper-45); line-height: 1.45; }

.dropdown-foot {
  margin-top: 6px;
  padding: 11px 12px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--accent);
}
.dropdown-foot small { color: var(--paper-45); font-weight: 500; }

/* Header CTA + burger */
.header-cta { margin-left: 10px; flex: none; }

.burger {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--accent-08);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  margin: 3.5px auto;
  border-radius: 2px;
  background: var(--paper);
  transition: transform var(--t), opacity var(--t);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  background: linear-gradient(180deg, var(--ink-800), var(--ink));
  border-top: 1px solid var(--line);
  padding: 24px 20px 48px;
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.32s var(--ease), visibility 0.32s;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; }

.mobile-nav > a.m-link,
.m-acc > .m-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}
.m-link .chev { width: 18px; height: 18px; color: var(--accent); transition: transform var(--t); }
.m-acc.open > .m-link .chev { transform: rotate(180deg); }

.m-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s var(--ease); }
.m-acc.open .m-panel { grid-template-rows: 1fr; }
.m-panel > div { overflow: hidden; }
.m-panel a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--paper-70);
  border-bottom: 1px solid var(--line-soft);
}
.m-panel a .di {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: var(--accent-08);
  border: 1px solid var(--accent-18);
  color: var(--accent);
  flex: none;
}
.m-panel a .di svg { width: 16px; height: 16px; }
.m-panel a:hover { color: var(--accent); }
.mobile-nav .btn { margin-top: 26px; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(52px, 7vw, 96px)) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(circle at 50% 30%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 78%);
  pointer-events: none;
  z-index: -1;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { max-width: 20ch; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent), #7df3ee 60%, var(--paper));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { margin-top: 22px; }

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 62px);
  align-items: center;
}

/* Hero badge */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 9px;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--paper-70);
  background: var(--accent-08);
  border: 1px solid var(--line);
  border-radius: 100px;
  margin-bottom: 24px;
}
.pill .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 900;
}
.pill b { color: var(--accent); font-weight: 800; }

/* Stat strip */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--line-soft);
}
.hero-stats b {
  display: block;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  color: var(--paper);
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.hero-stats b i { font-style: normal; color: var(--accent); }
.hero-stats span {
  display: block;
  font-size: 0.735rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--paper-45);
  margin-top: 6px;
}

/* ---------- 8. Cards ---------- */
.card {
  position: relative;
  padding: 28px;
  background: linear-gradient(165deg, rgba(13, 86, 84, 0.4), rgba(6, 44, 44, 0.72));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t), background var(--t);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 160px at 100% 0%, var(--accent-12), transparent 70%);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: var(--accent-30); box-shadow: var(--shadow); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-08);
  border: 1px solid var(--accent-18);
  color: var(--accent);
  margin-bottom: 18px;
  flex: none;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 + p { margin-top: 9px; font-size: 0.925rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--accent);
}
.card-link svg { width: 15px; height: 15px; transition: transform var(--t); }
.card-link:hover svg { transform: translateX(4px); }

.card-flat { background: rgba(6, 44, 44, 0.5); }

/* Feature list inside card */
.checks { display: grid; gap: 10px; margin-top: 16px; }
.checks li {
  display: flex;
  gap: 11px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--paper-70);
}
.checks li::before {
  content: "";
  flex: none;
  width: 19px; height: 19px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316D9D2' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.checks li b { color: var(--paper); font-weight: 700; }
.checks-cross li::before {
  background-color: rgba(239, 255, 254, 0.05);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d9492' stroke-width='3.5' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

/* Numbered steps */
.steps { counter-reset: s; display: grid; gap: 20px; }
.step {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 26px 26px 26px 28px;
  background: linear-gradient(165deg, rgba(13, 86, 84, 0.32), rgba(6, 44, 44, 0.6));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: border-color var(--t), transform var(--t);
}
.step:hover { border-color: var(--accent-30); transform: translateX(4px); }
.step::before {
  counter-increment: s;
  content: "0" counter(s);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--accent);
  line-height: 1;
  flex: none;
  width: 48px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 7px; }
.step p { font-size: 0.9rem; }

/* ---------- 9. Pricing / packages ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }

.plan {
  display: flex;
  flex-direction: column;
  padding: 32px 30px;
  background: linear-gradient(170deg, rgba(13, 86, 84, 0.34), rgba(6, 44, 44, 0.78));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
  position: relative;
  overflow: hidden;
}
.plan:hover { transform: translateY(-6px); border-color: var(--accent-30); box-shadow: var(--shadow-lg); }

.plan-featured {
  border-color: var(--accent);
  background: linear-gradient(170deg, rgba(22, 217, 210, 0.14), rgba(6, 44, 44, 0.86));
  box-shadow: var(--shadow-accent);
}
.plan-featured::before {
  content: "";
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 320px; height: 240px;
  background: radial-gradient(circle, var(--accent-glow), transparent 68%);
  pointer-events: none;
}

.plan-badge {
  position: absolute;
  top: 18px; right: 18px;
  padding: 5px 12px;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--accent);
  border-radius: 100px;
}

.plan h3 { font-size: 1.28rem; }
.plan-tag { font-size: 0.87rem; color: var(--paper-45); margin-top: 6px; }

.plan-price {
  margin: 22px 0 6px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line);
}
.plan-price .from {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper-45);
  margin-bottom: 7px;
}
.plan-price .amount {
  font-size: 2.05rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}
.plan-price .note { display: block; font-size: 0.79rem; color: var(--paper-45); margin-top: 8px; }

.plan .checks { margin: 22px 0 26px; flex: 1; }
.plan .btn { margin-top: auto; }

.plan-quantity {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 20px 0 4px;
}
.plan-quantity b {
  font-size: 2.05rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
}
.plan-quantity span { font-size: 0.87rem; color: var(--paper-45); }

/* Package group tabs (content writing) */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.tab {
  padding: 11px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--paper-70);
  background: var(--accent-08);
  border: 1px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--t);
}
.tab:hover { color: var(--accent); border-color: var(--accent-30); }
.tab.active { color: var(--ink); background: var(--accent); border-color: var(--accent); }

.tab-panel { display: none; animation: fade 0.35s var(--ease); }
.tab-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 10. Network ---------- */
.net-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  margin-bottom: 26px;
  background: rgba(6, 44, 44, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--paper-70);
  background: var(--accent-08);
  border: 1px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--t);
}
.chip:hover { color: var(--accent); border-color: var(--accent-30); }
.chip.active { color: var(--ink); background: var(--accent); border-color: var(--accent); }

.search {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 340px;
}
.search svg {
  position: absolute;
  left: 15px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--paper-45);
  pointer-events: none;
}
.search input { padding-left: 43px; }

.site-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: linear-gradient(165deg, rgba(13, 86, 84, 0.34), rgba(6, 44, 44, 0.7));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.site-card:hover { transform: translateY(-5px); border-color: var(--accent-30); box-shadow: var(--shadow); }

.site-top { display: flex; align-items: flex-start; gap: 13px; }
.site-favicon {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  background: linear-gradient(140deg, var(--accent), var(--accent-dim));
}
.site-top h3 { font-size: 1.06rem; letter-spacing: -0.015em; word-break: break-word; }
.site-top .niche {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 3px 9px;
  background: var(--accent-08);
  border: 1px solid var(--accent-18);
  border-radius: 100px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 15px 0;
  border-block: 1px solid var(--line-soft);
}
.metric { text-align: center; min-width: 0; }
.metric b {
  display: block;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--paper);
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.metric span {
  display: block;
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--paper-45);
  margin-top: 3px;
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 4px 10px;
  font-size: 0.735rem;
  font-weight: 600;
  color: var(--paper-70);
  background: rgba(239, 255, 254, 0.05);
  border: 1px solid var(--line-soft);
  border-radius: 7px;
}

.noprice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--paper-45);
}
.noprice svg { width: 14px; height: 14px; color: var(--accent); flex: none; }

.site-actions { display: flex; gap: 10px; margin-top: auto; padding-top: 4px; }
.site-actions .btn { flex: 1; padding-inline: 14px; font-size: 0.82rem; }

.no-results {
  grid-column: 1 / -1;
  padding: 46px 20px;
  text-align: center;
  color: var(--paper-45);
  background: rgba(6, 44, 44, 0.45);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

/* Metrics table */
.mtable-wrap {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(6, 44, 44, 0.5);
}
.mtable { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.mtable caption {
  padding: 18px 22px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-08);
  border-bottom: 1px solid var(--line-soft);
}
.mtable th, .mtable td { padding: 15px 22px; text-align: left; }
.mtable th {
  width: 46%;
  font-weight: 700;
  color: var(--paper-70);
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.875rem;
}
.mtable td { color: var(--paper); font-weight: 600; }
.mtable tr:last-child th, .mtable tr:last-child td { border-bottom: 0; }
.mtable tbody tr { transition: background var(--t); }
.mtable tbody tr:hover { background: var(--accent-08); }
.mtable .dr {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  padding: 4px 10px;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--accent);
  border-radius: 8px;
}

/* DR bar */
.dr-bar { display: flex; align-items: center; gap: 12px; }
.dr-bar .track {
  flex: 1;
  max-width: 160px;
  height: 7px;
  border-radius: 99px;
  background: rgba(239, 255, 254, 0.09);
  overflow: hidden;
}
.dr-bar .fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  width: 0;
  transition: width 1.1s var(--ease);
}

/* ---------- 11. FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: rgba(6, 44, 44, 0.5);
  overflow: hidden;
  transition: border-color var(--t), background var(--t);
}
.faq-item.open { border-color: var(--accent-30); background: rgba(13, 86, 84, 0.34); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 20px 22px;
  background: none;
  border: 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--paper);
  cursor: pointer;
  transition: color var(--t);
}
.faq-q:hover { color: var(--accent); }
.faq-q .ico {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-12);
  border: 1px solid var(--accent-18);
  color: var(--accent);
  transition: transform var(--t), background var(--t), color var(--t);
}
.faq-q .ico svg { width: 14px; height: 14px; }
.faq-item.open .ico { transform: rotate(45deg); background: var(--accent); color: var(--ink); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s var(--ease);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 22px 22px; font-size: 0.925rem; }

/* ---------- 12. CTA band ---------- */
.cta-band {
  position: relative;
  padding: clamp(44px, 6vw, 76px) clamp(28px, 5vw, 60px);
  text-align: center;
  background: linear-gradient(140deg, rgba(22, 217, 210, 0.16), rgba(6, 44, 44, 0.85) 62%);
  border: 1px solid var(--accent-30);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  top: -230px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent-glow), transparent 66%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band p { margin: 16px auto 0; text-align: center; max-width: 58ch; }
.cta-band .btn-row { justify-content: center; }

.cta-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  text-align: left;
}
.cta-strip .card { padding: 24px; }
.cta-strip b { display: block; font-size: 1.02rem; color: var(--paper); margin-bottom: 6px; }
.cta-strip small { font-size: 0.86rem; color: var(--paper-45); }

/* ---------- 13. Forms ---------- */
.form-shell {
  padding: clamp(26px, 4vw, 42px);
  background: linear-gradient(165deg, rgba(13, 86, 84, 0.34), rgba(6, 44, 44, 0.8));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label {
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}
.field label .opt { color: var(--paper-45); font-weight: 600; letter-spacing: 0; text-transform: none; }
.field .hint { font-size: 0.78rem; color: var(--paper-45); }

.input, .select, .textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.94rem;
  color: var(--paper);
  background: rgba(4, 33, 31, 0.6);
  border: 1.5px solid var(--line-soft);
  border-radius: var(--radius-sm);
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  appearance: none;
}
.input::placeholder, .textarea::placeholder { color: rgba(239, 255, 254, 0.28); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(4, 33, 31, 0.85);
  box-shadow: 0 0 0 4px var(--accent-12);
}
.textarea { resize: vertical; min-height: 132px; line-height: 1.6; }

.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316D9D2' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 17px;
  padding-right: 42px;
  cursor: pointer;
}
.select option { background: var(--ink-700); color: var(--paper); }

input[type="checkbox"], input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex: none;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.885rem;
  color: var(--paper-70);
  cursor: pointer;
  padding: 11px 13px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: rgba(4, 33, 31, 0.4);
  transition: border-color var(--t), background var(--t);
}
.check-row:hover { border-color: var(--accent-30); background: var(--accent-08); }
.check-row:has(input:checked) { border-color: var(--accent); background: var(--accent-12); }
.check-row b { display: block; color: var(--paper); font-weight: 700; }
.check-row small { display: block; font-size: 0.78rem; color: var(--paper-45); }

.grid-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.grid-form .full { grid-column: 1 / -1; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }

.prefill-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  background: var(--accent-08);
  border: 1px solid var(--accent-18);
  border-radius: var(--radius-sm);
  color: var(--paper-70);
}
.prefill-note svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.prefill-note b { color: var(--accent); }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.form-foot small { font-size: 0.79rem; color: var(--paper-45); max-width: 34ch; }

/* ---------- 14. Footer ---------- */
.footer {
  margin-top: clamp(50px, 7vw, 90px);
  padding: clamp(48px, 6vw, 76px) 0 30px;
  background: linear-gradient(180deg, transparent, rgba(4, 33, 31, 0.75));
  border-top: 1px solid var(--line-soft);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 40px;
}
.footer-about p { font-size: 0.89rem; margin-top: 15px; max-width: 34ch; }
.footer-col h4 {
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer-col li + li { margin-top: 9px; }
.footer-col a { font-size: 0.885rem; color: var(--paper-70); font-weight: 500; }
.footer-col a:hover { color: var(--accent); }

.socials { display: flex; gap: 9px; margin-top: 18px; }
.socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--accent-08);
  color: var(--accent);
  transition: all var(--t);
}
.socials a:hover { background: var(--accent); color: var(--ink); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }

.contact-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--paper-70);
  margin-top: 12px;
}
.contact-line svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
  color: var(--paper-45);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: var(--paper-45); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- 15. Misc components ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.815rem;
  color: var(--paper-45);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--paper-45); font-weight: 600; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb [aria-current] { color: var(--accent); font-weight: 700; }

.note-box {
  display: flex;
  gap: 15px;
  padding: 22px 24px;
  background: var(--accent-08);
  border: 1px solid var(--accent-18);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
}
.note-box svg { width: 21px; height: 21px; color: var(--accent); flex: none; margin-top: 2px; }
.note-box b { display: block; color: var(--paper); margin-bottom: 4px; font-size: 0.94rem; }
.note-box p { font-size: 0.885rem; }

.kv-list { display: grid; gap: 2px; }
.kv-list li {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.915rem;
}
.kv-list li:last-child { border-bottom: 0; }
.kv-list .k { color: var(--paper-45); min-width: 150px; flex: none; font-weight: 600; }
.kv-list .v { color: var(--paper); font-weight: 600; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}
.split-40 { grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); }
.sticky-side { position: sticky; top: calc(var(--header-h) + 26px); }

.avatar-group { display: flex; }
.avatar-group span {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--ink);
  background: linear-gradient(140deg, var(--accent), var(--accent-dim));
  border: 2px solid var(--ink);
  margin-left: -10px;
}
.avatar-group span:first-child { margin-left: 0; }

/* Reveal on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }

/* Toast */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 130%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--paper);
  background: linear-gradient(150deg, var(--ink-700), var(--ink-800));
  border: 1px solid var(--accent);
  border-radius: 100px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s var(--ease);
  max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 19px; height: 19px; color: var(--accent); flex: none; }

/* Back to top */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--accent);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all var(--t);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--paper); }
.to-top svg { width: 20px; height: 20px; }

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ---------- 16. Responsive ---------- */
@media (max-width: 1024px) {
  .hero-split { grid-template-columns: 1fr; }
  .split, .split-40 { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .plans { grid-template-columns: 1fr; }
  .plan-featured { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .cta-strip { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  :root { --header-h: 68px; }
  .nav, .header-cta { display: none; }
  .burger { display: grid; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-form { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .mtable th { width: 52%; }
  .mtable th, .mtable td { padding: 13px 16px; }
}

@media (max-width: 560px) {
  body { font-size: 15.8px; }
  .container, .container-narrow { width: calc(100% - 32px); }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
  .card, .plan { padding: 24px 22px; }
  .btn-row .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .net-toolbar { flex-direction: column; align-items: stretch; }
  .search { max-width: none; }
  .form-foot .btn { width: 100%; }
  .mtable th { width: 48%; font-size: 0.83rem; }
  .mtable td { font-size: 0.86rem; }
}

/* ---------- 17. Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .header, .footer, .to-top, .mobile-nav, .btn { display: none !important; }
  h1, h2, h3, h4 { color: #000; }
  .card, .plan, .form-shell { border: 1px solid #ccc; background: #fff; box-shadow: none; }
}