/*
 * Blue Clay Inc. Splash Page Styles
 * Light mode, clean, minimal
 */

@import url("./tokens.css");

html {
  background: #ffffff;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: #ffffff;
  min-height: 100vh;
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
}

/* ========== Navigation (Sticky) ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 var(--space-5);
  background: transparent;
}

.nav-logo {
  display: block;
  opacity: 0.9;
}

.nav-logo:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.nav-logo img {
  height: 24px;
  width: auto;
  display: block;
}

/* ========== Hero Section ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-5) var(--space-8);
  max-width: 800px;
  margin: -48px auto 0;
  text-align: center;
}

.hero-logo {
  width: min(280px, 50vw);
  height: auto;
  margin-bottom: var(--space-6);
  opacity: 0;
  animation: heroLogoFadeIn 0.6s ease forwards, heroLogoBreathing 4s ease-in-out 0.6s infinite;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading-bold);
  font-size: var(--text-hero-h1);
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin: 0 0 var(--space-4);
  opacity: 0;
  transform: translateY(20px);
  animation: heroHeadlineSlideUp 0.6s ease 0.8s forwards;
}

.hero h2 {
  font-family: var(--font-body);
  font-weight: var(--font-weight-body-regular);
  font-size: var(--text-hero-h2);
  line-height: var(--line-height-body);
  color: var(--color-text-secondary);
  margin: 0 0 var(--space-5);
  opacity: 0;
  animation: heroSubheadFadeIn 0.6s ease 1.6s forwards;
}

.hero .statement {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.hero .statement-item {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading-bold);
  font-size: clamp(16px, 2vw, 24px);
  color: var(--color-text-primary);
  opacity: 0;
  animation: statementFadeIn 0.6s ease forwards;
}

.hero .statement-item:nth-child(1) { animation-delay: 2.4s; }
.hero .statement-item:nth-child(2) { animation-delay: 3.2s; }
.hero .statement-item:nth-child(3) { animation-delay: 4.0s; }

@keyframes statementFadeIn {
  to { opacity: 1; }
}

.hero .statement-word {
  margin-right: 1px;
}

.hero .statement-dot {
  font-weight: 400;
}

.hero .statement-dot.dot-amber {
  color: var(--color-signal-amber);
}

.hero .statement-dot.dot-blue {
  color: var(--color-accent);
}

.hero .statement-dot.dot-teal {
  color: var(--color-signal-teal);
}

@keyframes heroLogoFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes heroLogoBreathing {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

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

@keyframes heroSubheadFadeIn {
  to { opacity: 1; }
}

/* ========== Footer ========== */
.footer {
  padding: var(--space-5) var(--space-5);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.footer-moat {
  font-family: var(--font-body);
  font-weight: var(--font-weight-body-light);
  font-size: var(--text-body);
  color: var(--color-text-secondary);
  margin: 0;
  max-width: 36em;
  line-height: 1.5;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: var(--text-tiny);
  font-weight: var(--font-weight-body-regular);
  color: var(--color-text-secondary);
  margin: 0;
}

/* ========== Responsive ========== */
/*
 * Breakpoints (standard):
 * Mobile:  < 640px
 * Tablet:  640px - 1023px (iPad portrait 768, landscape 1024)
 * Desktop: 1024px+
 */

/* ---- Mobile (< 640px) ---- */
@media (max-width: 639px) {
  .nav {
    padding: 0 var(--space-4);
    height: 48px;
  }

  .nav-logo img {
    height: 20px;
  }

  .hero {
    padding: var(--space-6) var(--space-4);
    min-height: 100svh;
  }

  .hero-logo {
    width: min(220px, 55vw);
    margin-bottom: var(--space-4);
  }

  .hero h1 {
    font-size: clamp(28px, 7.5vw, 36px);
    margin-bottom: var(--space-3);
  }

  .hero h2 {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: var(--space-4);
  }

  .hero .statement {
    justify-content: center;
    max-width: 100%;
    padding: 0;
  }

  .hero .statement-item {
    font-size: 14px;
  }

  .footer {
    padding: var(--space-4) var(--space-4);
    gap: var(--space-2);
  }

  .footer-copy {
    font-size: 11px;
  }
}

/* ---- Tablet (640px - 1023px) ---- */
@media (min-width: 640px) and (max-width: 1023px) {
  .hero {
    padding: var(--space-7) var(--space-5);
  }

  .hero h1 {
    font-size: clamp(36px, 5vw, 48px);
  }

  .hero h2 {
    font-size: 20px;
  }

  .hero .statement-item {
    font-size: 18px;
  }
}

/* ---- Desktop (1024px+) ---- */
@media (min-width: 1024px) {
  .hero .statement-item {
    font-size: 24px;
  }
}
