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

:root {
  --bg-deep: #0a0a12;
  --bg-dark: #0d0d1a;
  --bg-storm: #12121f;
  --bg-cloud: #1a1a2e;
  --bg-lighter: #252538;
  --accent-blue: #3b82f6;
  --accent-cyan: #22d3ee;
  --accent-purple: #8b5cf6;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --diff-add-bg: rgba(34, 197, 94, 0.15);
  --diff-add-text: #4ade80;
  --diff-remove-bg: rgba(239, 68, 68, 0.15);
  --diff-remove-text: #f87171;
  --glow-blue: 0 0 30px rgba(59, 130, 246, 0.3);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

.storm-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.04) 0%, transparent 40%);
}

.storm-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg-deep) 100%);
}

@keyframes lightning {
  0%, 95%, 100% { opacity: 0; }
  96%, 99% { opacity: 0.1; }
}

.lightning {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(180deg, rgba(200, 220, 255, 0.03) 0%, transparent 100%);
  animation: lightning 8s infinite;
  pointer-events: none;
  z-index: 0;
}

nav {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: rgba(10, 10, 18, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.nav-cta {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-blue);
}

main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 5%;
}

.hero {
  text-align: center;
  margin-bottom: 4rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.diff-window {
  background: var(--bg-storm);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(59, 130, 246, 0.1),
    var(--glow-blue);
  margin: 3rem auto;
  max-width: 800px;
  text-align: left;
}

.diff-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-cloud);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.diff-dot.red { background: #ef4444; }
.diff-dot.yellow { background: #eab308; }
.diff-dot.green { background: #22c55e; }

.diff-title {
  margin-left: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.diff-content {
  padding: 1.5rem;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.9rem;
  line-height: 1.7;
  overflow-x: auto;
}

.diff-line {
  display: flex;
  margin: 0 -1.5rem;
  padding: 0.1rem 1.5rem;
}

.diff-line.remove {
  background: var(--diff-remove-bg);
}

.diff-line.add {
  background: var(--diff-add-bg);
}

.line-number {
  color: var(--text-secondary);
  opacity: 0.5;
  min-width: 3rem;
  user-select: none;
}

.line-symbol {
  min-width: 1.5rem;
  font-weight: bold;
}

.diff-line.remove .line-symbol { color: var(--diff-remove-text); }
.diff-line.add .line-symbol { color: var(--diff-add-text); }

.line-content {
  flex: 1;
}

.diff-line.remove .line-content { color: var(--diff-remove-text); }
.diff-line.add .line-content { color: var(--diff-add-text); }

.code-keyword { color: #c792ea; }
.code-function { color: #82aaff; }
.code-string { color: #c3e88d; }
.code-comment { color: #546e7a; font-style: italic; }
.code-variable { color: #f78c6c; }

.cta-section {
  text-align: center;
  margin: 4rem 0;
}

.cta-button {
  display: inline-block;
  padding: 1rem 3rem;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 20px 40px -15px rgba(59, 130, 246, 0.5),
    0 0 60px rgba(139, 92, 246, 0.3);
}

.cta-subtext {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 5rem;
}

.feature-card {
  background: linear-gradient(135deg, var(--bg-storm), var(--bg-cloud));
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 5%;
  margin-top: 4rem;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .diff-content {
    font-size: 0.8rem;
    padding: 1rem;
  }
  
  .diff-line {
    margin: 0 -1rem;
    padding: 0.1rem 1rem;
  }

  .line-number {
    min-width: 2rem;
  }

  nav {
    padding: 1rem 4%;
  }

  main {
    padding: 2rem 4%;
  }
}
