/* Ardilis prelaunch — Foundry Light (DESIGN.md) */

:root {
  --surface: #f9f9f9;
  --surface-low: #f3f3f4;
  --on-surface: #1a1c1c;
  --on-surface-variant: #4c4546;
  --primary: #000000;
  --tertiary: #2bbfbd;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.scene {
  position: relative;
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  overflow: hidden;
}

.atmosphere {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.wash {
  position: absolute;
  inset: 0;
}

.wash-teal {
  background: radial-gradient(
    ellipse 80% 55% at 15% 20%,
    rgb(43 191 189 / 0.12),
    transparent 55%
  );
}

.wash-ink {
  background:
    radial-gradient(
      ellipse 70% 50% at 90% 80%,
      rgb(0 0 0 / 0.04),
      transparent 50%
    ),
    linear-gradient(165deg, #f9f9f9 0%, #ffffff 45%, #f3f3f4 100%);
}

.slab {
  position: absolute;
  background: rgb(0 0 0 / 0.03);
}

.slab-left {
  top: 25%;
  left: -6rem;
  height: 42rem;
  width: 28rem;
  rotate: 12deg;
}

.slab-right {
  right: -4rem;
  bottom: 0;
  height: 36rem;
  width: 24rem;
  rotate: -6deg;
  background: rgb(43 191 189 / 0.06);
}

.shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
  padding-block: 5rem;
}

.content {
  max-width: 42rem;
}

.brand {
  display: block;
  height: 2.5rem;
  width: auto;
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.label {
  margin: 3.5rem 0 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.headline {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--primary);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

.lede {
  margin: 2rem 0 0;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--on-surface-variant);
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 3rem;
  animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  width: fit-content;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
  color: var(--tertiary);
  outline: none;
}

.cta span {
  transition: transform 0.2s ease;
}

.cta:hover span,
.cta:focus-visible span {
  transform: translateX(0.2rem);
}

.meta {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
}

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
  padding-block: 1.5rem;
  border-top: 1px solid rgb(43 191 189 / 0.15);
  font-family: var(--font-display);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
}

.soon {
  color: var(--tertiary);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (min-width: 640px) {
  .actions {
    flex-direction: row;
    align-items: center;
  }

  .foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 768px) {
  .brand {
    height: 3rem;
  }

  .shell {
    padding-block: 7rem;
  }

  .label {
    margin-top: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .label,
  .headline,
  .lede,
  .actions {
    animation: none;
  }

  .cta span {
    transition: none;
  }
}
