/* ========================================
   MATCHAT — Global Styles
   Inspired by Analemma's design language
   ======================================== */

/* --- CSS Variables --- */
:root {
  --website-bg: #000000;
  /* True Void Black */
  --color-white: #f8fafc;
  /* Slightly off-white */
  --color-muted: #94a3b8;
  --color-subtle: #475569;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-accent: #ccfbf1;
  /* Silver-Teal */
  --color-accent-dim: rgba(20, 184, 166, 0.05);
  --color-accent-glow: rgba(45, 212, 191, 0.15);
  --color-gold: #c2a35d;
  --color-card-bg: rgba(255, 255, 255, 0.01);
  --color-card-border: rgba(255, 255, 255, 0.08);
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max-width: 1400px;
  /* Grandiose width */
  --padding-x: 2rem;
  --header-height: 80px;
  --section-gap: 200px;
  /* Monumental spacing */
}

@media (min-width: 768px) {
  :root {
    --padding-x: 3rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --padding-x: 4rem;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--website-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* FILM GRAIN TEXTURE */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

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

/* ========================================
   HEADER
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(4, 5, 5, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-white);
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

.logo-icon {
  color: var(--color-accent);
  font-size: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--color-muted);
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--color-white);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 11px;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--header-height);
  padding-bottom: 120px;
  overflow: hidden;
}

#comet-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-stars {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-image:
    linear-gradient(rgba(45, 212, 191, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 0%, transparent 100%);
}

/* Floating Light Orbs */
.bg-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.15;
  animation: float-glow 20s infinite alternate ease-in-out;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--color-accent);
  top: -200px;
  left: -200px;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--color-gold);
  bottom: 0%;
  right: -100px;
  animation-delay: -5s;
}

@keyframes float-glow {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(50px, 30px) scale(1.1);
  }

  100% {
    transform: translate(-30px, 50px) scale(1);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 11px;
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.shimmer-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  animation: shimmer 3s infinite;
}

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

  20% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  /* Refined, more elegant scale */
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: transparent;
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.7) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.08));
}

.hero-description {
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
  margin-bottom: 2.5rem;
  max-width: 520px;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* --- Premium Glass Button --- */
.btn-glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  /* Pill shape for ultra-modern feel */
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
  /* White glow instead of colored */
}

.btn-glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-glass:hover::after {
  transform: translateX(100%);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-glass:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
}

.btn-outline:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.3);
}

/* --- Stats Row --- */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--color-subtle);
  letter-spacing: 0.02em;
}



.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* ========================================
   SHARED SECTION STYLES
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.5rem;
  padding: 6px 16px;
  border: 1px solid rgba(45, 212, 191, 0.2);
  border-radius: 100px;
  background: rgba(45, 212, 191, 0.05);
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.1);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

/* Light Beam Divider */
.light-beam-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  position: relative;
  overflow: hidden;
}

.light-beam-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  animation: beam-move 6s infinite ease-in-out;
}

@keyframes beam-move {
  0% {
    left: -100%;
  }

  50% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

/* ========================================
   PROBLEM SECTION
   ======================================== */
.problem-section {
  position: relative;
  padding: var(--section-gap) 0;
}

.problem-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Spotlight Card Effect (Applied via JS) --- */
.spotlight-card {
  position: relative;
  background: var(--color-card-bg);
  border: 1px solid var(--color-card-border);
  border-radius: 16px;
  overflow: hidden;
  z-index: 1;
}

/* The glowing border follows mouse */
.spotlight-card::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  border-radius: inherit;
  padding: 1px;
  /* Border width */
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
      rgba(255, 255, 255, 0.4),
      transparent 40%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.3s;
}

.spotlight-card:hover::before {
  opacity: 1;
}

/* Inner glow */
.spotlight-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
      rgba(255, 255, 255, 0.04),
      transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.spotlight-card:hover::after {
  opacity: 1;
}

/* Reset specific styles to use spotlight */
.problem-card,
.anti-card,
.cap-material-card {
  /* Inherit spotlight properties */
  position: relative;
  background: #050505;
  /* Solid minimal dark */
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: none;
  transition: transform 0.3s ease;
  padding: 2.5rem;
  /* Restored padding */
}

.problem-card:hover,
.anti-card:hover,
.cap-material-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.05);
  /* Managed by spotlight */
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
      rgba(255, 255, 255, 0.06) 0%,
      transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.problem-card:hover {
  transform: translateY(-8px);
  border-color: rgba(45, 212, 191, 0.3);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.problem-card:hover::before {
  opacity: 1;
}

.problem-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--color-accent-dim), transparent);
  border: 1px solid rgba(45, 212, 191, 0.2);
  color: var(--color-accent);
  margin-bottom: 2rem;
  transition: all 0.5s;
}

.problem-card:hover .problem-icon {
  transform: scale(1.1) rotate(5deg);
  border-color: var(--color-accent);
  box-shadow: 0 0 15px rgba(45, 212, 191, 0.3);
}

.problem-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.problem-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.problem-desc strong {
  color: var(--color-accent);
  font-weight: 600;
}

.problem-stat {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.problem-stat-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ef4444;
}

.problem-stat-label {
  font-size: 0.8rem;
  color: var(--color-subtle);
}

/* ========================================
   ARCHITECTURE SECTION
   ======================================== */
.architecture-section {
  position: relative;
  padding: var(--section-gap) 0;
}

.architecture-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.arch-diagram-wrapper,
.workflow-wrapper,
.dashboard-preview-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto 4rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: rgba(10, 15, 20, 0.8);
}

/* Removed dashboard-glow and scanning effects per user request */

.dashboard-image {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  z-index: 1;
  /* Reduced shadow slightly for cleaner look */
  filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.05));
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.arch-diagram-wrapper:hover .dashboard-image,
.workflow-wrapper:hover .dashboard-image {
  transform: scale(1.02);
}

/* Architecture Layers */
.arch-layers {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.arch-layer {
  display: flex;
  gap: 3rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: all 0.4s ease;
  position: relative;
}

.arch-layer::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.arch-layer:hover::after {
  width: 100%;
}

.arch-layer:hover {
  background: rgba(255, 255, 255, 0.015);
  padding-left: 2rem;
  padding-right: 2rem;
  margin-left: -2rem;
  margin-right: -2rem;
}

.arch-layer-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: rgba(20, 184, 166, 0.2);
  min-width: 60px;
  line-height: 1;
  padding-top: 4px;
}

.arch-layer-content {
  flex: 1;
}

.arch-layer-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.arch-layer-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.arch-layer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--color-accent-dim);
  color: var(--color-accent);
  white-space: nowrap;
}

/* ========================================
   ANTI-HALLUCINATION SECTION
   ======================================== */
.anti-section {
  position: relative;
  padding: var(--section-gap) 0;
}

.anti-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.anti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

@media (max-width: 768px) {
  .anti-grid {
    grid-template-columns: 1fr;
  }
}

.anti-card {
  padding: 2rem;
  border-radius: 12px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.anti-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
}

.anti-card-primary {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.08), rgba(20, 184, 166, 0.02));
  border-color: rgba(20, 184, 166, 0.2);
}

.anti-card-primary:hover {
  border-color: rgba(20, 184, 166, 0.35);
}

.anti-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.anti-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--color-accent-dim);
  color: var(--color-accent);
}

.anti-card-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--color-subtle);
  text-transform: uppercase;
}

.anti-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.anti-card-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.anti-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.anti-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.feature-dot {
  min-width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.5;
}

/* ========================================
   CAPABILITIES SECTION
   ======================================== */
.capabilities-section {
  position: relative;
  padding: var(--section-gap) 0;
}

.capabilities-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

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

@media (max-width: 1024px) {
  .cap-materials {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cap-materials {
    grid-template-columns: 1fr;
  }
}

.cap-material-card {
  padding: 1.75rem;
  border-radius: 12px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  transition: transform 0.3s ease, border-color 0.3s ease;
  text-align: center;
}

.cap-material-card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.25);
}

.cap-material-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cap-material-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.cap-material-card p {
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.cap-skill {
  font-size: 0.7rem;
  color: var(--color-accent);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* Experimental Data */
.cap-data-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 2rem;
  text-align: center;
}

.cap-data-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .cap-data-grid {
    grid-template-columns: 1fr;
  }
}

.cap-data-card {
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
}

.cap-data-card h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.cap-data-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cap-data-card li {
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

.cap-data-card li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  opacity: 0.5;
}

/* ========================================
   USE CASE SECTION
   ======================================== */
.usecase-section {
  position: relative;
  padding: var(--section-gap) 0;
}

.usecase-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.usecase-comparison {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 900px;
  margin: 3rem auto;
}

@media (max-width: 768px) {
  .usecase-comparison {
    flex-direction: column;
  }

  .comparison-arrow {
    transform: rotate(90deg);
  }
}

.comparison-card {
  flex: 1;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.comparison-old {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.15);
}

.comparison-new {
  background: rgba(20, 184, 166, 0.04);
  border-color: rgba(20, 184, 166, 0.15);
}

.comparison-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--color-subtle);
}

.comparison-card p {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.comparison-time {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-white);
}

.comparison-time strong {
  color: var(--color-accent);
  font-weight: 600;
}

.comparison-old .comparison-time strong {
  color: #ef4444;
}

.time-icon {
  font-size: 1.2rem;
}

.comparison-arrow {
  color: var(--color-subtle);
  flex-shrink: 0;
  transition: color 0.3s ease;
}



/* ========================================
   ROADMAP SECTION
   ======================================== */
.roadmap-section {
  position: relative;
  padding: 80px 0 var(--section-gap);
}

.roadmap-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.roadmap-timeline {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 768px) {
  .roadmap-timeline {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .roadmap-phase {
    flex: 1;
  }
}

.roadmap-phase-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.roadmap-phase-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border-radius: 100px;
  background: var(--color-accent-dim);
  color: var(--color-accent);
}

.roadmap-phase-time {
  font-size: 0.8rem;
  color: var(--color-subtle);
}

.roadmap-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 1.5rem;
  border-left: 1px solid var(--color-border);
}

.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1rem 0;
  position: relative;
}

.roadmap-dot {
  position: absolute;
  left: -2rem;
  top: 1.4rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(20, 184, 166, 0.4);
}

.roadmap-item-content h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.roadmap-item-content p {
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  position: relative;
  padding: 100px 0 var(--section-gap);
  text-align: center;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem 2rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.cta-content:hover {
  background: rgba(45, 212, 191, 0.02);
  border-color: rgba(45, 212, 191, 0.2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.cta-content::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.cta-desc {
  font-size: 1.1rem;
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 500px;
  margin: 0 auto 3rem;
}

.cta-btn {
  position: relative;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 4rem 0;
  background: #010202;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--color-white);
  margin-bottom: 4px;
}

.footer-tagline {
  font-size: 11px;
  color: var(--color-subtle);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-legal {
  text-align: right;
}

@media (max-width: 640px) {
  .footer-legal {
    text-align: center;
  }
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--color-subtle);
  margin-bottom: 0.25rem;
}

.footer-note {
  font-size: 0.7rem;
  color: rgba(107, 115, 131, 0.5);
}

/* ========================================
   AMBIENT PARTICLES (Hero Background)
   ======================================== */
.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--duration) ease-in-out infinite;
  opacity: 0;
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: var(--max-opacity);
  }
}

/* ========================================
   SCROLL REVEAL ANIMATION
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Staggered reveal for grid children */
.reveal-stagger>* {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger.visible>* {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(1) {
  transition-delay: 0.05s;
}

.reveal-stagger.visible>*:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal-stagger.visible>*:nth-child(3) {
  transition-delay: 0.15s;
}

.reveal-stagger.visible>*:nth-child(4) {
  transition-delay: 0.2s;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 640px) {
  :root {
    --section-gap: 80px;
  }

  .hero-section {
    padding-bottom: 60px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .main-nav {
    gap: 0.75rem;
  }

  .nav-link {
    font-size: 11px;
  }

  .nav-cta {
    display: none;
  }

  .arch-layer {
    flex-direction: column;
    gap: 0.75rem;
  }

  .arch-layer:hover {
    margin: 0;
    padding: 1.5rem 0;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    align-items: center;
    padding-bottom: 0;
  }

  .hero-content {
    padding-top: 0;
    padding-bottom: 80px;
  }
}

/* updated: 2026-02-14 */
/* ========================================
   MOBILE RESPONSIVENESS & OPTIMIZATIONS
   ======================================== */

/* --- Mobile Menu Button --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
  padding: 0;
}

.bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger Animation */
.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* --- Media Queries --- */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .problem-grid,
  .anti-grid,
  .cap-data-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --padding-x: 1.5rem;
    --header-height: 70px;
  }

  /* Global Layout */
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
  }

  /* Header & Navigation */
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(4, 5, 5, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 105;
  }

  .main-nav.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.25rem;
    font-weight: 500;
  }

  .nav-cta {
    display: inline-flex;
    /* Show it in mobile menu */
    margin-left: 0;
    margin-top: 1rem;
    width: auto;
    font-size: 1rem;
    padding: 0.8rem 2rem;
  }

  /* Hero Section */
  .hero-section {
    padding-top: calc(var(--header-height) + 2rem);
    align-items: center;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    gap: 1rem;
  }

  .hero-cta,
  .hero-cta-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
  }

  .stat-item {
    align-items: center;
  }

  .stat-divider {
    display: none;
  }

  /* Architecture Section */
  .arch-layer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    /* Center align for better mobile look */
    padding: 2rem 1rem;
  }

  .arch-layer:hover {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: 0;
    margin-right: 0;
    background: transparent;
    /* Disable hover effect on mobile */
  }

  .arch-layer-number {
    margin-bottom: 0.5rem;
  }

  .arch-layer-tags {
    justify-content: center;
  }

  /* Grids & Cards */
  .problem-grid,
  .anti-grid,
  .cap-materials,
  .cap-data-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .problem-card,
  .anti-card,
  .cap-material-card {
    padding: 1.5rem;
  }

  /* Use Case */
  .usecase-comparison {
    flex-direction: column;
    margin: 2rem 0;
  }

  .comparison-arrow {
    transform: rotate(90deg);
    margin: 1rem 0;
  }

  /* Roadmap */
  .roadmap-section {
    padding: 60px 2rem;
  }

  .roadmap-timeline {
    flex-direction: column;
    gap: 3rem;
    max-width: 100%;
    width: 100%;
  }

  .roadmap-phase {
    width: 100%;
    max-width: 100%;
  }

  .roadmap-items {
    padding-left: 1.5rem;
    border-left: 1px solid var(--color-border);
    width: 100%;
    max-width: 100%;
  }

  .roadmap-item {
    width: 100%;
    max-width: 100%;
  }

  .roadmap-item-content {
    min-width: 0;
    /* Crucial for flex child text wrapping */
    flex: 1;
    overflow-wrap: break-word;
    /* Ensure long words don't overflow */
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-legal {
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --padding-x: 1.25rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .problem-stat-number {
    font-size: 1.25rem;
  }

  .cta-title {
    font-size: 2rem;
  }

  .stat-number {
    font-size: 1.1rem;
  }
}