/* ==========================================================================
   Yvztech — Design System
   ========================================================================== */

:root {
  /* Brand palette */
  --brand-primary: #0A1F44;   /* navy — main brand */
  --brand-accent:  #2F80ED;   /* bright blue — accent */
  --brand-deep:    #050B1A;   /* near-black navy — dark sections */
  --brand-tint:    #EAF0FF;   /* light blue wash */
  --brand-muted:   #BFC7D5;   /* cool gray-blue */

  --bg: #ffffff;
  --bg-soft: #EAF0FF;
  --bg-dark: #050B1A;
  --surface: #ffffff;
  --surface-2: #F5F8FF;
  --text: #0A1F44;
  --text-soft: #2E3F66;
  --text-muted: #64748b;
  --text-on-dark: #EAF0FF;
  --text-on-dark-muted: #BFC7D5;
  --border: #D6DEEC;
  --border-strong: #BFC7D5;
  --accent: #2F80ED;
  --accent-soft: #DBE8FC;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow: 0 10px 30px -12px rgba(10, 10, 10, 0.08);
  --shadow-lg: 0 24px 60px -20px rgba(10, 10, 10, 0.14);

  --font-heading: "Red Hat Display", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --section-y: clamp(64px, 9vw, 120px);

  --t-fast: 150ms ease;
  --t-base: 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, textarea { font: inherit; border: 0; background: transparent; color: inherit; }
input:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 1rem + 3vw, 3.5rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.875rem, 1.1rem + 2.6vw, 3.25rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem); }
h4 { font-size: 1.25rem; }
p { color: var(--text-soft); }

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding-block: var(--section-y); position: relative; }
.section-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 20px;
}
.section-tag .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.section-header { max-width: 720px; margin-bottom: 56px; }
.section-header.center { margin-inline: auto; text-align: center; }
.section-subtitle { color: var(--text-muted); margin-top: 18px; font-size: 1.0625rem; }
.eyebrow {
  font-family: var(--font-heading); font-weight: 600; font-size: 0.75rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  font-weight: 600; font-size: 0.9375rem;
  border-radius: var(--radius-pill);
  transition: transform var(--t-base), background var(--t-base), color var(--t-base), border-color var(--t-base);
  white-space: nowrap;
}
.btn-primary { background: var(--text); color: var(--text-on-dark); }
.btn-primary:hover { transform: translateY(-2px); background: #1f1f1f; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light { background: var(--bg); color: var(--text); }
.btn-light:hover { transform: translateY(-2px); }
.btn-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--text);
}
.btn-link .arrow { transition: transform var(--t-base); }
.btn-link:hover .arrow { transform: translateX(4px); }

/* Utilities */
.grid { display: grid; gap: 24px; }
.flex { display: flex; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ==========================================================================
   Promo banner
   ========================================================================== */
.promo-banner {
  background: var(--text); color: var(--text-on-dark);
  text-align: center; font-size: 0.875rem; font-weight: 500;
  padding: 10px 24px;
}
.promo-banner a { text-decoration: underline; margin-left: 6px; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.8);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(231, 229, 228, 0.6);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 92px;
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 12px;
  line-height: 1;
}
.nav-brand-logo {
  height: 72px; width: auto; display: block;
}
.nav-brand-wordmark {
  height: 28px; width: auto; display: block;
}
.nav-menu {
  display: flex; align-items: center; gap: 6px;
}
.nav-menu a {
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 0.9375rem; font-weight: 500;
  color: var(--text-soft);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-menu a:hover { color: var(--text); background: var(--bg-soft); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--border);
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--text);
  position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 18px; height: 2px; background: var(--text);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: clamp(56px, 6vw, 90px);
  padding-bottom: clamp(56px, 6vw, 90px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 560px;
  background: radial-gradient(1100px 460px at 20% 0%, #EAF0FF 0%, transparent 60%),
              radial-gradient(800px 400px at 100% 20%, #DBE8FC 0%, transparent 60%);
  z-index: -1;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8125rem; font-weight: 500; color: var(--text-soft);
  margin-bottom: 28px;
}
.hero-badge-chip {
  background: var(--text); color: var(--text-on-dark);
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.04em;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 .accent {
  display: inline-block;
  background: linear-gradient(120deg, #10b981, #0ea5e9 60%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lede { font-size: 1.125rem; color: var(--text-muted); max-width: 560px; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-meta {
  display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap;
}
.hero-meta-item strong {
  display: block; font-family: var(--font-heading);
  font-size: 1.75rem; font-weight: 700;
}
.hero-meta-item span { font-size: 0.875rem; color: var(--text-muted); }

.hero-visual {
  position: relative; aspect-ratio: 5/6;
  border-radius: var(--radius-lg);
  background: url('../assets/hero-bg.jpg') center/cover no-repeat #050B1A;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-card-float {
  position: absolute; left: 24px; right: 24px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 14px;
  z-index: 2;
}
.hero-card-float.top { top: 28px; }
.hero-card-float.bottom { bottom: 28px; }
.hero-card-float .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.hero-card-float .spark { color: var(--accent); }
.hero-card-float strong { font-family: var(--font-heading); font-size: 1.125rem; display: block; }
.hero-card-float small { color: var(--text-muted); font-size: 0.8125rem; }
.hero-card-float .spark {
  margin-left: auto; font-weight: 700; font-size: 0.875rem;
}

/* ==========================================================================
   Trust logos
   ========================================================================== */
.trust { padding-block: 48px; border-block: 1px solid var(--border); background: var(--bg); }
.trust-label { text-align: center; color: var(--text-muted); margin-bottom: 28px; font-size: 0.875rem; }
.trust-marquee {
  overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.trust-track {
  display: flex; gap: 64px; align-items: center;
  animation: scroll-x 28s linear infinite;
  width: max-content;
}
.trust-item {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.trust-item img {
  height: 56px; width: auto; max-width: 180px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter .3s ease, opacity .3s ease;
}
.trust-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: flex-start;
}
.value-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.value-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.value-card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--bg-soft); color: var(--text);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.value-card h4 { margin-bottom: 8px; font-size: 1.0625rem; }
.value-card p { font-size: 0.9375rem; color: var(--text-muted); }

.mission-vision {
  display: grid; gap: 20px; margin-top: 28px;
}
.mv-item {
  display: flex; gap: 16px; padding: 20px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.mv-item .num {
  font-family: var(--font-heading); font-weight: 800; font-size: 1.125rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--text); color: var(--text-on-dark);
  display: grid; place-items: center; flex-shrink: 0;
}
.mv-item h5 { font-family: var(--font-heading); font-weight: 700; margin-bottom: 4px; }
.mv-item p { font-size: 0.9375rem; color: var(--text-muted); }

/* ==========================================================================
   Services
   ========================================================================== */
.services { background: var(--bg-soft); }
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.service-card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--t-base), border-color var(--t-base);
  display: flex; flex-direction: column; gap: 20px;
  min-height: 280px;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--text); }
.service-card .icon-wrap {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--bg-soft);
  display: grid; place-items: center;
  transition: background var(--t-base), color var(--t-base);
  color: var(--text);
}
.service-card:hover .icon-wrap { background: var(--text); color: var(--text-on-dark); }
.service-card h3 { font-size: 1.25rem; }
.service-card p { font-size: 0.9375rem; color: var(--text-muted); }
.service-card .go {
  position: absolute; top: 24px; right: 24px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-soft);
  display: grid; place-items: center;
  transition: background var(--t-base), color var(--t-base), transform var(--t-base);
}
.service-card:hover .go { background: var(--text); color: var(--text-on-dark); transform: rotate(-45deg); }
.services-footer { margin-top: 48px; text-align: center; }

/* ==========================================================================
   Case studies
   ========================================================================== */
.cases-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.case-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex; flex-direction: column; gap: 20px;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-card-tag {
  display: inline-flex; align-self: flex-start;
  padding: 6px 12px; background: var(--bg-soft);
  border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-soft);
}
.case-card h3 { font-size: 1.375rem; }
.case-card p { font-size: 0.9375rem; color: var(--text-muted); }
.case-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  padding-top: 20px; border-top: 1px solid var(--border);
}
.case-metric strong {
  display: block; font-family: var(--font-heading);
  font-size: 1.5rem; font-weight: 700;
}
.case-metric span {
  font-size: 0.75rem; color: var(--text-muted); line-height: 1.3; display: block;
}
.case-card .btn-link { margin-top: auto; }

/* ==========================================================================
   Workflow
   ========================================================================== */
.workflow {
  background: url('../assets/banner-1.png') center/cover no-repeat var(--bg-dark);
  color: var(--text-on-dark);
}
.workflow h2, .workflow h3, .workflow h4 { color: var(--text-on-dark); }
.workflow p { color: var(--text-on-dark-muted); }
.workflow .section-tag {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
  color: var(--text-on-dark-muted);
}
.workflow-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px;
  position: relative;
}
.workflow-step {
  position: relative;
  padding: 28px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  display: flex; flex-direction: column; gap: 14px;
}
.workflow-step .step-num {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--text-on-dark); color: var(--text);
  display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 0.875rem;
  align-self: flex-start;
}
.workflow-step .step-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(47,128,237,0.14); color: var(--accent);
  display: grid; place-items: center;
}
.workflow-step h4 { font-size: 1.125rem; }
.workflow-step p { font-size: 0.875rem; }

/* ==========================================================================
   Industries
   ========================================================================== */
.industries-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.industry-card {
  position: relative; aspect-ratio: 1/1.05;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(140deg, #f5f5f4, #e7e5e4);
  display: flex; align-items: flex-end;
  padding: 18px; cursor: default;
  isolation: isolate;
}
.industry-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,0.85));
  z-index: 1; opacity: 0; transition: opacity var(--t-base);
}
.industry-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(255,255,255,0.7); color: var(--text);
  display: grid; place-items: center;
  position: absolute; top: 18px; left: 18px; z-index: 2;
  transition: background var(--t-base), color var(--t-base);
}
.industry-card h4 {
  position: relative; z-index: 2;
  font-size: 1.0625rem;
  transition: color var(--t-base);
}
.industry-card.has-image {
  background-size: cover; background-position: center;
}
.industry-card.has-image::before {
  opacity: 1;
  background: linear-gradient(180deg, rgba(10,10,10,0.15) 0%, rgba(10,10,10,0.8) 100%);
}
.industry-card.has-image h4 { color: var(--text-on-dark); }
.industry-card.has-image .industry-icon {
  background: rgba(255,255,255,0.92);
  color: var(--text);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { background: var(--bg-soft); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.testimonial {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 24px;
}
.testimonial .quote-mark {
  font-family: var(--font-heading); font-size: 3rem; line-height: 0.6;
  color: var(--text); font-weight: 800;
}
.testimonial .stars { display: flex; gap: 2px; color: #f59e0b; }
.testimonial p { font-size: 1rem; color: var(--text-soft); }
.testimonial .author { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testimonial .avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #2F80ED, #0A1F44);
  display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 700; color: #EAF0FF;
  flex-shrink: 0;
}
.testimonial .author strong { display: block; font-family: var(--font-heading); }
.testimonial .author span { font-size: 0.8125rem; color: var(--text-muted); }

/* ==========================================================================
   Comparison table
   ========================================================================== */
.compare-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow);
}
.compare-row {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  align-items: center;
  border-top: 1px solid var(--border);
}
.compare-row:first-child { border-top: 0; }
.compare-cell {
  padding: 20px 24px; font-size: 0.9375rem;
}
.compare-row.head .compare-cell { font-weight: 700; font-family: var(--font-heading); font-size: 1rem; }
.compare-row.head .compare-cell:nth-child(2) { background: var(--text); color: var(--text-on-dark); }
.compare-row .compare-cell:nth-child(2) { background: rgba(47,128,237,0.06); }
.compare-row.head .compare-cell:nth-child(3) { color: var(--text-muted); }
.compare-row .compare-cell:nth-child(3) { color: var(--text-muted); }
.check, .xmark {
  display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
}
.check { background: var(--accent-soft); color: var(--accent); }
.xmark { background: #FCE4E6; color: #D64550; }

/* ==========================================================================
   Team
   ========================================================================== */
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.team-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, #e7e5e4, #d4d4d4);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
  transition: transform var(--t-base);
  isolation: isolate;
}
.team-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10,10,10,0.85));
  z-index: 1;
}
.team-card:hover { transform: translateY(-4px); }
.team-card .team-meta {
  position: absolute; top: 20px; left: 20px; right: 20px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 2;
  font-size: 0.8125rem; color: var(--text);
}
.team-card .team-meta .chip {
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.85); backdrop-filter: blur(6px);
  font-weight: 600;
}
.team-card .team-body { position: relative; z-index: 2; color: var(--text-on-dark); }
.team-card h4 { color: var(--text-on-dark); font-size: 1.125rem; margin-bottom: 4px; }
.team-card .role { font-size: 0.8125rem; color: rgba(255,255,255,0.7); }
.team-card .socials { display: flex; gap: 8px; margin-top: 14px; }
.team-card .socials a {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.15); color: var(--text-on-dark);
  display: grid; place-items: center;
  transition: background var(--t-fast);
}
.team-card .socials a:hover { background: var(--text-on-dark); color: var(--text); }
.team-avatar {
  width: 100%; height: 100%; position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-heading); font-size: 5rem; font-weight: 800;
  color: rgba(10,10,10,0.08);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: flex-start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.faq-item[open] { border-color: var(--text); box-shadow: var(--shadow); }
.faq-item summary {
  list-style: none; cursor: pointer;
  padding: 22px 26px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.0625rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .toggle {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-soft);
  display: grid; place-items: center; flex-shrink: 0;
  transition: transform var(--t-base), background var(--t-base), color var(--t-base);
}
.faq-item[open] summary .toggle {
  background: var(--text); color: var(--text-on-dark);
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 26px 24px; color: var(--text-muted); font-size: 0.9375rem; line-height: 1.7;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta {
  background: url('../assets/banner-1.png') center/cover no-repeat var(--text);
  color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
  position: relative; overflow: hidden;
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 { color: var(--text-on-dark); margin-bottom: 18px; }
.final-cta p { color: var(--text-on-dark-muted); font-size: 1.0625rem; margin-bottom: 28px; max-width: 520px; }
.final-cta-visual {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 32px;
  aspect-ratio: 4/3;
  display: grid; place-items: center;
  backdrop-filter: blur(8px);
}
.final-cta-visual svg { opacity: 0.9; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: url('../assets/banner-1.png') center/cover no-repeat var(--bg-dark);
  color: var(--text-on-dark);
  padding-block: 80px 32px;
}
.site-footer a { color: var(--text-on-dark-muted); transition: color var(--t-fast); }
.site-footer a:hover { color: var(--text-on-dark); }
.footer-top {
  display: grid; grid-template-columns: 1.5fr repeat(2, 1fr); gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-lockup {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
}
.footer-brand-logo {
  height: 88px; width: auto; display: block;
  filter: brightness(0) invert(1);
}
.footer-brand-wordmark {
  height: 36px; width: auto; display: block;
  filter: brightness(0) invert(1);
}
.footer-brand p { color: var(--text-on-dark-muted); font-size: 0.9375rem; margin-bottom: 24px; max-width: 360px; }
.footer-contact { display: flex; flex-direction: column; gap: 12px; font-size: 0.9375rem; color: var(--text-on-dark-muted); }
.footer-contact div { display: flex; align-items: center; gap: 10px; }
.footer-col h5 {
  color: var(--text-on-dark); font-family: var(--font-heading);
  font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col li { font-size: 0.9375rem; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; flex-wrap: wrap; gap: 16px;
  color: var(--text-on-dark-muted); font-size: 0.875rem;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: grid; place-items: center;
}
.footer-socials a:hover { background: rgba(255,255,255,0.14); }

.footer-credit {
  text-align: center;
  padding: 18px 0 0;
  margin-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--text-on-dark-muted);
  font-size: 0.8125rem;
}
.footer-credit a {
  color: #00e8e5;
  font-weight: 600;
  text-decoration: none;
}
.footer-credit a:hover { text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; aspect-ratio: 4/3; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow-steps { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .final-cta { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 960px) {
  .nav-menu { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.menu-open .nav-menu {
    display: flex; flex-direction: column;
    position: absolute; top: 92px; left: 0; right: 0;
    padding: 20px 24px; background: var(--bg);
    border-bottom: 1px solid var(--border);
    gap: 2px;
  }
  .site-header.menu-open .nav-menu a { padding: 14px 16px; }
}

@media (max-width: 720px) {
  .nav-cta .btn { display: none; }
  .nav-cta .btn-icon-circle { display: inline-grid; }
  .value-cards { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .workflow-steps { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .compare-row { grid-template-columns: 1.3fr 0.8fr 0.8fr; }
  .compare-cell { padding: 14px 12px; font-size: 0.8125rem; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero-meta { gap: 20px; }
  .hero-meta-item strong { font-size: 1.375rem; }

  .site-header > .container { height: 72px; }
  .site-header.menu-open .nav-menu { top: 72px; }
  .nav-brand { gap: 8px; }
  .nav-brand-logo { height: 56px; }
  .nav-brand-wordmark { height: 22px; }
  .footer-brand-logo { height: 68px; }
  .footer-brand-wordmark { height: 28px; }
  .footer-brand-lockup { gap: 10px; margin-bottom: 16px; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; }
  .hero-card-float strong { font-size: 1rem; }

  .site-header > .container { height: 64px; }
  .site-header.menu-open .nav-menu { top: 64px; }
  .nav-brand-logo { height: 48px; }
  .nav-brand-wordmark { height: 18px; }
  .footer-brand-logo { height: 60px; }
  .footer-brand-wordmark { height: 24px; }
}

/* Scroll animations */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   MOTION — keyframes & animated decorations
   ========================================================================== */
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes float-y-alt {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}
@keyframes blob-shift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px, -20px) scale(1.1); }
  66%      { transform: translate(-20px, 30px) scale(0.95); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@keyframes rotate-word {
  0%,  18% { transform: translateY(0);     }
  20%, 38% { transform: translateY(-100%); }
  40%, 58% { transform: translateY(-200%); }
  60%, 78% { transform: translateY(-300%); }
  80%, 100%{ transform: translateY(-400%); }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes gradient-flow {
  0%,100% { background-position:   0% 50%; }
  50%     { background-position: 100% 50%; }
}

/* Hero: decorative animated blobs */
.hero { --blob-opacity: 0.55; }
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: var(--blob-opacity);
  z-index: -1; pointer-events: none;
  animation: blob-shift 14s ease-in-out infinite;
}
.hero-blob.b1 { width: 380px; height: 380px; top: -80px; left: -120px; background: #EAF0FF; }
.hero-blob.b2 { width: 300px; height: 300px; top: 40%; right: -80px; background: #DBE8FC; animation-duration: 18s; animation-delay: -4s; }
.hero-blob.b3 { width: 260px; height: 260px; bottom: -80px; left: 40%; background: #C5D9F9; animation-duration: 22s; animation-delay: -8s; }

/* Hero: static wave background */
.hero-waves {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 260px;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}
.hero-waves .wave {
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 100%;
}
.hero-waves .wave-1 { fill: rgba(47, 128, 237, 0.10); }
.hero-waves .wave-2 { fill: rgba(47, 128, 237, 0.16); }
.hero-waves .wave-3 { fill: rgba(10, 31, 68, 0.08); }

/* Hero: animated gradient headline */
.hero h1 .accent {
  background: linear-gradient(120deg, #2F80ED, #0A1F44, #2F80ED);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradient-flow 8s ease-in-out infinite;
}

/* Hero: rotating word */
.rotating-word {
  display: inline-flex; height: 1.25em; overflow: hidden;
  vertical-align: bottom; line-height: 1.25;
  max-width: 100%;
}
.rotating-word ul {
  animation: rotate-word 10s cubic-bezier(0.77, 0, 0.18, 1) infinite;
}
.rotating-word li {
  height: 1.25em; line-height: 1.25;
  background: linear-gradient(120deg, #2F80ED, #0A1F44);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}

/* Hero visual: floating cards + pulse + orbit */
.hero-card-float.top    { animation: float-y 6s ease-in-out infinite; }
.hero-card-float.bottom { animation: float-y-alt 7s ease-in-out infinite; animation-delay: -2s; }

/* Hero visual: code mockup */
.hero-code {
  position: absolute; z-index: 2;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(82%, 380px);
  background: rgba(5, 11, 26, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(234,240,255,0.14);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem; color: #E2E8F0;
  box-shadow: 0 20px 60px rgba(5,11,26,0.6);
}
.hero-code-head { display: flex; gap: 6px; margin-bottom: 12px; }
.hero-code-head span {
  width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.2);
}
.hero-code-head span:nth-child(1) { background: #ef4444; }
.hero-code-head span:nth-child(2) { background: #eab308; }
.hero-code-head span:nth-child(3) { background: #22c55e; }
.hero-code pre { color: #CBD5E1; line-height: 1.7; font-size: 0.75rem; }
.hero-code .k  { color: #93C5FD; }
.hero-code .s  { color: #86EFAC; }
.hero-code .c  { color: #64748b; font-style: italic; }
.hero-code .fn { color: #2F80ED; }
.hero-code .typed::after {
  content: "▋"; color: #2F80ED;
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Hero visual: stack on mobile so cards don't overlap the code mockup */
@media (max-width: 720px) {
  .hero-visual {
    aspect-ratio: auto;
    max-width: none;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background-position: center;
  }
  .hero-code {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    padding: 16px;
  }
  .hero-code pre { font-size: 0.8125rem; }
  .hero-card-float,
  .hero-card-float.top,
  .hero-card-float.bottom {
    position: static;
    inset: auto;
    width: 100%;
    padding: 16px 18px;
  }
  .hero-card-float.top { order: 0; }
  .hero-code { order: 1; }
  .hero-card-float.bottom { order: 2; }
}

/* Cards: shimmer on icons */
.service-card .icon-wrap {
  position: relative; overflow: hidden;
}
.service-card .icon-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.6) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  opacity: 0; transition: opacity var(--t-base);
}
.service-card:hover .icon-wrap::after { opacity: 1; }

/* Value cards: animated border glow */
.value-card { position: relative; overflow: hidden; }
.value-card::before {
  content: ""; position: absolute; inset: -1px;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(120deg, transparent, #2F80ED, #0A1F44, transparent);
  background-size: 200% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; animation: shimmer 3s linear infinite; transition: opacity var(--t-base);
}
.value-card:hover::before { opacity: 1; }
.value-card:hover .icon {
  background: var(--text); color: var(--text-on-dark);
  transform: rotate(-8deg) scale(1.05);
}
.value-card .icon { transition: background var(--t-base), color var(--t-base), transform var(--t-base); }

/* Workflow: cards pulse in sequence (1 → 2 → 3 → 4 loop) */
.workflow-step {
  animation: wf-card-pulse 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: calc(var(--i, 0) * 2s);
}
@keyframes wf-card-pulse {
  0%, 25%, 100% {
    border-color: rgba(234, 240, 255, 0.08);
    background: rgba(234, 240, 255, 0.04);
    box-shadow: none;
  }
  4%, 21% {
    border-color: var(--accent);
    background: rgba(47, 128, 237, 0.08);
    box-shadow:
      0 0 0 1px var(--accent),
      0 24px 60px -20px rgba(47, 128, 237, 0.45);
  }
}
.workflow-step .step-num {
  transition: background 400ms ease, color 400ms ease, transform 400ms ease;
  animation: wf-num-pulse 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: calc(var(--i, 0) * 2s);
}
@keyframes wf-num-pulse {
  0%, 25%, 100% {
    background: var(--text-on-dark);
    color: var(--text);
    transform: scale(1);
  }
  4%, 21% {
    background: var(--accent);
    color: var(--text-on-dark);
    transform: scale(1.05);
  }
}
.workflow-step .step-icon {
  transition: background 400ms ease, color 400ms ease;
  animation: wf-icon-pulse 8s cubic-bezier(0.4, 0, 0.2, 1) infinite, float-y 6s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 2s), calc(var(--i, 0) * -1.5s);
}
@keyframes wf-icon-pulse {
  0%, 25%, 100% {
    background: rgba(47, 128, 237, 0.14);
    color: var(--accent);
  }
  4%, 21% {
    background: var(--accent);
    color: var(--text-on-dark);
  }
}
.workflow-step { transition: transform var(--t-base); }
.workflow-step:hover { transform: translateY(-6px); }

/* Industry cards: icon rotate on hover, background zoom */

/* Testimonial stars twinkle */
.testimonial .stars svg { animation: float-y 3.5s ease-in-out infinite; }
.testimonial .stars svg:nth-child(2) { animation-delay: -0.6s; }
.testimonial .stars svg:nth-child(3) { animation-delay: -1.2s; }
.testimonial .stars svg:nth-child(4) { animation-delay: -1.8s; }
.testimonial .stars svg:nth-child(5) { animation-delay: -2.4s; }

/* Team: avatar letter spin on hover */
.team-card .team-avatar { transition: transform 0.8s cubic-bezier(0.2,0.8,0.2,1); }
.team-card:hover .team-avatar { transform: rotate(10deg) scale(1.1); color: rgba(10,10,10,0.18); }

/* Final CTA: animated orbit */
.final-cta-visual { position: relative; overflow: hidden; }
.final-cta-visual::before,
.final-cta-visual::after {
  content: ""; position: absolute; border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.18);
}
.final-cta-visual::before {
  inset: 8%; animation: spin-slow 24s linear infinite;
}
.final-cta-visual::after {
  inset: 22%; animation: spin-slow 18s linear infinite reverse;
}
.final-cta-visual svg { animation: float-y 5s ease-in-out infinite; }

.workflow > * { position: relative; z-index: 1; }

/* Counter fade-in */
.hero-meta-item strong { display: inline-block; animation: fade-up 0.8s 0.6s ease backwards; }


/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.55);
  z-index: 60;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 300ms ease;
  animation: wa-bounce 2.4s ease-in-out infinite;
}
.whatsapp-float::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: wa-pulse 2.4s cubic-bezier(0, 0.55, 0.45, 1) infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1) rotate(-6deg);
  box-shadow: 0 12px 32px -4px rgba(37, 211, 102, 0.75);
  animation-play-state: paused;
}
.whatsapp-float:hover::before {
  animation-play-state: paused;
}
.whatsapp-float svg { width: 32px; height: 32px; }
@keyframes wa-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(1.8); opacity: 0; }
}
@media (max-width: 720px) {
  .whatsapp-float { bottom: 18px; right: 18px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-blob { display: none; }
}

/* ==========================================================================
   BLOG — listing + article
   ========================================================================== */

/* Blog hero (listing page) */
.blog-hero {
  padding-block: clamp(72px, 8vw, 112px);
  position: relative;
  background: linear-gradient(180deg, var(--bg-soft) 0%, transparent 100%);
  text-align: center;
}
.blog-hero-brand {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 12px;
}
.blog-hero-logo { height: 52px; width: auto; display: block; }
.blog-hero-brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: var(--brand-primary);
  white-space: nowrap;
}
.blog-hero h1 { max-width: 820px; margin: 18px auto 16px; }
.blog-hero p { max-width: 640px; margin: 0 auto; color: var(--text-muted); font-size: 1.0625rem; }

/* Category chips */
.blog-categories {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 28px;
}
.blog-chip {
  padding: 8px 16px;
  font-size: 0.875rem; font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.blog-chip:hover, .blog-chip.active {
  background: var(--text); color: var(--text-on-dark); border-color: var(--text);
}

/* Pagination */
.pagination {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: 48px;
}
.pagination .pg-btn {
  min-width: 40px; height: 40px;
  padding: 0 12px;
  font-size: 0.9375rem; font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-soft);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease;
}
.pagination .pg-btn:hover:not(:disabled) {
  background: var(--text); color: var(--text-on-dark); border-color: var(--text);
}
.pagination .pg-btn.active {
  background: var(--text); color: var(--text-on-dark); border-color: var(--text);
  cursor: default;
}
.pagination .pg-btn:disabled {
  opacity: 0.4; cursor: not-allowed;
}
.pagination .pg-nav { font-size: 1.25rem; line-height: 1; }

/* Post grid */
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card-media {
  aspect-ratio: 16/10;
  background: linear-gradient(140deg, var(--brand-tint), #C5D9F9);
  position: relative;
  overflow: hidden;
  display: grid; place-items: center;
  color: var(--brand-primary);
}
.post-card-media svg { opacity: 0.55; width: 48%; height: 48%; }
.post-card-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.post-card-media .cat {
  position: absolute; top: 14px; left: 14px;
  padding: 4px 12px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text);
}
.post-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; gap: 12px; }
.post-card h3 {
  font-size: 1.25rem; line-height: 1.25; margin: 0;
}
.post-card h3 a { color: inherit; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { font-size: 0.9375rem; color: var(--text-muted); margin: 0; }
.post-card-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.8125rem; color: var(--text-muted);
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.post-card-meta .dot { width: 3px; height: 3px; background: currentColor; border-radius: 50%; opacity: 0.5; }

/* Featured post (first item) */
.featured-post {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.featured-post:hover { box-shadow: var(--shadow); }
.featured-post .post-card-media { aspect-ratio: auto; min-height: 360px; }
.featured-post .post-card-body { padding: 48px; gap: 18px; justify-content: center; }
.featured-post h2 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); line-height: 1.2; }
.featured-post h2 a { color: inherit; }
.featured-post h2 a:hover { color: var(--accent); }
.featured-post p { font-size: 1rem; line-height: 1.65; color: var(--text-soft); }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; color: var(--text-muted);
  padding-block: 24px;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* Article page layout */
.article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 760px) 280px;
  gap: 64px;
  max-width: 1120px;
  margin: 0 auto;
  padding-block: 48px 96px;
  align-items: flex-start;
}
.article-head {
  max-width: 760px; margin: 0 auto 40px;
}
.article-head .cat {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 18px;
}
.article-head h1 {
  font-size: clamp(2rem, 1.1rem + 2.8vw, 3rem);
  line-height: 1.15; letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.article-head .meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  color: var(--text-muted); font-size: 0.9375rem;
}
.article-head .meta .author {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; color: var(--text);
}
.article-head .meta .author .avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, #2F80ED, #0A1F44);
  display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: 700;
  color: var(--text-on-dark); font-size: 0.75rem;
}
.article-head .meta .dot { width: 3px; height: 3px; background: currentColor; border-radius: 50%; opacity: 0.4; }

.article-cover {
  aspect-ratio: 16/8;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--brand-tint), #C5D9F9);
  margin-bottom: 48px;
  overflow: hidden;
  display: grid; place-items: center;
  color: var(--brand-primary);
  overflow: hidden;
}
.article-cover svg { opacity: 0.55; width: 260px; max-width: 40%; height: auto; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Article content typography */
.article-body { font-size: 1.0625rem; line-height: 1.75; color: var(--text-soft); }
.article-body > * + * { margin-top: 1.25em; }
.article-body h2 {
  font-size: 1.625rem; line-height: 1.3;
  color: var(--text); margin-top: 2em;
  letter-spacing: -0.02em;
  scroll-margin-top: 100px;
}
.article-body h3 {
  font-size: 1.25rem; line-height: 1.35;
  color: var(--text); margin-top: 1.6em;
  scroll-margin-top: 100px;
}
.article-body p { margin: 0; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a {
  color: var(--accent); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.article-body a:hover { text-decoration-thickness: 2px; }
.article-body ul, .article-body ol {
  padding-left: 1.4em; display: flex; flex-direction: column; gap: 10px;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li::marker { color: var(--accent); }
.article-body blockquote {
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  border-radius: 6px;
  font-style: italic;
  color: var(--text);
}
.article-body code {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 0.875em;
  color: var(--brand-primary);
}
.article-body .callout {
  padding: 20px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; gap: 14px;
}
.article-body .callout .icon {
  flex-shrink: 0; width: 36px; height: 36px;
  background: var(--accent); color: var(--text-on-dark);
  border-radius: 10px;
  display: grid; place-items: center;
}
.article-body .callout h4 {
  font-family: var(--font-heading); font-weight: 700;
  margin: 0 0 6px; color: var(--text); font-size: 1rem;
}
.article-body .callout p { font-size: 0.9375rem; margin: 0; }

.article-body .stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.article-body .stats-grid .stat {
  text-align: center;
}
.article-body .stats-grid .stat strong {
  display: block; font-family: var(--font-heading);
  font-size: 1.75rem; color: var(--text); margin-bottom: 4px;
}
.article-body .stats-grid .stat span {
  font-size: 0.8125rem; color: var(--text-muted);
}

/* TOC sidebar */
.article-toc {
  position: sticky; top: 100px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
}
.article-toc h4 {
  font-family: var(--font-heading); font-weight: 700;
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted); margin-bottom: 14px;
}
.article-toc ul { display: flex; flex-direction: column; gap: 10px; }
.article-toc a {
  color: var(--text-soft); line-height: 1.4; display: block;
  padding-left: 12px; border-left: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.article-toc a:hover, .article-toc a.active {
  color: var(--text); border-color: var(--accent);
}

/* Article footer CTA + share */
.article-share {
  display: flex; align-items: center; gap: 12px;
  padding: 24px 0;
  border-block: 1px solid var(--border);
  margin-top: 48px;
}
.article-share span { color: var(--text-muted); font-size: 0.875rem; }
.article-share a {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-soft); color: var(--text-soft);
  display: grid; place-items: center;
  transition: background var(--t-fast), color var(--t-fast);
}
.article-share a:hover { background: var(--text); color: var(--text-on-dark); }

/* Related posts */
.related-posts {
  max-width: 1120px; margin: 0 auto;
  padding-block: 48px 96px;
}
.related-posts h3 {
  font-size: 1.5rem; margin-bottom: 28px;
}

/* Article-level final CTA */
.article-cta {
  background: var(--bg-dark); color: var(--text-on-dark);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  margin: 48px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.article-cta h4 {
  color: var(--text-on-dark);
  font-family: var(--font-heading); font-weight: 700;
  font-size: 1.375rem; margin: 0 0 6px;
}
.article-cta p { color: var(--text-on-dark-muted); font-size: 0.9375rem; margin: 0; }

@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .post-card-media { min-height: 240px; }
  .featured-post .post-card-body { padding: 28px; }
  .article-wrap { grid-template-columns: 1fr; gap: 32px; max-width: 760px; }
  .article-toc { position: static; }
}

@media (max-width: 720px) {
  .post-grid { grid-template-columns: 1fr; }
  .article-head h1 { font-size: 2rem; }
  .article-cta { padding: 28px 24px; flex-direction: column; align-items: flex-start; }
  .article-body .stats-grid { grid-template-columns: 1fr; }
}
