/* ══════════════════════════════════════════════════════════
   NEITEC LANDING — STYLES
   Brand: Space Grotesk | Colors: #000 #5200FF #3EF1F8 #fff
══════════════════════════════════════════════════════════ */

/* ── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:       #000000;
  --white:       #ffffff;
  --purple:      #5200FF;
  --cyan:        #3EF1F8;
  --purple-dim:  rgba(82, 0, 255, 0.10);
  --cyan-dim:    rgba(62, 241, 248, 0.10);

  /* Light theme surfaces — inspired by neitec.io */
  --bg:          #ffffff;
  --bg-alt:      #f6f7f9;
  --surface:     #ffffff;
  --surface-2:   #fafbfc;
  --surface-3:   #f1f3f5;

  /* Text */
  --text:        #0a0a0f;
  --text-soft:   rgba(10, 10, 15, 0.7);
  --text-muted:  rgba(10, 10, 15, 0.5);

  /* Borders */
  --border:        rgba(10, 10, 15, 0.08);
  --border-strong: rgba(10, 10, 15, 0.14);

  /* Dark surfaces (used selectively for institutional contrast — debita.io feel) */
  --dark:        #0a0a0f;
  --dark-2:      #111118;
  --border-dark: rgba(255, 255, 255, 0.08);

  --grad:        linear-gradient(90deg, #5200FF, #3EF1F8);
  --grad-135:    linear-gradient(135deg, #5200FF, #3EF1F8);
  --font:        'Space Grotesk', Arial, sans-serif;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h:       72px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── TYPOGRAPHY ───────────────────────────────────────── */
h1 { font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 700; line-height: 1.0; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 1rem; }

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

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--purple);
  margin-bottom: 1rem;
  display: block;
}

.body-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 1.25rem;
}

.section-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 56ch;
  margin: 1rem auto 0;
}

/* ── LAYOUT ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-dark {
  background: var(--bg-alt);
}

/* Tighten the transition between the Debita overview video and the Vision section */
#debita-overview { padding-bottom: 3rem; }
#vision { padding-top: 3rem; }

@media (max-width: 640px) {
  /* Pull the video up on mobile so it sits closer to the Debita section */
  #debita-overview { padding-top: 1.5rem; padding-bottom: 2rem; }
  .video-wrap { box-shadow: 0 12px 30px rgba(10, 10, 15, 0.15); border-radius: 10px; }
}

.section-inverted {
  background: var(--dark);
  color: var(--white);
}
.section-inverted .body-text { color: rgba(255,255,255,0.7); }
.section-inverted .section-intro { color: rgba(255,255,255,0.6); }
.section-inverted .section-label { color: var(--cyan); }
.section-inverted h1, .section-inverted h2, .section-inverted h3 { color: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* ── BUTTONS ──────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--purple);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.95rem 2.15rem;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s var(--ease-spring), box-shadow 0.2s;
  text-decoration: none;
}
.btn-primary:hover {
  background: #3d00d6;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(82,0,255,0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.95rem 2.15rem;
  border-radius: 3px;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-spring);
}
.btn-ghost:hover {
  border-color: var(--purple);
  background: var(--purple-dim);
  transform: translateY(-2px);
}

.section-inverted .btn-ghost {
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}
.section-inverted .btn-ghost:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

.btn-sm { padding: 0.65rem 1.4rem; font-size: 0.875rem; }
.btn-large { padding: 1.1rem 2.8rem; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── NAVBAR ───────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}


.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 32px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(10, 10, 15, 0.92);
  transition: color 0.25s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); }

/* Animated brand-gradient underline that grows from the center */
.nav-links a:not(.nav-cta) {
  position: relative;
  padding: 0.4rem 0;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition:
    width 0.35s var(--ease-out),
    left 0.35s var(--ease-out);
}
.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
  left: 0;
}

.nav-cta {
  background: var(--purple) !important;
  color: var(--white) !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 3px;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  transition: background 0.2s, transform 0.2s, box-shadow 0.25s !important;
}
.nav-cta:hover {
  background: #3d00d6 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(82, 0, 255, 0.35);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ─────────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(
      circle 340px at var(--mouse-x, -9999px) var(--mouse-y, -9999px),
      rgba(82, 0, 255, 0.10) 0%,
      rgba(62, 241, 248, 0.04) 55%,
      transparent 100%
    ),
    radial-gradient(circle, rgba(10, 10, 15, 0.10) 1px, transparent 1px);
  background-size: 100% 100%, 26px 26px;
}

#globe-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  padding-top: var(--nav-h);
  width: 100%;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.hero-title {
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.4s forwards;
}

.hero-sub {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 56ch;
  margin-bottom: 2.75rem;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s var(--ease-out) 0.8s forwards;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fadeIn 1s var(--ease-out) 1.2s forwards;
}
.hero-scroll-hint span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(10,10,15,0.4), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

/* ── PRESS BAR (As featured in) ───────────────────────── */
.press-bar {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.75rem 0;
  text-align: center;
}

.press-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.press-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 5vw, 4rem);
  flex-wrap: wrap;
}

.press-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text-muted);
  opacity: 0.7;
  transition: opacity 0.25s, color 0.25s, transform 0.25s var(--ease-spring);
  white-space: nowrap;
}
.press-logo:hover {
  opacity: 1;
  color: var(--text);
  transform: translateY(-2px);
}

/* Forbes — serif italic, classic editorial signature */
.press-logo--forbes {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1;
}
.press-logo--forbes span {
  font-family: 'Times New Roman', Times, serif;
  font-style: italic;
  font-weight: 900;
  font-size: 1.95rem;
  letter-spacing: -0.02em;
}
.press-logo--forbes small {
  font-family: var(--font);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  margin-top: 0.2rem;
  opacity: 0.85;
}

/* Cointelegraph — modern sans-serif */
.press-logo--cointelegraph span {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

/* Blockworks — bold uppercase sans-serif */
.press-logo--blockworks span {
  font-family: var(--font);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Diario Digital RD — editorial masthead: serif italic "Diario" stacked
   over bold sans-serif "Digital" + a red "RD" chip */
.press-logo--diariodigital { gap: 0; }
.press-logo--diariodigital .dd-mark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0.95;
  gap: 0.05rem;
}
.press-logo--diariodigital .dd-script {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.005em;
}
.press-logo--diariodigital .dd-row {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}
.press-logo--diariodigital .dd-bold {
  font-family: var(--font);
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}
.press-logo--diariodigital .dd-rd {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Funds Society — clean inline sans-serif wordmark with a globe glyph */
.press-logo--fundssociety .fs-mark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font);
  letter-spacing: -0.005em;
}
.press-logo--fundssociety .fs-funds {
  font-weight: 400;
  font-size: 1.2rem;
}
.press-logo--fundssociety .fs-society {
  font-weight: 800;
  font-size: 1.2rem;
}

@media (max-width: 640px) {
  .press-bar { padding: 2rem 0; }
  .press-logos { gap: 1.75rem; }
  .press-logo--forbes span { font-size: 1.65rem; }
  .press-logo--cointelegraph span { font-size: 1.1rem; }
  .press-logo--blockworks span { font-size: 1rem; }
  .press-logo--diariodigital .dd-script { font-size: 1.1rem; }
  .press-logo--diariodigital .dd-bold { font-size: 0.88rem; }
  .press-logo--diariodigital .dd-rd { font-size: 0.85rem; }
  .press-logo--fundssociety .fs-funds,
  .press-logo--fundssociety .fs-society { font-size: 1.05rem; }
}

/* ── STATS BAR (legacy, no longer used in markup) ────── */
.stats-bar {
  background: var(--surface-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 1rem 0;
}

.stats-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: ticker 22s linear infinite;
}

.stat-item {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  white-space: nowrap;
}
.stat-item a {
  color: inherit;
  transition: color 0.2s;
}
.stat-item a:hover { color: var(--purple); }

.stat-sep {
  color: var(--purple);
  font-size: 0.8rem;
}

/* ── ABOUT ────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text > h2 { margin-bottom: 1.75rem; }
.about-text .body-text + .body-text { margin-top: 0.25rem; }

/* ── Cascade variant — text bleeds right into the visual zone ── */
.about-grid--cascade {
  grid-template-columns: 1.35fr 1fr;
  gap: 2rem;
  position: relative;
  align-items: center;
}

.about-text--cascade {
  position: relative;
  z-index: 2;
}

/* Inverted staircase — first paragraph is the widest (extends into the
   animation), then content recedes inward as you read down. */
.about-text--cascade > .section-label {
  margin-left: 0;
}
.about-text--cascade > h2 {
  max-width: 92%;
  margin-left: 0;
}
.about-text--cascade .body-step-1 {
  max-width: none;
  margin-left: 0;
  margin-right: -18%;          /* extends right into the canvas zone */
  position: relative;
  text-shadow: 0 0 18px rgba(255,255,255,0.6); /* keeps text crisp over particles */
}
.about-text--cascade .body-step-2 {
  max-width: 84%;
  margin-left: 10%;            /* recedes inward */
}
.about-text--cascade > .btn-primary {
  margin-left: 20%;
}

/* Visual reaches a bit further left to meet the cascading text */
.about-grid--cascade .about-visual--flow {
  margin-left: -10%;
  z-index: 1;
}

@media (max-width: 900px) {
  .about-grid--cascade {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-text--cascade > h2,
  .about-text--cascade .body-step-1,
  .about-text--cascade .body-step-2,
  .about-text--cascade > .btn-primary {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-shadow: none;
  }
  .about-grid--cascade .about-visual--flow { margin-left: 0; }
}

.about-metrics {
  display: flex;
  gap: 3rem;
  margin-top: 2.5rem;
}

.metric-num {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

.about-visual {
  position: relative;
  height: 420px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.about-visual--flow {
  background: transparent;
  border: none;
  overflow: visible;
  height: 360px;
}

#company-flow {
  width: 100%;
  height: 100%;
  display: block;
}

.flow-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: clamp(72px, 9vw, 110px);
  width: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 6px 20px rgba(82, 0, 255, 0.18));
}

.flow-graphic {
  width: 100%;
  height: 100%;
}

/* ── SERVICES ─────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--border);
}

.service-card {
  background: var(--surface);
  padding: 2.5rem;
  transition: background 0.3s, transform 0.3s var(--ease-out);
  border: none;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-135);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover { background: var(--surface-2); }
.service-card:hover::before { opacity: 0.04; }

.service-card:not(:last-child):not(:nth-child(3n)) {
  border-right: 1.5px solid var(--border);
}
.service-card:nth-child(-n+3) {
  border-bottom: 1.5px solid var(--border);
}

.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.5rem;
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 { margin-bottom: 0.75rem; }

.service-card p {
  font-size: 0.925rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.service-tags li {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  color: var(--purple);
  transition: border-color 0.2s, background 0.2s;
}
.service-card:hover .service-tags li { border-color: var(--purple); background: var(--purple-dim); }

/* ── AI SECTION ───────────────────────────────────────── */
.ai-section {
  background: radial-gradient(ellipse 80% 60% at 80% 50%, rgba(82,0,255,0.06) 0%, transparent 70%), var(--bg);
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.ai-features { margin: 2rem 0 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }

.ai-feat {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ai-feat-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--grad);
  margin-top: 6px;
}

.ai-feat strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.ai-feat p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.ai-visual {
  position: relative;
  height: 440px;
}

#ai-canvas {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.ai-cards {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ai-card {
  position: absolute;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 4px;
  padding: 0.875rem 1.25rem;
  min-width: 160px;
  box-shadow: 0 8px 24px rgba(10,10,15,0.06);
  animation: floatCard 4s ease-in-out infinite;
}

.ai-card--1 { top: 15%; right: -10%; animation-delay: 0s; }
.ai-card--2 { bottom: 25%; right: -5%; animation-delay: 1.3s; }
.ai-card--3 { bottom: 10%; left: 5%; animation-delay: 0.7s; }

.ai-card-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.ai-card-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── PRODUCTS ─────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.product-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover {
  border-color: rgba(82,0,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(82,0,255,0.08);
}
.product-card:hover::after { opacity: 1; }

.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.product-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-card--debita .product-logo-text {
  background: linear-gradient(90deg, #3EF1F8, #5200FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-card--onedotone .product-logo-text {
  background: linear-gradient(90deg, #5200FF, #3EF1F8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  background: rgba(62,241,248,0.12);
  color: #0891a8;
  border: 1px solid rgba(62,241,248,0.4);
}

.product-badge--purple {
  background: rgba(82,0,255,0.08);
  color: var(--purple);
  border-color: rgba(82,0,255,0.25);
}

.product-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: var(--text);
}

.product-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 1.5rem;
}

.product-features {
  margin-bottom: 2rem;
}
.product-features li {
  font-size: 0.9rem;
  color: var(--text-soft);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.product-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--grad);
}

.product-actions { display: flex; gap: 1rem; }

/* ── PROCESS ──────────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  margin-top: 1rem;
}

.process-step {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.process-step:hover {
  border-color: rgba(82,0,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(10,10,15,0.06);
}

.process-connector {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin-top: 3.5rem;
  align-self: start;
}

.step-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

.step-content h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.step-content p { font-size: 0.875rem; line-height: 1.7; color: var(--text-muted); }

/* ── CTA BANNER (inverted dark) ───────────────────────── */
.cta-banner {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(82,0,255,0.25) 0%, transparent 70%),
    var(--dark);
  color: var(--white);
}
.cta-banner h2 { color: var(--white); }
.cta-banner .section-label { color: var(--cyan); }

.cta-bg-flow {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
}

.cta-watermark {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(280px, 32vw, 520px);
  height: auto;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

@media (max-width: 900px) {
  .cta-watermark {
    right: -10%;
    width: clamp(220px, 60vw, 380px);
    opacity: 0.05;
  }
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta-content h2 { margin-bottom: 1.25rem; }

.cta-content p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  max-width: 60ch;
  margin: 0 auto 2.5rem;
}

/* ── CONTACT ──────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h2 { margin-bottom: 1.25rem; }

.contact-details { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 1.25rem; }

.contact-item { display: flex; flex-direction: column; gap: 0.2rem; }
.contact-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); }
.contact-item a, .contact-item span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
}
.contact-item a:hover { color: var(--purple); }

/* ── CONTACT FORM CARD ────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--surface);
  padding: 2.25rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow:
    0 24px 60px rgba(10, 10, 15, 0.08),
    0 0 0 1px rgba(82, 0, 255, 0.04);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.45rem; }

label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

input, textarea, select {
  font-family: var(--font);
  font-size: 0.98rem;
  background: var(--bg-alt);
  border: 1.5px solid transparent;
  border-radius: 10px;
  color: var(--text);
  padding: 0.95rem 1.1rem;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
  width: 100%;
  outline: none;
  -webkit-appearance: none;
}

input::placeholder, textarea::placeholder { color: rgba(10,10,15,0.32); }

input:hover, textarea:hover, select:hover {
  background: var(--surface-3);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--purple);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(82, 0, 255, 0.12);
}

select option { background: var(--surface); color: var(--text); }

textarea { resize: vertical; min-height: 130px; line-height: 1.5; }

/* ── SUBMIT BUTTON ────────────────────────────────────── */
.btn-submit {
  font-size: 1rem;
  font-weight: 600;
  padding: 1.05rem 2rem;
  letter-spacing: 0.01em;
  margin-top: 0.5rem;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out);
  pointer-events: none;
}
.btn-submit:hover::before { transform: translateX(100%); }

.btn-submit .btn-arrow {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s var(--ease-spring);
}
.btn-submit:hover .btn-arrow { transform: translateX(4px); }
.btn-submit:disabled .btn-arrow { transform: none; }
.btn-submit:disabled { opacity: 1; cursor: default; }

/* ── FOOTER (inverted dark — debita.io vibe) ──────────── */
.footer {
  background: linear-gradient(180deg,
    #000000 0%,
    #000000 38%,
    #2a0a8c 62%,
    #5200FF 84%,
    #3EF1F8 100%);
  color: var(--white);
  border-top: 1px solid var(--border);
  padding: 4rem 0 6rem;
}

.footer h4 { color: rgba(255,255,255,0.6); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo { height: 32px; width: auto; margin-bottom: 1.25rem; display: block; }

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-copy { font-size: 0.78rem !important; color: rgba(255,255,255,0.55) !important; margin-top: 1.5rem !important; }
.footer-copy a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); }
.footer-copy a:hover { text-decoration-color: var(--white); }

.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }

.footer-col a {
  font-size: 0.95rem;
  color: var(--white);
  transition: color 0.2s, opacity 0.2s;
  opacity: 0.95;
}
.footer-col a:hover { opacity: 1; color: var(--cyan); }

.footer-social { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; }

.social-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
}
.social-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(62,241,248,0.1);
  transform: translateY(-2px);
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  font-style: italic;
}

/* ── FEATURED PRODUCT (Debita) ────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Reversed variant — visual on left, text on right (breaks layout monotony) */
.featured-grid--reverse .debita-features-side {
  order: 1;
}
.featured-grid--reverse .featured-text {
  order: 2;
}

.featured-logo {
  margin-bottom: 1.5rem;
  display: block;
  line-height: 0;
}
.featured-logo a {
  display: inline-block;
  transition: opacity 0.2s, transform 0.2s var(--ease-spring);
}
.featured-logo a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.featured-logo img {
  height: clamp(56px, 7vw, 88px);
  width: auto;
  display: block;
}

/* ── DEBITA OVERVIEW VIDEO ────────────────────────────── */
.overview-header {
  text-align: center;
  margin-bottom: 3rem;
}
.overview-header h2 { margin-top: 0.5rem; }

.video-wrap {
  max-width: 1024px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(10, 10, 15, 0.18),
    0 0 0 1px rgba(82, 0, 255, 0.08);
  background: var(--dark);
  position: relative;
  isolation: isolate;
}
.video-wrap::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(82,0,255,0.4), rgba(62,241,248,0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.6;
}
.video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  background: var(--dark);
}

.featured-tagline {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.featured-visual {
  position: relative;
  height: 420px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.debita-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 4px;
  padding: 0.875rem 1.25rem;
  box-shadow: 0 8px 24px rgba(10,10,15,0.06);
  z-index: 2;
}

/* Debita features grid — staggered 2-3-2 honeycomb layout matching debita.io */
.debita-features-side {
  width: 100%;
}

.debita-features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.875rem;
}

.debita-feature {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 1.4rem 1rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  cursor: default;
  transition: border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s;
}

.debita-feature:hover {
  border-color: var(--purple);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(82, 0, 255, 0.12);
  background: var(--surface);
}

/* Staggered 2-3-2 placement on a 6-col grid */
.debita-features-grid > .debita-feature:nth-child(1) { grid-column: 2 / span 2; }
.debita-features-grid > .debita-feature:nth-child(2) { grid-column: 4 / span 2; }
.debita-features-grid > .debita-feature:nth-child(3) { grid-column: 1 / span 2; }
.debita-features-grid > .debita-feature:nth-child(4) { grid-column: 3 / span 2; }
.debita-features-grid > .debita-feature:nth-child(5) { grid-column: 5 / span 2; }
.debita-features-grid > .debita-feature:nth-child(6) { grid-column: 2 / span 2; }
.debita-features-grid > .debita-feature:nth-child(7) { grid-column: 4 / span 2; }

/* ── COMPLIANCE ───────────────────────────────────────── */
.compliance-block {
  text-align: center;
}

.compliance-block h2 { margin-bottom: 1.25rem; }

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.compliance-card {
  text-align: left;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.compliance-card:hover {
  border-color: rgba(82,0,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(10,10,15,0.06);
}

.compliance-q {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--purple);
  margin-bottom: 1.25rem;
}

.compliance-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-soft);
  font-weight: 500;
}

/* ── VISION ───────────────────────────────────────────── */
.vision-quote {
  max-width: 880px;
  margin: 2rem auto 0;
  padding: 3rem 2.5rem;
  border-left: 2px solid var(--purple);
  border-right: 2px solid var(--cyan);
  background: linear-gradient(90deg, rgba(82,0,255,0.04), rgba(62,241,248,0.03));
  border-radius: 2px;
}

.vision-quote p {
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  line-height: 1.55;
  color: var(--text);
  font-weight: 500;
  text-align: center;
  font-style: italic;
}

/* ── USE CASES ────────────────────────────────────────── */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.usecase-card {
  padding: 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.usecase-card:hover {
  border-color: rgba(82,0,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(10,10,15,0.06);
}

.usecase-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.75rem;
  border-radius: 2px;
  background: rgba(82,0,255,0.08);
  color: var(--purple);
  border: 1px solid rgba(82,0,255,0.25);
}

.usecase-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  flex-grow: 1;
  color: var(--text);
}

.usecase-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: 0.02em;
  transition: color 0.2s, transform 0.2s;
}
.usecase-link:hover { color: var(--text); transform: translateX(2px); }

/* ── TEAM PILLARS ─────────────────────────────────────── */
.team-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.team-pillar {
  position: relative;
  padding: 2rem 2.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.75rem;
  align-items: center;
  transition:
    border-color 0.3s,
    transform 0.3s var(--ease-out),
    box-shadow 0.3s,
    background 0.3s;
  overflow: hidden;
}

/* Vertical brand-gradient accent on the left edge — grows on hover */
.team-pillar::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 36%;
  background: var(--grad);
  border-radius: 0 4px 4px 0;
  opacity: 0.5;
  transition: height 0.35s var(--ease-out), opacity 0.3s;
}

.team-pillar:hover {
  border-color: rgba(82, 0, 255, 0.3);
  transform: translateX(6px);
  box-shadow: 0 18px 36px rgba(10, 10, 15, 0.08);
  background: var(--surface);
}
.team-pillar:hover::before {
  height: 76%;
  opacity: 1;
}

.pillar-num {
  font-size: 2.1rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  min-width: 2.4ch;
}

.pillar-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pillar-content h3 {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

.pillar-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0;
}

@media (max-width: 640px) {
  .team-pillar {
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    column-gap: 1.25rem;
  }
  .pillar-num { font-size: 1.75rem; }
  .pillar-content h3 { font-size: 1.05rem; }
}

/* ── BLOG CAROUSEL ────────────────────────────────────── */
.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.blog-intro h2 {
  text-align: left;
  margin-top: 0.5rem;
}

.blog-controls {
  display: flex;
  gap: 0.65rem;
}

.blog-nav {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all 0.25s var(--ease-out);
  box-shadow: 0 4px 12px rgba(10, 10, 15, 0.04);
}
.blog-nav:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(82, 0, 255, 0.3);
}
.blog-nav.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}
.blog-nav.is-disabled:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

/* Carousel — break out of container padding so cards can bleed nicely */
.blog-carousel-wrap {
  margin-inline: -2rem;
  padding-inline: 2rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2rem, #000 calc(100% - 2rem), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 2rem, #000 calc(100% - 2rem), transparent 100%);
}

.blog-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline-start: 2rem;
  padding-bottom: 1.25rem;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.blog-carousel.is-grabbing { cursor: grabbing; user-select: none; }
.blog-carousel::-webkit-scrollbar { height: 4px; }
.blog-carousel::-webkit-scrollbar-track { background: transparent; }
.blog-carousel::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 2px;
}
.blog-carousel::-webkit-scrollbar-thumb:hover { background: var(--purple); }

/* Card */
.blog-card {
  flex: 0 0 360px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    border-color 0.3s,
    transform 0.3s var(--ease-out),
    box-shadow 0.3s;
}
.blog-card:hover {
  border-color: rgba(82, 0, 255, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(10, 10, 15, 0.08);
}

/* Cover */
.blog-card-cover {
  position: relative;
  display: block;
  height: 200px;
  overflow: hidden;
  text-decoration: none;
}
.blog-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform 0.5s var(--ease-out);
}
.blog-card:hover .blog-cover-img { transform: scale(1.05); }
.blog-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.45) 100%);
  z-index: 2;
}

/* 5 distinct gradient covers — brand-cohesive but visually varied */
.blog-card-cover[data-cover="1"] { background: linear-gradient(135deg, #5200FF 0%, #7d3eff 50%, #3EF1F8 100%); }
.blog-card-cover[data-cover="2"] { background: linear-gradient(225deg, #0EA5E9 0%, #3a3aff 60%, #5200FF 100%); }
.blog-card-cover[data-cover="3"] { background: linear-gradient(45deg,  #1e0a40 0%, #5200FF 70%, #3EF1F8 100%); }
.blog-card-cover[data-cover="4"] { background: linear-gradient(135deg, #1e0a40 0%, #2563eb 60%, #0EA5E9 100%); }
.blog-card-cover[data-cover="5"] { background: linear-gradient(180deg, #5200FF 0%, #1e0a40 50%, #0EA5E9 100%); }

.blog-cover-tag {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 3;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.45rem 0.85rem;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Body */
.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.75rem 1.75rem 2rem;
  flex-grow: 1;
}

.blog-date {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 700;
}

.blog-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -0.005em;
}

.blog-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-soft);
  flex-grow: 1;
}

.blog-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--purple);
  margin-top: 0.25rem;
  transition: color 0.2s, transform 0.2s;
  align-self: flex-start;
}
.blog-link:hover { color: var(--text); transform: translateX(3px); }

@media (max-width: 640px) {
  .blog-card { flex-basis: 80vw; }
  .blog-header { align-items: stretch; }
  .blog-controls { align-self: flex-start; }
}

/* ── CLIP-PATH SECTION PORTAL REVEAL ──────────────────── */
.clip-reveal {
  clip-path: circle(0% at 50% 50%);
  -webkit-clip-path: circle(0% at 50% 50%);
  transition:
    clip-path 2.2s cubic-bezier(0.22, 1, 0.36, 1),
    -webkit-clip-path 2.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: clip-path;
  position: relative;
}

/* Soft purple→cyan glow that sustains during the portal opening — echoes the hero spotlight */
.clip-reveal::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--clip-x, 50%) var(--clip-y, 50%),
    rgba(82, 0, 255, 0.42) 0%,
    rgba(82, 0, 255, 0.18) 25%,
    rgba(62, 241, 248, 0.10) 50%,
    transparent 75%
  );
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  mix-blend-mode: screen;
}

.clip-reveal.is-visible {
  clip-path: circle(170% at 50% 50%);
  -webkit-clip-path: circle(170% at 50% 50%);
}
.clip-reveal.is-visible::before {
  animation: portalPulse 2.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Origin variants — staggered through the page for organic rhythm */
.clip-reveal--top {
  clip-path: circle(0% at 50% 0%);
  -webkit-clip-path: circle(0% at 50% 0%);
  --clip-x: 50%; --clip-y: 0%;
}
.clip-reveal--top.is-visible {
  clip-path: circle(160% at 50% 0%);
  -webkit-clip-path: circle(160% at 50% 0%);
}

.clip-reveal--left {
  clip-path: circle(0% at 0% 50%);
  -webkit-clip-path: circle(0% at 0% 50%);
  --clip-x: 0%; --clip-y: 50%;
}
.clip-reveal--left.is-visible {
  clip-path: circle(160% at 0% 50%);
  -webkit-clip-path: circle(160% at 0% 50%);
}

.clip-reveal--right {
  clip-path: circle(0% at 100% 50%);
  -webkit-clip-path: circle(0% at 100% 50%);
  --clip-x: 100%; --clip-y: 50%;
}
.clip-reveal--right.is-visible {
  clip-path: circle(160% at 100% 50%);
  -webkit-clip-path: circle(160% at 100% 50%);
}

.clip-reveal--bottom {
  clip-path: circle(0% at 50% 100%);
  -webkit-clip-path: circle(0% at 50% 100%);
  --clip-x: 50%; --clip-y: 100%;
}
.clip-reveal--bottom.is-visible {
  clip-path: circle(160% at 50% 100%);
  -webkit-clip-path: circle(160% at 50% 100%);
}

@keyframes portalPulse {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  65%  { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .clip-reveal,
  .clip-reveal.is-visible {
    clip-path: none;
    -webkit-clip-path: none;
    transition: none;
  }
  .clip-reveal::before { display: none; }
}

/* ── ARTICLE PAGES (/blog/*.html) ─────────────────────── */
body.article-page {
  background: var(--bg);
}
body.article-page #navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.article-cover {
  position: relative;
  height: 380px;
  margin-top: var(--nav-h);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem 2rem;
  overflow: hidden;
}
.article-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.article-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.45) 100%);
  z-index: 2;
}
.article-cover[data-cover="1"] { background: linear-gradient(135deg, #5200FF 0%, #7d3eff 50%, #3EF1F8 100%); }
.article-cover[data-cover="2"] { background: linear-gradient(225deg, #0EA5E9 0%, #3a3aff 60%, #5200FF 100%); }
.article-cover[data-cover="3"] { background: linear-gradient(45deg,  #1e0a40 0%, #5200FF 70%, #3EF1F8 100%); }
.article-cover[data-cover="4"] { background: linear-gradient(135deg, #1e0a40 0%, #2563eb 60%, #0EA5E9 100%); }
.article-cover[data-cover="5"] { background: linear-gradient(180deg, #5200FF 0%, #1e0a40 50%, #0EA5E9 100%); }

.article-cover-tag {
  position: relative;
  z-index: 3;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 0.55rem 1.1rem;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
  align-self: flex-end;
  margin-left: auto;
  margin-right: auto;
  width: max-content;
}

.article-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 4rem 2.5rem 5rem;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 2.5rem;
  transition: transform 0.2s var(--ease-spring), color 0.2s;
}
.article-back:hover {
  transform: translateX(-3px);
  color: var(--text);
}

.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.article-date {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 1.25rem;
}
.article-header h1 {
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-soft);
}
.article-body > * + * { margin-top: 1.25rem; }
.article-body p { margin-top: 1.25rem; }
.article-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 3rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.article-body h3 {
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2.25rem;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}
.article-body strong { color: var(--text); font-weight: 600; }
.article-body em { color: var(--text); }
.article-body ul {
  list-style: none;
  padding-left: 0;
  margin-top: 1.25rem;
}
.article-body ul li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
}
.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad);
}
.article-quote {
  margin: 2.25rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--purple);
  background: var(--bg-alt);
  border-radius: 0 12px 12px 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--text);
  font-style: italic;
}
.article-quote-attr {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.article-foot {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
}

@media (max-width: 640px) {
  .article-cover { height: 220px; padding: 1.5rem; }
  .article-container { padding: 3rem 1.25rem; }
}

/* ── REVEAL ANIMATIONS ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.reveal-right {
  transform: translateX(32px);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }

/* ── KEYFRAMES ────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.7); }
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .process-steps {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .process-connector { display: none; }
}

@media (max-width: 1100px) {
  .compliance-grid { grid-template-columns: repeat(2, 1fr); }
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-grid, .ai-grid, .contact-grid, .featured-grid { grid-template-columns: 1fr; gap: 3rem; }
  .products-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .featured-visual { height: 320px; }
  .debita-features-grid { grid-template-columns: repeat(2, 1fr); }
  .debita-features-grid > .debita-feature { grid-column: auto !important; }
  .service-card:nth-child(2n) { border-right: none !important; }
  .service-card:nth-child(-n+2) { border-bottom: 1.5px solid var(--border); }
  .service-card:nth-child(3) { border-bottom: 1.5px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-metrics { gap: 2rem; }
  .ai-visual { height: 300px; }
  .ai-card--1, .ai-card--2 { right: 0; }
  /* Featured Debita: text reads first on mobile, then the feature cards */
  .featured-grid--reverse .featured-text        { order: 1; }
  .featured-grid--reverse .debita-features-side { order: 2; }
  .about-visual--flow { height: 300px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  h1 { font-size: 2.6rem; }
  h2 { font-size: 1.85rem; }
  /* Hero — let it auto-size to viewport, no oversized min-height */
  #hero { min-height: 100vh; min-height: 100svh; }
  .hero-content { padding: var(--nav-h) 1.5rem 0; }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: auto;
    justify-content: center;
  }
  /* Sections */
  .section { padding: 4rem 0; }
  .container { padding: 0 1.25rem; }
  /* Grids */
  .services-grid { grid-template-columns: 1fr; }
  .compliance-grid, .usecases-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: 1rem; }
  /* Cards / visuals */
  .vision-quote { padding: 2rem 1.5rem; }
  .service-card { border-right: none !important; border-bottom: 1.5px solid var(--border) !important; }
  .service-card:last-child { border-bottom: none !important; }
  .about-metrics { flex-direction: column; gap: 1.5rem; }
  .product-actions { flex-direction: column; align-items: stretch; }
  .product-actions .btn-primary,
  .product-actions .btn-ghost { width: 100%; justify-content: center; }
  .contact-grid { gap: 2.5rem; }
  /* Contact form card — tighter padding on small screens */
  .contact-form { padding: 1.5rem; gap: 1rem; }
  .btn-submit { padding: 0.95rem 1.5rem; }
  /* Blog header stacks: title on top, controls below */
  .blog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  .blog-controls { align-self: flex-start; }
  /* Article pages */
  .article-cover { height: 200px; padding: 1.25rem; }
  .article-cover-tag { font-size: 0.65rem; padding: 0.4rem 0.85rem; }
  .article-container { padding: 2.5rem 1.25rem 4rem; }
  .article-back { margin-bottom: 1.75rem; }
  .article-header { margin-bottom: 2rem; padding-bottom: 1.75rem; }
  .article-body { font-size: 1rem; line-height: 1.7; }
  .article-body h2 { font-size: 1.3rem; margin-top: 2rem; }
  .article-body h3 { font-size: 1.1rem; margin-top: 1.75rem; }
  .article-quote { padding: 1.25rem 1.25rem; font-size: 1rem; }
  /* About-visual flow tighter on small */
  .about-visual--flow { height: 240px; }
}
