/* ==========================================================================
   SEOH — AI-era SEO agency
   Custom stylesheet · dark theme · Mona Sans (self-hosted)
   Inspired by the Mellow + Fexora templates, rebuilt from scratch.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Mona Sans"; src: url("../fonts/mona-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Mona Sans"; src: url("../fonts/mona-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Mona Sans"; src: url("../fonts/mona-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Mona Sans"; src: url("../fonts/mona-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Mona Sans"; src: url("../fonts/mona-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Mona Sans"; src: url("../fonts/mona-sans-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Mona Sans"; src: url("../fonts/mona-sans-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0a0c;
  --bg-2: #101014;
  --card: #15151a;
  --card-2: #1a1a21;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #a2a3ac;
  --text-2: #c9cad1;
  --head: #f4f4f6;
  --accent: #cdf565;
  --accent-2: #e0ff8a;
  --accent-dim: rgba(205, 245, 101, 0.14);
  --accent-ink: #131804;
  --violet: #8b7bff;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --r-pill: 999px;
  --font: "Mona Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1180px;
  --pad: 24px;
  --header-h: 74px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--text-2); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--head); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 20px; color: var(--head); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.9rem, 6.6vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); letter-spacing: -0.01em; }
h4 { font-size: 1.2rem; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 8px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Utilities ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 104px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--text); }
.accent { color: var(--accent); }

/* Kicker — small mono label with spark */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2);
  margin-bottom: 22px;
}
.kicker::before { content: "✦"; color: var(--accent); font-size: 14px; letter-spacing: 0; }
.kicker--plain::before { content: none; }

/* Section intro: kicker left / heading right (Mellow pattern) */
.section-intro { display: grid; grid-template-columns: 280px 1fr; gap: 24px 48px; align-items: start; margin-bottom: 56px; }
.section-intro .kicker { margin-bottom: 0; padding-top: 14px; }
.section-intro h2 { margin-bottom: 0; }
.section-intro .lead { margin-top: 18px; max-width: 640px; font-size: 18px; }
.section-intro--center { display: block; text-align: center; max-width: 780px; margin-left: auto; margin-right: auto; }
.section-intro--center .kicker { padding-top: 0; }
.section-intro--center h2 { margin-bottom: 0; }
.section-intro--center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px; border-radius: var(--r-pill);
  font-family: var(--font); font-size: 15px; font-weight: 600; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); box-shadow: 0 8px 32px rgba(205, 245, 101, 0.22); }
.btn--ghost { background: transparent; color: var(--head); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--head); color: var(--head); }
.btn--dark { background: var(--bg); color: var(--head); border-color: var(--bg); }
.btn--dark:hover { background: #1c1c22; color: var(--head); }
.btn--lg { padding: 18px 36px; font-size: 16px; }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn .arr { transition: transform 0.3s var(--ease); display: inline-block; }
.btn:hover .arr { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Text link with arrow */
.link-arr { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--head); font-size: 15px; }
.link-arr .arr { transition: transform 0.3s var(--ease); color: var(--accent); }
.link-arr:hover .arr { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 10, 12, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.site-header__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img, .logo svg { height: 27px; width: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 34px; list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a { font-size: 15px; font-weight: 500; color: var(--text-2); position: relative; padding: 6px 0; white-space: nowrap; }
.site-nav a:hover { color: var(--head); }
.site-nav a[aria-current="page"] { color: var(--head); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.header-cta { flex-shrink: 0; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; height: 2px; background: var(--head); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle span + span { margin-top: 7px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero { padding: calc(var(--header-h) + 72px) 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -280px; right: -180px; width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(205, 245, 101, 0.10), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; bottom: -320px; left: -220px; width: 680px; height: 680px;
  background: radial-gradient(circle, rgba(139, 123, 255, 0.09), transparent 62%);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: 64px; align-items: center; position: relative; z-index: 1; }
.hero h1 { text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.98; margin-bottom: 26px; }
.hero h1 .outline { color: var(--head); }
@supports (-webkit-text-stroke: 2px #fff) {
  .hero h1 .outline {
    color: transparent;
    -webkit-text-stroke: 2px var(--head);
  }
}
.hero h1 .accent { color: var(--accent); }
.hero__copy { font-size: 19px; max-width: 520px; margin-bottom: 34px; color: var(--text); }
.hero__copy strong { color: var(--text-2); font-weight: 600; }

.hero__stats { display: flex; gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.hero__stat { flex: 1; padding: 22px 24px 0 0; }
.hero__stat + .hero__stat { padding-left: 24px; border-left: 1px solid var(--line); }
.hero__stat b { display: block; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; color: var(--head); letter-spacing: -0.02em; line-height: 1.1; }
.hero__stat b em { font-style: normal; color: var(--accent); }
.hero__stat span { font-size: 13.5px; color: var(--text); display: block; margin-top: 6px; line-height: 1.4; }

.hero__visual { position: relative; }
.hero__frame {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 8px rgba(255, 255, 255, 0.02);
  transform: rotate(1.2deg);
}
.hero__badge {
  position: absolute; left: -26px; bottom: 34px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: rgba(21, 21, 26, 0.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 14px 20px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
}
.hero__badge .spark { color: var(--accent); font-size: 20px; }
.hero__badge b { color: var(--head); font-size: 15px; display: block; line-height: 1.2; }
.hero__badge span { font-size: 12.5px; color: var(--text); }

/* ---------- Marquee ---------- */
.marquee-wrap { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.marquee-label { text-align: center; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text); margin-bottom: 20px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 64px; width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track > span { font-size: 21px; font-weight: 700; letter-spacing: 0.01em; color: rgba(244, 244, 246, 0.55); white-space: nowrap; }
.marquee__track > i { color: var(--accent); font-style: normal; font-size: 15px; opacity: 0.85; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px;
  transition: transform 0.4s var(--ease), border-color 0.3s ease, background 0.3s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-2); }

.service-card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-dim); color: var(--accent); margin-bottom: 22px;
}
.service-card .icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.service-card p { font-size: 15.5px; margin-bottom: 18px; }
.service-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tag {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-2); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  padding: 5px 11px; border-radius: var(--r-pill);
}

/* ---------- Numbers band ("the shift") ---------- */
.shift-band { border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(160deg, var(--card) 0%, #101016 100%); padding: 56px; position: relative; overflow: hidden; }
.shift-band::before { content: ""; position: absolute; top: -190px; right: -120px; width: 480px; height: 480px; background: radial-gradient(circle, rgba(205, 245, 101, 0.09), transparent 65%); }
.shift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.shift-item b { display: block; font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 900; letter-spacing: -0.03em; color: var(--head); line-height: 1; }
.shift-item b em { font-style: normal; color: var(--accent); }
.shift-item p { margin-top: 12px; font-size: 15px; max-width: 300px; }
.shift-item .src { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.32); display: block; margin-top: 10px; }
.shift-item .src a { color: rgba(255, 255, 255, 0.4); text-decoration: underline; text-underline-offset: 2px; }
.shift-item .src a:hover { color: var(--accent); }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process-step { position: relative; padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); transition: border-color 0.3s ease, transform 0.4s var(--ease); }
.process-step:hover { border-color: var(--line-2); transform: translateY(-4px); }
.process-step .num { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.14em; display: block; margin-bottom: 40px; }
.process-step h3 { font-size: 1.12rem; margin-bottom: 10px; }
.process-step p { font-size: 14.5px; margin: 0; }

/* ---------- Case / results cards ---------- */
.case-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.case-card .case-img { border-bottom: 1px solid var(--line); }
.case-card .case-body { padding: 30px 34px 34px; display: flex; flex-direction: column; flex: 1; }
.case-card .meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.case-card h3 { margin-bottom: 14px; }
.case-metrics { display: flex; gap: 28px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.case-metrics div b { font-size: 1.7rem; font-weight: 800; color: var(--accent); display: block; letter-spacing: -0.02em; }
.case-metrics div span { font-size: 12.5px; color: var(--text); }

/* ---------- Testimonials ---------- */
.quote-card { display: flex; flex-direction: column; }
.quote-card .stars { color: var(--accent); letter-spacing: 3px; font-size: 14px; margin-bottom: 18px; }
.quote-card blockquote { margin: 0 0 24px; font-size: 16.5px; color: var(--text-2); line-height: 1.6; flex: 1; }
.quote-card .who { display: flex; align-items: center; gap: 14px; }
.quote-card .who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.quote-card .who b { display: block; color: var(--head); font-size: 15px; }
.quote-card .who span { font-size: 13px; color: var(--text); }

/* ---------- Blog cards ---------- */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-card .thumb { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.post-card .thumb img { transition: transform 0.6s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.03); }
.post-card .body { padding: 26px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.post-card .meta { display: flex; gap: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.post-card .meta .cat { color: var(--accent); }
.post-card h3 { font-size: 1.22rem; line-height: 1.3; margin-bottom: 12px; }
.post-card h3 a { color: var(--head); }
.post-card h3 a:hover { color: var(--accent-2); }
.post-card p { font-size: 15px; margin-bottom: 20px; }
.post-card .link-arr { margin-top: auto; font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--r-lg); border: 1px solid var(--line-2); position: relative; overflow: hidden;
  background: radial-gradient(120% 160% at 50% -30%, rgba(205, 245, 101, 0.16), rgba(205, 245, 101, 0.02) 48%, transparent 70%), var(--card);
  padding: 88px 40px; text-align: center;
}
.cta-band h2 { font-size: clamp(2.3rem, 5vw, 4rem); text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: 18px; }
.cta-band p { max-width: 560px; margin: 0 auto 34px; font-size: 17.5px; }
.cta-band .note { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; color: var(--text); margin-top: 22px; text-transform: uppercase; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: calc(var(--header-h) + 84px) 0 72px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; top: -300px; left: 50%; transform: translateX(-50%); width: 900px; height: 620px; background: radial-gradient(closest-side, rgba(205, 245, 101, 0.08), transparent); pointer-events: none; }
.page-hero h1 { text-transform: uppercase; letter-spacing: -0.03em; margin-bottom: 20px; position: relative; }
.page-hero .lead { max-width: 640px; margin: 0 auto; font-size: 18.5px; position: relative; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; position: relative; padding: 40px 36px 36px; }
.price-card--popular { border-color: rgba(205, 245, 101, 0.55); background: linear-gradient(180deg, rgba(205, 245, 101, 0.06), rgba(205, 245, 101, 0) 40%), var(--card); }
.price-card--popular:hover { border-color: var(--accent); }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 16px; border-radius: var(--r-pill); white-space: nowrap;
}
.price-card .plan-kind { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; display: block; }
.price-card h3 { font-size: 1.45rem; margin-bottom: 6px; }
.price-card .plan-for { font-size: 14.5px; margin-bottom: 26px; min-height: 44px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.price b { font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 900; letter-spacing: -0.03em; color: var(--head); line-height: 1; }
.price span { font-size: 15px; color: var(--text); font-weight: 500; }
.price-note { font-size: 13px; color: var(--text); margin-bottom: 28px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 32px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-2); padding: 9px 0; margin: 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.07); }
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%;
  background: var(--accent-dim);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.6 2.6L13 6.5' fill='none' stroke='%23cdf565' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 18px;
}
.feature-list li.dim { color: rgba(162, 163, 172, 0.55); }
.feature-list li.dim::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5.5 9h7' stroke='%23555' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-color: rgba(255,255,255,0.04); }
.price-card .btn { width: 100%; margin-top: auto; }
.price-foot { font-size: 12.5px; color: var(--text); text-align: center; margin-top: 14px; }

/* Comparison table */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--card-2); color: var(--head); font-weight: 700; font-size: 14.5px; }
.compare thead th:first-child { width: 34%; }
.compare tbody th { font-weight: 500; color: var(--text-2); }
.compare td { text-align: center; color: var(--text-2); }
.compare td .yes { color: var(--accent); font-weight: 700; }
.compare td .no { color: rgba(255, 255, 255, 0.22); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .col-pop { background: rgba(205, 245, 101, 0.045); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); margin-bottom: 14px; overflow: hidden; transition: border-color 0.3s ease; }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 26px; font-weight: 600; font-size: 16.5px; color: var(--head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--accent); transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 26px 24px; font-size: 15.5px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--head); margin-bottom: 8px; }
.field label .opt { color: var(--text); font-weight: 400; font-size: 12.5px; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-2);
  border-radius: var(--r-sm); color: var(--head); font-family: var(--font); font-size: 15.5px;
  padding: 14px 16px; transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a2a3ac' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field select option { background: var(--card-2); color: var(--head); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(205, 245, 101, 0.15); }
.field input::placeholder, .field textarea::placeholder { color: rgba(162, 163, 172, 0.55); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-note { font-size: 13px; color: var(--text); margin-top: 14px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-card { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); padding: 26px 28px; margin-bottom: 18px; }
.contact-card .lbl { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); display: block; margin-bottom: 10px; }
.contact-card b, .contact-card .big { color: var(--head); font-size: 17px; font-weight: 600; }
.email-reveal { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.email-reveal a { color: var(--accent); font-weight: 600; font-size: 18px; }
.email-reveal a:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.chip-btn {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.05); color: var(--text-2); border: 1px solid var(--line-2);
  border-radius: var(--r-pill); padding: 7px 14px; cursor: pointer; transition: all 0.25s ease;
}
.chip-btn:hover { border-color: var(--accent); color: var(--accent); }
.chip-btn.copied { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.noscript-email { unicode-bidi: bidi-override; direction: rtl; font-family: var(--mono); color: var(--accent); }

/* ---------- Blog post ---------- */
.post-hero { padding: calc(var(--header-h) + 72px) 0 0; }
.post-hero .meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); margin-bottom: 24px; }
.post-hero .meta .cat { color: var(--accent); }
.post-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); text-transform: none; letter-spacing: -0.02em; text-align: center; max-width: 900px; margin: 0 auto 22px; line-height: 1.12; }
.post-hero .excerpt { text-align: center; max-width: 680px; margin: 0 auto; font-size: 18px; }
.post-cover { max-width: 980px; margin: 48px auto 0; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); }
.post-body { max-width: 720px; margin: 0 auto; padding: 64px var(--pad) 0; font-size: 17.5px; line-height: 1.75; color: var(--text); }
.post-body p { margin-bottom: 24px; }
.post-body strong { color: var(--text-2); }
.post-body h2 { font-size: 1.75rem; margin: 52px 0 20px; letter-spacing: -0.015em; }
.post-body h3 { font-size: 1.28rem; margin: 40px 0 16px; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(205, 245, 101, 0.4); }
.post-body a:hover { color: var(--accent-2); text-decoration-color: var(--accent-2); }
.post-body ul, .post-body ol { margin-bottom: 24px; }
.post-body li { margin-bottom: 10px; }
.post-body blockquote {
  margin: 36px 0; padding: 6px 0 6px 26px; border-left: 3px solid var(--accent);
  font-size: 19.5px; color: var(--text-2); font-weight: 500; line-height: 1.55;
}
.post-body code { font-family: var(--mono); font-size: 0.86em; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; color: var(--accent-2); }
.post-body pre { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px 22px; overflow-x: auto; margin: 0 0 24px; }
.post-body pre code { background: none; border: 0; padding: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.6; }
.callout {
  background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r-sm); padding: 22px 26px; margin: 32px 0; font-size: 16px;
}
.callout b { color: var(--head); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0; }
.stat-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; text-align: center; }
.stat-box b { display: block; font-size: 2rem; font-weight: 900; color: var(--accent); letter-spacing: -0.02em; line-height: 1.1; }
.stat-box span { font-size: 13px; line-height: 1.4; display: block; margin-top: 8px; }
.post-footer { max-width: 720px; margin: 56px auto 0; padding: 28px var(--pad) 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.author { display: flex; align-items: center; gap: 14px; }
.author .avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-dim); border: 1px solid rgba(205, 245, 101, 0.3); }
.author .avatar svg { width: 22px; height: 22px; }
.author b { color: var(--head); font-size: 15px; display: block; }
.author span { font-size: 13px; }
.sources { max-width: 720px; margin: 48px auto 0; padding: 0 var(--pad); }
.sources h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); font-weight: 500; margin-bottom: 14px; }
.sources ol { font-size: 13.5px; color: var(--text); padding-left: 18px; }
.sources li { margin-bottom: 6px; }
.sources a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line-2); word-break: break-all; }
.sources a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 104px; }
.footer-cta { padding: 72px 0 0; }
.footer-main { padding: 72px 0 56px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-brand .logo img { height: 30px; }
.footer-brand p { font-size: 15px; margin-top: 18px; max-width: 300px; }
.footer-col h5 { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text); font-weight: 500; margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { font-size: 15px; color: var(--text-2); }
.footer-col a:hover { color: var(--accent); }
.footer-email-btn { margin-top: 4px; }
.footer-col .mini-note { font-size: 13px; color: var(--text); margin-top: 14px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 24px 0; }
.footer-bottom .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--text); }
.footer-bottom a { color: var(--text); }
.footer-bottom a:hover { color: var(--accent); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 50%;
  display: grid; place-items: center; color: var(--text-2); transition: all 0.25s ease;
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.footer-socials svg { width: 16px; height: 16px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- 404 ---------- */
.error-hero { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 60px) var(--pad) 60px; }
.error-hero .code { font-size: clamp(6rem, 18vw, 12rem); font-weight: 900; letter-spacing: -0.04em; color: rgba(255, 255, 255, 0.18); line-height: 1; margin-bottom: 8px; }
@supports (-webkit-text-stroke: 2px #fff) {
  .error-hero .code { color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.25); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .hero__grid { gap: 44px; }
}
@media (max-width: 960px) {
  .section { padding: 80px 0; }
  .section-intro { grid-template-columns: 1fr; gap: 12px; margin-bottom: 44px; }
  .section-intro .kicker { padding-top: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 620px; }
  .hero__badge { left: 14px; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .price-card .plan-for { min-height: 0; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .shift-band { padding: 44px 32px; }
  .shift-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  /* mobile nav */
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    background: rgba(10, 10, 12, 0.97); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 12px var(--pad) 28px; margin-left: 0;
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.3s ease, visibility 0.3s;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav a { display: block; padding: 13px 4px; font-size: 18px; font-weight: 600; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--accent); }
  .header-cta { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid--3, .grid--2, .process-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero__stats { flex-direction: column; border-top: 0; margin-top: 36px; }
  .hero__stat { border-top: 1px solid var(--line); padding: 18px 0 0; }
  .hero__stat + .hero__stat { border-left: 0; padding-left: 0; margin-top: 18px; }
  .hero__badge { left: 10px; bottom: 14px; padding: 11px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .cta-band { padding: 64px 24px; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
  .card { padding: 28px 24px; }
  .case-card .case-body { padding: 26px; }
  .shift-band { padding: 36px 24px; }
}
