:root {
  --bg-color: #050505;
  --surface-color: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border-color: rgba(255, 255, 255, 0.08);
  --accent-neon: #39ff14;
  --accent-cyan: #00f0ff;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Offset for fixed navbar */
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(57, 255, 20, 0.03), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.03), transparent 25%);
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }
@keyframes pulseGlow { 0% { box-shadow: 0 0 15px rgba(57, 255, 20, 0.2); } 50% { box-shadow: 0 0 30px rgba(57, 255, 20, 0.5); } 100% { box-shadow: 0 0 15px rgba(57, 255, 20, 0.2); } }

/* Utility */
.glass {
  background: var(--surface-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

.text-gradient {
  background: linear-gradient(90deg, #ffffff, var(--accent-neon));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-wrapper {
  padding: 8rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

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

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Navbar (Transparent at top, frosted on scroll) */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.25rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

nav.nav-scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

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

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

.btn-primary {
  background: var(--accent-neon);
  color: #000;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-outline:hover {
  background: var(--surface-hover);
  border-color: rgba(255,255,255,0.2);
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 5% 40px;
  text-align: center;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(57, 255, 20, 0.05);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--accent-neon);
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.05;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -2px;
  max-width: 900px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.command-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #09090b;
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-primary);
  width: 100%;
  max-width: 450px;
  margin: 0 auto 2rem;
}

.command-box .copy-icon {
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}

.command-box .copy-icon:hover {
  color: var(--text-primary);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  transition: transform 0.3s, background 0.3s;
}

.feature-card:hover {
  background: var(--surface-hover);
  border-color: rgba(255,255,255,0.15);
}

.icon-wrapper {
  width: 48px;
  height: 48px;
  background: rgba(57, 255, 20, 0.05);
  border: 1px solid rgba(57, 255, 20, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-neon);
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* How It Works (Steps) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.step-card {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  background: rgba(57, 255, 20, 0.1);
  color: var(--accent-neon);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 1.5rem;
}

.step-card h3 { margin-bottom: 0.5rem; }
.step-card p { color: var(--text-secondary); margin-bottom: 1.5rem; font-size: 0.95rem; }

.step-code {
  background: #09090b;
  border: 1px solid var(--border-color);
  padding: 1rem;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  text-align: left;
}

/* Terminal Mockup / Workflow */
.workflow-section {
  padding: 4rem 5% 8rem;
  max-width: 1000px;
  margin: 0 auto;
}

.terminal-window {
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  animation: float 6s ease-in-out infinite;
}

/* Ambient Floating Objects */
.ambient-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: floatOrb 20s infinite alternate ease-in-out;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5vw, 10vh) scale(1.1); }
  100% { transform: translate(-5vw, -5vh) scale(0.9); }
}

.orb-1 {
  width: 400px; height: 400px;
  background: var(--accent-neon);
  top: -10%; left: -5%;
}

.orb-2 {
  width: 300px; height: 300px;
  background: var(--accent-cyan);
  top: 40%; right: -5%;
  animation-duration: 25s;
}

.orb-3 {
  width: 250px; height: 250px;
  background: #fff;
  bottom: -10%; left: 20%;
  opacity: 0.05;
  animation-duration: 30s;
}

/* Single Showcase Layout */
.showcase-section {
  padding: 4rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.simulation-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.showcase-window {
  position: relative;
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.showcase-window img {
  width: 100%;
  height: auto;
  display: block;
}

.typing-cursor::after {
  content: '█';
  animation: blink 1s step-end infinite;
  color: #fff;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.terminal-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #ff5f56; }
.dot.y { background: #ffbd2e; }
.dot.g { background: #27c93f; }

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #a1a1aa;
  text-align: left;
  line-height: 1.8;
  flex: 1;
}

/* Position text over the white "guest" area of the Atlas UI */
.screenshot-overlay {
  position: absolute;
  top: 55%;
  left: 35%;
  transform: translate(-50%, -50%);
  width: 45%;
  text-align: center;
}

.screenshot-overlay h3 {
  color: #111;
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.screenshot-overlay p {
  color: #555;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Why Atlas (3 cols) */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
}

.why-grid .icon-wrapper {
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
}

/* Bottom CTA */
.bottom-cta {
  text-align: center;
  padding: 8rem 5%;
  border-top: 1px solid var(--border-color);
}

.bottom-cta h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.bottom-cta p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
}

/* Footer */
footer {
  padding: 6rem 5% 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  background: #000;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.footer-brand .logo {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.footer-socials a {
  color: var(--text-secondary);
  transition: color 0.3s;
  display: inline-block;
}

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

.footer-links-col h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links-col a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  transition: color 0.3s;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .steps-grid, .why-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 3rem; }
  .nav-links { display: none; }
  footer { flex-direction: column; gap: 1rem; }
}
