:root {
  --background: #fafaf8;
  --foreground: #1a1a1a;
  --muted: #e8f6f5;
  --muted-foreground: #6b6b6b;
  --accent: #0e8f8a;
  --accent-secondary: #29b3ad;
  --accent-foreground: #ffffff;
  --border: #d4e8e6;
  --card: #ffffff;
  --ring: #0e8f8a;
  --shadow-sm: 0 1px 2px rgba(41, 179, 173, 0.08);
  --shadow-md: 0 4px 12px rgba(41, 179, 173, 0.12);
  --shadow-lg: 0 8px 24px rgba(41, 179, 173, 0.15);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans 3", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--foreground);
  background: var(--background);
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

.container {
  width: min(960px, calc(100% - 2rem));
  margin-inline: auto;
}

.bg-layer,
.blob {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -10;
}

.bg-base {
  background: radial-gradient(1300px 600px at 80% -8%, rgba(14, 143, 138, 0.06), transparent 65%), var(--background);
}

.bg-noise {
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.bg-grid {
  opacity: 0;
}

.blob {
  filter: blur(120px);
  animation: float 9s ease-in-out infinite;
}

.blob-primary {
  width: min(720px, 70vw);
  height: min(440px, 52vh);
  left: 50%;
  top: -10%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(14, 143, 138, 0.04), transparent 70%);
}

.blob-secondary,
.blob-tertiary,
.blob-bottom {
  opacity: 0;
}

.topbar {
  position: sticky;
  top: 1rem;
  z-index: 40;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  background: rgba(250, 250, 248, 0.86);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

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

.brand-logo-img {
  height: 3.5rem;
  width: 3.5rem;
  max-width: 200px;
  object-fit: contain;
  border-radius: 50%;
}

.brand-logo-mark,
.brand-logo-slot {
  height: 2rem;
  border-radius: 0.45rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.brand-logo-mark {
  width: 2rem;
  display: grid;
  place-items: center;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--accent-foreground);
  background: linear-gradient(160deg, var(--accent-secondary), var(--accent));
}

.brand-logo-slot {
  min-width: 5.6rem;
  padding: 0 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--muted-foreground);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.brand-text-wrap {
  display: grid;
  line-height: 1.1;
}

.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-tagline {
  color: var(--muted-foreground);
  font-size: 0.72rem;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.2rem;
}

.nav-desktop a,
.mobile-nav a {
  text-decoration: none;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 200ms ease-out;
}

.nav-desktop a:hover,
.mobile-nav a:hover {
  color: var(--foreground);
}

.menu-toggle {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--foreground);
  border-radius: 0.5rem;
  padding: 0.45rem 0.65rem;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}

.menu-close {
  display: none;
}

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    max-height 220ms var(--ease),
    opacity 220ms var(--ease),
    transform 220ms var(--ease);
  display: grid;
  gap: 0.9rem;
  margin: 0.5rem auto 0;
  width: min(960px, calc(100% - 2rem));
  border: 1px solid transparent;
  border-radius: 0.65rem;
}

.mobile-nav.is-open {
  max-height: 300px;
  opacity: 1;
  transform: translateY(0);
  padding: 1rem;
  border-color: var(--border);
  background: rgba(250, 250, 248, 0.95);
}

.mobile-nav.is-open .mobile-cta {
  width: 100%;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  padding-block: clamp(3.2rem, 9vw, 6rem);
  transform-origin: top center;
  transition: transform 300ms var(--ease);
  text-align: center;
}

.section-label {
  margin: 0;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.section-label::before,
.section-label::after {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--border);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--foreground);
  font-weight: 500;
}

h1 {
  margin-top: 1.05rem;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.headline-accent {
  display: block;
  color: var(--accent);
  background: linear-gradient(100deg, var(--accent), var(--accent-secondary), var(--accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s linear infinite;
}

.hero-copy {
  color: var(--muted-foreground);
  font-size: clamp(1.06rem, 2.7vw, 1.25rem);
  max-width: 62ch;
  margin: 1.15rem auto 0;
}

.hero-actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.hero-countdown {
  margin: 1.5rem auto 0;
  width: min(680px, 100%);
  text-align: left;
}

.countdown-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.countdown-unit {
  padding: 0.7rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.45rem;
  background: #fffdfa;
}

.countdown-value {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1;
  color: var(--foreground);
}

.countdown-label {
  margin: 0.32rem 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted-foreground);
}

.button {
  border-radius: 0.4rem;
  border: 1px solid transparent;
  min-height: 44px;
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    color 200ms ease-out,
    background-color 200ms ease-out,
    border-color 200ms ease-out,
    box-shadow 200ms ease-out,
    transform 200ms ease-out;
}

.button:focus-visible,
input:focus-visible,
.menu-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--ring), 0 0 0 4px rgba(250, 250, 248, 1);
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-foreground);
  box-shadow: 0 1px 2px rgba(14, 143, 138, 0.26);
}

.button-primary:hover {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
  transform: translateY(-1px);
}

.button-primary:active {
  transform: translateY(0);
}

.button-secondary {
  background: transparent;
  border-color: var(--foreground);
  color: var(--foreground);
}

.button-secondary:hover {
  background: var(--muted);
  border-color: var(--accent);
  color: var(--accent);
}

.button-ghost {
  background: transparent;
  color: var(--muted-foreground);
  text-decoration: none;
}

.button-ghost:hover {
  color: var(--foreground);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.section {
  padding-block: clamp(2.5rem, 8vw, 4rem);
  border-top: 1px solid var(--border);
}

.section-head {
  margin-bottom: 1.5rem;
}

h2 {
  margin-top: 0.9rem;
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.card,
.metric-card,
.component-demo {
  position: relative;
  overflow: hidden;
  border-radius: 0.55rem;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 200ms ease-out,
    box-shadow 200ms ease-out,
    background-color 200ms ease-out;
}

.card::after,
.metric-card::after,
.component-demo::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.45;
}

.card {
  padding: 1.5rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

.card:hover,
.metric-card:hover,
.component-demo:hover {
  border-color: #dbd4ca;
  background: #fffdfa;
  box-shadow: var(--shadow-md);
}

.card-hero {
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: auto;
}

.card-hero-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 0.55rem 0.55rem 0 0;
  flex-shrink: 0;
}

.card-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 300ms ease;
}

.card-hero:hover .card-hero-image img {
  transform: scale(1.05);
}

.card-hero h3,
.card-hero p {
  padding: 0 1.5rem;
}

.card-hero h3:first-of-type {
  padding-top: 1.5rem;
}

.card-hero p {
  padding-bottom: 1.5rem;
}

.card::before,
.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    circle 260px at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(14, 143, 138, 0.1),
    transparent 68%
  );
  opacity: var(--spot-opacity, 0);
  transition: opacity 200ms ease-out;
}

.card h3 {
  font-size: 1.42rem;
  line-height: 1.3;
}

.card p {
  margin: 0.7rem 0 0;
  color: var(--muted-foreground);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card {
  padding: 1.2rem 1.05rem;
}

.metric-label {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: var(--muted-foreground);
}

.metric-value {
  margin: 0.5rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4.8vw, 3.25rem);
  line-height: 1.03;
  color: var(--foreground);
}

.metric-note {
  margin: 0.55rem 0 0;
  color: var(--muted-foreground);
  line-height: 1.55;
}

.component-demo {
  padding: 1.45rem;
  display: grid;
  gap: 1.2rem;
}

.waitlist-form {
  display: grid;
  gap: 0.5rem;
}

.input-wrap {
  display: grid;
  gap: 0.48rem;
  max-width: 420px;
}

label {
  color: var(--muted-foreground);
  letter-spacing: 0.03em;
}

input {
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  background: transparent;
  color: var(--foreground);
  min-height: 44px;
  padding: 0.7rem 0.85rem;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out;
}

input::placeholder {
  color: color-mix(in srgb, var(--muted-foreground) 60%, #ffffff 40%);
}

input:hover {
  border-color: #d8d1c7;
}

input:focus {
  border-color: var(--accent);
}

.button-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.waitlist-feedback {
  margin: 0.4rem 0 0;
  min-height: 1.4rem;
  color: var(--muted-foreground);
}

.waitlist-dashboard {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.95rem;
  background: #fffdfa;
}

.waitlist-total {
  margin: 0.45rem 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.3rem, 3.5vw, 1.9rem);
  line-height: 1.2;
}

.waitlist-subtle {
  margin: 0.6rem 0 0;
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

.waitlist-list {
  margin: 0.45rem 0 0;
  padding-left: 1rem;
  color: var(--muted-foreground);
  display: grid;
  gap: 0.2rem;
}

.waitlist-list li {
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .menu-toggle,
  .mobile-nav {
    display: none;
  }

  .nav-desktop {
    display: inline-flex;
  }

  .hero {
    padding-block: clamp(4.2rem, 9vw, 7rem);
  }

  .bento-grid {
    grid-template-columns: 1.3fr 0.7fr;
    gap: 1.2rem;
  }

  .card {
    min-height: 200px;
  }

  .card-hero {
    grid-row: span 2;
  }

  .metric-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 0.55rem;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
  }

  .metric-card {
    border: 0;
    border-right: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
  }

  .metric-card:last-child {
    border-right: 0;
  }

  .component-demo {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-12px);
  }
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .hero {
    transform: none !important;
    opacity: 1 !important;
  }
}

.footer {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  margin-top: 4rem;
  margin-bottom: 0;
  padding: 2rem 1rem;
  background: var(--accent);
  text-align: center;
  color: var(--accent-foreground);
  font-size: 0.875rem;
}

.footer .container {
  width: min(960px, calc(100% - 2rem));
  margin-inline: auto;
}

.footer p {
  margin: 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

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

.footer-links a {
  color: var(--accent-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 0.8;
}
