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

:root {
  --bg: #0a0f1e;
  --bg-alt: #0d1426;
  --footer-bg: #050a14;
  --accent: #00d4ff;
  --accent-2: #ff3366;
  --text-headline: #e2e8f0;
  --text-body: #94a3b8;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(0, 212, 255, 0.15);
  --radius: 12px;
  --max-width: 1100px;
  --section-pad-desktop: 80px 24px;
  --section-pad-mobile: 48px 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

section {
  padding: var(--section-pad-desktop);
  position: relative;
}

.alt-section {
  background: var(--bg-alt);
}

.section-title {
  color: var(--text-headline);
  font-size: clamp(2rem, 4vw, 2.5rem);
  line-height: 1.2;
  text-align: center;
  margin-bottom: 16px;
}

.section-subtext {
  color: var(--text-body);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto 44px;
  text-align: center;
}

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.nav-links a {
  color: var(--text-headline);
  font-size: 0.95rem;
  opacity: 0.9;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
  opacity: 1;
}

.hero {
  min-height: 100vh;
  background: #050d1f;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: 110px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.hero h1 {
  color: var(--text-headline);
  font-size: clamp(3rem, 9vw, 5rem);
  line-height: 1;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero h2 {
  color: var(--text-body);
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 22px;
}

.hero-tagline {
  color: var(--text-headline);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 10px 28px rgba(0, 212, 255, 0.2);
}

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.badge-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.badge-pill {
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--text-body);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.06);
}

.card-grid-3,
.card-grid-4,
.card-grid-2 {
  display: grid;
  gap: 24px;
}

.card-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  padding: 28px;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.card h3 {
  color: var(--text-headline);
  font-size: 1.1rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.card p,
.card li {
  color: var(--text-body);
  font-size: 0.9rem;
}

.card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.card ul li::before {
  content: "• ";
  color: var(--text-body);
}

.card-border-cyan {
  border-left: 3px solid var(--accent);
}

.card-border-red {
  border-left: 3px solid var(--accent-2);
}

.use-case-note {
  color: var(--accent);
  font-style: italic;
}

.flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.step-card {
  min-width: 280px;
  flex: 1;
}

.step-num {
  width: 36px;
  height: 36px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}

.flow-arrow {
  align-self: center;
  color: var(--accent);
  font-size: 1.7rem;
  padding: 0 2px;
}

.code-block {
  background: #050a14;
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 8px;
  padding: 24px;
  color: #b8c8db;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-x: auto;
  margin-bottom: 22px;
}

.dev-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.cyan-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer {
  background: var(--footer-bg);
  border-top: 1px solid rgba(0, 212, 255, 0.12);
  padding: 42px 20px;
  text-align: center;
}

.footer-logo {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-headline);
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.footer-copy {
  color: var(--text-body);
  font-size: 0.8rem;
  max-width: 850px;
  margin: 0 auto 8px;
}

.footer-contact {
  color: var(--text-body);
  font-size: 0.9rem;
}

.legal-page {
  padding-top: 120px;
  min-height: 100vh;
}

.legal-page h1 {
  color: var(--text-headline);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--text-body);
  margin-bottom: 30px;
}

.legal-section {
  margin-bottom: 22px;
}

.legal-section h2 {
  color: var(--text-headline);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.legal-section p {
  color: var(--text-body);
  font-size: 0.95rem;
}

@media (max-width: 1100px) {
  .card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  section {
    padding: var(--section-pad-mobile);
  }

  .nav-inner {
    padding: 12px 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    gap: 12px;
  }

  .hero {
    padding-top: 140px;
  }

  .card-grid-3,
  .card-grid-4,
  .card-grid-2,
  .dev-cards {
    grid-template-columns: 1fr;
  }

  .flow {
    flex-direction: column;
    gap: 18px;
  }

  .flow-arrow {
    display: none;
  }
}
