/* ─── Variables ─── */
:root {
  --cream:       #f5efe6;
  --cream-light: #faf6f0;
  --cream-deep:  #ede3d4;
  --orange:      #e8621a;
  --orange-dark: #c04e10;
  --orange-glow: rgba(232, 98, 26, 0.18);
  --orange-soft: rgba(232, 98, 26, 0.08);
  --text-dark:   #2a1a0e;
  --text-mid:    #7a5c42;
  --text-light:  #b09070;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--text-dark);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ─── Noise Texture Overlay ─── */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* ─── Ambient Orbs ─── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 12s ease-in-out infinite alternate;
}

.orb-1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(232, 98, 26, 0.22) 0%, transparent 70%);
  top: -120px; right: -100px;
  animation-delay: 0s;
}
.orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(232, 98, 26, 0.12) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  animation-delay: -4s;
  animation-duration: 16s;
}
.orb-3 {
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(200, 140, 60, 0.14) 0%, transparent 70%);
  top: 45%; left: 30%;
  animation-delay: -8s;
  animation-duration: 20s;
}

@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -20px) scale(1.05); }
  100% { transform: translate(-20px, 30px) scale(0.97); }
}

/* ─── Main Layout ─── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 2rem;
}

/* ─── Header ─── */
.site-header {
  width: 100%;
  display: flex;
  justify-content: center;
}

.logo-mark {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  opacity: 0.85;
}

/* ─── Center Content ─── */
.center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.6rem;
  max-width: 680px;
  width: 100%;
}

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ─── Headline ─── */
.headline {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.25em;
  color: var(--text-dark);
}

.word { display: inline-block; }

.word.accent {
  color: var(--orange);
  position: relative;
}

/* Animated underline on accent word */
.word.accent::after {
  content: '';
  position: absolute;
  bottom: 0.005em;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  animation: underline-grow 0.8s var(--ease-expo) 1.4s forwards;
}

@keyframes underline-grow {
  to { width: 100%; }
}

/* ─── Subtext ─── */
.subtext {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 420px;
}

/* ─── CTA ─── */
.cta-wrap {
  margin-top: 0.4rem;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: var(--text-dark);
  color: var(--cream-light);
  text-decoration: none;
  padding: 1rem 1.8rem;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease-back),
    box-shadow 0.4s ease,
    background 0.3s ease;
  box-shadow:
    0 4px 24px rgba(42, 26, 14, 0.18),
    0 0 0 0 var(--orange-glow);
}

.app-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 0;
}

.app-btn:hover::before { opacity: 1; }

.app-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 12px 36px rgba(232, 98, 26, 0.35),
    0 0 0 6px var(--orange-soft);
}

.app-btn:active {
  transform: translateY(-1px) scale(1.01);
}

.apple-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: transform 0.3s var(--ease-back);
}

.app-btn:hover .apple-icon {
  transform: scale(1.1);
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.btn-label {
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0.75;
  text-transform: uppercase;
}

.btn-store {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.btn-arrow {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  opacity: 0;
  transform: translate(-6px, 4px);
  transition:
    opacity 0.3s ease,
    transform 0.4s var(--ease-expo);
}

.app-btn:hover .btn-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

/* ─── Fine Print ─── */
.fine-print {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--text-light);
  text-transform: uppercase;
}

/* ─── Footer ─── */
.site-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
}

.dot { opacity: 0.4; }

/* ─── Fade-Up Animation ─── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fade-up-in 0.85s var(--ease-expo) forwards;
}

@keyframes fade-up-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.78s; }
.delay-6 { animation-delay: 0.94s; }
.delay-7 { animation-delay: 1.1s; }

/* ─── Responsive ─── */
@media (max-width: 500px) {
  .hero { padding: 2rem 1.25rem; }
  .center-content { gap: 1.3rem; }
  .app-btn { padding: 0.9rem 1.4rem; gap: 0.75rem; }
  .btn-store { font-size: 0.95rem; }
}