/* ============================================
   ALLORATECH — MAIN STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Noise Overlay ── */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  mix-blend-mode: screen;
}

/* ── Custom Cursor ── */
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.3s;
}
.cursor-outline {
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(79, 124, 255, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease-out), width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-hover .cursor-outline {
  width: 56px; height: 56px;
  border-color: var(--accent-blue);
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
p { color: var(--text-secondary); }
a { color: inherit; text-decoration: none; }

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-accent { color: var(--accent-blue); }
.text-mono { font-family: var(--font-mono); }

/* ── Section Layout ── */
.section-padding { padding: var(--section-padding) 0; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: rgba(79, 124, 255, 0.08);
  border: 1px solid rgba(79, 124, 255, 0.2);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}
.section-header.text-center .section-subtitle { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.06);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 4px 24px rgba(79, 124, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(79, 124, 255, 0.45);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-bright);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-xl { padding: 18px 40px; font-size: 17px; border-radius: var(--radius-lg); }

/* Magnetic wrapper for buttons */
.magnetic-btn { will-change: transform; }

/* ── Word reveal (split text) ── */
.word       { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word-inner { display: inline-block; transform: translateY(110%); }
/* Gradient/element words — inline-block so GSAP y-transform works */
.word-el    { display: inline-block; }

/* ── NAVBAR ── */
#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: padding 0.4s var(--ease-out), background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
#mainNav.scrolled {
  padding: 12px 0;
  background: rgba(8, 8, 15, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}

.brand-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}
.brand-accent { color: var(--accent-blue); }

.navbar-nav .nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted) !important;
  padding: 6px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 7px;
}
.navbar-nav .nav-link:hover {
  color: var(--text-primary) !important;
  background: rgba(255,255,255,0.04);
}
.navbar-nav .nav-link .lnr { font-size: 13px; opacity: 0.7; }

.nav-cta { font-size: 14px; padding: 10px 22px; }

/* Hamburger */
.navbar-toggler {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.toggler-icon {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-secondary);
  transition: var(--transition);
}

/* ── HERO ── */
.hero-section {
  min-height: 100vh;
  padding-top: 80px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.glow-blue  { background: var(--grad-glow-blue);   top: -100px; right: -100px; }
.glow-purple{ background: var(--grad-glow-purple);  bottom: -100px; left: -50px; }

.hero-content { padding-right: 40px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-cyan);
  background: rgba(0, 212, 255, 0.07);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}
.hero-badge .lnr { font-size: 12px; }

.hero-title {
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.stat-item { text-align: left; }
.stat-number {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.stat-suffix {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 600;
  color: var(--accent-blue);
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  margin: 0 28px;
}

/* ── Terminal ── */
.terminal-window {
  width: 100%;
  max-width: 540px;
  background: #0d0d12;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 32px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(79, 124, 255, 0.08);
  overflow: hidden;
  transform: perspective(1000px) rotateX(2deg) rotateY(-4deg);
  transition: transform 0.6s var(--ease-out);
}
.terminal-window:hover {
  transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.terminal-buttons { display: flex; gap: 7px; align-items: center; }
.t-btn {
  width: 13px; height: 13px;
  border-radius: 50%;
  display: block;
  cursor: default;
}
.t-close    { background: #ff5f57; box-shadow: 0 0 6px rgba(255,95,87,0.4); }
.t-minimize { background: #ffbd2e; box-shadow: 0 0 6px rgba(255,189,46,0.4); }
.t-maximize { background: #28c840; box-shadow: 0 0 6px rgba(40,200,64,0.4); }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.terminal-body {
  padding: 20px;
  min-height: 280px;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: none;
}
.terminal-body::-webkit-scrollbar { display: none; }

.terminal-output { margin-bottom: 4px; }

.terminal-line {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 4px;
}
.prompt { color: var(--accent-cyan); white-space: nowrap; }
.prompt-dir { color: var(--accent-blue); }
.t-cmd { color: var(--text-primary); }
.t-output { color: var(--text-muted); padding-left: 0; }
.t-success { color: var(--accent-green); }
.t-info { color: var(--accent-cyan); }
.t-warning { color: #ffbd2e; }

.terminal-blink {
  font-family: var(--font-mono);
  color: var(--accent-green);
  font-size: 15px;
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent-blue), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.6; }
  50% { transform: scaleY(1.3); opacity: 1; }
}

/* ── MARQUEE ── */
.marquee-section {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
  position: relative;
  overflow: hidden;
}
.marquee-label {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: linear-gradient(to right, var(--bg-base) 70%, transparent);
  z-index: 2;
  white-space: nowrap;
  padding-right: 40px;
}
.marquee-track {
  overflow: hidden;
  padding: 0 160px 0 140px;
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
}
.marquee-inner {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-item {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  padding: 0 20px;
  transition: color 0.3s;
}
.marquee-item:hover { color: var(--text-primary); }
.marquee-dot {
  color: var(--accent-blue);
  opacity: 0.4;
  font-size: 18px;
}

/* ── SERVICES ── */
.services-section { background: var(--bg-base); }

.service-card {
  height: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease-out);
  cursor: default;
  will-change: transform;
}
.service-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 0 40px rgba(79, 124, 255, 0.1), 0 16px 48px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}
.service-card-featured {
  background: linear-gradient(160deg, rgba(79, 124, 255, 0.06) 0%, var(--bg-surface) 50%);
  border-color: rgba(79, 124, 255, 0.2);
}
.service-card-featured:hover {
  border-color: rgba(79, 124, 255, 0.4);
  box-shadow: 0 0 60px rgba(79, 124, 255, 0.15), 0 16px 48px rgba(0,0,0,0.4);
}
.service-card-inner { padding: 36px; height: 100%; display: flex; flex-direction: column; }

.service-icon {
  width: 52px; height: 52px;
  background: rgba(79, 124, 255, 0.1);
  border: 1px solid rgba(79, 124, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--accent-blue);
  margin-bottom: 20px;
  transition: background 0.3s, transform 0.3s;
}
.service-card:hover .service-icon {
  background: rgba(79, 124, 255, 0.16);
  transform: scale(1.05);
}

.service-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}
.service-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.service-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.service-features {
  list-style: none;
  padding: 0; margin: 0 0 auto;
  display: flex; flex-direction: column; gap: 10px;
}
.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.service-features .lnr {
  color: var(--accent-green);
  font-size: 14px;
  flex-shrink: 0;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-blue);
  margin-top: 28px;
  transition: gap 0.3s;
}
.service-link:hover { gap: 12px; color: var(--accent-blue); }

/* ── AI SECTION ── */
.ai-section {
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
#neuralCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.ai-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.ai-stat {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  transition: border-color 0.3s;
}
.ai-stat:hover { border-color: var(--border-bright); }
.ai-stat-number {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1;
}
.ai-stat-suffix {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-cyan);
}
.ai-stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.ai-features-col { position: relative; z-index: 1; }
.ai-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ai-feature-card {
  background: rgba(8, 8, 15, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.ai-feature-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-4px);
}
.ai-feature-card .lnr {
  font-size: 24px;
  color: var(--accent-cyan);
  margin-bottom: 14px;
  display: block;
}
.ai-feature-card h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.ai-feature-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── SOLUTIONS TABS ── */
.solutions-section { background: var(--bg-base); }

.solutions-tab-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
  margin-bottom: 48px;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.tab-btn.active {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: 0 4px 16px rgba(79,124,255,0.3);
}
.tab-btn .lnr { font-size: 14px; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.tab-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.tab-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}
.tab-features {
  list-style: none;
  padding: 0; margin: 0 0 36px;
  display: flex; flex-direction: column; gap: 12px;
}
.tab-features li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--text-secondary);
}
.tab-features .lnr { color: var(--accent-green); font-size: 15px; flex-shrink: 0; }

/* Tab Visual Card */
.tab-visual { display: flex; justify-content: center; }
.visual-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-card);
}
.visual-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.visual-header .lnr { font-size: 16px; color: var(--accent-blue); }
.metric-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  font-family: var(--font-mono);
}
.metric-value {
  font-family: var(--font-mono);
  font-size: 40px;
  font-weight: 700;
  display: block;
  margin-bottom: 24px;
}
.visual-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bar-item {
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: var(--w, 50%);
  background: var(--grad-cyan);
  border-radius: 100px;
  animation: barGrow 1.5s var(--ease-out) forwards;
  transform-origin: left;
}
@keyframes barGrow {
  from { width: 0; }
  to { width: var(--w, 50%); }
}
.visual-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.vtag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
}
.vtag.active {
  color: var(--accent-green);
  border-color: rgba(0, 255, 136, 0.25);
  background: rgba(0, 255, 136, 0.06);
}

/* ── PROCESS ── */
.process-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process-steps { position: relative; }
.process-line {
  position: absolute;
  top: 32px;
  left: calc(10% + 24px);
  right: calc(10% + 24px);
  height: 1px;
  background: var(--border);
  display: none;
}
@media (min-width: 992px) { .process-line { display: block; } }
.process-line-fill {
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, var(--accent-blue), var(--accent-cyan));
  transition: width 0.8s var(--ease-out);
}

.process-step { text-align: center; padding-top: 8px; }
.step-number {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.step-icon {
  width: 52px; height: 52px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--accent-blue);
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.process-step:hover .step-icon {
  background: rgba(79,124,255,0.12);
  border-color: rgba(79,124,255,0.35);
  transform: translateY(-4px);
}
.step-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CASE STUDIES ── */
.case-studies-section { background: var(--bg-base); }
.case-studies-scroll { overflow-x: auto; scrollbar-width: none; cursor: grab; }
.case-studies-scroll::-webkit-scrollbar { display: none; }
.case-studies-scroll:active { cursor: grabbing; }

.case-studies-track {
  display: flex;
  gap: 20px;
  padding-bottom: 12px;
  width: max-content;
}
.case-card {
  width: 340px;
  flex-shrink: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.case-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}
.case-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 16px;
}
.case-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.case-metrics {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.case-metric {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}
.case-metric strong {
  color: var(--accent-cyan);
  font-weight: 600;
}
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  transition: gap 0.3s;
}
.case-link:hover { gap: 12px; color: var(--accent-blue); }

/* ── BLOG ── */
.blog-section { background: var(--bg-surface); border-top: 1px solid var(--border); }

.blog-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  height: 100%;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}
.blog-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 14px;
}
.blog-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.blog-excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}
.blog-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.blog-meta .lnr { font-size: 12px; margin-right: 4px; }
.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-blue);
  margin-top: auto;
  transition: gap 0.3s;
}
.blog-link:hover { gap: 12px; color: var(--accent-blue); }

/* ── FAQ ── */
.faq-section { background: var(--bg-base); }

.faq-accordion { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: color 0.3s;
}
.faq-question:hover { color: var(--accent-blue); }
.faq-icon {
  font-size: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-out);
}
.faq-item.open .faq-icon { transform: rotate(-180deg); color: var(--accent-blue); }
.faq-item.open .faq-question { color: var(--accent-blue); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}
.faq-answer p {
  padding: 0 0 22px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ── CTA BANNER ── */
.cta-section { background: var(--bg-surface); border-top: 1px solid var(--border); }
.cta-card {
  background: linear-gradient(135deg,
    rgba(79, 124, 255, 0.08) 0%,
    rgba(139, 92, 246, 0.06) 100%
  );
  border: 1px solid rgba(79, 124, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: 72px 64px;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(79,124,255,0.12) 0%, transparent 70%);
  top: -100px; right: -100px;
  pointer-events: none;
}
.cta-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.cta-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 0;
}
.cta-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* ── FOOTER ── */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}
.footer-top { margin-bottom: 64px; }

.footer-brand .brand-text { font-size: 26px; }
.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 280px;
  line-height: 1.6;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 15px;
  transition: var(--transition);
}
.footer-social a:hover {
  color: var(--text-primary);
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.footer-heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* Stagger initial state is set by GSAP — no CSS opacity:0 needed */

/* ── Responsive ── */
@media (max-width: 991px) {
  .hero-content { padding-right: 0; margin-bottom: 56px; }
  .hero-terminal-col { justify-content: flex-start; }
  .cta-card { padding: 48px 32px; }
  .ai-features-grid { grid-template-columns: 1fr; }
  .ai-stats-grid { grid-template-columns: 1fr 1fr; }
  :root { --section-padding: var(--section-padding-sm); }
}
@media (max-width: 767px) {
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }
  .ai-features-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .section-header.d-flex { flex-direction: column; gap: 20px; align-items: flex-start !important; }
}
@media (max-width: 575px) {
  .ai-features-grid { grid-template-columns: 1fr; }
  .terminal-window { transform: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
