@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,500;0,9..40,700;1,9..40,500&family=Instrument+Serif:ital@0;1&display=swap");

:root {
  --ink: #0b1d3a;
  --foam: #eef4fb;
  --accent: #2bb7e8;
  --accent-2: #2e7bd6;
  --muted: rgba(238, 244, 251, 0.78);
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--foam);
  background: #071734;
  line-height: 1.5;
}

a {
  color: var(--accent);
}

/* —— Full-bleed hero plane —— */
.stage {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* clip ken-burns on bg only — not the footer legal line */
  overflow: visible;
}

.stage-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #071734;
  background-size: cover;
  background-position: center 22%;
  transform: scale(1.02);
  animation: ken 28s ease-in-out infinite alternate;
  z-index: 0;
}

.stage-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(4, 14, 34, 0.92) 0%, rgba(4, 14, 34, 0.72) 42%, rgba(4, 14, 34, 0.35) 70%, rgba(4, 14, 34, 0.55) 100%),
    linear-gradient(180deg, rgba(4, 14, 34, 0.15) 0%, rgba(4, 14, 34, 0.75) 100%);
}

@keyframes ken {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

.stage-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 5vw, 4rem);
  max-width: 42rem;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.brand-mark {
  width: clamp(3.2rem, 8vw, 4.4rem);
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 18px rgba(43, 183, 232, 0.35));
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin-top: 0.35rem;
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  font-weight: 400;
  font-style: italic;
  margin: 0 0 0.85rem;
  max-width: 18ch;
  line-height: 1.15;
}

.lede {
  margin: 0;
  font-size: 1.05rem;
  max-width: 36ch;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.cta {
  appearance: none;
  border: 0;
  border-radius: 0.2rem;
  padding: 0.9rem 1.3rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  background: var(--foam);
  color: var(--ink);
  transition: transform 200ms ease, background 200ms ease;
}

.cta:hover {
  background: var(--accent);
  color: #041222;
  transform: translateY(-2px);
}

.cta.secondary {
  background: transparent;
  color: var(--foam);
  box-shadow: inset 0 0 0 1.5px rgba(238, 244, 251, 0.55);
}

.cta.secondary:hover {
  background: rgba(238, 244, 251, 0.1);
  color: var(--foam);
}

.coming-soon {
  display: inline-block;
  margin: 0.9rem 0 0.1rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.foot-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 2.5rem;
  width: 100%;
  padding: 0.75rem clamp(1.5rem, 5vw, 4rem) 1.25rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(238, 244, 251, 0.55);
}

.foot {
  margin: 0;
  min-width: 0;
  flex: 1 1 auto;
}

.foot-legal {
  margin: 0;
  flex: 0 0 auto;
  text-align: right;
  color: rgba(238, 244, 251, 0.55);
}

.foot-legal a {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.foot-legal a:hover {
  color: rgba(238, 244, 251, 0.92);
  border-bottom-color: rgba(238, 244, 251, 0.35);
}

.foot-co {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 40rem) {
  .foot-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .foot-legal {
    text-align: left;
  }
}

/* AT Design (team) — moss field tone, same composition */
body.theme-at {
  --ink: #14201c;
  --foam: #eef6f1;
  --accent: #3d8f66;
  --accent-2: #2f6b4f;
  --muted: rgba(238, 246, 241, 0.8);
  background: #0e1a14;
}

body.theme-at .stage-bg::after {
  background:
    linear-gradient(105deg, rgba(10, 22, 16, 0.92) 0%, rgba(10, 22, 16, 0.7) 45%, rgba(10, 22, 16, 0.3) 72%, rgba(10, 22, 16, 0.55) 100%),
    linear-gradient(180deg, rgba(10, 22, 16, 0.1) 0%, rgba(10, 22, 16, 0.78) 100%);
}

body.theme-at .brand small {
  color: #8fd0a8;
}

.page {
  padding: clamp(2rem, 6vw, 4rem);
  max-width: 40rem;
  color: var(--foam);
  background: #071734;
  min-height: 100vh;
}

body.theme-at .page {
  background: #0e1a14;
}

.page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 1rem;
}

.page p,
.page li {
  color: var(--muted);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.stage-inner > * {
  animation: rise 750ms ease both;
}
.stage-inner > *:nth-child(2) {
  animation-delay: 90ms;
}
.stage-inner > *:nth-child(3) {
  animation-delay: 160ms;
}
.stage-inner > *:nth-child(4) {
  animation-delay: 230ms;
}
.stage-inner > *:nth-child(5) {
  animation-delay: 300ms;
}

.ops-wrap {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 1.5rem;
  background: #111;
  color: #d8e6dc;
  min-height: 100vh;
}

.ops-wrap pre {
  white-space: pre-wrap;
  word-break: break-word;
}
