:root {
  color-scheme: dark;
  --bg: #071016;
  --bg-2: #0b1720;
  --text: #eef7fb;
  --muted: #9fb2bd;
  --line: rgba(195, 235, 255, 0.14);
  --card: rgba(13, 29, 40, 0.72);
  --card-strong: rgba(17, 42, 56, 0.9);
  --cyan: #27d9ff;
  --cyan-dark: #0496bd;
  --green: #a6f268;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius-lg: 34px;
  --radius-md: 22px;
  --radius-sm: 14px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f8fb;
  --bg-2: #eaf2f7;
  --text: #0a1b25;
  --muted: #60717d;
  --line: rgba(8, 65, 91, 0.14);
  --card: rgba(255, 255, 255, 0.78);
  --card-strong: rgba(255, 255, 255, 0.94);
  --cyan: #008db5;
  --cyan-dark: #02627e;
  --green: #3a9d45;
  --shadow: 0 24px 70px rgba(15, 59, 83, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 4%, rgba(39, 217, 255, 0.16), transparent 28rem),
    radial-gradient(circle at 82% 10%, rgba(166, 242, 104, 0.11), transparent 26rem),
    linear-gradient(145deg, var(--bg), var(--bg-2));
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

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

button, input, textarea { font: inherit; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  filter: blur(78px);
  opacity: 0.34;
  pointer-events: none;
}

.ambient-a { top: 8rem; left: -16rem; background: var(--cyan); }
.ambient-b { right: -18rem; bottom: 4rem; background: var(--green); opacity: 0.22; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card-strong) 82%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.brand, .header-actions, .main-nav { display: flex; align-items: center; }

.brand { gap: 10px; font-weight: 800; letter-spacing: -0.03em; }

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #031018;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 0 30px rgba(39, 217, 255, 0.28);
}

.brand-text { font-size: 1.08rem; }

.main-nav { gap: 22px; color: var(--muted); font-size: 0.93rem; }
.main-nav a:hover { color: var(--text); }

.header-actions { gap: 8px; }

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.theme-toggle span {
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
}

:root:not([data-theme="light"]) .theme-toggle__moon,
:root[data-theme="light"] .theme-toggle__sun {
  color: #031018;
  background: linear-gradient(135deg, var(--cyan), var(--green));
}

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
  gap: 46px;
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: 78px 0 64px;
}

.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.9;
  letter-spacing: -0.085em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4.15rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

h3 { margin-bottom: 10px; font-size: 1.1rem; letter-spacing: -0.03em; }

.hero-lead, .section-text, .section-heading p, .modal-copy {
  max-width: 710px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.62;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

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

.btn-primary {
  color: #031018;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 18px 44px rgba(39, 217, 255, 0.2);
}

.btn-secondary, .btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--card);
}

.btn-ghost { padding: 11px 16px; }
.btn.wide { width: 100%; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 44px;
  max-width: 650px;
}

.hero-metrics div, .dashboard-card, .feature-card, .roadmap-grid article, .enterprise-grid div, .partners-section, .final-cta, .modal-panel {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-metrics div {
  padding: 18px;
  border-radius: var(--radius-sm);
}

.hero-metrics strong { display: block; font-size: 1.35rem; }
.hero-metrics span { color: var(--muted); font-size: 0.86rem; }

.dashboard-card {
  position: relative;
  padding: 18px;
  border-radius: var(--radius-lg);
  transform: perspective(900px) rotateY(-7deg) rotateX(3deg);
}

.dashboard-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(39, 217, 255, 0.35), transparent 42%, rgba(166, 242, 104, 0.25));
}

.dashboard-topline, .compat-row, .module-rail, .final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-topline { margin-bottom: 18px; color: var(--muted); }
.dashboard-topline div { display: flex; align-items: center; gap: 9px; }

.dot { width: 9px; height: 9px; border-radius: 99px; background: var(--green); box-shadow: 0 0 18px var(--green); }

.status-pill {
  padding: 7px 11px;
  border-radius: 999px;
  color: #031018;
  background: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.metric-card {
  min-height: 124px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--card-strong) 74%, transparent);
}

.metric-card.large, .metric-card.wide { grid-column: span 2; }
.metric-card span { color: var(--muted); font-size: 0.88rem; }
.metric-card strong { display: block; margin-top: 10px; font-size: 2.65rem; letter-spacing: -0.06em; }

.progress { height: 10px; margin-top: 20px; overflow: hidden; border-radius: 999px; background: rgba(127, 151, 165, 0.2); }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--green)); }

.compat-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.compat-row:last-child { border-bottom: 0; }
.compat-row b { font-size: 0.95rem; }
.compat-row em { color: var(--green); font-style: normal; font-size: 0.8rem; font-weight: 800; }
.compat-row.muted em, .compat-row.muted b { color: var(--muted); }

.module-rail {
  margin-top: 14px;
  padding: 10px;
  border-radius: 999px;
  background: rgba(127, 151, 165, 0.1);
}
.module-rail span { flex: 1; padding: 9px; border-radius: 99px; color: var(--muted); text-align: center; font-size: 0.82rem; font-weight: 800; }
.module-rail .active { color: #031018; background: linear-gradient(135deg, var(--cyan), var(--green)); }

.split-section, .roadmap-section, .enterprise-section, .partners-section, .final-cta { padding: 86px 0; }

.split-section { display: grid; grid-template-columns: 0.82fr 1fr; gap: 34px; align-items: start; }

.feature-grid, .roadmap-grid, .enterprise-grid { display: grid; gap: 14px; }
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.feature-card, .roadmap-grid article { padding: 24px; border-radius: var(--radius-md); }
.feature-card span, .roadmap-grid span { color: var(--green); font-size: 0.76rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.feature-card p, .roadmap-grid p { color: var(--muted); line-height: 1.55; }

.section-heading { margin-bottom: 30px; }
.section-heading.compact { max-width: 760px; }

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

.enterprise-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.enterprise-grid div { padding: 26px; border-radius: var(--radius-md); }
.enterprise-grid strong { display: block; margin-bottom: 8px; font-size: 1.42rem; letter-spacing: -0.04em; }
.enterprise-grid span { color: var(--muted); }

.partners-section {
  padding: 42px;
  border-radius: var(--radius-lg);
}

.partner-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.partner-mark {
  min-width: 180px;
  padding: 24px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  background: color-mix(in srgb, var(--card-strong) 64%, transparent);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-align: center;
}

.final-cta {
  margin-top: 82px;
  margin-bottom: 34px;
  padding: 38px;
  border-radius: var(--radius-lg);
}
.final-cta h2 { max-width: 760px; font-size: clamp(1.85rem, 3vw, 3.2rem); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 44px;
  color: var(--muted);
  font-size: 0.9rem;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 8, 12, 0.7); backdrop-filter: blur(10px); }

.modal-panel {
  position: relative;
  width: min(500px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  padding: 24px;
  border-radius: 24px;
}

.modal-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 3.1vw, 2.15rem);
  line-height: 1.03;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--text);
  background: var(--card);
  cursor: pointer;
}

form { display: grid; gap: 10px; margin-top: 16px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 0.86rem; font-weight: 700; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 11px 13px;
  color: var(--text);
  background: color-mix(in srgb, var(--card-strong) 72%, transparent);
  outline: none;
}
input:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 18%, transparent); }

.form-note { min-height: 1.25em; margin: 10px 0 0; color: var(--green); line-height: 1.45; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .hero, .split-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 58px; }
  .dashboard-card { transform: none; }
  .roadmap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enterprise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .final-cta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .site-header { align-items: stretch; border-radius: 28px; flex-direction: column; }
  .header-actions { justify-content: space-between; }
  .header-actions .btn-ghost { display: none; }
  .hero-metrics, .feature-grid, .roadmap-grid, .enterprise-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .metric-card.large, .metric-card.wide { grid-column: auto; }
  .module-rail { display: none; }
  .split-section, .roadmap-section, .enterprise-section, .partners-section, .final-cta { padding: 54px 0; }
  .partners-section, .final-cta { padding: 24px; }
  .modal-panel { padding: 20px; }
  .site-footer { flex-direction: column; }
}
