/* =============================================
   agent-Kryptos — Design System & Styles
   ============================================= */

:root {
  /* Colors */
  --bg-primary: #060a14;
  --bg-secondary: #0c1222;
  --bg-card: rgba(14, 22, 42, 0.6);
  --bg-card-hover: rgba(20, 30, 55, 0.8);
  --border-color: rgba(100, 200, 255, 0.08);
  --border-hover: rgba(0, 245, 212, 0.2);

  --text-primary: #f0f4ff;
  --text-secondary: #8892a8;
  --text-muted: #5a6478;

  --cyan: #00f5d4;
  --cyan-dim: rgba(0, 245, 212, 0.15);
  --purple: #7b61ff;
  --purple-dim: rgba(123, 97, 255, 0.15);
  --danger: #ff4757;
  --danger-dim: rgba(255, 71, 87, 0.12);
  --green: #2ed573;
  --blue: #3b82f6;
  --orange: #ff9f43;

  --gradient-text: linear-gradient(135deg, #00f5d4 0%, #7b61ff 100%);
  --gradient-btn: linear-gradient(135deg, #00f5d4 0%, #00b4d8 50%, #7b61ff 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(0, 245, 212, 0.1) 0%, transparent 70%);

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

  /* Spacing */
  --section-padding: 120px 0;
  --container-max: 1200px;
  --border-radius: 12px;
  --border-radius-lg: 20px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================
   Reset & Base
   ============================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Particle Canvas */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* =============================================
   Navigation
   ============================================= */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition-smooth);
  backdrop-filter: blur(0px);
}

#navbar.scrolled {
  padding: 10px 0;
  background: rgba(6, 10, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  z-index: 1001;
}

.logo-icon {
  font-size: 22px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-text);
  transition: var(--transition-fast);
  border-radius: 1px;
}

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

.nav-cta {
  background: var(--gradient-btn);
  color: var(--bg-primary) !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: var(--transition-fast);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 245, 212, 0.3);
}

.nav-cta::after {
  display: none !important;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
  border-radius: 2px;
}

/* =============================================
   Buttons
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-sans);
  transition: var(--transition-fast);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-btn);
  color: var(--bg-primary);
  box-shadow: 0 2px 16px rgba(0, 245, 212, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 245, 212, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--border-hover);
  background: rgba(0, 245, 212, 0.05);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 12px;
}

/* =============================================
   Gradient Text
   ============================================= */

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

/* =============================================
   Section Shared
   ============================================= */

section {
  position: relative;
  z-index: 1;
}

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--section-padding);
  padding-left: 32px;
  padding-right: 32px;
}

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

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--cyan);
  margin-bottom: 16px;
  padding: 6px 16px;
  background: var(--cyan-dim);
  border-radius: 20px;
  border: 1px solid rgba(0, 245, 212, 0.15);
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =============================================
   Hero Section
   ============================================= */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -20%;
  width: 80%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(0, 245, 212, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -20%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(123, 97, 255, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 120px 32px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid rgba(0, 245, 212, 0.15);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 24px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 245, 212, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(0, 245, 212, 0); }
}

.hero-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.stat-number {
  font-size: 24px;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

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

/* Hero Visual */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.shield-container {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shield-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: rotate-ring linear infinite;
}

.ring-1 {
  width: 300px;
  height: 300px;
  border-color: rgba(0, 245, 212, 0.15);
  animation-duration: 20s;
}

.ring-2 {
  width: 220px;
  height: 220px;
  border-color: rgba(123, 97, 255, 0.15);
  animation-duration: 15s;
  animation-direction: reverse;
}

.ring-3 {
  width: 150px;
  height: 150px;
  border-color: rgba(0, 245, 212, 0.2);
  animation-duration: 10s;
}

.ring-1::after, .ring-2::after, .ring-3::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--cyan);
}

.ring-2::after {
  background: var(--purple);
  box-shadow: 0 0 12px var(--purple);
}

@keyframes rotate-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.shield-core {
  position: relative;
  z-index: 2;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 245, 212, 0.05);
  border-radius: 50%;
  border: 1px solid rgba(0, 245, 212, 0.2);
  box-shadow: 0 0 60px rgba(0, 245, 212, 0.1), inset 0 0 30px rgba(0, 245, 212, 0.05);
  animation: core-pulse 3s ease-in-out infinite;
}

@keyframes core-pulse {
  0%, 100% { box-shadow: 0 0 60px rgba(0, 245, 212, 0.1), inset 0 0 30px rgba(0, 245, 212, 0.05); }
  50% { box-shadow: 0 0 80px rgba(0, 245, 212, 0.2), inset 0 0 40px rgba(0, 245, 212, 0.1); }
}

.data-stream {
  position: absolute;
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--cyan), transparent);
  opacity: 0.4;
  animation: stream 3s ease-in-out infinite;
}

.stream-1 { top: 20px; left: 50%; animation-delay: 0s; }
.stream-2 { bottom: 20px; left: 50%; animation-delay: 0.8s; transform: rotate(180deg); }
.stream-3 { top: 50%; left: 20px; animation-delay: 1.5s; transform: rotate(90deg); }
.stream-4 { top: 50%; right: 20px; animation-delay: 2.2s; transform: rotate(-90deg); }

@keyframes stream {
  0%, 100% { opacity: 0.1; transform: translateY(0) scaleY(0.5); }
  50% { opacity: 0.6; transform: translateY(-20px) scaleY(1); }
}

/* =============================================
   Problem Section
   ============================================= */

#problem {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 36px;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--danger), transparent);
  opacity: 0;
  transition: var(--transition-smooth);
}

.problem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 71, 87, 0.2);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.problem-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.problem-icon.danger {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(255, 71, 87, 0.15);
}

.problem-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.problem-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =============================================
   How It Works Section
   ============================================= */

#how-it-works {
  background: var(--bg-secondary);
}

.flow-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.flow-line {
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple));
  opacity: 0.3;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.flow-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  font-family: var(--font-mono);
  color: var(--cyan);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.15);
}

.step-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 28px 32px;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.step-card:hover {
  border-color: var(--border-hover);
  transform: translateX(8px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.step-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =============================================
   Architecture Section
   ============================================= */

#architecture {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.arch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 36px;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.arch-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(0, 245, 212, 0.03) 0%, transparent 50%);
  opacity: 0;
  transition: var(--transition-smooth);
  pointer-events: none;
}

.arch-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.arch-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(0, 245, 212, 0.15);
}

.arch-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.arch-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.arch-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.arch-tags span {
  padding: 4px 12px;
  background: rgba(0, 245, 212, 0.06);
  border: 1px solid rgba(0, 245, 212, 0.1);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--cyan);
  font-family: var(--font-mono);
}

/* =============================================
   Defense in Depth Section
   ============================================= */

#defense {
  background: var(--bg-primary);
  position: relative;
}

#defense::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(123, 97, 255, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.defense-stack {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.defense-layer {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
  cursor: default;
}

.defense-layer:hover {
  transform: translateX(8px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.layer-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-muted);
  min-width: 28px;
}

.layer-content {
  flex: 1;
}

.layer-content h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.layer-content p {
  font-size: 13px;
  color: var(--text-muted);
}

.layer-badge {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: rgba(100, 200, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

.layer-badge.highlight {
  background: var(--cyan-dim);
  color: var(--cyan);
  border-color: rgba(0, 245, 212, 0.2);
}

/* Layer gradient coloring */
.defense-layer[data-layer="1"] { border-left: 3px solid #00f5d4; }
.defense-layer[data-layer="2"] { border-left: 3px solid #00e0c6; }
.defense-layer[data-layer="3"] { border-left: 3px solid #00ccb8; }
.defense-layer[data-layer="4"] { border-left: 3px solid #1ab8c0; }
.defense-layer[data-layer="5"] { border-left: 3px solid #33a4c8; }
.defense-layer[data-layer="6"] { border-left: 3px solid #4d90d0; }
.defense-layer[data-layer="7"] { border-left: 3px solid #5a7ed5; }
.defense-layer[data-layer="8"] { border-left: 3px solid #6070dd; }
.defense-layer[data-layer="9"] { border-left: 3px solid #6a65e5; }
.defense-layer[data-layer="10"] { border-left: 3px solid #7261f0; }
.defense-layer[data-layer="11"] { border-left: 3px solid #7b61ff; }

/* =============================================
   Features Section
   ============================================= */

#features {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 36px;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon.cyan {
  background: var(--cyan-dim);
  color: var(--cyan);
  border: 1px solid rgba(0, 245, 212, 0.15);
}

.feature-icon.purple {
  background: var(--purple-dim);
  color: var(--purple);
  border: 1px solid rgba(123, 97, 255, 0.15);
}

.feature-icon.green {
  background: rgba(46, 213, 115, 0.12);
  color: var(--green);
  border: 1px solid rgba(46, 213, 115, 0.15);
}

.feature-icon.blue {
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.feature-icon.orange {
  background: rgba(255, 159, 67, 0.12);
  color: var(--orange);
  border: 1px solid rgba(255, 159, 67, 0.15);
}

.feature-icon.red {
  background: var(--danger-dim);
  color: var(--danger);
  border: 1px solid rgba(255, 71, 87, 0.15);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =============================================
   Get Started Section
   ============================================= */

#get-started {
  background: var(--bg-secondary);
  position: relative;
}

#get-started::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 245, 212, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.terminal-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.terminal {
  background: #0d1117;
  border: 1px solid rgba(100, 200, 255, 0.12);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.terminal-header {
  padding: 14px 20px;
  background: #161b22;
  border-bottom: 1px solid rgba(100, 200, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 16px;
}

.terminal-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.terminal-body {
  padding: 28px;
  overflow-x: auto;
}

.terminal-body pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.8;
}

.terminal-body code {
  font-family: inherit;
}

.terminal-body .comment { color: #6a737d; }
.terminal-body .prompt { color: var(--cyan); font-weight: 700; }
.terminal-body .cmd { color: #79c0ff; }
.terminal-body .output { color: #8b949e; }
.terminal-body .keyword { color: #ff7b72; }
.terminal-body .func { color: #d2a8ff; }
.terminal-body .string { color: #a5d6ff; }

.cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* =============================================
   Footer
   ============================================= */

#footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 64px 32px 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 300px;
}

.footer-links {
  display: flex;
  gap: 80px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
  transition: var(--transition-fast);
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 14px;
  color: var(--text-muted);
}

.footer-copyright {
  font-size: 13px !important;
}

/* =============================================
   Animations
   ============================================= */

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animations for grids */
.problem-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.problem-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.problem-grid [data-animate]:nth-child(4) { transition-delay: 0.3s; }

.arch-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.arch-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.arch-grid [data-animate]:nth-child(4) { transition-delay: 0.3s; }

.features-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.features-grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.features-grid [data-animate]:nth-child(4) { transition-delay: 0.3s; }
.features-grid [data-animate]:nth-child(5) { transition-delay: 0.4s; }
.features-grid [data-animate]:nth-child(6) { transition-delay: 0.5s; }

.flow-steps [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.flow-steps [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.flow-steps [data-animate]:nth-child(4) { transition-delay: 0.3s; }
.flow-steps [data-animate]:nth-child(5) { transition-delay: 0.4s; }

.defense-stack [data-animate]:nth-child(2) { transition-delay: 0.05s; }
.defense-stack [data-animate]:nth-child(3) { transition-delay: 0.1s; }
.defense-stack [data-animate]:nth-child(4) { transition-delay: 0.15s; }
.defense-stack [data-animate]:nth-child(5) { transition-delay: 0.2s; }
.defense-stack [data-animate]:nth-child(6) { transition-delay: 0.25s; }
.defense-stack [data-animate]:nth-child(7) { transition-delay: 0.3s; }
.defense-stack [data-animate]:nth-child(8) { transition-delay: 0.35s; }
.defense-stack [data-animate]:nth-child(9) { transition-delay: 0.4s; }
.defense-stack [data-animate]:nth-child(10) { transition-delay: 0.45s; }
.defense-stack [data-animate]:nth-child(11) { transition-delay: 0.5s; }

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-description {
    margin: 0 auto 36px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
  }

  .shield-container {
    width: 300px;
    height: 300px;
  }

  .ring-1 { width: 240px; height: 240px; }
  .ring-2 { width: 180px; height: 180px; }
  .ring-3 { width: 120px; height: 120px; }

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

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 10, 20, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 1000;
  }

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

  .nav-links a {
    font-size: 20px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-container {
    padding: 100px 20px 60px;
  }

  .hero-title {
    font-size: 32px;
  }

  .problem-grid,
  .arch-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .footer-links {
    gap: 48px;
  }

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

  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
  }

  .defense-layer {
    padding: 14px 16px;
    gap: 12px;
  }

  .layer-badge {
    display: none;
  }
}

@media (max-width: 480px) {
  .section-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-container {
    padding: 90px 16px 50px;
  }

  .terminal-body {
    padding: 16px;
  }

  .terminal-body pre {
    font-size: 12px;
  }
}
