:root {
  --bg: #050816;
  --bg-light: #0b1020;
  --bg-lighter: #10172b;
  --accent: #34d399;
  --accent-soft: rgba(52, 211, 153, 0.15);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --danger: #f97373;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: radial-gradient(circle at top, #1f2933 0, #020617 55%);
  color: var(--text);
  line-height: 1.6;
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section.light {
  background: var(--bg-light);
}

.section.dark {
  background: #020617;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  max-width: 640px;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo a {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text);
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1.5rem;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent) !important;
}

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.2fr);
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 3vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-text p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.hero-subtext {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 320px;
  padding: 1.5rem;
  border-radius: 1rem;
  background: radial-gradient(circle at top left, #1e293b 0, #020617 55%);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
}

.hero-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.hero-card p {
  color: var(--muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, #22c55e, #0ea5e9);
  color: #020617;
  font-weight: 600;
}

.btn.ghost {
  border-color: rgba(148, 163, 184, 0.5);
  color: var(--text);
  background: transparent;
}

/* Cards and grids */
.card-grid {
  display: grid;
  gap: 1.8rem;
  margin-top: 2rem;
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--bg-lighter);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--muted);
}

/* Technology */
.tech-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: flex-start;
}

.tech-panel {
  background: var(--bg-lighter);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Lists */
.list-check,
.list-dot {
  list-style: none;
  padding-left: 0;
}

.list-check li::before {
  content: "✓";
  color: var(--accent);
  margin-right: 0.5rem;
}

.list-dot li::before {
  content: "•";
  color: var(--accent);
  margin-right: 0.5rem;
}

.list-check li,
.list-dot li {
  color: var(--muted);
  margin-bottom: 0.4rem;
}

/* Metrics */
.metrics-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.metric {
  padding: 1.4rem;
  border-radius: 1rem;
  background: var(--bg-lighter);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.metric-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
}

.metric-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.metrics-note {
  font-size: 0.8rem;
  color: var(--muted);
}

/* CTA section */
.cta-section {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(56, 189, 248, 0.06));
}

.cta-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

/* Footer */
.site-footer {
  background: #020617;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.2fr 1.2fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.site-footer h3,
.site-footer h4 {
  margin-top: 0;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.footer-bottom {
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  padding-top: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .tech-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .nav-bar {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .main-nav a {
    margin-left: 0.8rem;
  }
}
