:root {
  --bg: #04171a;
  --bg-deep: #020b0d;
  --panel: rgba(6, 31, 36, 0.74);
  --panel-strong: rgba(10, 43, 49, 0.88);
  --line: rgba(131, 255, 241, 0.18);
  --text: #f4f3ec;
  --muted: #b8c9c5;
  --teal: #7ef7ef;
  --teal-strong: #2fd7ea;
  --gold: #efe2ad;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(85, 255, 240, 0.15), transparent 22rem),
    radial-gradient(circle at 85% 12%, rgba(239, 226, 173, 0.12), transparent 16rem),
    linear-gradient(160deg, #031315 0%, #02090b 48%, #05181b 100%);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

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

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

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

.ambient,
.grid-fog {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.ambient-left {
  background: radial-gradient(circle at left center, rgba(47, 215, 234, 0.18), transparent 40%);
  transform: translateX(-18%);
}

.ambient-right {
  background: radial-gradient(circle at right top, rgba(239, 226, 173, 0.08), transparent 24%);
}

.grid-fog {
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(126, 247, 239, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 247, 239, 0.08) 1px, transparent 1px);
  background-size: 7rem 7rem;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.36), transparent 85%);
}

.site-header,
.hero,
.section,
.signal-strip {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background:
    radial-gradient(circle, var(--gold) 0%, rgba(239, 226, 173, 0.12) 55%, transparent 70%),
    var(--teal);
  box-shadow: 0 0 24px rgba(126, 247, 239, 0.9);
}

.brand-text {
  display: grid;
  gap: 0.1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.brand-text strong {
  font-family: "Iowan Old Style", "Baskerville", serif;
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 600;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.ghost-link {
  padding: 0.55rem 0.75rem;
  color: var(--muted);
  transition: color 180ms ease;
}

.ghost-link:hover,
.ghost-link:focus-visible {
  color: var(--text);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 2rem;
  align-items: center;
  padding: 5.5rem 0 3rem;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  color: var(--teal);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Baskerville", serif;
  font-weight: 600;
  line-height: 0.96;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3.4rem, 7vw, 6.8rem);
  text-wrap: balance;
}

.hero-text,
.feature-card p,
.workflow-step p,
.manifesto-panel p,
.signal-strip p {
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--muted);
}

.hero-text {
  max-width: 62ch;
  margin: 1.6rem 0 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  min-width: 235px;
  padding: 1rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button span {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.78rem;
  opacity: 0.76;
}

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

.button-primary {
  background: linear-gradient(135deg, rgba(126, 247, 239, 0.94), rgba(239, 226, 173, 0.96));
  color: #052126;
}

.button-secondary {
  border-color: var(--line);
  background: rgba(7, 28, 32, 0.66);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(126, 247, 239, 0.38);
  background: rgba(11, 35, 39, 0.8);
}

.button-store {
  position: relative;
  padding-left: 4rem;
}

.button-store::before {
  content: "";
  position: absolute;
  left: 1.05rem;
  top: 50%;
  width: 2rem;
  height: 2rem;
  transform: translateY(-50%);
  border-radius: 0.75rem;
  border: 1px solid rgba(126, 247, 239, 0.22);
  background:
    linear-gradient(135deg, rgba(126, 247, 239, 0.24), rgba(239, 226, 173, 0.2)),
    rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.button-store::after {
  content: "";
  position: absolute;
  left: 1.54rem;
  top: 50%;
  width: 1.02rem;
  height: 1.02rem;
  transform: translateY(-50%);
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304171a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 18h14'/%3E%3Cpath d='M8.5 14 12 7'/%3E%3Cpath d='M15.5 14 12 7'/%3E%3C/svg%3E");
}

.hero-meta {
  display: grid;
  gap: 0.75rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.hero-meta li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--muted);
}

.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 14px rgba(126, 247, 239, 0.8);
}

.hero-stage {
  position: relative;
  min-height: 42rem;
}

.stage-orbit {
  position: absolute;
  inset: auto;
  border-radius: 999px;
  border: 1px solid rgba(126, 247, 239, 0.22);
}

.orbit-a {
  width: 24rem;
  height: 24rem;
  right: 2rem;
  top: 4rem;
}

.orbit-b {
  width: 17rem;
  height: 17rem;
  right: 0;
  bottom: 6rem;
}

.app-sigil {
  position: absolute;
  top: 0;
  right: 3rem;
  width: min(20rem, 56vw);
  aspect-ratio: 1;
  padding: 1rem;
  border-radius: 2.5rem;
  background:
    linear-gradient(180deg, rgba(8, 34, 40, 0.9), rgba(3, 15, 18, 0.76)),
    rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(126, 247, 239, 0.18);
  box-shadow: var(--shadow);
}

.app-sigil::after {
  content: "";
  position: absolute;
  inset: -1.4rem;
  border-radius: 3rem;
  background: radial-gradient(circle, rgba(126, 247, 239, 0.18), transparent 68%);
  z-index: -1;
}

.app-sigil img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2rem;
}

.stage-card {
  position: absolute;
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(126, 247, 239, 0.15);
  background:
    linear-gradient(180deg, rgba(12, 44, 50, 0.86), rgba(4, 16, 19, 0.88));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.stage-card p,
.stage-card li,
.stage-card span,
.stage-card strong,
.card-topline {
  color: var(--muted);
}

.stage-card-main {
  left: 0;
  top: 9rem;
  width: min(24rem, 80vw);
}

.card-topline {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.status-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(126, 247, 239, 0.8);
}

.stage-card-main h2 {
  margin-bottom: 0.8rem;
  font-size: 2rem;
}

.stage-card-main p {
  margin: 0;
  line-height: 1.6;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.tag-row span,
.mini-label {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(126, 247, 239, 0.17);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stage-card-side {
  right: 0;
  top: 19rem;
  width: 15rem;
}

.stage-card-search {
  left: 4rem;
  bottom: 3.5rem;
  width: 16rem;
}

.search-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.search-line span {
  width: 2rem;
  height: 0.7rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(126, 247, 239, 0.9), rgba(239, 226, 173, 0.8));
}

.stage-card-search ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.45rem;
}

.stage-card-cloud {
  right: 2.2rem;
  bottom: 1rem;
  width: 13rem;
}

.stage-card-cloud strong {
  display: block;
  margin-top: 0.5rem;
  color: var(--text);
  font-size: 1.1rem;
}

.signal-strip {
  margin-top: 1rem;
  padding: 1.1rem 1.4rem;
  border-top: 1px solid rgba(126, 247, 239, 0.12);
  border-bottom: 1px solid rgba(126, 247, 239, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.signal-strip p {
  margin: 0;
}

.section {
  padding: 7rem 0 0;
}

.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 2.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--text);
  opacity: 0.86;
  transition: opacity 180ms ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  opacity: 1;
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 2.2rem;
}

.section-heading h2,
.manifesto-panel h2,
.final-cta-panel h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.03;
}

.feature-grid,
.workflow-grid {
  display: grid;
  gap: 1.2rem;
}

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

.feature-card,
.workflow-step,
.manifesto-panel,
.final-cta-panel {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(126, 247, 239, 0.14);
  background:
    linear-gradient(180deg, rgba(8, 31, 36, 0.84), rgba(2, 13, 16, 0.84));
  box-shadow: var(--shadow);
}

.feature-card {
  min-height: 15rem;
  padding: 1.6rem;
}

.feature-index,
.workflow-step span {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.feature-card h3,
.workflow-step h3 {
  font-size: 1.75rem;
  margin-bottom: 0.8rem;
}

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

.workflow-step {
  padding: 1.8rem;
}

.manifesto-panel {
  padding: 2.4rem;
}

.manifesto-panel p {
  max-width: 56ch;
  margin: 1.2rem 0 0;
}

.final-cta {
  padding-bottom: 4rem;
}

.final-cta-panel {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  padding: 2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: revealUp 760ms cubic-bezier(.2, .9, .25, 1) forwards;
}

.reveal-1 { animation-delay: 80ms; }
.reveal-2 { animation-delay: 150ms; }
.reveal-3 { animation-delay: 240ms; }
.reveal-4 { animation-delay: 320ms; }
.reveal-5 { animation-delay: 420ms; }

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .feature-grid,
  .workflow-grid,
  .final-cta-panel {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    padding-top: 3.8rem;
  }

  .hero-stage {
    min-height: 37rem;
  }

  .app-sigil {
    right: 1rem;
    width: min(18rem, 62vw);
  }

  .stage-card-main {
    top: 8rem;
    width: min(22rem, 88vw);
  }

  .stage-card-search {
    left: 0.4rem;
  }

  .stage-card-side {
    top: 18rem;
  }

  .stage-card-cloud {
    right: 0.6rem;
  }
}

@media (max-width: 720px) {
  .site-header,
  .hero,
  .section,
  .signal-strip,
  .site-footer {
    width: min(100% - 1.25rem, 1180px);
  }

  .header-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .ghost-link {
    padding-left: 0;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.8rem, 14vw, 4.5rem);
  }

  .hero-stage {
    display: grid;
    gap: 1rem;
    min-height: auto;
  }

  .app-sigil {
    position: relative;
    right: auto;
    top: auto;
    width: min(15rem, 72vw);
    margin: 0 auto;
  }

  .stage-orbit {
    display: none;
  }

  .stage-card {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .stage-card-main h2 {
    font-size: 1.7rem;
  }

  .stage-card-side,
  .stage-card-search {
    width: 100%;
  }

  .stage-card-cloud {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-top: 5rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-card,
  .workflow-step,
  .manifesto-panel,
  .final-cta-panel {
    border-radius: 1.6rem;
  }
}

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

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

  .button,
  .ghost-link {
    transition: none;
  }
}
