/* iamSanwich — Coming Soon (draft preview, not published until confirmed) */

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

:root {
  --bg-deep:   oklch(0.09 0.010 50);
  --ink:       oklch(0.94 0.01 95);
  --ink-soft:  oklch(0.72 0.02 75);
  --ink-muted: oklch(0.55 0.02 70);
  --accent:    oklch(0.78 0.13 72);
  --accent-hot:oklch(0.82 0.15 68);
  --line:      oklch(0.28 0.015 60 / 0.55);
  --display:   'Unbounded', system-ui, sans-serif;
  --body:      'Prompt', system-ui, sans-serif;
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --mx: 50%;
  --my: 42%;
}

html, body {
  min-height: 100%;
}

body.coming-soon {
  font-family: var(--body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100svh;
}

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

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

.cs-pointer-light {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    oklch(0.55 0.1 72 / 0.34),
    oklch(0.35 0.06 65 / 0.14) 32%,
    transparent 62%
  );
  transition: opacity 0.35s var(--ease-out);
  opacity: 0.85;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.cs-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

.cs-glow-a {
  width: min(70vw, 560px);
  height: min(70vw, 560px);
  top: 8%;
  left: 50%;
  translate: -50% 0;
  background: oklch(0.45 0.08 70 / 0.22);
  animation: glowDrift 10s ease-in-out infinite alternate;
}

.cs-glow-b {
  width: min(50vw, 380px);
  height: min(50vw, 380px);
  bottom: 5%;
  right: 8%;
  background: oklch(0.35 0.06 45 / 0.18);
  animation: glowDrift 14s ease-in-out infinite alternate-reverse;
}

@keyframes glowDrift {
  from { opacity: 0.45; transform: scale(1); }
  to { opacity: 0.85; transform: scale(1.08); }
}

.letterbox {
  position: fixed;
  left: 0;
  right: 0;
  height: clamp(22px, 4.5vh, 48px);
  background: oklch(0.05 0.008 50);
  z-index: 30;
}

.letterbox-top { top: 0; }
.letterbox-bottom { bottom: 0; }

.cs-stage {
  position: relative;
  z-index: 10;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding:
    calc(clamp(22px, 4.5vh, 48px) + 36px)
    clamp(20px, 5vw, 48px)
    calc(clamp(22px, 4.5vh, 48px) + 36px);
  background: transparent;
}

.cs-brand {
  margin-bottom: clamp(12px, 2.4vh, 20px);
}

.cs-logo {
  width: auto;
  height: clamp(84px, 18vw, 140px);
  margin-inline: auto;
  mix-blend-mode: screen;
  filter: drop-shadow(0 14px 32px oklch(0.05 0.01 50 / 0.55));
}

.cs-kicker {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--accent-hot);
  margin-bottom: 16px;
  text-wrap: balance;
  text-shadow: 0 0 40px oklch(0.78 0.13 72 / 0.28);
}

.cs-lead {
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  color: var(--ink-soft);
  max-width: 34ch;
  text-wrap: pretty;
  margin-bottom: clamp(28px, 5vh, 40px);
}

.cs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cs-cta {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.btn {
  --mx: 50%;
  --my: 50%;
  --glow-alpha: 0.35;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 999px;
  transition:
    background 0.3s var(--ease-out),
    border-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out),
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: oklch(0.12 0.012 55 / 0.45);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  --glow-alpha: 1;
  border-color: oklch(0.78 0.13 72 / 0.55);
  color: var(--ink);
  transform: translateY(-2px);
}

.btn-primary {
  border: 1px solid oklch(0.78 0.13 72 / 0.7);
  color: oklch(0.14 0.02 55);
  background: oklch(0.82 0.13 72);
  font-weight: 600;
  min-width: 180px;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  --glow-alpha: 1;
  transform: translateY(-2px);
  background: oklch(0.88 0.12 72);
}

[data-glow]::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  z-index: 5;
  opacity: var(--glow-alpha);
  transition: opacity 0.25s var(--ease-out);
  box-shadow:
    0 0 0 1px oklch(0.86 0.14 72 / 0.45),
    0 0 18px oklch(0.78 0.13 72 / 0.28),
    0 0 36px oklch(0.78 0.13 72 / 0.14);
}

[data-glow]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(
    180px circle at var(--mx) var(--my),
    oklch(0.92 0.12 85 / 1),
    oklch(0.82 0.15 72 / 0.8) 24%,
    transparent 58%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: var(--glow-alpha);
  transition: opacity 0.25s var(--ease-out);
  pointer-events: none;
  z-index: 6;
}

[data-glow].is-glow-pulse {
  --glow-alpha: 1;
  box-shadow:
    0 0 0 1px oklch(0.9 0.12 80 / 0.5),
    0 0 32px oklch(0.82 0.15 72 / 0.4);
}

[data-glow].is-glow-pulse::after {
  animation: glowPulse 0.7s var(--ease-out);
}

@keyframes glowPulse {
  0% { opacity: 0.75; filter: brightness(1); }
  35% { opacity: 1; filter: brightness(1.5); }
  100% { opacity: 1; filter: brightness(1); }
}

/* Entrance */
.js .cs-brand,
.js .cs-kicker,
.js .cs-lead,
.js .cs-actions,
.js .cs-cta {
  opacity: 0;
  transform: translateY(16px);
  animation: csIn 0.9s var(--ease-out) forwards;
}

.js .cs-brand { animation-delay: 0.08s; }
.js .cs-kicker { animation-delay: 0.2s; }
.js .cs-lead { animation-delay: 0.34s; }
.js .cs-actions { animation-delay: 0.48s; }
.js .cs-cta { animation-delay: 0.6s; }

@keyframes csIn {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-glow-a,
  .cs-glow-b {
    animation: none;
  }

  [data-glow].is-glow-pulse::after {
    animation: none;
  }

  .js .cs-brand,
  .js .cs-kicker,
  .js .cs-lead,
  .js .cs-actions,
  .js .cs-cta {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

@media (max-width: 520px) {
  .cs-actions {
    width: min(100%, 320px);
  }

  .cs-actions .btn {
    flex: 1 1 calc(50% - 12px);
  }
}
