:root {
  --bg: #0d1117;
  --bg-soft: #111826;
  --surface: rgba(17, 24, 38, 0.76);
  --surface-strong: #161f31;
  --surface-light: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: #edf2ff;
  --muted: #99a7c2;
  --accent: #72f0b1;
  --accent-strong: #44d692;
  --accent-alt: #7bc8ff;
  --danger: #ff7f7f;
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  --radius-sm: 16px;
  --max-width: 1320px;
  --transition: 180ms ease;
  --font-sans: "Inter", "Segoe UI", sans-serif;
}

html[data-theme='light'] {
  --bg: #eff3fb;
  --bg-soft: #f7f9fc;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #ffffff;
  --surface-light: rgba(12, 23, 39, 0.04);
  --border: rgba(22, 31, 49, 0.1);
  --text: #0b1220;
  --muted: #5e6b81;
  --accent: #0f9f68;
  --accent-strong: #0a7d51;
  --accent-alt: #2d7ef7;
  --danger: #d04b4b;
  --shadow: 0 20px 45px rgba(23, 34, 56, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(114, 240, 177, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(123, 200, 255, 0.16), transparent 26%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.glass-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #07111c;
  font-weight: 700;
  padding: 0.9rem 1.35rem;
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition);
  box-shadow: 0 14px 30px rgba(114, 240, 177, 0.18);
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.button-secondary {
  background: var(--surface-light);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--border);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(114, 240, 177, 0.28);
  color: var(--accent);
  background: rgba(114, 240, 177, 0.08);
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

code {
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.14);
  padding: 0.55rem 0.8rem;
  color: var(--accent);
  overflow-wrap: anywhere;
}

.marketing-shell {
  position: relative;
  overflow-x: hidden;
}

.marketing-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(114, 240, 177, 0.07), transparent 35%),
    linear-gradient(225deg, rgba(123, 200, 255, 0.07), transparent 30%);
}

.marketing-header,
.hero,
.feature-section,
.integration-callout {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.marketing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.brand {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.marketing-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: 5rem 0 3rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 1rem 0 1.25rem;
}

.hero p,
.feature-card p,
.integration-callout p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-meta {
  margin-top: 1.2rem;
  color: var(--muted);
}

.hero-preview {
  border-radius: var(--radius);
  padding: 1.25rem;
}

.preview-header {
  display: flex;
  gap: 0.45rem;
}

.preview-dot {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
}

.preview-content {
  padding-top: 1.4rem;
}

.preview-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.preview-stat strong {
  font-size: 2rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding-top: 1.25rem;
}

.preview-grid div {
  aspect-ratio: 1;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(114, 240, 177, 0.22), rgba(123, 200, 255, 0.08));
  border: 1px solid var(--border);
}

.feature-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 2rem 0 4rem;
}

.feature-card,
.integration-callout {
  border-radius: var(--radius);
  padding: 1.6rem;
}

.integration-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

@media (max-width: 980px) {
  .hero,
  .feature-section {
    grid-template-columns: 1fr;
  }

  .marketing-header,
  .marketing-nav,
  .integration-callout {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .marketing-header {
    gap: 1rem;
  }

  .hero {
    padding-top: 3rem;
  }
}
