/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #FFFFFF;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--surface-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding: 12px 8px;
}

.btn-ghost:hover {
  color: var(--accent-soft);
}

.btn-ghost svg { transition: transform var(--duration-base) var(--ease-out); }
.btn-ghost:hover svg { transform: translateX(4px); }

.btn-on-dark {
  background: var(--ink);
  color: #FFFFFF;
}
.btn-on-dark:hover { background: var(--accent-dark); color: #FFFFFF; }

/* ============ Navigation ============ */
/* Light glass bar with a hairline bottom border. */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 248, 252, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 1px 0 var(--border-highlight);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: var(--space-3);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav-brand .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--ink);
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface);
    padding: var(--space-5);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
}

/* ============ Cards ============ */
/* Solid white panel: visible hairline border + soft lift shadow. */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.16);
  color: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-4);
}

.card-icon svg { width: 24px; height: 24px; }

.card-title { font-size: 20px; margin-bottom: var(--space-3); }
.card-desc { font-size: 15px; line-height: 1.6; color: var(--ink-soft); margin-bottom: var(--space-4); }
.card-meta { font-size: 13px; color: var(--ink-muted); font-weight: 500; }

/* ============ Pricing cards ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-7) var(--space-6);
  display: flex;
  flex-direction: column;
  transition: all var(--duration-base) var(--ease-out);
}

.pricing-card.is-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow), var(--shadow-md);
  position: relative;
}

.pricing-card.is-featured::before {
  content: 'Most popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.pricing-tier {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.pricing-name {
  font-size: 24px;
  margin-bottom: var(--space-2);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-1);
}

.pricing-timeline {
  font-size: 14px;
  color: var(--ink-muted);
  margin-bottom: var(--space-5);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-6);
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding-block: var(--space-2);
  font-size: 15px;
  color: var(--ink-soft);
}

.pricing-features li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  background: rgba(99, 102, 241, 0.20);
  border-radius: var(--radius-full);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A5B4FC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

/* ============ Hero ============ */
.hero {
  padding-block: clamp(var(--space-8), 12vw, var(--space-10));
  position: relative;
  overflow: hidden;
}

.hero-eyebrow { color: var(--accent); }

.hero-title {
  font-size: clamp(44px, 7vw, 80px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-5);
  max-width: 18ch;
}

.hero-sub {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: var(--space-7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.hero-3d {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.8;
}

/* ============ Logo strip ============ */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-6), 6vw, var(--space-8));
  padding-block: var(--space-7);
  opacity: 0.55;
  filter: grayscale(100%);
}

.logo-strip span {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ============ Trust hub ============ */
.trust-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-5) var(--space-6);
  padding: var(--space-7) 0;
  margin-top: var(--space-5);
  border-block: 1px solid var(--dark-border);
}

.stack-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  /* Monochrome navy marks on a light canvas: dim at rest, full on hover.
     (No greyscale filter — the icons are already single-colour.) */
  opacity: 0.6;
  transition:
    opacity var(--duration-base) var(--ease-out),
    transform var(--duration-base) var(--ease-out);
  cursor: default;
}

.stack-logo:hover {
  opacity: 1;
  transform: translateY(-3px);
}

.stack-logo img {
  height: 36px;
  width: 36px;
  display: block;
}

/* Inline-SVG fallback for marks the icon CDN does not carry. */
.stack-logo-svg {
  display: block;
  color: var(--ink);
}
.stack-logo-svg svg {
  width: 36px;
  height: 36px;
  display: block;
}

.stack-logo span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--dark-ink-soft);
  text-transform: uppercase;
}

.stack-logo:hover span { color: var(--neon); }

.trust-signals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-7);
}

.trust-signal {
  border-left: 2px solid var(--neon);
  padding-left: var(--space-4);
}

.trust-signal strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--dark-ink);
  margin-bottom: var(--space-2);
  line-height: 1.1;
}

.trust-signal span {
  font-size: 14px;
  line-height: 1.55;
  color: var(--dark-ink-soft);
}

/* Sector strip — replaces named-client logo strip (proof without naming). */
.sector-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: center;
}
.sector-strip-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--dark-ink-soft);
  text-transform: uppercase;
  margin-right: var(--space-3);
}
.sector-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--neon);
  padding: 6px 12px;
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-full);
  background: var(--neon-soft);
}
.sector-strip-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--dark-ink-soft);
  text-align: center;
  margin-top: var(--space-4);
  margin-bottom: 0;
  letter-spacing: 0.04em;
}

/* ============ Stat tiles ============ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-5);
}

.stat-tile {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ============ Process strip ============ */
.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-5);
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.process-step h3 {
  margin-top: var(--space-2);
  font-size: 18px;
}

.process-step p { font-size: 14px; margin: 0; }

/* ============ Testimonial ============ */
.quote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 60ch;
  margin: 0 auto var(--space-6);
  text-align: center;
}

.quote::before { content: '\201C'; }
.quote::after { content: '\201D'; }

.quote-meta {
  text-align: center;
  font-size: 14px;
  color: var(--ink-muted);
}

.quote-meta strong { color: var(--ink); font-weight: 600; }

/* ============ Forms ============ */
.form-grid {
  display: grid;
  gap: var(--space-4);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

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

/* ============ Footer ============ */
.footer {
  background: var(--surface-dark);
  color: var(--ink);
  border-top: 1px solid var(--border);
  padding-block: var(--space-8) var(--space-5);
}

.footer h4 {
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: var(--space-2); }

.footer a {
  color: var(--ink-muted);
  font-size: 14px;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer a:hover { color: var(--ink); }

.footer-bottom {
  padding-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 13px;
  color: var(--ink-muted);
}

/* ============ Sticky CTA bar ============ */
.sticky-cta {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius-full);
  padding: 10px 10px 10px 24px;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  box-shadow: var(--shadow-lg);
  z-index: 90;
  transition: bottom var(--duration-slow) var(--ease-out);
}

.sticky-cta.is-visible { bottom: var(--space-5); }
.sticky-cta span { font-size: 14px; font-weight: 500; }
.sticky-cta .btn { padding: 8px 18px; font-size: 14px; }

@media (max-width: 600px) {
  .sticky-cta { left: var(--space-3); right: var(--space-3); transform: none; }
  .sticky-cta.is-visible { bottom: var(--space-3); }
  .sticky-cta span { display: none; }
}

/* ============ Dark-deep section modifier (v2) ============
   Drop `.section-dark-deep` on any <section> to flip it into the tech-firm
   register: obsidian background, neon teal accent, mono eyebrows + metrics.
   Cards inside automatically pick up the dark variant. */
.section-dark-deep {
  background: var(--dark-bg);
  color: var(--dark-ink);
  position: relative;
  overflow: hidden;
}
.section-dark-deep h1,
.section-dark-deep h2,
.section-dark-deep h3,
.section-dark-deep h4 { color: var(--dark-ink); }
.section-dark-deep p,
.section-dark-deep li { color: var(--dark-ink-soft); }
.section-dark-deep .eyebrow { color: var(--neon); }
.section-dark-deep .feature-eyebrow { color: var(--dark-ink-soft); }

/* Subtle grid backdrop — pure CSS, no images */
.section-dark-deep::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 28, 80, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 28, 80, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 30%, #000 30%, transparent 80%);
}
.section-dark-deep > * { position: relative; z-index: 1; }

/* Cards inside dark sections — slate panels with neon accent on hover */
.section-dark-deep .card,
.section-dark-deep .pricing-card,
.section-dark-deep .case-card {
  background: var(--dark-surface);
  border-color: var(--dark-border);
  color: var(--dark-ink-soft);
}
.section-dark-deep .card:hover,
.section-dark-deep .pricing-card:hover,
.section-dark-deep .case-card:hover {
  border-color: var(--neon);
  box-shadow:
    0 0 0 1px var(--neon-soft),
    0 24px 60px rgba(23, 30, 74, 0.16),
    0 0 40px var(--neon-soft);
  transform: translateY(-4px);
}
.section-dark-deep .card-title { color: var(--dark-ink); }
.section-dark-deep .card-desc { color: var(--dark-ink-soft); }
.section-dark-deep .card-meta {
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 12px;
}
.section-dark-deep .card-icon {
  background: var(--neon-soft);
  color: var(--neon);
  box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.25);
}

/* Pillar card — bigger, more dramatic than .card. New component. */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-5);
}
.pillar {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  position: relative;
  overflow: hidden;
  transition: all var(--duration-base) var(--ease-out);
}
.pillar:hover {
  border-color: var(--neon);
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px var(--neon-soft),
    0 32px 80px rgba(23, 30, 74, 0.18),
    0 0 60px var(--neon-soft);
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--neon);
  margin-bottom: var(--space-4);
}
.pillar h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: var(--space-3);
  color: var(--dark-ink);
}
.pillar p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--dark-ink-soft);
  margin-bottom: var(--space-5);
}
.pillar ul.pillar-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
}
.pillar ul.pillar-list li {
  display: flex;
  gap: var(--space-2);
  padding-block: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--dark-ink-soft);
}
.pillar ul.pillar-list li::before {
  content: "›";
  color: var(--neon);
}
.pillar-foot {
  border-top: 1px solid var(--dark-border);
  padding-top: var(--space-4);
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--dark-ink-soft);
}
.pillar-foot a {
  color: var(--neon);
  text-decoration: none;
}
.pillar-foot a:hover { color: var(--dark-ink); }

/* Stat tiles inside dark sections — metric numbers go mono + neon glow */
.section-dark-deep .stat-tile {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
}
.section-dark-deep .stat-num,
.section-dark-deep .case-metric-num {
  font-family: var(--font-mono);
  color: var(--dark-ink);
  text-shadow: 0 0 30px var(--neon-glow);
}
.section-dark-deep .stat-label,
.section-dark-deep .case-metric-label {
  color: var(--dark-ink-soft);
}

/* ============ Liquid glass button ============
   Port of the 21st.dev LiquidButton. Pure CSS + SVG filter — no React. */
.liquid-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 56px;
  padding: 0 40px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: transform 300ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.liquid-btn:hover { transform: scale(1.05); }
.liquid-btn:active { transform: scale(0.98); }

.liquid-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Backdrop-filter layer — distorts whatever sits behind the button. */
.liquid-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  overflow: hidden;
  backdrop-filter: url("#container-glass");
  -webkit-backdrop-filter: url("#container-glass");
}

/* Glass shadow layer — the inset rim-light effect. */
.liquid-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  pointer-events: none;
  transition: box-shadow 200ms var(--ease-out);
  box-shadow:
    0 0 6px rgba(0, 0, 0, 0.03),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 3px 3px 0.5px -3px rgba(0, 0, 0, 0.9),
    inset -3px -3px 0.5px -3px rgba(0, 0, 0, 0.85),
    inset 1px 1px 1px -0.5px rgba(0, 0, 0, 0.6),
    inset -1px -1px 1px -0.5px rgba(0, 0, 0, 0.6),
    inset 0 0 6px 6px rgba(0, 0, 0, 0.12),
    inset 0 0 2px 2px rgba(0, 0, 0, 0.06),
    0 0 12px rgba(255, 255, 255, 0.15);
}

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

/* Sizes — same as the source xxl/xl/lg/default/sm scale. */
.liquid-btn.is-sm  { height: 32px; padding: 0 16px; font-size: 13px; }
.liquid-btn.is-md  { height: 36px; padding: 0 16px; font-size: 14px; }
.liquid-btn.is-lg  { height: 40px; padding: 0 24px; font-size: 14px; }
.liquid-btn.is-xl  { height: 48px; padding: 0 32px; font-size: 15px; }
/* default = xxl in original spec — already 56px / 40px above */

/* Primary CTA variant — a filled indigo pill that pops on the light canvas.
   (Formerly a white-text glass button meant for dark sections; on the light
   theme it becomes a solid accent button so the label stays readable.) */
.liquid-btn.is-on-dark {
  color: #FFFFFF;
  background: var(--accent);
}
.liquid-btn.is-on-dark:hover { background: var(--accent-dark); }
.liquid-btn.is-on-dark::before { display: none; }
.liquid-btn.is-on-dark::after {
  box-shadow:
    0 8px 24px var(--accent-glow),
    inset 3px 3px 0.5px -3.5px rgba(255, 255, 255, 0.6),
    inset -3px -3px 0.5px -3.5px rgba(255, 255, 255, 0.35),
    inset 1px 1px 1px -0.5px rgba(255, 255, 255, 0.5),
    inset 0 0 2px 2px rgba(255, 255, 255, 0.08);
}

/* Block size — for pricing cards and form submits that want to stretch. */
.liquid-btn.is-block { width: 100%; }

/* Graceful degradation: browsers without SVG-backed backdrop-filter
   (Firefox, older Safari) still get a clean glass-edge button. */
@supports not (backdrop-filter: url("#container-glass")) {
  .liquid-btn::before {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* Reduced motion respects user preference. */
@media (prefers-reduced-motion: reduce) {
  .liquid-btn { transition: none; }
  .liquid-btn:hover, .liquid-btn:active { transform: none; }
}

/* ============ Reveal animation defaults ============ */
.reveal {
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slight slide-from-side variants for visual interest */
.reveal.from-left  { transform: translate(-20px, 0); }
.reveal.from-right { transform: translate(20px, 0); }
.reveal.from-left.is-visible,
.reveal.from-right.is-visible { transform: translate(0, 0); }

/* Magnetic micro-tilt for liquid buttons (driven by --mx, --my from JS) */
.liquid-btn {
  --mx: 0px;
  --my: 0px;
  will-change: transform;
}
.liquid-btn:hover {
  transform: translate(var(--mx), var(--my)) scale(1.05);
}

/* Animated radial gradient mesh — for hero backgrounds */
.gradient-mesh {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.85;
  animation: meshFloat 24s ease-in-out infinite;
}
.gradient-mesh::before,
.gradient-mesh::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  mix-blend-mode: screen;
}
.gradient-mesh::before {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
  animation: meshOrbit1 20s ease-in-out infinite alternate;
}
.gradient-mesh::after {
  bottom: -15%;
  right: -10%;
  background: radial-gradient(circle, #7C3AED 0%, transparent 60%);
  animation: meshOrbit2 26s ease-in-out infinite alternate;
}

/* On dark sections the mesh swaps to neon teal + violet for higher contrast */
.section-dark-deep .gradient-mesh,
.home-hero .gradient-mesh {
  opacity: 0.65;
  filter: blur(100px);
}
.section-dark-deep .gradient-mesh::before,
.home-hero .gradient-mesh::before {
  background: radial-gradient(circle, var(--neon) 0%, transparent 60%);
}
.section-dark-deep .gradient-mesh::after,
.home-hero .gradient-mesh::after {
  background: radial-gradient(circle, #A855F7 0%, transparent 60%);
}
@keyframes meshFloat {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.15) rotate(8deg); }
}
@keyframes meshOrbit1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(35%, 25%) scale(1.2); }
}
@keyframes meshOrbit2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-30%, -20%) scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .gradient-mesh,
  .gradient-mesh::before,
  .gradient-mesh::after { animation: none !important; }
}

/* Card hover upgrade — lift + glow + accent border */
.card,
.case-card,
.post-card,
.pricing-card {
  position: relative;
}
.card:hover,
.case-card:hover,
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10), 0 4px 8px rgba(37, 99, 235, 0.08);
  border-color: var(--accent);
}
.card .card-icon,
.case-card-cover {
  transition: transform 300ms var(--ease-out);
}
.card:hover .card-icon { transform: scale(1.08) rotate(-3deg); }
.case-card:hover .case-card-cover { transform: scale(1.02); }

/* Pricing card hover — stronger lift + accent ring intensify */
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.10), 0 6px 12px rgba(37, 99, 235, 0.08);
}
.pricing-card.is-featured:hover {
  box-shadow: 0 0 0 4px var(--accent-soft), 0 24px 48px rgba(37, 99, 235, 0.18);
}
