:root {
  --bg: #06131f;
  --bg-soft: rgba(14, 34, 52, 0.72);
  --surface: rgba(10, 27, 43, 0.78);
  --surface-strong: #0c2031;
  --surface-bright: rgba(18, 44, 66, 0.95);
  --text: #f2f8ff;
  --muted: #9cb8d3;
  --line: rgba(155, 202, 235, 0.18);
  --primary: #58d6c5;
  --primary-strong: #1aa694;
  --accent: #ffb85c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --container: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(88, 214, 197, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 184, 92, 0.14), transparent 22%),
    linear-gradient(180deg, #03111d 0%, #06131f 45%, #081928 100%);
}

.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

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

.page-shell {
  position: relative;
  overflow: clip;
}

.orb {
  position: fixed;
  z-index: 0;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  pointer-events: none;
}

.orb-left {
  top: -120px;
  left: -160px;
  background: rgba(88, 214, 197, 0.22);
  animation: pulseShift 12s ease-in-out infinite;
}

.orb-right {
  top: 280px;
  right: -140px;
  background: rgba(255, 184, 92, 0.18);
  animation: pulseShift 15s ease-in-out infinite reverse;
}

.topbar,
main,
.hero,
.section,
.partners,
.cta {
  position: relative;
  z-index: 1;
}

.topbar {
  width: var(--container);
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  min-width: 48px;
  height: 48px;
  padding: 0 18px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
  text-transform: lowercase;
  background: linear-gradient(135deg, rgba(88, 214, 197, 0.18), rgba(255, 184, 92, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
}

.brand-copy small {
  color: var(--muted);
}

.nav {
  display: inline-flex;
  gap: 28px;
  color: var(--muted);
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #032125;
  background: linear-gradient(135deg, var(--primary), #7ce5da);
  box-shadow: 0 18px 36px rgba(88, 214, 197, 0.22);
}

.button-secondary,
.button-ghost,
.button-ghost-light {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button-ghost-light {
  background: rgba(255, 255, 255, 0.08);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-modal[hidden] {
  display: none;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 10, 17, 0.74);
  backdrop-filter: blur(14px);
}

.auth-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 28px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 30, 46, 0.96), rgba(5, 18, 28, 0.98));
  box-shadow: var(--shadow);
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
}

.auth-eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 800;
}

.auth-dialog h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  letter-spacing: -0.04em;
}

.auth-text {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.auth-field {
  display: grid;
  gap: 8px;
  color: #d9ecff;
  font-size: 0.95rem;
}

.auth-field input {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.auth-field input:focus {
  outline: none;
  border-color: rgba(88, 214, 197, 0.64);
  box-shadow: 0 0 0 4px rgba(88, 214, 197, 0.14);
}

.auth-form .button {
  width: 100%;
}

.auth-feedback {
  min-height: 24px;
  margin: 0;
  color: #ffcf84;
  font-weight: 700;
}

main {
  width: var(--container);
  margin: 0 auto;
  padding-bottom: 72px;
}

.hero {
  padding: 46px 0 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 34px;
  align-items: center;
}

.hero-copy,
.hero-visual,
.feature-card,
.example-card,
.code-panel,
.dashboard-section,
.workflow-card,
.cta,
.partners,
.mini-panel {
  backdrop-filter: blur(18px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero h1,
.section h2,
.cta h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 6.2vw, 5.6rem);
}

.hero-text,
.dashboard-copy p,
.section-heading p:not(.eyebrow),
.example-card p,
.feature-card p,
.workflow-card p,
.cta-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.hero-text {
  max-width: 60ch;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.stat-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat-card strong {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: min(100%, 540px);
  padding: 18px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(14, 39, 61, 0.94), rgba(8, 23, 35, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.floating-card {
  animation: floatCard 7s ease-in-out infinite;
}

.mini-panel {
  position: absolute;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(6, 23, 36, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.mini-panel strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 1.5rem;
}

.mini-panel small,
.panel-label {
  color: var(--muted);
}

.mini-panel-top {
  top: 76px;
  left: 0;
  animation: driftLeft 8s ease-in-out infinite;
}

.mini-panel-bottom {
  right: 24px;
  bottom: 48px;
  animation: driftRight 9s ease-in-out infinite;
}

.partners,
.cta {
  margin-top: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(9, 27, 42, 0.86), rgba(7, 21, 33, 0.92));
}

.partners {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.partners p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ticker span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d8ebff;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.section {
  padding-top: 104px;
}

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

.section h2,
.cta h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.feature-grid,
.example-cards,
.workflow {
  display: grid;
  gap: 18px;
}

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

.feature-card,
.example-card,
.workflow-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 28, 43, 0.88), rgba(7, 20, 31, 0.96));
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 26px 24px;
}

.feature-card::before,
.example-card::before,
.workflow-card::before {
  content: "";
  position: absolute;
  inset: auto -30px -80px auto;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 214, 197, 0.14), transparent 68%);
}

.feature-card h3,
.example-card h3,
.workflow-card h3 {
  margin: 0;
  font-size: 1.32rem;
}

.feature-card p,
.example-card p,
.workflow-card p {
  margin: 14px 0 0;
  font-size: 0.98rem;
}

.examples-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
  gap: 20px;
}

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

.example-card {
  padding: 22px;
}

.card-accent {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--accent);
  border: 1px solid rgba(255, 184, 92, 0.18);
  background: rgba(255, 184, 92, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.code-panel {
  padding: 20px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(9, 22, 34, 0.94), rgba(7, 18, 28, 0.98)),
    linear-gradient(135deg, rgba(88, 214, 197, 0.08), transparent);
  box-shadow: var(--shadow);
}

.code-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.code-pill {
  padding: 8px 12px;
  border-radius: 999px;
  color: #032125;
  background: linear-gradient(135deg, var(--accent), #ffcf84);
  font-weight: 800;
}

.code-panel pre {
  margin: 0;
  overflow: auto;
  padding: 20px;
  border-radius: 20px;
  background: rgba(1, 10, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.code-panel code {
  color: #d8f9f4;
  font-family: "SFMono-Regular", "Consolas", monospace;
  line-height: 1.7;
  font-size: 0.94rem;
}

.dashboard-section {
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(380px, 1.12fr);
  gap: 24px;
  border-radius: 36px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 30, 46, 0.9), rgba(5, 18, 28, 0.94));
  box-shadow: var(--shadow);
}

.dashboard-copy h2 {
  margin-top: 0;
}

.benefit-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 30px;
  padding: 0;
  list-style: none;
}

.benefit-list li {
  padding: 14px 16px;
  border-radius: 16px;
  color: #d9ecff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.dashboard-visual {
  align-self: center;
}

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

.workflow-card {
  padding: 24px;
}

.step-index {
  display: inline-flex;
  margin-bottom: 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  color: var(--primary);
}

.cta {
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-copy {
  max-width: 720px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@keyframes driftLeft {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(-10px, 12px, 0);
  }
}

@keyframes driftRight {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(12px, -14px, 0);
  }
}

@keyframes pulseShift {
  0%,
  100% {
    transform: scale(1) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.08) translate3d(20px, 10px, 0);
  }
}

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

  .example-cards,
  .workflow {
    grid-template-columns: 1fr;
  }

  .examples-layout,
  .dashboard-section,
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 0;
    padding-top: 14px;
  }

  .dashboard-visual {
    order: -1;
  }
}

@media (max-width: 860px) {
  :root {
    --container: min(100vw - 28px, 1180px);
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero {
    padding-top: 16px;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .partners,
  .cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .mini-panel {
    position: static;
    margin-top: 14px;
  }

  .hero-visual {
    align-items: stretch;
  }
}

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

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .topbar {
    padding-top: 18px;
  }

  .section {
    padding-top: 84px;
  }

  .dashboard-section,
  .cta {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
