/* ==========================================================================
   Design System: "The Butler's Study — Cybernetic Operations Command"
   Futuristic HUD Aesthetic, Holographic Gridlines, Cyber Glare & 3D Tilt Physics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Karla:ital,wght@0,400;0,700;1,400&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Color Tokens - Cybernetic Brass & Obsidian */
  --color-primary: #0b1220;        /* Dark Obsidian Ink */
  --color-accent: #2563eb;         /* Glowing Brass */
  --color-accent-bright: #3b82f6;  /* High-Tech Amber Glow */
  --color-accent-hover: #1d4ed8;
  --color-background: #f6f8fc;     /* Parchment Surface */
  --color-surface: #FFFFFF;        /* Surface */
  --color-muted: #e8eef8;          /* Aged Paper */
  --color-border: #d7e0ef;         /* Warm Cyber Border */
  --color-text-soft: #4b5568;      /* Soft Ink */
  --color-brass-soft: #60a5fa;     /* Hologram Brass Text */
  --color-cyan-glow: #0EA5E9;      /* Subtle Telemetry Glow */

  /* Typography */
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing & Layout */
  --radius: 16px;
  --max-width: 74rem;
  --shadow-warm: 0 12px 36px -6px rgba(11, 18, 32, 0.10);
  --shadow-elevated: 0 24px 56px -12px rgba(7, 12, 24, 0.35);
  --shadow-glow-amber: 0 0 35px rgba(59, 130, 246, 0.30);
  --shadow-glow-brass: 0 0 45px rgba(96, 165, 250, 0.25);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 100%;
  color: var(--color-primary);
  background-color: var(--color-background);
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Accessibility Focus Ring */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--color-accent);
  color: var(--color-background);
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Futuristic Cybernetic Background Pattern */
.cyber-grid-bg {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.18;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.85rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

p {
  margin-bottom: 1.25rem;
  color: var(--color-text-soft);
  font-size: 1.125rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--color-accent-hover);
}

/* Interactive Futuristic Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.85rem 2.25rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-bright) 100%);
  color: #FFF;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6), var(--shadow-glow-amber);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.6);
  color: var(--color-primary);
  border-color: var(--color-border);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background-color: var(--color-muted);
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(246, 248, 252, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(215, 224, 239, 0.6);
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  box-shadow: var(--shadow-warm);
  background-color: rgba(246, 248, 252, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.04);
}

.brand-logo svg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  color: var(--color-text-soft);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.5rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: all 0.25s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 80%;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.5rem;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  color: var(--color-primary);
}

/* ==========================================================================
   Hero Section & Interactive 3D Hologram
   ========================================================================== */
.hero-section {
  overflow: hidden;
  padding: 6rem 0 4.5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  align-items: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 1.15rem;
  background: rgba(232, 238, 248, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 30px;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1.75rem;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--color-accent-bright);
  box-shadow: 0 0 0 rgba(59, 130, 246, 0.6);
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.hero-content p {
  font-size: 1.25rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* 3D Tilt Container & HUD Bracket Accents */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
  position: relative;
}

/* Futuristic HUD Bracket Corners */
.hud-corners::before,
.hud-corners::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-brass-soft);
  pointer-events: none;
  z-index: 5;
  opacity: 0.7;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}

.hud-corners::before {
  top: 8px;
  left: 8px;
  border-right: none;
  border-bottom: none;
}

.hud-corners::after {
  bottom: 8px;
  right: 8px;
  border-left: none;
  border-top: none;
}

.tilt-card:hover.hud-corners::before,
.tilt-card:hover.hud-corners::after {
  opacity: 1;
  border-color: var(--color-accent-bright);
}

/* Hero Interactive Card Container */
.hero-graphic-wrapper {
  position: relative;
  perspective: 1000px;
}

.hero-canvas {
  position: absolute;
  top: -24px;
  left: -24px;
  right: -24px;
  bottom: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  pointer-events: none;
  z-index: 1;
}

/* Stat Card ("Alfie, this week") */
.stat-card {
  position: relative;
  z-index: 2;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(96, 165, 250, 0.18), transparent 75%), var(--color-primary);
  color: var(--color-background);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-elevated), var(--shadow-glow-brass);
  border: 1px solid rgba(96, 165, 250, 0.35);
  overflow: hidden;
}

.stat-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(215, 224, 239, 0.18);
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
}

.stat-card-title {
  color: var(--color-brass-soft);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-card-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-background);
  background: rgba(96, 165, 250, 0.22);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  border: 1px solid rgba(96, 165, 250, 0.35);
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(215, 224, 239, 0.12);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.stat-item:hover {
  transform: translateZ(20px) scale(1.04);
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(255, 255, 255, 0.07);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.65rem;
  font-weight: 700;
  color: var(--color-brass-soft);
  line-height: 1;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
}

.stat-label {
  font-size: 0.925rem;
  color: var(--color-border);
}

/* ==========================================================================
   Antigravity Agent-First Section (Bouncing Icon Stream & Typewriter Header)
   ========================================================================== */
.agent-first-section {
  background-color: var(--color-primary);
  color: var(--color-background);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(96, 165, 250, 0.3);
  border-bottom: 1px solid rgba(96, 165, 250, 0.3);
}

.icon-bouncer-track {
  width: 100%;
  overflow: hidden;
  margin-bottom: 3.5rem;
  mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
}

.icon-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  white-space: nowrap;
  width: max-content;
  animation: marqueeBouncer 35s linear infinite;
}

@keyframes marqueeBouncer {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.grid-col {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bouncer-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 14px;
  padding: 0.85rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--color-brass-soft);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  animation: floatBouncer 3s ease-in-out infinite alternate;
  animation-delay: var(--bouncer-delay, 0s);
  backdrop-filter: blur(8px);
}

.bouncer-box svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-accent-bright);
  fill: none;
  stroke-width: 2;
}

@keyframes floatBouncer {
  0% { transform: translateY(-16px); }
  100% { transform: translateY(16px); }
}

.agent-first-text-container {
  max-width: 58rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.typed-container {
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.8vw, 3rem);
  font-weight: 700;
  color: var(--color-background);
  line-height: 1.35;
  display: inline;
}

.blinking-cursor {
  display: inline-block;
  width: 14px;
  height: 2.2rem;
  background-color: var(--color-accent-bright);
  box-shadow: 0 0 15px var(--color-accent-bright);
  margin-left: 6px;
  vertical-align: middle;
  border-radius: 2px;
  animation: cursorBlink 0.8s infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Futuristic Command Center & Security HUD Showcase */
.futuristic-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 4rem;
}

.futuristic-card-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  border: 1px solid rgba(96, 165, 250, 0.35);
  background-color: var(--color-primary);
}

.futuristic-card-frame img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.futuristic-card-frame:hover img {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.futuristic-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 28, 0.15) 0%, rgba(10, 16, 28, 0.9) 100%);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hud-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-brass-soft);
  background: rgba(96, 165, 250, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.4);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.futuristic-card-overlay h3 {
  color: var(--color-background);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.futuristic-card-overlay p {
  color: var(--color-border);
  font-size: 1rem;
  margin: 0;
}

/* Cards Section - "What Alfie handles" */
.section-padding {
  padding: 6.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 4.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.25rem;
  perspective: 1000px;
}

.feature-card {
  background: radial-gradient(450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(96, 165, 250, 0.15), transparent 75%), var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-warm);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  border-color: var(--color-accent-bright);
  box-shadow: var(--shadow-elevated), var(--shadow-glow-amber);
}

.icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background-color: var(--color-muted);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  transform: translateZ(25px);
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.feature-card:hover .icon-wrapper {
  transform: translateZ(35px) scale(1.1);
  background-color: var(--color-accent);
  color: #FFF;
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

.icon-wrapper svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.feature-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
  transform: translateZ(20px);
}

.feature-card p {
  font-size: 1.05rem;
  color: var(--color-text-soft);
  margin-bottom: 1.75rem;
  flex-grow: 1;
  transform: translateZ(12px);
}

.human-approval-note {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--color-accent);
  background-color: var(--color-muted);
  padding: 0.65rem 0.95rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transform: translateZ(18px);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Proof Section (Dark Ink Background) */
.proof-section {
  background: radial-gradient(900px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(96, 165, 250, 0.18), transparent 75%), var(--color-primary);
  color: var(--color-background);
  padding: 7rem 0;
  position: relative;
}

.proof-section h2 {
  color: var(--color-background);
}

.proof-intro-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-left: 4px solid var(--color-brass-soft);
  border-radius: var(--radius);
  padding: 2.25rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 0 30px rgba(96, 165, 250, 0.1);
}

.proof-intro-text {
  color: var(--color-background);
  font-size: 1.3rem;
  line-height: 1.7;
  margin: 0;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.25rem;
  margin-bottom: 4rem;
}

.proof-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(215, 224, 239, 0.15);
  border-radius: var(--radius);
  padding: 2.25rem;
  transition: var(--transition-smooth);
}

.proof-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-brass-soft);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow-glow-brass);
}

.proof-card h3 {
  color: var(--color-brass-soft);
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.proof-card p {
  color: var(--color-border);
  font-size: 1rem;
  margin: 0;
}

.proof-closing {
  text-align: center;
  font-size: 1.35rem;
  color: var(--color-brass-soft);
  font-family: var(--font-heading);
}

/* "How Working with Alfie Feels" (Operational Rows) */
.feels-list {
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
  max-width: 58rem;
  margin: 0 auto;
}

.feels-row {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.25rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow-warm);
  transition: var(--transition-bounce);
}

.feels-row:hover {
  transform: translateX(10px);
  border-color: var(--color-accent);
}

.feels-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--color-muted);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid var(--color-border);
}

.feels-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.feels-content p {
  font-size: 1.05rem;
  margin: 0;
}

/* FAQ Accordion */
.faq-container {
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.faq-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-warm);
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--color-accent);
}

.faq-summary {
  padding: 1.4rem 2.25rem;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  min-height: 50px;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.75rem;
  color: var(--color-accent);
  font-weight: 700;
  transition: transform 0.3s ease;
}

details[open] .faq-summary::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 2.25rem 1.85rem 2.25rem;
  border-top: 1px solid var(--color-muted);
  padding-top: 1.35rem;
}

.faq-answer p {
  font-size: 1.1rem;
  margin: 0;
}

/* CTA Band */
.cta-band {
  background: radial-gradient(700px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(96, 165, 250, 0.18), transparent 75%), var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 4.5rem 3rem;
  text-align: center;
  max-width: 60rem;
  margin: 0 auto;
  box-shadow: var(--shadow-warm);
}

.cta-band h2 {
  margin-bottom: 1rem;
}

/* Blog Components */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
}

.blog-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-warm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-elevated);
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-soft);
  margin-bottom: 0.85rem;
}

.blog-category {
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
}

.blog-card h3 {
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}

.blog-card p {
  font-size: 1.05rem;
  flex-grow: 1;
  margin-bottom: 1.85rem;
}

.blog-post-article {
  max-width: 50rem;
  margin: 0 auto;
  padding: 4rem 0 6.5rem;
}

.blog-post-header {
  margin-bottom: 4rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 2.75rem;
}

.blog-post-content {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--color-primary);
}

.blog-post-content h2 {
  font-size: 2rem;
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

.blog-post-content h3 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
}

.blog-post-content p {
  margin-bottom: 1.75rem;
  font-size: 1.125rem;
}

.blog-post-content ul, .blog-post-content ol {
  margin-bottom: 1.75rem;
  padding-left: 1.85rem;
}

.blog-post-content li {
  margin-bottom: 0.65rem;
}

.blog-post-content blockquote {
  border-left: 4px solid var(--color-accent);
  padding-left: 1.65rem;
  font-style: italic;
  color: var(--color-text-soft);
  margin-bottom: 1.75rem;
}

/* Contact Page */
.contact-box {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 4rem 3.5rem;
  max-width: 44rem;
  margin: 0 auto;
  box-shadow: var(--shadow-warm);
  text-align: center;
}

.email-copy-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.email-display {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  background: var(--color-muted);
  padding: 0.85rem 1.45rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  color: var(--color-primary);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background-color: var(--color-primary);
  color: var(--color-border);
  padding: 5rem 0 2.75rem;
  border-top: 1px solid rgba(215, 224, 239, 0.12);
}

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

.footer-brand p {
  color: var(--color-border);
  font-size: 1rem;
  max-width: 26rem;
}

.footer-links h4 {
  color: var(--color-brass-soft);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--color-border);
  font-size: 1rem;
  display: inline-block;
  padding: 0.65rem 0;
}

.footer-links a:hover {
  color: var(--color-brass-soft);
}

.footer-bottom {
  border-top: 1px solid rgba(215, 224, 239, 0.12);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

/* Scroll Reveal Classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Media Queries for Mobile Responsiveness */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 0;
  }

  .futuristic-showcase-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .nav-menu {
    position: absolute;
    top: 86px;
    left: 0;
    right: 0;
    background-color: var(--color-background);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 1.75rem;
    gap: 1.25rem;
    display: none;
    box-shadow: var(--shadow-warm);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }

  .tilt-card {
    transform: none !important;
  }

  .icon-list {
    animation: none !important;
  }

  .bouncer-box {
    animation: none !important;
  }
}

/* ==========================================================================
   Workflow Marquee — always-moving operation icons + typed headline
   ========================================================================== */

.workflow-marquee {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(50rem 22rem at 15% 0%, rgba(37, 99, 235, 0.08), transparent 60%),
    var(--color-primary, #0b1220);
  border-top: 1px solid rgba(109, 155, 232, 0.18);
  border-bottom: 1px solid rgba(109, 155, 232, 0.18);
}

.marquee-rail {
  display: flex;
  align-items: center;
  gap: 3.2rem;
  width: max-content;
  margin: 0;
  padding: 2.2rem 0 2.6rem;
  list-style: none;
  will-change: transform;
}

.marquee-item { flex: 0 0 auto; }

.marquee-item .symbol {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 44px;
  line-height: 1;
  display: inline-block;
  color: var(--color-accent-bright, #3b82f6);
  opacity: 0.9;
  text-shadow: 0 0 22px rgba(59, 130, 246, 0.35);
  will-change: transform;
  -webkit-font-smoothing: antialiased;
}

/* Every third icon dimmer, every fourth brighter: depth without layers */
.marquee-item:nth-child(3n) .symbol { opacity: 0.45; font-size: 36px; }
.marquee-item:nth-child(4n) .symbol { opacity: 1; font-size: 52px; }

/* Reduced motion: static wrapped grid, everything visible */
.marquee-rail.static {
  flex-wrap: wrap;
  justify-content: center;
  width: auto;
  max-width: 72rem;
  margin: 0 auto;
}

.marquee-copy { text-align: center; }

.typed-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 600;
  color: #f4f7fd;
  max-width: 46rem;
  margin: 0 auto;
  min-height: 3.2em; /* reserve space so typing causes no layout shift */
}

.typed-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: var(--color-accent-bright, #3b82f6);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.6);
}

.typed-cursor.blinking { animation: cursor-blink 1.1s steps(1) infinite; }

@keyframes cursor-blink { 50% { opacity: 0; } }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .typed-cursor { animation: none; }
}

@media (max-width: 640px) {
  .container { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero-section { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; padding: 3.5rem 0 3rem; }
  .hero-section .hero-badge { margin-left: auto; margin-right: auto; }
  .hero-section .btn { width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
  .contact-box { padding: 2rem 1.25rem; }
  .email-copy-wrapper { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .email-copy-wrapper .btn { width: 100%; }
  .btn { min-height: 48px; }
  .marquee-rail { gap: 2.2rem; }
  .marquee-item .symbol { font-size: 34px; }
  .marquee-item:nth-child(4n) .symbol { font-size: 40px; }
}
