/* ==========================================================================
   AWOOGA — Landing page styles
   ========================================================================== */

/* ---------- Hero --------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(110% 80% at 15% 0%, rgba(201,162,39,0.20), transparent 50%),
    linear-gradient(170deg, var(--navy-800) 0%, var(--navy-900) 100%);
  color: var(--cream); padding: clamp(3rem, 6vw, 5.5rem) 0 0;
}
.hero__inner { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.7rem, 6.5vw, 5rem); color: var(--cream); margin-bottom: 0.4rem; }
.hero h1 em { font-style: normal; color: var(--brass-lt); }
.hero__sub { font-size: clamp(1.1rem, 1.8vw, 1.35rem); color: rgba(247,241,227,0.86); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }
.hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 5px solid rgba(247,241,227,0.92); transform: rotate(-1.4deg); }
.hero__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.hero__tag { position: absolute; top: 14px; right: -2px; background: var(--brass); color: var(--navy-900); font-weight: 700; padding: 0.4rem 0.9rem; border-radius: 999px 0 0 999px; box-shadow: var(--shadow); font-size: 0.85rem; }
@media (max-width: 860px) { .hero__inner { grid-template-columns: 1fr; } .hero__media { transform: none; } }

.hero-wave { display: block; line-height: 0; margin-top: clamp(2rem, 5vw, 3.5rem); }
.hero-wave svg { display: block; width: 100%; height: auto; }

/* ---------- Spec chips --------------------------------------------------- */
.specs { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.spec-chip { display: inline-flex; align-items: center; gap: 0.4rem; background: rgba(247,241,227,0.1); border: 1px solid rgba(247,241,227,0.18); color: var(--cream); padding: 0.4rem 0.85rem; border-radius: 999px; font-size: 0.85rem; }
.spec-chip b { color: var(--brass-lt); font-weight: 700; }

/* ---------- Featured build strip ---------------------------------------- */
.feature-build { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.feature-build__media { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.feature-build__media img { border-radius: var(--radius-sm); aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow-sm); width: 100%; }
.feature-build__media figure { margin: 0; }
.feature-build__media figure:first-child { grid-row: span 2; }
.feature-build__media figure:first-child img { aspect-ratio: 3 / 4; height: 100%; }
@media (max-width: 760px) { .feature-build { grid-template-columns: 1fr; } }

/* ---------- Explore hub (tiered) ----------------------------------------- */
/* Tier 1: a full-width Build banner. Tier 2: three primary destination cards.
   Tier 3 (.explore-utils): a compact row of utility tiles. The hierarchy keeps
   the nine links from reading as one flat wall of equal boxes. */
.explore { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.xcard { display: flex; flex-direction: column; padding: 1.6rem 1.5rem; min-height: 190px; position: relative; }
.xcard__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--cream-2); margin-bottom: 1rem; }
.xcard__icon svg { width: 26px; height: 26px; color: var(--navy-800); }
.xcard h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.xcard p { color: var(--text-soft); font-size: 0.95rem; margin: 0; }
.xcard__arrow { margin-top: auto; padding-top: 0.9rem; color: var(--red); font-weight: 700; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.xcard:hover .xcard__arrow { gap: 0.6rem; }
@media (max-width: 860px) { .explore { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .explore { grid-template-columns: 1fr; } }

/* Tier 1 — the star: a full-width banner with a stat cluster */
.xcard--feature {
  grid-column: 1 / -1;
  flex-direction: row; align-items: center; justify-content: space-between;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  padding: clamp(1.8rem, 4vw, 2.6rem) clamp(1.8rem, 4vw, 2.8rem);
  min-height: 0; overflow: hidden;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-900));
  color: var(--cream);
}
.xcard--feature::before {
  content: ""; position: absolute; top: -45%; right: -4%;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(227,195,90,0.18), transparent 65%);
  pointer-events: none;
}
.xcard--feature > * { position: relative; z-index: 1; }
.xcard--feature__main { max-width: 48ch; }
.xcard--feature__eyebrow {
  font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.72rem; font-weight: 700; color: var(--brass-lt); margin: 0 0 0.5rem;
}
.xcard--feature h3 { color: var(--cream); font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.4rem; }
.xcard--feature p { color: rgba(247,241,227,0.86); }
.xcard--feature .xcard__arrow { color: var(--brass-lt); margin-top: 1rem; padding-top: 0; }
.xcard--feature__stats { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 2.5vw, 2rem); flex: 0 0 auto; }
.xcard--feature__stats li { text-align: center; }
.xcard--feature__stats b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--brass-lt); line-height: 1; }
.xcard--feature__stats span { display: block; margin-top: 0.25rem; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(247,241,227,0.7); }
@media (max-width: 680px) {
  .xcard--feature { flex-direction: column; align-items: flex-start; }
  .xcard--feature__stats { width: 100%; justify-content: space-between; gap: 1rem; }
}

/* Tier 3 — compact utility tiles */
.explore-utils-head { display: flex; align-items: center; gap: 0.9rem; margin: clamp(2rem, 4vw, 2.8rem) 0 1.2rem; }
.explore-utils-head span {
  font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.74rem; font-weight: 700; color: var(--wood-dk); white-space: nowrap;
}
.explore-utils-head::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
.explore-utils { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.9rem; }
.ucard {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.ucard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(201,162,39,0.4); }
.ucard__icon { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--cream-2); }
.ucard__icon svg { width: 19px; height: 19px; color: var(--navy-800); }
.ucard__body { min-width: 0; }
.ucard__body h3 { font-size: 0.98rem; margin: 0; line-height: 1.15; }
.ucard__body p { font-size: 0.78rem; color: var(--text-soft); margin: 0.08rem 0 0; }
@media (max-width: 900px) { .explore-utils { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .explore-utils { grid-template-columns: 1fr 1fr; } }
@media (max-width: 380px) { .explore-utils { grid-template-columns: 1fr; } }

/* ---------- AWOOGA in Motion (launch video) ----------------------------- */
.motion { overflow: hidden; }
.motion-player { margin: 0; max-width: 960px; margin-inline: auto; }
.motion-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9; /* fallback until motion.js reads the real dimensions */
  /* Hard ceiling so a tall (portrait) clip can never blow the section up,
     even if the portrait width rule below somehow isn't applied. With an
     aspect-ratio set, the browser shrinks the width to honor this height. */
  max-height: min(78vh, 720px);
  background: #06121f;
  border: 5px solid rgba(247, 241, 227, 0.92);
  box-shadow: var(--shadow-lg);
  margin-inline: auto;
  transition: max-width 0.3s var(--ease);
}
/* Portrait (e.g. iPhone) clips: keep a tasteful, phone-held width instead of
   stretching a tall video across the whole column. */
.motion.is-portrait .motion-frame { max-width: min(100%, 405px); }
.motion-video,
.motion-poster,
.motion-iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  border: 0;
  background: #06121f;
}
.motion-video,
.motion-poster {
  object-fit: cover; /* frame matches the clip's ratio, so nothing is cropped */
}
/* Custom play overlay */
.motion-play {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem;
  background: linear-gradient(180deg, rgba(8,18,31,0.18), rgba(8,18,31,0.5));
  border: 0; width: 100%; height: 100%;
  color: var(--cream);
  transition: opacity 0.3s var(--ease);
}
.motion-play:hover { background: linear-gradient(180deg, rgba(8,18,31,0.12), rgba(8,18,31,0.42)); }
.motion-play__core {
  position: relative;
  width: 86px; height: 86px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 32% 28%, var(--brass-lt), var(--brass) 62%, #a9851a);
  color: var(--navy-900);
  box-shadow: 0 10px 30px rgba(8,18,31,0.5), inset 0 1px 0 rgba(255,255,255,0.5);
  transition: transform 0.2s var(--ease);
}
.motion-play__core svg { width: 38px; height: 38px; margin-left: 5px; }
.motion-play:hover .motion-play__core { transform: scale(1.08); }
.motion-play__ring {
  position: absolute; top: 50%; left: 50%;
  width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%;
  border: 2px solid rgba(227, 195, 90, 0.6);
  animation: motion-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes motion-pulse { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(1.9); opacity: 0; } }
.motion-play__label {
  font-family: var(--font-sans); font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.02em; text-transform: uppercase;
  background: rgba(8,18,31,0.55); padding: 0.45rem 1rem; border-radius: 999px;
  backdrop-filter: blur(4px);
}
/* Graceful fallback when the clip isn't on the server yet */
.motion-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; text-align: center; padding: 1.5rem;
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  color: var(--cream);
}
.motion-fallback__icon { font-size: 2.4rem; }
.motion-fallback__title { font-family: var(--font-display); font-size: 1.3rem; color: var(--cream); margin: 0; }
.motion-fallback__text { color: rgba(247,241,227,0.78); max-width: 42ch; margin: 0 0 0.6rem; font-size: 0.98rem; }
.motion-cap {
  margin-top: 1rem; text-align: center;
  color: rgba(247,241,227,0.7); font-size: 0.92rem; font-style: italic;
}
@media (prefers-reduced-motion: reduce) { .motion-play__ring { animation: none; opacity: 0; } }

/* ---------- Name callout ------------------------------------------------- */
.callout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,4vw,3rem); align-items: center; }
.callout__big {
  font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.5rem); color: var(--brass); line-height: 1;
  display: inline-block; background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  letter-spacing: -0.01em; transition: transform 0.18s var(--ease), color 0.18s var(--ease);
}
.callout__big:hover { color: var(--brass-lt); transform: scale(1.03) rotate(-1deg); }
.callout__big:active { transform: scale(0.97); }
.callout__big:focus-visible { outline: 3px solid var(--brass-lt); outline-offset: 6px; border-radius: 10px; }
.callout__hint {
  margin: 0.8rem 0 0; color: rgba(247,241,227,0.62);
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600;
}
@media (max-width: 760px) { .callout { grid-template-columns: 1fr; } }
