:root {
  /* Premium Palette */
  --bg-color: #0f172a;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --secondary: #1e293b;
  --accent: #8b5cf6;
  --border: #334155;

  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --container-width: 1200px;
  --bra-radius: 8px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

ul {
  list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--bra-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--border);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: white;
}

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

.nav-links a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:not(.btn):hover {
  color: white;
}

/* Hero */
.hero {
  padding: 6rem 0;
  text-align: center;
  /* Default center for mobile */
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  text-align: left;
}

.hero-content {
  flex: 1;
}

.hero-content p.subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

#hero-diagram-placeholder {
  width: 100%;
  height: 300px;
  background: var(--secondary);
  border-radius: 12px;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Features */
.features {
  padding: 6rem 0;
  background-color: #0b1120;
}

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

.feature-card {
  background: var(--secondary);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.feature-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* How It Works */
.how-it-works {
  padding: 6rem 0;
  text-align: center;
}

.section-desc {
  max-width: 600px;
  margin: -2rem auto 3rem;
  font-size: 1.1rem;
}

.screenshot-gallery {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.screenshot-item {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.mockup {
  aspect-ratio: 16/9;
  background: var(--secondary);
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

/* Pricing */
.pricing {
  padding: 6rem 0;
}

.pricing-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.pricing-card {
  background: var(--secondary);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  width: 350px;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(to bottom, var(--secondary), #1e293b);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin: 1rem 0 0.5rem;
}

.pricing-card ul {
  margin: 2rem 0;
  flex: 1;
}

.pricing-card li {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.pricing-card li::before {
  content: "✓";
  color: var(--primary);
  margin-right: 0.5rem;
  font-weight: bold;
}

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  background-color: #020617;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-col a {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--text-muted);
}

.footer-col a:hover {
  text-decoration: underline;
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}