/* mango — marketing site
 * Studio-consistent static page with Mango's cinema-dark, amber identity.
 * Real TV and phone captures remain the visual proof; motion is one-shot only.
 */

:root {
  --bg: #0b0b12;
  --ui: #07080a;
  --surface: #121318;
  --card: #16171d;
  --card-soft: #111218;
  --border: #303038;
  --border-soft: rgba(54, 54, 64, 0.58);
  --text: #f4f1ea;
  --muted: #aaa6a0;
  --dim: #706f72;
  --accent: #e8a020;
  --accent-warm: #ffc65b;
  --accent-soft: rgba(232, 160, 32, 0.1);
  --accent-glow: rgba(232, 160, 32, 0.22);
  --radius-md: 18px;
  --radius-lg: 26px;
  --t-eyebrow: clamp(0.68rem, 0.62rem + 0.2vw, 0.78rem);
  --t-h1: clamp(2.8rem, 2rem + 5vw, 5rem);
  --t-h2: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  --t-h3: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  --t-body: clamp(0.96rem, 0.92rem + 0.2vw, 1.06rem);
  --t-sub: clamp(1.08rem, 1rem + 0.5vw, 1.35rem);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11", "tnum";
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.halo {
  position: fixed;
  inset: -25% -15% auto;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(48% 55% at 50% 0%, rgba(232, 160, 32, 0.22) 0%, transparent 68%),
    radial-gradient(28% 40% at 74% 14%, rgba(255, 198, 91, 0.07) 0%, transparent 72%);
  filter: blur(22px);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover {
  opacity: 0.86;
}

a:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 4px;
  border-radius: 4px;
}

code {
  font-size: 0.92em;
  color: var(--accent-warm);
}

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

.topbar {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(1.1rem, 3vw, 1.55rem) clamp(1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.brand span,
.footer-brand span {
  color: var(--accent);
}

.topnav {
  display: flex;
  gap: clamp(0.9rem, 2.5vw, 1.6rem);
  font-size: 0.9rem;
}

.topnav a {
  color: var(--muted);
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
  opacity: 1;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.experience,
.features,
.principles,
.final-cta {
  border-top: 1px solid var(--border-soft);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow-center {
  text-align: center;
}

h1,
h2,
h3,
p {
  text-wrap: balance;
}

.hero {
  padding-top: clamp(1.6rem, 4vw, 3rem);
  text-align: center;
}

.hero h1 {
  max-width: 16ch;
  margin: 0 auto;
  color: var(--text);
  font-size: var(--t-h1);
  font-weight: 200;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

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

.hero-sub {
  max-width: 50ch;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: var(--t-sub);
  line-height: 1.5;
}

.hero-stage {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  margin: clamp(2.2rem, 5vw, 3.4rem) auto 0;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 14% 8% -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 160, 32, 0.24), transparent 68%);
  filter: blur(42px);
}

.hero-stage img {
  width: 100%;
  border: 1px solid rgba(232, 160, 32, 0.24);
  border-radius: clamp(14px, 2.2vw, 24px);
  box-shadow:
    0 36px 90px rgba(0, 0, 0, 0.6),
    0 0 42px rgba(232, 160, 32, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(1.8rem, 4vw, 2.5rem);
}

.cta-button {
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--text);
  color: var(--ui);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 10px 34px rgba(232, 160, 32, 0.2);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button--secondary {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

.cta-button--secondary:hover,
.cta-button--secondary:focus-visible {
  border-color: var(--accent);
}

.trust-row {
  margin: clamp(2rem, 4vw, 2.6rem) auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.35rem;
  list-style: none;
  color: var(--dim);
  font-size: 0.84rem;
  letter-spacing: 0.015em;
}

.trust-row li {
  position: relative;
  padding-left: 1rem;
}

.trust-row li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.trust-row li:first-child {
  padding-left: 0;
}

.trust-row li:first-child::before {
  display: none;
}

section h2 {
  max-width: 23ch;
  margin: 0 auto;
  color: var(--text);
  font-size: var(--t-h2);
  font-weight: 200;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-align: center;
}

.section-intro {
  max-width: 52ch;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: var(--t-body);
  text-align: center;
}

.story-rail {
  --gap: clamp(0.9rem, 2.4vw, 1.4rem);
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: 1rem clamp(1rem, 4vw, 2.5rem) 1.5rem;
  margin-inline: calc(-1 * clamp(1rem, 4vw, 2.5rem));
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-padding-inline: clamp(1rem, 4vw, 2.5rem);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.story-rail::-webkit-scrollbar {
  display: none;
}

.story-card {
  flex: 0 0 min(76vw, 280px);
  margin: 0;
  overflow: hidden;
  scroll-snap-align: center;
  border: 1px solid rgba(232, 160, 32, 0.16);
  border-radius: var(--radius-lg);
  background: var(--ui);
  filter: drop-shadow(0 18px 48px rgba(0, 0, 0, 0.48));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.story-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 160, 32, 0.38);
}

.story-card img {
  width: 100%;
}

.rail-hint {
  margin: 0.45rem 0 0;
  color: var(--dim);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
}

.feature-grid,
.principle-grid {
  max-width: 980px;
  margin: clamp(2rem, 5vw, 3rem) auto 0;
  display: grid;
  gap: clamp(0.9rem, 2.5vw, 1.25rem);
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-card,
.principle-grid article {
  padding: clamp(1.25rem, 3vw, 1.7rem);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(22, 23, 29, 0.86), rgba(17, 18, 24, 0.86));
}

.feature-card {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
  align-items: start;
}

.feature-num {
  grid-row: 1 / span 2;
  color: var(--accent);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.8;
}

.feature-card h3,
.principle-grid h3 {
  margin: 0;
  color: var(--text);
  font-size: var(--t-h3);
  font-weight: 400;
  letter-spacing: -0.015em;
}

.feature-card p,
.principle-grid p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.principle-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principle-grid article {
  border-top-color: rgba(232, 160, 32, 0.34);
}

.boundary-note {
  max-width: 70ch;
  margin: clamp(1.6rem, 4vw, 2.2rem) auto 0;
  padding: 1rem 1.2rem;
  border-left: 2px solid var(--accent);
  color: var(--dim);
  font-size: 0.9rem;
  line-height: 1.65;
}

.final-cta {
  text-align: center;
}

.final-cta h2 {
  max-width: 20ch;
}

.final-cta > p:not(.eyebrow) {
  max-width: 48ch;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: var(--t-body);
}

.site-footer {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2.5rem) 3rem;
  display: grid;
  gap: 0.65rem;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}

.footer-brand {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 500;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.4rem;
  font-size: 0.88rem;
}

.site-footer nav a {
  color: var(--muted);
}

.footer-meta {
  margin: 0;
  color: var(--dim);
  font-size: 0.78rem;
}

.footer-meta a {
  color: var(--muted);
}

@media (min-width: 760px) {
  .story-rail {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-inline: 0;
    padding: 1rem 0 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .story-card {
    min-width: 0;
  }

  .rail-hint {
    display: none;
  }
}

@media (max-width: 720px) {
  .feature-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .topbar {
    padding: 1rem 1.1rem;
  }

  .topnav a:nth-child(2) {
    display: none;
  }

  .hero {
    padding-top: 1.25rem;
  }

  section {
    padding: 2.7rem 0;
  }

  .cta-group {
    max-width: 22rem;
    margin-inline: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .cta-button {
    width: 100%;
  }

  .trust-row {
    gap: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .feature-card {
    padding: 1.15rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .topbar { animation: rise 0.6s cubic-bezier(.2, .7, .2, 1) both; }
  .hero .eyebrow { animation: rise 0.6s cubic-bezier(.2, .7, .2, 1) 0.05s both; }
  .hero h1 { animation: rise 0.7s cubic-bezier(.2, .7, .2, 1) 0.1s both; }
  .hero-sub { animation: rise 0.7s cubic-bezier(.2, .7, .2, 1) 0.15s both; }
  .hero-stage { animation: rise 0.85s cubic-bezier(.2, .7, .2, 1) 0.22s both; }
  .hero .cta-group { animation: rise 0.6s cubic-bezier(.2, .7, .2, 1) 0.32s both; }
  .trust-row { animation: rise 0.6s cubic-bezier(.2, .7, .2, 1) 0.4s both; }
}

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
