/* ============================================
   AIDEFEND Labs - Landing Page Styles v2
   Modern Sci-Fi / Cybersecurity Aesthetic
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #050a15;
  --bg-secondary: #0a1128;
  --bg-card: rgba(10, 17, 40, 0.6);
  --bg-card-hover: rgba(15, 25, 55, 0.8);
  --bg-nav: rgba(5, 10, 21, 0.85);

  --text-primary: #e8edf5;
  --text-secondary: #bcc9dd;
  --text-muted: #94a6c3;

  --accent-blue: #3b82f6;
  --accent-blue-light: #60a5fa;
  --accent-cyan: #06d6a0;
  --accent-purple: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #3b82f6, #06d6a0);
  --accent-gradient-2: linear-gradient(135deg, #8b5cf6, #3b82f6);
  --accent-gradient-hover: linear-gradient(135deg, #60a5fa, #34d399);

  --border-color: rgba(59, 130, 246, 0.1);
  --border-glow: rgba(59, 130, 246, 0.4);
  --border-glow-cyan: rgba(6, 214, 160, 0.3);

  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.12);
  --shadow-glow-lg: 0 0 80px rgba(59, 130, 246, 0.08), 0 0 160px rgba(6, 214, 160, 0.04);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --max-width: 1200px;
  --nav-height: 72px;
  --entry-hero-height: 94vh;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  background-color: var(--bg-primary);
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background: transparent;
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent-blue-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

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

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  padding: 6px 16px;
  background: rgba(6, 214, 160, 0.06);
  border: 1px solid rgba(6, 214, 160, 0.15);
  border-radius: 50px;
}

.section-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.section-title {
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 56px;
  line-height: 1.8;
}

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

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.25), 0 0 60px rgba(6, 214, 160, 0.08);
}

.btn-primary:hover {
  box-shadow: 0 8px 40px rgba(59, 130, 246, 0.35), 0 0 80px rgba(6, 214, 160, 0.15);
  transform: translateY(-3px);
  color: #fff;
}

.btn-secondary {
  background: rgba(59, 130, 246, 0.06);
  color: var(--text-primary);
  border: 1px solid rgba(59, 130, 246, 0.2);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.12);
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* --- Glow Card Base --- */
.glow-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0), rgba(6, 214, 160, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 0.4s ease;
  pointer-events: none;
}

.glow-card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.glow-card:hover::before {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(6, 214, 160, 0.3));
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(24px) saturate(1.2);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.nav.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: rgba(59, 130, 246, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
  min-width: 0;
}

.nav-logo:hover { color: var(--text-primary); }

.brand-mark {
  display: block;
  width: auto;
  height: auto;
  flex-shrink: 0;
}

.brand-mark-header {
  width: 62px;
  height: 62px;
  filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.18));
}

.brand-wordmark {
  display: block;
  color: var(--text-primary);
  white-space: nowrap;
  text-shadow: 0 0 18px rgba(59, 130, 246, 0.08);
  font-family: var(--font-sans);
}

.brand-wordmark-header {
  font-size: clamp(1.2rem, 0.75vw + 0.95rem, 1.58rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav-logo-icon {
  width: 38px;
  height: 38px;
  background: #2d429b;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.3s ease;
  text-decoration: none;
  position: relative;
}

.nav-links a:not(.btn) {
  display: inline-flex;
  align-items: center;
  padding: 10px 8px;
  margin: -10px -8px;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 8px;
  width: 0;
  height: 1px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--text-primary);
}

.nav-links a:not(.btn):hover::after {
  width: calc(100% - 16px);
}

.nav-links a.active:not(.btn) {
  color: var(--text-primary);
}

.nav-links a.active:not(.btn)::after {
  width: calc(100% - 16px);
}

.nav-cta {
  padding: 10px 24px !important;
  font-size: 0.85rem !important;
  color: #fff !important;
}

/* Language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 50px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.03em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.lang-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lang-toggle:hover {
  border-color: rgba(59, 130, 246, 0.4);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.12);
}

.lang-toggle:hover::before {
  opacity: 0.08;
}

.lang-toggle:active {
  transform: translateY(0);
}

.lang-toggle-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.lang-toggle:hover .lang-toggle-icon {
  opacity: 1;
}

.lang-toggle-label {
  position: relative;
  z-index: 1;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: var(--entry-hero-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 32px) 24px 80px;
  overflow: hidden;
}

/* Particle canvas */
#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: var(--bg-primary);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Animated orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orbFloat 12s ease-in-out infinite alternate;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
  top: 5%;
  left: 15%;
  animation-duration: 14s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 214, 160, 0.2), transparent 70%);
  bottom: 10%;
  right: 10%;
  animation-duration: 18s;
  animation-delay: -4s;
}

.hero-orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2), transparent 70%);
  top: 40%;
  right: 30%;
  animation-duration: 16s;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
  100% { transform: translate(40px, -10px) scale(1.02); }
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 10%, transparent 70%);
}

/* Scan line effect */
.hero-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(59, 130, 246, 0.01) 2px,
    rgba(59, 130, 246, 0.01) 4px
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  width: 100%;
  padding: 0 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(6, 214, 160, 0.06);
  border: 1px solid rgba(6, 214, 160, 0.2);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan), 0 0 20px rgba(6, 214, 160, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--accent-cyan), 0 0 20px rgba(6, 214, 160, 0.3); }
  50% { opacity: 0.5; box-shadow: 0 0 4px var(--accent-cyan); }
}

.hero-tagline {
  color: var(--text-muted);
  font-size: clamp(0.85rem, 1.3vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.5;
  margin: 0 auto 20px;
  max-width: 680px;
  opacity: 0.82;
}

.hero h1 {
  margin-bottom: 28px;
  text-shadow: 0 0 80px rgba(59, 130, 246, 0.15);
}

.hero-title-line {
  display: inline-block;
}

.hero-title-line1,
.hero-title-line2 {
  max-width: 100%;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.9;
  margin-bottom: 44px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle p + p {
  margin-top: 16px;
}

.hero-quote {
  margin: -10px auto 34px;
  max-width: 720px;
  color: rgba(226, 232, 240, 0.68);
  font-size: clamp(1rem, 1.7vw, 1.08rem);
  line-height: 1.8;
  letter-spacing: 0.01em;
  font-style: italic;
}

.hero-quote strong {
  color: rgba(248, 250, 252, 0.88);
  font-weight: 500;
}

.hero-quote cite {
  display: block;
  margin-top: 8px;
  color: rgba(186, 198, 216, 0.84);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-quote-soft {
  margin: -14px auto 32px;
  max-width: 760px;
  color: rgba(226, 232, 240, 0.64);
  font-size: clamp(0.96rem, 1.5vw, 1.04rem);
  line-height: 1.8;
  font-style: normal;
}

.hero-quote-soft strong {
  color: rgba(226, 232, 240, 0.8);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Floating tech decoration */
.hero-tech-line {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  z-index: 1;
  opacity: 0.5;
}

.hero-tech-line::before,
.hero-tech-line::after {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--text-muted));
}

.hero-tech-line::after {
  background: linear-gradient(90deg, var(--text-muted), transparent);
}

/* --- Section Common --- */
.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
  position: relative;
  z-index: 1;
  margin: 0;
}

/* --- Framework Section --- */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.framework-card {
  padding: 36px 24px;
  text-align: center;
}

.framework-card-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  background: var(--accent-gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
  transition: all 0.4s ease;
}

.glow-card:hover .framework-card-icon {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.35), 0 0 60px rgba(6, 214, 160, 0.15);
  transform: scale(1.05);
}

.framework-card h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.framework-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* Stats row */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 80px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
  text-shadow: none;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* --- Hot Topics Section --- */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.topic-card {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.topic-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.topic-card-header h3 {
  font-size: 1.05rem;
  margin: 0;
}

.topic-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topic-icon-red { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.topic-icon-purple { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.topic-icon-cyan { background: rgba(6, 182, 212, 0.12); color: #06b6d4; }
.topic-icon-green { background: rgba(6, 214, 160, 0.12); color: #06d6a0; }
.topic-icon-amber { background: rgba(245, 158, 11, 0.12); color: #f59e0b; }
.topic-icon-blue { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }

.topic-card-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.topic-techniques {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
}

.topic-techniques li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.topic-techniques li a::after {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.4;
  transition: opacity 0.2s ease;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") no-repeat center / contain;
}

.topic-techniques li a:hover {
  background: rgba(59, 130, 246, 0.06);
  color: var(--text-primary);
}

.topic-techniques li a:hover::after {
  opacity: 0.8;
}

.technique-id {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Threat Frameworks Section --- */
.frameworks-section {
  background: transparent;
}

.framework-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.framework-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(59, 130, 246, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 50px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

.framework-badge::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--accent-blue);
  border-radius: 50%;
  opacity: 0.6;
}

.framework-badge:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

/* --- Mission Section --- */
.mission-content {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.mission-statement {
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 64px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.value-card {
  padding: 40px 28px;
  text-align: center;
}

.value-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.value-card h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.value-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* --- Coming Soon Section --- */
.coming-soon-section {
  background: transparent;
}

.coming-soon-content {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.coming-soon-content > p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 48px;
}

.roadmap-hints {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hint-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.hint-chip-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.08);
  border-radius: 10px;
}

.glow-card.hint-chip:hover .hint-chip-icon {
  background: rgba(59, 130, 246, 0.15);
}

/* --- Footer --- */
.footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border-color);
  background: rgba(5, 10, 21, 0.5);
  position: relative;
  z-index: 1;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

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

.brand-mark-footer {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.18));
}

.footer-brand-name {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
}

.brand-wordmark-footer {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.footer-brand-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: fit-content;
  max-width: max-content;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(224, 238, 255, 0.88);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.16);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.08);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.footer-links a:hover {
  color: var(--text-primary);
}

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

.footer-mission {
  max-width: none;
  white-space: nowrap;
  line-height: 1.6;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.9;
}

/* --- Subpages & Page Blocks --- */
.subpage-hero {
  min-height: var(--entry-hero-height);
  padding-bottom: 80px;
}

.subpage-hero .hero-content {
  max-width: 920px;
}

.hero-subtitle.is-wide {
  max-width: 780px;
}

.hero-subtitle + .hero-subtitle {
  margin-top: -28px;
}

.section-header.section-header-left {
  text-align: left;
  max-width: 760px;
  margin: 0 0 48px;
}

.section-header.section-header-wide {
  max-width: none;
}

.section-header.section-header-wide .section-subtitle {
  max-width: none;
  margin: 0;
}

.page-grid-two,
.page-grid-three,
.page-split {
  display: grid;
  gap: 20px;
}

.page-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.page-split {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  align-items: start;
  gap: 32px;
}

.page-card {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.about-mission-card p strong {
  color: var(--text-primary);
  font-weight: 700;
}

.profile-tile-role {
  display: block;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.profile-tile-copy {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.72;
}

.profile-tile-copy + .profile-tile-copy {
  margin-top: 12px;
}

.about-overview-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.about-intro-row {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
}

.about-intro-row .about-brand-panel {
  justify-content: center;
}

@media (max-width: 900px) {
  .about-intro-row {
    grid-template-columns: 1fr;
  }
}

.about-brand-panel {
  align-items: center;
  text-align: center;
  gap: 18px;
}

.about-brand-mark {
  width: min(220px, 42vw);
  height: auto;
  margin: 0 auto;
}

.about-brand-copy {
  max-width: 620px;
  margin: 0 auto;
}

.about-brand-kicker {
  display: inline-flex;
  margin-bottom: 10px;
}

.about-founder-strip {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px 26px;
}

.about-founder-strip .leader-photo-frame {
  max-width: 132px;
  margin: 0;
}

.about-founder-strip-body {
  min-width: 0;
}

.about-founder-strip-body .profile-tile-role {
  margin-bottom: 6px;
}

.about-founder-strip-body h3 {
  margin-bottom: 12px;
}

.page-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.page-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

.page-card p + p {
  margin-top: 12px;
}

.page-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.72;
}

.page-list li::before {
  content: '';
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(6, 214, 160, 0.28);
}

.page-link-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 26px;
}

.page-link-row > .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 640px) {
  .page-link-row {
    grid-template-columns: 1fr;
  }
}

.status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  background: rgba(59, 130, 246, 0.06);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pill.is-live {
  background: rgba(6, 214, 160, 0.08);
  border-color: rgba(6, 214, 160, 0.22);
  color: #8df7da;
}

.status-pill.is-soon {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.22);
  color: #fcd34d;
}

.status-pill.is-current {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
}

.status-pill.is-next {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.22);
  color: #c4b5fd;
}

.status-pill.is-company {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.22);
  color: #a5f3fc;
}

.status-pill.is-founder {
  background: rgba(6, 214, 160, 0.08);
  border-color: rgba(6, 214, 160, 0.22);
  color: #99f6e4;
}

.page-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.page-stat {
  padding: 22px 20px;
  text-align: left;
  min-width: 0;
}

.page-stat-strip-tight .page-stat {
  padding: 18px 16px;
}

.page-stat-strip-tight {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.page-stat-number {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.2rem, 1.4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.08;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.page-stat-strip-tight .page-stat-number {
  font-size: clamp(0.98rem, 0.7vw + 0.72rem, 1.25rem);
  line-height: 1.12;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  white-space: nowrap;
}

.page-stat-strip-tight .page-stat-label {
  font-size: 0.79rem;
}

.page-stat-label {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.compact-badges {
  justify-content: flex-start;
  max-width: none;
  margin-top: 22px;
}

.framework-badges-lifted {
  margin-top: 8px;
}

.compact-badges .framework-badge {
  padding: 10px 18px;
  font-size: 0.74rem;
}

.stack-gap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-split > .stack-gap:first-child {
  gap: 24px;
}

.page-split > .stack-gap:first-child .section-header.section-header-left {
  max-width: 700px;
  margin-bottom: 0;
}

.page-split > .stack-gap:first-child .section-header.section-header-left .section-subtitle {
  margin-bottom: 0;
}

.page-split > aside.stack-gap {
  gap: 18px;
}

.founder-photo-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.16);
  background: rgba(10, 17, 40, 0.88);
  box-shadow: 0 0 36px rgba(59, 130, 246, 0.12);
  margin-bottom: 18px;
}

.founder-photo-frame::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(5, 10, 21, 0.62));
  pointer-events: none;
}

.founder-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 22%;
}

.leader-photo-frame {
  max-width: 132px;
  margin-bottom: 16px;
}

.leader-photo {
  aspect-ratio: 1 / 1;
}

.link-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  background: rgba(59, 130, 246, 0.05);
  color: var(--text-primary);
  font-size: 0.84rem;
  line-height: 1;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.link-chip:hover {
  color: var(--text-primary);
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(59, 130, 246, 0.1);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --- Noise texture overlay --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .nav-links {
    gap: 20px;
  }

  .nav-cta {
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
  }
}

@media (min-width: 1280px) {
  .hero:not(.subpage-hero) .hero-content {
    max-width: 980px;
  }

  .hero:not(.subpage-hero) .hero-title-line1 {
    white-space: nowrap;
  }
}

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

  .page-grid-three {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-split {
    grid-template-columns: 1fr;
  }

  .about-founder-strip {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px;
  }

  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    gap: 48px;
  }

  .roadmap-hints {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .nav-inner {
    gap: 12px;
  }

  .brand-mark-header {
    width: 52px;
    height: 52px;
  }

  .brand-wordmark-header {
    font-size: 1.02rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: linear-gradient(180deg, rgb(8, 14, 30), rgb(5, 10, 21));
    backdrop-filter: blur(18px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a:not(.btn)::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .lang-toggle {
    padding: 7px 12px;
    font-size: 0.75rem;
    margin-left: auto;
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 60px) 16px 60px;
  }

  .hero-orb-1, .hero-orb-2, .hero-orb-3 {
    width: 250px;
    height: 250px;
  }

  .section {
    padding: 80px 0;
  }

  .framework-grid {
    grid-template-columns: 1fr;
  }

  .page-grid-two,
  .page-grid-three {
    grid-template-columns: 1fr;
  }

  .topics-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

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

  .footer-brand-type {
    align-self: center;
  }

  .brand-mark-footer {
    width: 48px;
    height: 48px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-mission {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero-tech-line {
    display: none;
  }

  .section-label {
    font-size: 0.65rem;
  }

  .page-stat-strip {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 480px) {
  .brand-mark-header {
    width: 46px;
    height: 46px;
  }

  .brand-wordmark-header {
    font-size: 0.96rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-row {
    flex-direction: column;
    gap: 28px;
  }
}

/* ── CTA Banner (index.html) ─────────────────────────── */
.cta-banner {
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(6, 214, 160, 0.06) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-banner-inner h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.cta-banner-inner p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
  }
}
