/* CellBuddies — Apple-inspired maintenance page */

:root {
  --bg-light: #f5f5f7;
  --bg-white: #ffffff;
  --bg-dark: #000000;
  --bg-dark-elevated: #1d1d1f;
  --text: #1d1d1f;
  --text-secondary: #86868b;
  --text-on-dark: #f5f5f7;
  --text-on-dark-muted: #a1a1a6;
  --accent: #39b54a;
  --accent-soft: #34c759;
  --nav-height: 52px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, sans-serif;
  --max: 980px;
  --wide: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--text);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ----- Nav ----- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.site-header.is-ready {
  opacity: 1;
  transform: translateY(0);
}

.nav {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.nav__logo {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.nav__name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.nav__wordmark {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-on-dark);
  letter-spacing: -0.01em;
}

.nav__wordmark .accent {
  color: var(--accent);
}

.nav__tld {
  color: var(--text-on-dark-muted);
  font-weight: 500;
}

.nav__tagline {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

.status-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}

.status-pill--inline {
  margin-top: 1.25rem;
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text);
}

/* ----- Hero ----- */

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.92;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(245, 245, 247, 0.97) 0%,
      rgba(245, 245, 247, 0.9) 38%,
      rgba(245, 245, 247, 0.55) 62%,
      rgba(245, 245, 247, 0.35) 100%
    ),
    linear-gradient(
      180deg,
      rgba(245, 245, 247, 0.35) 0%,
      transparent 28%,
      transparent 72%,
      rgba(245, 245, 247, 0.85) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 4.5rem 22px 4rem;
  text-align: center;
}

.hero__logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.eyebrow--light {
  color: var(--accent-soft);
}

.hero__title {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero__title .accent {
  color: var(--accent);
}

.hero__lead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  line-height: 1.45;
  letter-spacing: -0.016em;
  color: var(--text-secondary);
  max-width: 34em;
  margin: 0 auto 1.75rem;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  padding: 0.65rem 1.15rem;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.coming-soon__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(57, 181, 74, 0.55);
  animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(57, 181, 74, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(57, 181, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(57, 181, 74, 0);
  }
}

/* ----- Reveal (hero children) ----- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(1) { transition-delay: 0.05s; }
.reveal:nth-child(2) { transition-delay: 0.15s; }
.reveal:nth-child(3) { transition-delay: 0.25s; }
.reveal:nth-child(4) { transition-delay: 0.35s; }
.reveal:nth-child(5) { transition-delay: 0.45s; }

/* ----- Band sections ----- */

.band {
  display: grid;
  gap: 2rem;
  padding: 4.5rem 0 0;
  align-items: center;
}

.band--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding-bottom: 0;
}

.band--dark .band__text {
  color: var(--text-on-dark-muted);
}

.band--light {
  background: var(--bg-white);
  color: var(--text);
  padding-bottom: 0;
}

.band--light .band__text {
  color: var(--text-secondary);
}

.band__copy {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 0 22px 0.5rem;
}

.band h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.band__text {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  line-height: 1.5;
  letter-spacing: -0.014em;
}

.band__figure {
  width: 100%;
  margin: 0;
  line-height: 0;
}

.band__figure img {
  width: 100%;
  border-radius: 0;
}

@media (min-width: 768px) {
  .band {
    padding-top: 5.5rem;
    gap: 2.5rem;
  }

  .band__copy {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* ----- Closing ----- */

.closing {
  background: var(--bg-light);
  padding: 0 0 5rem;
  text-align: center;
}

.closing__figure {
  width: 100%;
  margin: 0 0 2.5rem;
  overflow: hidden;
}

.closing__figure img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: center;
}

.closing__content {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 22px;
}

.closing h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.closing p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.5;
}

.closing .status-pill--inline {
  display: inline-flex;
}

/* ----- Section reveal ----- */

.reveal-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Footer ----- */

.site-footer {
  background: var(--bg-dark);
  color: var(--text-on-dark-muted);
  text-align: center;
  padding: 2.25rem 22px 2.75rem;
  font-size: 12px;
  line-height: 1.6;
}

.footer__brand {
  color: var(--text-on-dark);
  font-weight: 600;
}

.footer__sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}

.footer__copy {
  margin-top: 0.5rem;
  opacity: 0.75;
}

/* ----- Reduced motion ----- */

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

  .site-header,
  .reveal,
  .reveal-section {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .coming-soon__dot {
    animation: none;
  }
}

/* ----- Responsive polish ----- */

@media (max-width: 480px) {
  .nav__tagline {
    display: none;
  }

  .hero__content {
    padding: 5rem 18px 3.5rem;
  }

  .hero__logo {
    width: 72px;
    height: 72px;
    border-radius: 14px;
  }

  .status-pill {
    font-size: 11px;
    padding: 0.3rem 0.6rem;
  }

  .band {
    padding: 3.25rem 0 0;
  }

  .band__copy {
    padding-left: 18px;
    padding-right: 18px;
  }

  .closing {
    padding-bottom: 3.5rem;
  }
}

@media (min-width: 900px) {
  .hero__content {
    padding: 5rem 40px 5rem;
    text-align: left;
    margin-left: max(40px, calc((100% - var(--wide)) / 2));
    margin-right: auto;
    max-width: 560px;
  }

  .hero__logo {
    width: 104px;
    height: 104px;
    margin-left: 0;
    margin-right: auto;
  }

  .hero__lead {
    margin-left: 0;
    margin-right: 0;
  }

  .hero__veil {
    background:
      linear-gradient(
        100deg,
        rgba(245, 245, 247, 0.98) 0%,
        rgba(245, 245, 247, 0.94) 32%,
        rgba(245, 245, 247, 0.55) 55%,
        rgba(245, 245, 247, 0.2) 100%
      );
  }
}

@media (max-width: 899px) {
  .hero__veil {
    background:
      linear-gradient(
        180deg,
        rgba(245, 245, 247, 0.75) 0%,
        rgba(245, 245, 247, 0.88) 45%,
        rgba(245, 245, 247, 0.97) 100%
      );
  }

  .hero__banner {
    object-position: 70% center;
  }
}
