/* =========================================
   Landing Page Styles — Handcrafted Edition
   ========================================= */

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

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

.hero-bg-image {
  position: absolute;
  inset: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(12px) brightness(0.3);
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-bg-image.loaded {
  opacity: 0.5;
}

/* Single soft vignette — replaces the orb system */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(212, 101, 42, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(6, 14, 28, 0.9) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 var(--space-lg);
}

.hero-pretitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: hero-fade-in 1.2s var(--ease-out) 0.3s forwards;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: hero-fade-in 1.2s var(--ease-out) 0.6s forwards;
}

.hero h1 .ampersand {
  font-family: var(--font-script);
  color: var(--gold);
  font-style: normal;
  font-weight: 400;
}

.hero-divider {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto var(--space-xl);
  opacity: 0;
  animation: hero-fade-in 1.2s var(--ease-out) 0.9s forwards;
}

/* --- Countdown — editorial style --- */
.hero-countdown {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
  opacity: 0;
  animation: hero-fade-in 1.2s var(--ease-out) 1.1s forwards;
}

.hero-countdown .cd-item {
  text-align: center;
  min-width: 52px;
}

.hero-countdown .cd-number {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 400;
  color: var(--ivory);
  line-height: 1;
  letter-spacing: 0;
}

.hero-countdown .cd-label {
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-top: 6px;
  display: block;
}

.hero-countdown .cd-sep {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  color: var(--gold);
  align-self: flex-start;
  line-height: 1;
  opacity: 0.3;
  padding-top: 0.3em;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-fade-in 1.2s var(--ease-out) 1.3s forwards;
}

@keyframes hero-fade-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator — gentle pulse instead of bounce */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0;
  animation: hero-fade-in 1s var(--ease-out) 2s forwards;
}

.scroll-indicator .arrow {
  width: 16px;
  height: 16px;
  border-right: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  transform: rotate(45deg);
  animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes gentle-pulse {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.8; }
}

/* ----- Section Flourish Divider ----- */
.section-flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) 0;
  gap: var(--space-lg);
  opacity: 0.2;
}

.section-flourish::before,
.section-flourish::after {
  content: '';
  flex: 0 0 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-flourish::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-flourish span {
  font-size: 1rem;
  line-height: 1;
  color: var(--gold);
}

/* ----- Story / About Section — asymmetric layout ----- */
.story-section {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
}

.story-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: var(--space-3xl);
  align-items: center;
}

.story-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  transform: rotate(-1.5deg);
  transition: transform 0.6s var(--ease-out);
}

.story-image:hover {
  transform: rotate(0deg);
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-image .frame-accent {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212, 101, 42, 0.15);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

.story-text {
  padding-left: var(--space-xl);
}

.story-text h2 {
  margin-bottom: var(--space-lg);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
}

.story-text p {
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--text-secondary);
}

.story-text p:last-of-type {
  margin-bottom: 0;
}

/* ----- Features — staggered, organic layout ----- */
.features-section {
  background: var(--navy-light);
  position: relative;
}

.features-section .section-header h2 {
  font-weight: 400;
}

.features-section .section-header .accent-line {
  width: 50px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  text-align: left;
  padding: var(--space-2xl) var(--space-xl) var(--space-xl);
  position: relative;
}

/* Stagger the cards vertically */
.feature-card:nth-child(2) {
  margin-top: var(--space-2xl);
}

.feature-card:nth-child(3) {
  margin-top: var(--space-lg);
}

.feature-card .feature-icon {
  width: 52px;
  height: 52px;
  margin: 0 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  position: relative;
}

/* Remove the outer ring from icon */
.feature-card .feature-icon::after {
  display: none;
}

.feature-card .feature-icon svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
  opacity: 0.8;
}

.feature-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.2rem;
  font-weight: 500;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.7;
}

/* ----- CTA / Join Section ----- */
.cta-section {
  text-align: center;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 500px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(212, 101, 42, 0.04), transparent 65%);
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: var(--space-md);
  font-weight: 400;
}

.cta-section p {
  margin: 0 auto var(--space-2xl);
  font-size: 1.05rem;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* SVG icon for CTA */
.cta-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-lg);
  opacity: 0.6;
}

.cta-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .story-image {
    max-width: 340px;
    margin: 0 auto;
    transform: rotate(-0.5deg);
  }

  .story-text {
    padding-left: 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .feature-card:nth-child(2),
  .feature-card:nth-child(3) {
    margin-top: 0;
  }

  .feature-card {
    text-align: center;
  }

  .feature-card .feature-icon {
    margin: 0 auto var(--space-md);
  }

  .hero-countdown {
    gap: var(--space-lg);
  }

  .hero h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .section-flourish {
    padding: var(--space-md) 0;
  }
}
