@import url("https://fonts.googleapis.com/css2?family=Exo+2:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --cyan: #00b3df;
  --violet: #9d00ff;
  --green: #00ffa2;
  --apricot: #ffc342;
  --magenta: #ff54d8;
  --ink: #0f1824;
  --ink-soft: #657385;
  --muted: #657385;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --line: #d9e1eb;
  --soft: #ecf2f9;
}

html[data-theme="dark"] {
  --ink: #e9eef3;
  --ink-soft: #9098a6;
  --muted: #9098a6;
  --bg: #0b0e11;
  --surface: #12161b;
  --line: #1e242c;
  --soft: #0f141a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 0 0, rgba(0, 179, 223, 0.08), transparent 42%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
  font-size: 15px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 0 0, rgba(0, 179, 223, 0.14), transparent 44%),
    linear-gradient(180deg, #0d1218 0%, #090d12 100%);
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  flex: 1 0 auto;
}

.container {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow {
  width: min(980px, 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 251, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

html[data-theme="dark"] .site-header {
  background: rgba(11, 14, 17, 0.95);
}

.theme-toggle {
  position: fixed;
  top: auto;
  left: 16px;
  bottom: 16px;
  right: auto;
  z-index: 999;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 200, 255, 0.2);
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.4);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.nav-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.brand-lockup {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 1px;
  padding: 0;
  background: transparent;
  color: var(--cyan);
  font-family: "Exo 2", "Inter", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.55rem, 2.3vw, 1.95rem);
  line-height: 1;
  text-shadow:
    0 0 6px color-mix(in srgb, var(--cyan) 45%, transparent),
    0 0 14px color-mix(in srgb, var(--cyan) 30%, transparent);
}

html[data-theme="dark"] .brand-mark {
  color: var(--cyan);
}

.brand-mark-a {
  position: relative;
  color: var(--apricot);
}

.brand-mark-a::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 57%;
  transform: translate(-50%, -50%);
  width: 0.46em;
  height: 0.1em;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--cyan) 88%, #ffffff 12%) 0%,
    color-mix(in srgb, var(--cyan) 66%, #0f1824 34%) 100%
  );
  box-shadow:
    0 0 8px color-mix(in srgb, var(--cyan) 52%, transparent),
    0 0 14px color-mix(in srgb, var(--cyan) 34%, transparent);
}

html[data-theme="dark"] .brand-mark-a::after {
  background: linear-gradient(
    90deg,
    #9fe6ff 0%,
    #41c8f2 100%
  );
  box-shadow:
    0 0 10px rgba(0, 179, 223, 0.6),
    0 0 18px rgba(0, 179, 223, 0.4);
}

.brand-text {
  display: block;
}

.brand-text strong {
  display: block;
  font-size: clamp(0.9rem, 1.35vw, 1.05rem);
  font-family: "Exo 2", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
}

.brand-text span {
  color: var(--ink-soft);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 90%, var(--soft) 10%);
}

.site-nav a {
  color: var(--ink);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
  text-decoration: none;
  background: color-mix(in srgb, var(--cyan) 10%, var(--surface) 90%);
  border-color: color-mix(in srgb, var(--line) 60%, var(--cyan) 40%);
}

.nav-link-try,
.nav-cta-try {
  gap: 6px;
}

.nav-try-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 52%, var(--cyan) 48%);
  background: color-mix(in srgb, var(--surface) 82%, var(--cyan) 18%);
  color: var(--cyan);
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  animation: navTryPulse 1.9s ease-in-out infinite;
}

.nav-cta .nav-try-badge {
  background: #0b0e11;
  border-color: #0b0e11;
  color: #ffffff;
}

@keyframes navTryPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(0, 179, 223, 0);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 10px color-mix(in srgb, var(--cyan) 46%, transparent);
  }
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.84rem;
  font-weight: 600;
  transition: transform 0.06s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.nav-cta,
.btn-primary {
  background: var(--cyan);
  color: #0b0e11;
  border-color: transparent;
}

.nav-cta {
  padding-inline: 14px;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(11, 14, 17, 0.08);
}

.btn-secondary:hover {
  border-color: color-mix(in srgb, var(--line) 65%, var(--cyan) 35%);
}

.hero,
.page-hero {
  padding: 34px 0 20px;
}

.hero-grid,
.workflow-shell,
.footer-grid {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: 1.4fr 1fr;
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted, var(--ink-soft));
}

h1,
h2,
h3,
h4 {
  margin: 0 0 10px;
  line-height: 1.2;
  font-family: "Exo 2", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.7rem, 2.9vw, 2.5rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.3rem, 2vw, 1.9rem);
}

h3 {
  font-size: 1.08rem;
}

h4 {
  font-size: 0.95rem;
}

.page-hero h1 {
  font-size: clamp(1.35rem, 1.9vw, 1.85rem);
  max-width: none;
}

.lead,
p,
li {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.58;
}

p {
  margin: 0 0 0.62rem;
}

li {
  margin: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.status-card,
.card,
.form-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15, 24, 36, 0.08);
}

html[data-theme="dark"] .status-card,
html[data-theme="dark"] .card,
html[data-theme="dark"] .form-shell {
  box-shadow: 0 12px 32px rgba(0, 200, 255, 0.08);
}

.story-intro {
  padding-top: 34px;
}

.story-heading {
  margin-bottom: 12px;
  font-size: clamp(1.12rem, 1.5vw, 1.38rem);
  font-weight: 600;
  letter-spacing: 0;
  color: color-mix(in srgb, var(--ink) 72%, var(--ink-soft) 28%);
}

.story-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
}

.story-stack {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.story-main {
  min-width: 0;
}

.story-cta {
  display: flex;
  align-items: flex-end;
}

.story-try {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 58%, var(--cyan) 42%);
  background: color-mix(in srgb, var(--surface) 84%, var(--cyan) 16%);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  text-decoration: none;
  animation: storyTryPulse 2.2s ease-in-out infinite;
}

.story-try:hover {
  text-decoration: none;
  border-color: var(--cyan);
  box-shadow: 0 0 12px color-mix(in srgb, var(--cyan) 38%, transparent);
}

@keyframes storyTryPulse {
  0%, 100% {
    box-shadow: 0 0 0 rgba(0, 179, 223, 0);
  }
  50% {
    box-shadow: 0 0 12px color-mix(in srgb, var(--cyan) 35%, transparent);
  }
}

.story-cta .story-try {
  white-space: nowrap;
}

.story-try-with-badge .nav-try-badge {
  font-size: 0.52rem;
  line-height: 1;
}

.site-nav .nav-menu-try {
  white-space: nowrap;
}

.site-nav .nav-menu-try-start {
  margin-left: auto;
}

.story-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.status {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.status.live { background: color-mix(in srgb, var(--green) 25%, var(--surface)); color: #0f6b4d; }
.status.integrated { background: color-mix(in srgb, var(--cyan) 22%, var(--surface)); color: #0a5f75; }
.status.soon { background: color-mix(in srgb, var(--apricot) 30%, var(--surface)); color: #815b0f; }

.section {
  padding: 28px 0;
}

.section.soft {
  background: var(--soft);
}

html[data-theme="dark"] .section.soft {
  background: color-mix(in srgb, var(--soft) 86%, #0a0f15 14%);
}

.section.accent {
  background: color-mix(in srgb, var(--surface) 75%, var(--cyan) 25%);
}

.section.accent h2,
.section.accent p,
.section.accent li,
.section.accent a {
  color: #0b0e11;
}

html[data-theme="dark"] .section.accent h2,
html[data-theme="dark"] .section.accent p,
html[data-theme="dark"] .section.accent li,
html[data-theme="dark"] .section.accent a {
  color: var(--ink);
}

html[data-theme="dark"] .section.accent {
  background: color-mix(in srgb, #122231 70%, var(--surface) 30%);
}

.card-grid {
  display: grid;
  gap: 16px;
}

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

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

.workflow-shell {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 3fr);
  gap: 18px;
  align-items: start;
}

.workspace-left {
  position: sticky;
  top: 86px;
}

.workspace-left h3 {
  margin-bottom: 14px;
}

.workspace-right {
  display: grid;
  gap: 16px;
}

.workflow-steps {
  display: grid;
  gap: 9px;
  padding-left: 18px;
}

.simple-list {
  display: grid;
  gap: 10px;
}

.topology-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(9, minmax(0, 1fr));
}

.topology-node {
  grid-column: span 2;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 14px;
}

.topology-node strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
}

.topology-node p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.48;
}

.topology-arrow {
  grid-column: span 1;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--cyan);
  font-size: 1.2rem;
  line-height: 1;
}

.flash-wrap {
  padding-top: 16px;
}

.flash-message {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 14px;
}

form p {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  font: inherit;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 30%, transparent);
}

.site-footer {
  padding: 18px 0 24px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, var(--soft) 8%);
  margin-top: auto;
  flex-shrink: 0;
}

.footer-grid {
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
}

.footer-grid div {
  display: grid;
  gap: 6px;
}

.site-footer h3,
.site-footer h4 {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.25;
}

.site-footer p,
.site-footer a {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #5d6a7b;
}

html[data-theme="dark"] .site-footer p,
html[data-theme="dark"] .site-footer a {
  color: var(--ink-soft);
}

@media (max-width: 920px) {
  .hero-grid,
  .workflow-shell,
  .footer-grid,
  .two-up,
  .three-up,
  .topology-grid,
  .workspace-layout {
    grid-template-columns: 1fr;
  }

  .nav-shell {
    align-items: start;
    flex-direction: column;
  }

  .topology-arrow {
    display: none;
  }

  .workspace-left {
    position: static;
  }

  .brand-lockup {
    align-items: center;
  }

  .brand-mark {
    font-size: 1.35rem;
  }

  .brand-text strong {
    font-size: 0.88rem;
    white-space: normal;
  }

  .story-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .story-cta {
    align-items: start;
  }

  .site-nav .nav-menu-try-start {
    margin-left: 0;
  }
}
