/* ==========================================================================
   Nexarank — Design System
   Palette : deep-space navy / bleu → violet néon / cyan data-accent
   Type    : Space Grotesk (display) · Inter (body) · JetBrains Mono (data)
   ========================================================================== */

:root {
  --bg: #070B16;
  --bg-soft: #0A101F;
  --surface: #0D1424;
  --surface-2: #121B31;
  --line: rgba(148, 163, 255, 0.14);
  --line-strong: rgba(148, 163, 255, 0.28);

  --text: #E9EDF8;
  --muted: #96A1C0;
  --faint: #67718F;

  --blue: #5B7CFA;
  --violet: #9D5CFF;
  --cyan: #53D6FF;
  --grad: linear-gradient(100deg, #5B7CFA 0%, #9D5CFF 60%, #C084FC 100%);
  --grad-soft: linear-gradient(100deg, rgba(91,124,250,.16), rgba(157,92,255,.16));

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;

  --shadow-card: 0 24px 48px -24px rgba(3, 7, 20, 0.9);
  --glow: 0 0 0 1px var(--line-strong), 0 12px 42px -12px rgba(91, 124, 250, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.22rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--muted); }

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

::selection { background: rgba(157, 92, 255, .45); color: #fff; }

/* ---------- Layout utilities ---------- */

.container { width: min(var(--container), calc(100% - 2.5rem)); margin-inline: auto; }

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

.section-head { max-width: 640px; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.06rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: .55em;
  margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--cyan); opacity: .8; }
.section-head.center .eyebrow::after { content: ""; width: 22px; height: 1px; background: var(--cyan); opacity: .8; }

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

.skip-link {
  position: absolute; left: 1rem; top: -100%; z-index: 200;
  background: var(--surface-2); color: var(--text);
  padding: .6rem 1rem; border-radius: 8px; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-display);
  font-weight: 600; font-size: .95rem;
  padding: .85rem 1.65rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background-color .2s ease, border-color .2s ease;
}
.btn svg { flex: none; }

.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(123, 97, 255, .65); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(123, 97, 255, .8); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost { background: rgba(148,163,255,.06); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(148,163,255,.12); border-color: var(--cyan); transform: translateY(-2px); }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 11, 22, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(7, 11, 22, 0.92); }

.nav-bar { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 700; font-size: 1.28rem; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; }
.brand em { font-style: normal; color: var(--faint); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  display: block; padding: .55rem .95rem; border-radius: 8px;
  color: var(--muted); font-weight: 500; font-size: .95rem;
  transition: color .2s, background-color .2s;
}
.nav-links a:not(.btn):hover { color: var(--text); background: rgba(148,163,255,.08); }
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; margin-top: 2px; border-radius: 2px; background: var(--grad);
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong);
  border-radius: 10px; width: 44px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center; color: var(--text);
}
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.nav-cta { display: inline-flex; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; inset: 74px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: rgba(7, 11, 22, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 1.2rem 1.4rem 1.8rem;
    transform: translateY(-130%);
    transition: transform .3s ease;
    backdrop-filter: blur(18px);
  }
  .nav-open .nav-links { transform: translateY(0); }
  .nav-links a:not(.btn) { padding: .9rem 1rem; font-size: 1.05rem; }
  .nav-links .mobile-only { display: block !important; margin-top: .8rem; }
}
.mobile-only { display: none; }

/* ---------- Hero (home) ---------- */

.hero { position: relative; padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto;
  height: 90%;
  background:
    radial-gradient(42% 55% at 22% 30%, rgba(91, 124, 250, .17), transparent 70%),
    radial-gradient(40% 50% at 78% 20%, rgba(157, 92, 255, .15), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(148,163,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(148,163,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 32%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 32%, #000 30%, transparent 75%);
  pointer-events: none;
}

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 33em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.2rem; }

.hero-trust { display: flex; align-items: center; gap: 1.1rem; color: var(--faint); font-size: .88rem; }
.hero-trust .avatars { display: flex; }
.hero-trust .avatars img {
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--bg); object-fit: cover;
}
.hero-trust .avatars img + img { margin-left: -10px; }
.hero-trust strong { color: var(--text); font-weight: 600; }

/* Signature — SERP rank ladder card */
.rank-card {
  position: relative;
  background: linear-gradient(160deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.6rem 1.3rem;
  box-shadow: var(--shadow-card), var(--glow);
}
.rank-card-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 1.35rem;
}
.rank-pill {
  font-family: var(--font-mono); font-size: .72rem; padding: .28rem .7rem; border-radius: 999px;
  background: rgba(83, 214, 255, .1); color: var(--cyan); border: 1px solid rgba(83, 214, 255, .25);
}
.rank-chart { position: relative; height: 190px; margin-bottom: 1.1rem; }
.rank-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.rank-line { stroke: url(#chartGrad); stroke-width: 3; fill: none; stroke-linecap: round; }
.rank-area { fill: url(#areaGrad); }
.rank-dot { fill: #0D1424; stroke: var(--cyan); stroke-width: 3; }
.rank-grid-line { stroke: rgba(148,163,255,.09); stroke-width: 1; }

.rank-kw {
  display: flex; justify-content: space-between; align-items: center; gap: .8rem;
  padding: .62rem .85rem; border-radius: 10px;
  background: rgba(148,163,255,.05); border: 1px solid var(--line);
  font-size: .86rem; margin-bottom: .5rem;
}
.rank-kw:last-child { margin-bottom: 0; }
.rank-kw .kw { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-kw .pos { font-family: var(--font-mono); font-size: .78rem; color: var(--text); display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; }
.rank-kw .up { color: #4ADE80; font-family: var(--font-mono); }

.hero-badge-float {
  position: absolute; right: -14px; bottom: 84px;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: .7rem 1rem; font-family: var(--font-mono); font-size: .76rem;
  box-shadow: var(--shadow-card); color: var(--muted);
}
.hero-badge-float strong { color: var(--cyan); font-weight: 600; display: block; font-size: 1.05rem; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-badge-float { right: 6px; }
}

/* ---------- Stats band ---------- */

.stats-band { border-block: 1px solid var(--line); background: var(--bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2.2rem 1.4rem; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .9rem; }
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Cards & grids ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(170deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.card h3 a { color: var(--text); }
.card p { font-size: .95rem; margin-bottom: 0; }

.card-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-soft); border: 1px solid var(--line-strong);
  color: var(--cyan); margin-bottom: 1.15rem;
}
.card-link {
  display: inline-flex; align-items: center; gap: .45em;
  margin-top: 1.1rem; font-weight: 600; font-size: .9rem; color: var(--cyan);
}
.card-link svg { transition: transform .2s ease; }
.card-link:hover svg { transform: translateX(4px); }

/* ---------- Split sections ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); border: 1px solid var(--line-strong); box-shadow: var(--shadow-card); width: 100%; object-fit: cover; }
.split-media::after {
  content: ""; position: absolute; inset: 12% -6% -8% 12%;
  background: var(--grad-soft); filter: blur(40px); z-index: -1; border-radius: 50%;
}
.check-list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; color: var(--muted); }
.check-list li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(74, 222, 128, .12); color: #4ADE80;
  font-size: .8rem; font-weight: 700; margin-top: .15em;
}
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

/* ---------- Process steps ---------- */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.step {
  position: relative; padding: 1.9rem 1.6rem;
  background: linear-gradient(170deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em;
  color: var(--cyan);
  display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1.1rem;
}
.step::after { content: ""; display: block; width: 34px; height: 2px; background: var(--grad); border-radius: 2px; margin-bottom: 1.1rem; }
.step p { font-size: .94rem; margin: 0; }
.step h3 { font-size: 1.12rem; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Results / case studies ---------- */

.case-band {
  border-block: 1px solid var(--line);
  background:
    radial-gradient(50% 80% at 15% 20%, rgba(91,124,250,.12), transparent 70%),
    radial-gradient(45% 70% at 85% 85%, rgba(157,92,255,.1), transparent 70%),
    var(--bg-soft);
}
.case-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.case-card {
  background: rgba(13, 20, 36, .72); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: .9rem;
  transition: border-color .25s ease, transform .25s ease;
}
.case-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.case-tag {
  align-self: flex-start; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan); background: rgba(83,214,255,.08); border: 1px solid rgba(83,214,255,.22);
  padding: .26rem .65rem; border-radius: 999px;
}
.case-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; letter-spacing: -.03em; }
.case-card p { font-size: .92rem; margin: 0; }
.case-card cite { font-style: normal; color: var(--faint); font-size: .84rem; }
@media (max-width: 880px) { .case-row { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */

.quote-mark { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: .4rem; }
.t-card { display: flex; flex-direction: column; }
.t-card blockquote { margin: 0 0 1.4rem; color: var(--muted); font-size: .98rem; flex: 1; }
.t-author { display: flex; align-items: center; gap: .85rem; }
.t-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line-strong); }
.t-author b { display: block; color: var(--text); font-size: .93rem; }
.t-author span { color: var(--faint); font-size: .82rem; }

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

.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  background: linear-gradient(170deg, var(--surface), var(--bg-soft));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; margin-bottom: .8rem; overflow: hidden;
  transition: border-color .25s ease;
}
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; color: var(--cyan); transition: transform .25s ease; }
.faq details[open] summary .chev { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.4rem 1.25rem; color: var(--muted); font-size: .95rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

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

.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 120% at 50% -20%, rgba(157, 92, 255, .28), transparent 65%),
    radial-gradient(40% 90% at 85% 110%, rgba(91, 124, 250, .22), transparent 60%),
    var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: clamp(2.6rem, 6vw, 4.5rem);
  text-align: center;
}
.cta-band h2 { max-width: 18em; margin-inline: auto; }
.cta-band p { max-width: 34em; margin-inline: auto; font-size: 1.04rem; }
.cta-band .hero-actions { justify-content: center; margin-bottom: 0; }
.cta-note { margin-top: 1.2rem; font-size: .85rem; color: var(--faint); font-family: var(--font-mono); letter-spacing: .04em; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 4rem 0 2rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.4rem; margin-bottom: 3rem; }
.footer-grid p { font-size: .92rem; }
.footer-col h4 { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-family: var(--font-mono); font-weight: 500; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: var(--muted); font-size: .93rem; transition: color .2s; }
.footer-col a:hover { color: var(--cyan); }
.footer-contact li { display: flex; gap: .6rem; align-items: baseline; color: var(--muted); font-size: .93rem; }
.footer-contact .mono { font-family: var(--font-mono); color: var(--cyan); font-size: .85rem; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 1.6rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  color: var(--faint); font-size: .85rem;
}
.footer-social { display: flex; gap: .6rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
  transition: color .2s, border-color .2s, transform .2s;
}
.footer-social a:hover { color: var(--cyan); border-color: var(--line-strong); transform: translateY(-2px); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Page hero (subpages) ---------- */

.page-hero { position: relative; padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.6rem, 5vw, 4rem); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: -60% -20% auto; height: 120%;
  background: radial-gradient(45% 55% at 30% 40%, rgba(91,124,250,.15), transparent 70%),
              radial-gradient(40% 50% at 75% 30%, rgba(157,92,255,.13), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { max-width: 16em; }
.page-hero .lead { max-width: 38em; font-size: 1.08rem; }

.breadcrumb { font-family: var(--font-mono); font-size: .78rem; color: var(--faint); margin-bottom: 1.3rem; display: flex; gap: .5em; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--cyan); }

/* ---------- Services page ---------- */

.service-detail { scroll-margin-top: 90px; }
.service-detail .split-media::after { display: none; }
.price-chip {
  display: inline-block; font-family: var(--font-mono); font-size: .78rem;
  color: var(--cyan); background: rgba(83,214,255,.08); border: 1px solid rgba(83,214,255,.22);
  border-radius: 999px; padding: .3rem .8rem; margin-bottom: 1rem;
}

/* ---------- About page ---------- */

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.value-card h3 { font-size: 1.05rem; }
@media (max-width: 880px) { .values-grid { grid-template-columns: 1fr; } }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.team-card { text-align: left; }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line-strong); margin-bottom: 1rem; filter: saturate(.85) contrast(1.02); transition: filter .3s ease, transform .3s ease; }
.team-card:hover img { filter: saturate(1.05); transform: translateY(-4px); }
.team-card b { display: block; font-family: var(--font-display); }
.team-card span { color: var(--cyan); font-family: var(--font-mono); font-size: .78rem; letter-spacing: .06em; }
.team-card p { font-size: .88rem; margin: .5rem 0 0; }
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */

.post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.post-card .post-thumb { aspect-ratio: 16/9; overflow: hidden; }
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-body { padding: 1.5rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.post-meta { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: .7rem; }
.post-meta .cat { color: var(--cyan); }
.post-body h3 { font-size: 1.15rem; }
.post-body h3 a:hover { color: var(--cyan); }
.post-body p { font-size: .92rem; flex: 1; }
.post-card .card-link { margin-top: auto; }

.article { max-width: 760px; margin-inline: auto; }
.article-header { margin-bottom: 2.6rem; }
.article-header h1 { font-size: clamp(2rem, 4vw, 3rem); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; color: var(--faint); font-size: .88rem; font-family: var(--font-mono); }
.article-meta .author { display: inline-flex; align-items: center; gap: .6rem; color: var(--muted); }
.article-meta img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.article-cover { border-radius: var(--radius-lg); border: 1px solid var(--line-strong); margin: 2.2rem 0; width: 100%; }

.prose { font-size: 1.04rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.4rem; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8rem; }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.3rem; display: grid; gap: .45rem; }
.prose strong { color: var(--text); }
.prose blockquote {
  margin: 1.8rem 0; padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--violet); border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--grad-soft); color: var(--text); font-style: italic;
}
.callout {
  background: var(--grad-soft); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 1.8rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.article-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

.tag-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.tag { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: .28rem .75rem; }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.info-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.info-card:last-of-type { border-bottom: 0; }
.info-card .card-icon { margin-bottom: 0; width: 42px; height: 42px; flex: none; }
.info-card b { display: block; font-size: .95rem; margin-bottom: .15rem; }
.info-card p, .info-card a { font-size: .9rem; color: var(--muted); margin: 0; }
.info-card a:hover { color: var(--cyan); }

.form-card { background: linear-gradient(170deg, var(--surface), var(--bg-soft)); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: var(--shadow-card); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-size: .87rem; font-weight: 600; margin-bottom: .45rem; }
.field label .req { color: var(--violet); }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(7, 11, 22, .7); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 10px;
  padding: .8rem 1rem; font: inherit; font-size: .95rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(91, 124, 250, .22); }
.field .hint { font-size: .78rem; color: var(--faint); margin-top: .35rem; }
.form-consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .84rem; color: var(--muted); margin-bottom: 1.3rem; }
.form-consent input { width: 17px; height: 17px; accent-color: var(--violet); margin-top: .2em; flex: none; }
.form-note { font-size: .8rem; color: var(--faint); margin: .9rem 0 0; font-family: var(--font-mono); }

/* ---------- Products ---------- */

.product-card { display: flex; flex-direction: column; padding: 0; overflow: visible; }
.product-card .card-icon { margin-bottom: 1rem; }
.product-head { padding: 1.7rem 1.6rem 1.3rem; border-bottom: 1px solid var(--line); position: relative; }
.product-desc { font-size: .9rem; margin: .4rem 0 1rem; min-height: 2.7em; }
.product-price { font-family: var(--font-display); font-size: 2.15rem; font-weight: 700; letter-spacing: -.03em; color: var(--text); }
.product-price .per { font-family: var(--font-mono); font-size: .74rem; font-weight: 400; letter-spacing: .06em; color: var(--faint); text-transform: uppercase; margin-left: .35em; }
.product-body { padding: 1.4rem 1.6rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.product-features { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; flex: 1; }
.product-features li { display: flex; gap: .6rem; align-items: flex-start; font-size: .89rem; color: var(--muted); }
.product-features li::before {
  content: "✓"; flex: none; width: 19px; height: 19px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(74, 222, 128, .12); color: #4ADE80;
  font-size: .68rem; font-weight: 700; margin-top: .12em;
}
.badge-popular {
  position: absolute; top: -13px; right: 18px;
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  background: var(--grad); color: #fff; padding: .34rem .85rem; border-radius: 999px;
  box-shadow: 0 8px 20px -6px rgba(123, 97, 255, .75);
}
.product-card.featured {
  background: linear-gradient(170deg, var(--surface-2), var(--bg-soft)) padding-box, var(--grad) border-box;
  border-color: transparent;
  box-shadow: var(--shadow-card), var(--glow);
}
@media (min-width: 981px) {
  .product-card.featured { transform: translateY(-10px); }
  .product-card.featured:hover { transform: translateY(-14px); }
}

/* ---------- Reveal animations ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.65,.3,1), transform .7s cubic-bezier(.2,.65,.3,1); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: none; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.floaty { animation: floaty 5s ease-in-out infinite; }

@keyframes drawLine { from { stroke-dashoffset: 620; } to { stroke-dashoffset: 0; } }
.rank-line { stroke-dasharray: 620; animation: drawLine 2.2s cubic-bezier(.4,0,.2,1) .3s both; }
@keyframes popDot { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.rank-dot { opacity: 0; animation: popDot .4s ease 1.9s both; transform-box: fill-box; transform-origin: center; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rank-kw { opacity: 0; animation: fadeUp .6s ease both; }
.rank-kw:nth-child(1) { animation-delay: 1.2s; }
.rank-kw:nth-child(2) { animation-delay: 1.35s; }
.rank-kw:nth-child(3) { animation-delay: 1.5s; }
.hero-badge-float { opacity: 0; animation: fadeUp .6s ease 2.1s both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
  .rank-line, .rank-dot, .rank-kw, .hero-badge-float { opacity: 1; animation: none; stroke-dashoffset: 0; }
}
