/* ==========================================================================
   CRAVERY — Coming Soon
   Dark, premium, Gen-Z-friendly teaser page.

   Palette is pulled from the actual Cravery mark:
   - orange (pin/fork accent)
   - near-black charcoal (brand background)
   - off-white (wordmark / text)
   ========================================================================== */

:root {
  --bg: #0a0806;
  --bg-elevated: #14100c;
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);

  --text: #f5f1ec;
  --text-muted: #a89e96;
  --text-faint: #6f665f;

  --orange: #e5652f;
  --orange-bright: #ff8a50;
  --orange-dim: rgba(229, 101, 47, 0.18);

  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1100px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  min-height: 100vh;
}

::selection {
  background: var(--orange);
  color: #0a0806;
}

/* --------------------------------------------------------------------
   Decorative overlays
   -------------------------------------------------------------------- */

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 0%, transparent 75%);
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  pointer-events: none;
}

.glow-orange {
  width: 520px;
  height: 520px;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(229, 101, 47, 0.35) 0%, rgba(229, 101, 47, 0) 70%);
}

.glow-ember {
  width: 700px;
  height: 300px;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255, 138, 80, 0.16) 0%, rgba(255, 138, 80, 0) 70%);
  opacity: 0.7;
}

.skyline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 34vh;
  min-height: 210px;
  max-height: 340px;
  opacity: 0.65;

  /* Fade the rooftops into the background so the skyline recedes
     behind the hero copy instead of competing with it */
  mask-image: linear-gradient(to bottom, transparent 0%, black 45%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 45%);
}

.skyline .building rect,
.skyline .building polygon {
  transition: opacity 0.6s ease;
}

.skyline .windows rect {
  animation: flicker 6s ease-in-out infinite;
  animation-delay: calc(var(--d, 0) * 0.35s);
}

@keyframes flicker {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.7; }
}

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

.hero-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

.badge {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-bright);
  border: 1px solid rgba(229, 101, 47, 0.35);
  background: var(--orange-dim);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 40px;
}

.logo-wrap {
  width: min(90vw, 480px);
  margin-bottom: 40px;
  perspective: 900px;
  padding: 22px 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    0 0 60px rgba(229, 101, 47, 0.16),
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.logo-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;

  filter: drop-shadow(0 0 30px rgba(229, 101, 47, 0.3));

  transform: translateZ(0) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transition: transform 0.25s ease-out, filter 0.3s ease;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)); }
  50% { transform: translateY(-10px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)); }
}

.headline {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.02;
  color: var(--text);
  text-shadow:
    0 0 30px rgba(229, 101, 47, 0.25),
    0 4px 24px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
}

.subheading {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 500;
  color: var(--text);
  opacity: 0.92;
  margin-bottom: 10px;
}

.microcopy {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.tag {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 600;
  position: relative;
  padding-bottom: 2px;
}

.tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange-bright);
  margin-right: 8px;
  box-shadow: 0 0 10px 2px rgba(255, 138, 80, 0.6);
  vertical-align: middle;
}

/* --------------------------------------------------------------------
   Teaser / feature cards
   -------------------------------------------------------------------- */

.teaser {
  position: relative;
  z-index: 3;
  padding: 40px 24px 120px;
}

.teaser-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 26px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, background 0.3s ease;
}

.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }

.feature-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  border-color: rgba(229, 101, 47, 0.3);
  background: rgba(255, 255, 255, 0.045);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--orange-dim);
  color: var(--orange-bright);
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-muted);
}

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

.site-footer {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 36px 24px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
}

.footer-word {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.01em;
}

.footer-sub,
.footer-tag {
  font-size: 0.82rem;
  color: var(--text-faint);
}

.footer-sub::before,
.footer-tag::before {
  content: '•';
  margin-right: 14px;
  color: var(--text-faint);
  opacity: 0.5;
}

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

@media (max-width: 860px) {
  .teaser-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 100px 20px 64px;
  }

  .badge {
    margin-bottom: 28px;
  }

  .logo-wrap {
    margin-bottom: 28px;
  }

  .footer-sub::before,
  .footer-tag::before {
    margin-right: 8px;
  }
}

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

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

  .hero-content,
  .logo-img,
  .feature-card,
  .skyline .windows rect {
    animation: none !important;
    transition: none !important;
  }

  .feature-card {
    opacity: 1;
    transform: none;
  }
}
