:root {
  --color-bg: #0a0a12;
  --color-surface: #1a1a2e;
  --color-primary: #2dce89;
  --color-danger: #f5365c;
  --color-text: #e9ecef;
  --color-text-dim: #94a3b8;
  --color-border: rgba(255, 255, 255, 0.1);
  
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

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

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 6rem);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 18, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-dot {
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-dim);
}

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

/* Hero Section */
.hero {
  padding-top: var(--space-2xl);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto var(--space-xl) auto;
  z-index: 10;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: var(--space-md);
  letter-spacing: -0.04em;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--color-text-dim);
  max-width: 700px;
  margin: 0 auto;
}

/* The Split Visual */
.split-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  height: 600px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}

.visual-pane {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Left Pane: Vulnerable */
.pane-vulnerable {
  background: linear-gradient(135deg, #1a1a2e 0%, #0d0d1a 100%);
  border-right: 1px solid rgba(245, 54, 92, 0.3);
}

.pane-vulnerable::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 70% 50%, rgba(245, 54, 92, 0.1) 0%, transparent 70%);
}

/* Right Pane: Protected */
.pane-protected {
  background: linear-gradient(135deg, #0d0d1a 0%, #1a1a2e 100%);
}

.pane-protected::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(45, 206, 137, 0.1) 0%, transparent 70%);
}

/* Vault Graphics */
.vault-container {
  width: 240px;
  height: 300px;
  position: relative;
  z-index: 5;
}

.vault-body {
  width: 100%;
  height: 100%;
  background: #2d3748;
  border-radius: 12px;
  border: 4px solid #4a5568;
  position: relative;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5);
}

.vault-door {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  background: #4a5568;
  border-radius: 8px;
  border: 2px solid #718096;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vault-handle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 8px solid #a0aec0;
  position: relative;
}

/* Vulnerable State */
.vulnerable-vault .vault-door {
  transform-origin: left;
  transform: rotateY(-40deg);
  box-shadow: 10px 0 20px rgba(0,0,0,0.5);
}

.vulnerable-vault .crack {
  position: absolute;
  background: var(--color-danger);
  opacity: 0.6;
  box-shadow: 0 0 10px var(--color-danger);
}

.leak-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ffd700;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffd700;
  z-index: 10;
}

/* Protected State */
.protected-vault .shield {
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 206, 137, 0.1) 0%, rgba(45, 206, 137, 0.05) 100%);
  box-shadow: 0 0 30px rgba(45, 206, 137, 0.3), inset 0 0 20px rgba(45, 206, 137, 0.2);
  z-index: 6;
}

.shield-hex {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0l17.32 10v20L20 40 2.68 30V10z' fill='none' stroke='rgba(45, 206, 137, 0.1)' stroke-width='1'/%3E%3C/svg%3E");
  border-radius: 50%;
}

/* Bot Represention */
.bot {
  position: absolute;
  width: 32px;
  height: 32px;
  z-index: 15;
}

.bot-body {
  width: 16px;
  height: 16px;
  background: #2d3748;
  border-radius: 4px;
  position: relative;
}

.bot-eye {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-danger);
  box-shadow: 0 0 5px var(--color-danger);
}

/* Labels */
.visual-label {
  position: absolute;
  bottom: 2rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.label-vulnerable {
  color: var(--color-danger);
  left: 2rem;
}

.label-protected {
  color: var(--color-primary);
  right: 2rem;
}

/* Sections */
section {
  margin-top: var(--space-2xl);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: var(--space-lg);
  border-radius: 20px;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-10px);
  border-color: rgba(255,255,255,0.2);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--color-text-dim);
}

/* Footer */
footer {
  margin-top: var(--space-2xl);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  background: #0a0a12;
}

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

.footer-brand {
  max-width: 300px;
}

.footer-tagline {
  margin-top: var(--space-sm);
  color: var(--color-text-dim);
  font-size: 0.9rem;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-family: var(--font-display);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--color-primary);
  color: #000;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(45, 206, 137, 0.4);
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-shield {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

@keyframes leak {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(-100px, 150px) scale(0); opacity: 0; }
}

.floating { animation: float 4s ease-in-out infinite; }
.shield-anim { animation: pulse-shield 3s ease-in-out infinite; }

.leak-1 { animation: leak 2s linear infinite; top: 40%; left: 45%; }
.leak-2 { animation: leak 2.5s linear infinite 0.5s; top: 50%; left: 45%; }
.leak-3 { animation: leak 1.8s linear infinite 1.2s; top: 60%; left: 45%; }
