:root {
  --accent: #38bdf8;
  --accent-deep: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --plate: #070b12;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.08);
  --font-display: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: #f4f7fb;
  line-height: 1.5;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 12% -8%, rgba(56, 189, 248, 0.22), transparent 60%),
    radial-gradient(700px 480px at 92% 8%, rgba(14, 165, 233, 0.14), transparent 55%),
    linear-gradient(180deg, #f7fafc 0%, #e8eef5 48%, #f4f7fb 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(0, -12px, 0) scale(1.02); }
}

a {
  color: inherit;
}

.top {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.brand img {
  border-radius: 10px;
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--plate);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.2rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.14);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
}

.btn-ghost-light {
  background: transparent;
  border: 1px solid rgba(241, 245, 249, 0.28);
  color: #f1f5f9;
}

.btn-ghost-light:hover {
  background: rgba(241, 245, 249, 0.08);
  color: #fff;
}

.hero {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(48px, 10vh, 96px) 24px clamp(72px, 12vh, 120px);
  min-height: calc(100vh - 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-hero {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--plate);
  animation: rise 0.8s ease both;
}

.hero h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  animation: rise 0.8s ease 0.08s both;
}

.support {
  margin: 22px 0 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 1.08rem;
  animation: rise 0.8s ease 0.16s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  animation: rise 0.8s ease 0.24s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.orbit {
  position: absolute;
  right: 4%;
  top: 18%;
  width: min(340px, 42vw);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0.9;
}

.ring {
  position: absolute;
  inset: 12%;
  border: 2px solid rgba(56, 189, 248, 0.35);
  border-radius: 50%;
}

.ring-a {
  animation: spin 22s linear infinite;
  border-top-color: var(--accent);
  border-left-color: transparent;
}

.ring-b {
  inset: 26%;
  border-color: rgba(56, 189, 248, 0.18);
  border-right-color: var(--accent-deep);
  animation: spin 14s linear infinite reverse;
}

.core {
  position: absolute;
  inset: 42%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #7dd3fc, var(--accent) 55%, #0284c7);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.35);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.eyebrow.light {
  color: var(--accent);
}

.section h2 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lead {
  margin: 16px 0 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.lead.light {
  color: #94a3b8;
}

.phases {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.phases li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.phases .n {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
}

.phases strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.phases p {
  margin: 0;
  color: var(--muted);
}

.caps {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.caps li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  font-size: 1.05rem;
}

.contact-panel {
  background: var(--plate);
  color: #f1f5f9;
  border-radius: 24px;
  padding: clamp(32px, 6vw, 56px);
  position: relative;
  overflow: hidden;
}

.contact-panel::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 65%);
  pointer-events: none;
}

.contact-panel > * {
  position: relative;
}

.contact-panel h2 {
  color: #f8fafc;
  max-width: 16ch;
}

.meta {
  margin: 28px 0 0;
  color: #94a3b8;
  font-size: 0.95rem;
}

.foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.88rem;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.demo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 20px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.demo-card h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.demo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.demo-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

.demo-card-rose .demo-label {
  color: #b86b75;
}

.demo-login {
  font-size: 0.85rem !important;
  color: var(--muted);
}

.btn-rose {
  background: #d48a94;
  color: #fff;
  justify-self: start;
}

.btn-rose:hover {
  background: #b86b75;
  color: #fff;
}

.demo-card .btn {
  justify-self: start;
  margin-top: 6px;
}

.foot div {
  display: grid;
  gap: 4px;
}

.foot strong {
  color: var(--text);
}

@media (max-width: 820px) {
  .nav {
    display: none;
  }

  .orbit {
    opacity: 0.35;
    right: -8%;
    top: 8%;
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 64px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .atmosphere,
  .ring-a,
  .ring-b,
  .brand-hero,
  .hero h1,
  .support,
  .cta-row {
    animation: none;
  }
}
