/* =========================================================
   CobaCobi — Coming Soon
   Design language borrowed from the playful GXI2 source
   (commit d0aac21): coral + electric-blue + warm-yellow,
   Space Grotesk + Hedvig Letters italic + Inter.
   ========================================================= */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0B0B12;
  --bg: #FDFCFA;
  --accent-1: #FF4E3F;   /* coral */
  --accent-2: #4A6BFF;   /* electric blue */
  --accent-3: #FFC83A;   /* warm yellow */
  --muted: #6D6D78;
  --border: rgba(11, 11, 18, 0.08);
  --surface: #FFFFFF;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 4px 20px rgba(11, 11, 18, 0.06);
  --max: 1100px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--accent-1);
}

/* ---------- Typography ---------- */
h1 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.script {
  font-family: "Hedvig Letters Serif", "Georgia", serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* Focus ring */
:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Header / wordmark ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 250, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
}

.nav__wordmark {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.nav__brand:hover .nav__wordmark {
  color: var(--ink);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease);
  white-space: nowrap;
  line-height: 1;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--accent-1);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 78, 63, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(255, 78, 63, 0.36);
  background: #ff5a4c;
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 0 120px;
  overflow: hidden;
  isolation: isolate;
  min-height: calc(100vh - 72px - 140px); /* viewport − header − footer breathing room */
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.hero__kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 0 4px rgba(255, 78, 63, 0.18);
}

.hero__title {
  font-size: clamp(2.25rem, 7vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  overflow-wrap: break-word;
  word-break: normal;
}

.hero__title .script {
  color: var(--accent-1);
  font-weight: 400;
}

.hero__sub {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.55;
}

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

/* ---------- Gradient blob (behind hero) ---------- */
.hero__blobwrap {
  position: absolute;
  inset: -60px -80px -40px -80px;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  inset: -10% -5% -10% -5%;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.75;
  animation: drift 18s var(--ease) infinite alternate;
}

.blob::before,
.blob::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.blob::before {
  width: 60%;
  height: 60%;
  top: 10%;
  left: 10%;
  background: radial-gradient(circle at 30% 30%, var(--accent-1), transparent 70%);
  animation: spin 22s linear infinite;
}

.blob::after {
  width: 55%;
  height: 55%;
  bottom: 5%;
  right: 5%;
  background: radial-gradient(circle at 70% 70%, var(--accent-2), transparent 70%);
  animation: spin 28s linear infinite reverse;
}

.blob__tail {
  position: absolute;
  width: 40%;
  height: 40%;
  top: 30%;
  left: 35%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-3), transparent 65%);
  animation: pulse 10s var(--ease) infinite alternate;
}

/* ---------- Footer ---------- */
.footer {
  padding: 36px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.footer p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer__tiny {
  color: var(--muted);
}

.footer a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.footer a:hover {
  color: var(--accent-1);
}

/* ---------- Keyframes ---------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes drift {
  0%   { transform: translate3d(0,   0,   0) scale(1); }
  100% { transform: translate3d(-4%, 3%,  0) scale(1.08); }
}

@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(1.15); opacity: 0.45; }
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .container { padding: 0 22px; }

  .hero { padding: 60px 0 90px; min-height: calc(100vh - 72px - 120px); }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }

  /* Comfortable 44px+ touch target on mobile */
  .btn { padding: 16px 24px; font-size: 1rem; }

  /* Keep the italic accent word atomic so it doesn't break mid-word */
  .hero__title .script { display: inline-block; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }

  .container { padding: 0 18px; }

  .hero { padding: 44px 0 72px; }

  .hero__title { letter-spacing: -0.035em; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .blob,
  .blob::before,
  .blob::after,
  .blob__tail {
    animation: none !important;
  }
}
