:root {
  --bg: #f6f2ea;
  --bg-deep: #efe7da;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(104, 83, 57, 0.12);
  --text: #1f2933;
  --muted: #5f6c77;
  --accent: #ef7d57;
  --accent-strong: #de5c35;
  --teal: #1d8f8a;
  --gold: #f2c063;
  --shadow: 0 24px 70px rgba(72, 52, 32, 0.14);
  --font-body: "Manrope", sans-serif;
  --font-display: "Space Grotesk", sans-serif;
}

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

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(29, 143, 138, 0.18), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(242, 192, 99, 0.28), transparent 26%),
    linear-gradient(135deg, var(--bg) 0%, #fbf8f2 52%, var(--bg-deep) 100%);
  overflow-x: hidden;
  overflow-y: auto;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
}

.ambient,
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient {
  filter: blur(18px);
  opacity: 0.8;
  z-index: -3;
}

.ambient--one {
  inset: auto auto 12% 8%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(239, 125, 87, 0.42) 0%, rgba(239, 125, 87, 0) 70%);
  animation: drift 14s ease-in-out infinite;
}

.ambient--two {
  inset: 10% 10% auto auto;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(29, 143, 138, 0.2) 0%, rgba(29, 143, 138, 0) 72%);
  animation: drift 18s ease-in-out infinite reverse;
}

.grid-overlay {
  z-index: -4;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(92, 77, 56, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 77, 56, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 88%);
}

.topbar,
.hero-card,
.footer-meta {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 8px 26px;
  opacity: 0;
  transform: translateY(-16px);
  animation: reveal 0.9s ease forwards;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark__icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  box-shadow: 0 12px 28px rgba(222, 92, 53, 0.26);
}

.topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid rgba(29, 143, 138, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  backdrop-filter: blur(12px);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #36b37e;
  box-shadow: 0 0 0 0 rgba(54, 179, 126, 0.46);
  animation: pulse 2.2s infinite;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: stretch;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 34px;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.hero-card--coming-soon {
  min-height: min(520px, calc(100vh - 56px));
  place-items: center;
  text-align: center;
}

.hero-card--coming-soon h1 {
  max-width: none;
  margin: 0;
}

.hero-copy,
.hero-panel {
  opacity: 0;
  animation: reveal 0.95s ease forwards;
}

.hero-copy {
  padding: 28px;
  animation-delay: 0.15s;
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: center;
  padding: 18px;
  animation-delay: 0.3s;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  line-height: 0.95;
}

.eyebrow::before {
  content: "";
  width: 58px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.8vw, 4.1rem);
  line-height: 1;
  letter-spacing: -0.05em;
  max-width: 11ch;
}

.description {
  max-width: 60ch;
  margin: 26px 0 34px;
  font-size: 1.07rem;
  line-height: 1.8;
  color: var(--muted);
}

.notify-form {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.notify-form input,
.notify-form button,
.panel-card {
  border-radius: 18px;
}

.notify-form input {
  min-width: 0;
  flex: 1;
  padding: 18px 20px;
  border: 1px solid rgba(31, 41, 51, 0.1);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.notify-form input::placeholder {
  color: #95a0aa;
}

.notify-form input:focus {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(29, 143, 138, 0.45);
  box-shadow: 0 0 0 4px rgba(29, 143, 138, 0.12);
}

.notify-form button {
  position: relative;
  overflow: hidden;
  padding: 18px 24px;
  border: 0;
  color: #fff;
  font: inherit;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  cursor: pointer;
  box-shadow:
    0 14px 30px rgba(222, 92, 53, 0.22),
    0 26px 48px rgba(222, 92, 53, 0.16);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.notify-form button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.42) 48%, transparent 76%);
  transform: translateX(-130%);
  animation: shine 4.8s ease-in-out infinite 1.2s;
}

.notify-form button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 36px rgba(222, 92, 53, 0.26),
    0 30px 54px rgba(222, 92, 53, 0.18);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(31, 41, 51, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

.panel-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    0 14px 34px rgba(95, 73, 47, 0.09),
    0 26px 54px rgba(95, 73, 47, 0.07);
  backdrop-filter: blur(12px);
}

.panel-card--primary {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(29, 143, 138, 0.92), rgba(20, 107, 103, 0.92)),
    #1d8f8a;
  color: #fff;
  transform-origin: center;
  box-shadow:
    0 18px 38px rgba(17, 95, 92, 0.22),
    0 32px 62px rgba(17, 95, 92, 0.16);
  animation: floatCard 6s ease-in-out infinite;
}

.panel-card--primary strong {
  display: block;
  max-width: 20ch;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.panel-card--floating {
  max-width: 240px;
  margin-left: auto;
  background: rgba(255, 250, 242, 0.9);
  box-shadow:
    0 16px 34px rgba(151, 114, 62, 0.14),
    0 28px 56px rgba(151, 114, 62, 0.1);
  animation: bob 5.8s ease-in-out infinite;
}

.panel-card--stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  box-shadow:
    0 14px 34px rgba(95, 73, 47, 0.08),
    0 24px 50px rgba(95, 73, 47, 0.06);
}

.panel-card__label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.panel-card__metric {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-strong);
  letter-spacing: -0.04em;
}

.panel-card strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.45;
}

.panel-card__text {
  color: var(--muted);
  line-height: 1.6;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 10px 8px;
  color: var(--muted);
  font-size: 0.92rem;
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 0.95s ease forwards 0.42s;
}

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

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(54, 179, 126, 0.46);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(54, 179, 126, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(54, 179, 126, 0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(16px, -22px, 0) scale(1.08);
  }
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(-1deg);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@keyframes shine {
  0%,
  100% {
    transform: translateX(-130%);
  }
  40%,
  60% {
    transform: translateX(130%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  body {
    overflow-y: auto;
  }

  .hero-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .hero-card--coming-soon {
    min-height: min(440px, calc(100vh - 32px));
  }

  .hero-copy {
    padding: 18px 10px;
  }

  .hero-panel {
    padding: 6px 0 0;
  }

  .panel-card--stack {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    flex-direction: column;
    padding-top: 18px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 16px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 9.2vw, 3.05rem);
    line-height: 1;
  }

  .notify-form {
    flex-direction: column;
    align-items: stretch;
  }

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

  .trust-row span,
  .topbar__status,
  .footer-meta {
    font-size: 0.88rem;
  }

  .hero-card {
    gap: 18px;
    padding: 18px;
    border-radius: 28px;
  }

  .hero-copy {
    padding: 8px 4px;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: clamp(1.5rem, 6.5vw, 2.4rem);
    letter-spacing: -0.03em;
  }

  .description {
    margin: 18px 0 24px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .notify-form input,
  .notify-form button {
    padding: 16px 18px;
  }

  .trust-row {
    gap: 8px;
  }

  .hero-panel {
    gap: 14px;
  }

  .panel-card {
    padding: 20px;
    border-radius: 16px;
  }

  .panel-card--primary strong {
    font-size: 1.3rem;
  }
}

@media (max-width: 420px) {
  .page-shell {
    padding: 14px;
  }

  .brand-mark {
    gap: 8px;
    font-size: 0.98rem;
  }

  .brand-mark__icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .topbar__status {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
  }

  .hero-card {
    padding: 16px;
    border-radius: 24px;
  }

  h1 {
    font-size: clamp(1.95rem, 8.2vw, 2.55rem);
    letter-spacing: -0.04em;
  }

  .description {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .notify-form {
    margin-bottom: 20px;
  }

  .panel-card--floating {
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
