:root {
  --red: #ed143d;
  --red-2: #ff315a;
  --ink: #121525;
  --navy: #1b2035;
  --blue-grey: #4e586f;
  --muted: #727b90;
  --paper: #ffffff;
  --soft: #f6f7fb;
  --soft-2: #eef1f7;
  --line: rgba(18, 21, 37, 0.11);
  --shadow: 0 24px 70px rgba(18, 21, 37, 0.12);
  --red-shadow: 0 18px 42px rgba(237, 20, 61, 0.24);
  --radius: 28px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(237, 20, 61, 0.10), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(27, 32, 53, 0.08), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f7f8fc 48%, #eef2f8 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(18,21,37,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,21,37,0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.shell {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.topline {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.topline .shell {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}

.nav-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.brand img {
  width: 214px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(246, 247, 251, 0.86);
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--blue-grey);
  font-size: 13px;
  font-weight: 800;
  transition: 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
  background: rgba(237, 20, 61, 0.09);
}

.btn {
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-red {
  color: #fff;
  background: linear-gradient(135deg, var(--red), var(--red-2));
  box-shadow: var(--red-shadow);
}

.btn-light {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(18, 21, 37, 0.08);
}

.nav-cta,
.hero-btn {
  padding: 14px 20px;
  font-size: 13px;
}

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
}

.page-hero {
  padding: 54px 0 30px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  padding: 44px;
  background:
    radial-gradient(circle at 80% 18%, rgba(237,20,61,0.15), transparent 26%),
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(238,241,247,0.94));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -100px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237,20,61,0.14), transparent 70%);
}

.kicker {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-hero h1,
.section h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  max-width: 860px;
}

.hero-panel p,
.section p,
.card p,
.faq p,
.post-card p,
.contact-card p,
.service-card li {
  color: var(--blue-grey);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.section {
  padding: 34px 0 72px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head p {
  margin: 0;
  max-width: 470px;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 18px;
}

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

.card,
.service-card,
.faq,
.post-card,
.contact-card,
.quote-card,
.timeline-card {
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.84);
  box-shadow: 0 14px 38px rgba(18, 21, 37, 0.06);
}

.card,
.faq,
.post-card,
.contact-card,
.quote-card,
.timeline-card {
  padding: 28px;
}

.service-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card h3,
.service-card h3,
.faq h3,
.post-card h3,
.contact-card h3,
.quote-card h3,
.timeline-card h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.stat-box {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.84);
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 34px;
  letter-spacing: -0.05em;
}

.timeline-card .year {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(237,20,61,0.08);
  color: var(--red);
  border: 1px solid rgba(237,20,61,0.14);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.service-card ul {
  margin: 0;
  padding-left: 18px;
}

.service-card li + li { margin-top: 8px; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(237,20,61,0.08);
  color: var(--red);
  border: 1px solid rgba(237,20,61,0.16);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.process-card {
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(145deg, #ffffff, #eef1f7);
  border: 1px solid rgba(237,20,61,0.15);
  box-shadow: 0 16px 38px rgba(18,21,37,0.08);
}

.process-card .eyebrow {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process-card ul {
  margin: 0;
  padding-left: 18px;
}

.process-card li + li { margin-top: 8px; }

.quote-card blockquote {
  margin: 0 0 16px;
  color: var(--blue-grey);
  line-height: 1.8;
  font-size: 17px;
}

.backlink-hub {
  padding: 30px;
}

.backlink-hub h2 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.backlink-hub p {
  margin: 0 0 18px;
}

.backlink-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.backlink-item,
.backlink-current {
  display: block;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.9);
  color: var(--blue-grey);
  font-weight: 800;
  line-height: 1.45;
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease;
}

.backlink-item:hover {
  transform: translateY(-2px);
  border-color: rgba(237,20,61,0.22);
  color: var(--red);
}

.backlink-current {
  color: var(--red);
  background: rgba(237,20,61,0.08);
  border-color: rgba(237,20,61,0.16);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 900;
  margin-bottom: 18px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.article-content {
  padding: 30px;
}

.article-content h2 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.article-content h3 {
  margin: 28px 0 12px;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.article-content p,
.article-content li {
  color: var(--blue-grey);
  line-height: 1.8;
}

.article-content ul,
.article-content ol {
  margin: 0;
  padding-left: 20px;
}

.article-content li + li {
  margin-top: 8px;
}

.article-sidebar {
  display: grid;
  gap: 18px;
}

.quote-card strong {
  display: block;
}

.post-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.newsletter {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.newsletter-form {
  display: grid;
  gap: 12px;
}

.newsletter-form input,
.newsletter-form textarea {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 15px 16px;
  color: var(--ink);
}

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

.contact-list {
  display: grid;
  gap: 14px;
}

.contact-list a,
.contact-list span {
  display: block;
  color: var(--blue-grey);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.socials span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.84);
  color: var(--blue-grey);
  font-size: 12px;
  font-weight: 900;
}

footer {
  padding: 24px 0 42px;
}

.footer-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer-row .brand img { width: 190px; }

.footer-row h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.footer-row p,
.footer-row a {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  display: block;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 22px;
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 640ms ease, transform 640ms ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .topline .shell { flex-direction: column; align-items: start; justify-content: center; padding: 9px 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3,
  .grid-2,
  .newsletter,
  .footer-row,
  .backlink-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .nav-links {
    display: none;
    position: fixed;
    left: 22px;
    right: 22px;
    top: 92px;
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
    background: rgba(255,255,255,0.98);
    padding: 13px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { text-align: center; }
  .nav-cta { display: none; }
  .menu-btn { display: inline-grid; place-items: center; }
}

@media (max-width: 650px) {
  .shell { width: min(var(--max), calc(100% - 28px)); }
  .brand img { width: 176px; }
  .footer-row .brand img { width: 170px; }
  .page-hero { padding-top: 24px; }
  .hero-panel { padding: 28px; border-radius: 28px; }
  .grid-4,
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
