:root {
  --teal: #045a54;
  --teal-dark: #033f3b;
  --teal-light: #0a746c;
  --gold: #dfa42a;
  --gold-light: #f0c463;
  --cream: #faf6ec;
  --ink: #0d1f1d;
  --max-w: 1320px;
  --radius: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
}

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

h1, h2 { font-weight: 800; letter-spacing: -0.01em; margin: 0 0 .4em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--teal); }
p { margin: 0 0 1em; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background .3s var(--ease), padding .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(250, 246, 236, .92);
  backdrop-filter: blur(8px);
  padding: 10px 0;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
}
.header-row { display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #fff; font-weight: 800; font-size: 1.05rem;
  transition: color .3s var(--ease);
}
.brand-logo { border-radius: 50%; }

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  position: relative;
  padding: 4px 0;
  transition: color .3s var(--ease);
}
.site-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--gold);
  transition: width .25s var(--ease);
}
.site-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2.5px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease);
}

.site-header.scrolled .brand,
.site-header.scrolled .site-nav a { color: var(--ink); }
.site-header.scrolled .nav-toggle span { background: var(--teal); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--teal);
  color: #fff;
}
.hero-bg {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 20% 20%, rgba(223,164,42,.18), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(223,164,42,.14), transparent 50%),
    linear-gradient(160deg, var(--teal) 0%, var(--teal-dark) 100%);
  will-change: transform;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 110px;
  padding-bottom: 60px;
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  text-align: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}
.hero-logo {
  position: relative;
  z-index: 2;
  border-radius: 50%;
  will-change: transform;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,.35));
  animation: floatY 6s ease-in-out infinite;
}
.glow-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(223,164,42,.35);
}
.ring-1 { width: 340px; height: 340px; animation: spinSlow 22s linear infinite; }
.ring-2 { width: 400px; height: 400px; border-style: dashed; animation: spinSlow 34s linear infinite reverse; }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: .3em;
}
.hero-tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  max-width: 620px;
  color: var(--gold-light);
  font-weight: 600;
}
.hero-sub {
  max-width: 560px;
  color: rgba(255,255,255,.85);
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

@media (min-width: 960px) {
  .hero-split { grid-template-columns: 1.15fr 0.85fr; text-align: left; }
  .hero-copy { align-items: flex-start; }
  .hero-cta { justify-content: flex-start; }
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 16px;
  z-index: 2;
}
.scroll-hint span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 6px; opacity: 1; }
  70% { top: 22px; opacity: 0; }
  100% { top: 22px; opacity: 0; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: .98rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(223,164,42,.35);
}
.btn-primary:hover { background: var(--gold-light); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn-store {
  background: var(--ink);
  color: #fff;
}
.btn-store:hover { background: #000; }
.btn-large { font-size: 1.1rem; padding: 16px 34px; }

/* Sections */
.section {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}
.section.alt { background: #fff; }
.section-sub { color: #4a5a58; max-width: 640px; }

.section::before {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(4,90,84,.07), transparent 70%);
  top: -220px;
  right: -220px;
  pointer-events: none;
  z-index: 0;
}
.section.alt::before {
  background: radial-gradient(circle, rgba(223,164,42,.10), transparent 70%);
  top: auto;
  bottom: -260px;
  left: -220px;
  right: auto;
}
.section > .wrap { position: relative; z-index: 1; }

/* Fan-of-cards scroll section */
.fan-section {
  position: relative;
  height: 300vh;
  background: linear-gradient(180deg, var(--teal-dark), var(--teal) 45%, var(--teal-dark));
}
.fan-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.fan-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  width: 100%;
}
.fan-text { color: #fff; text-align: center; }
.fan-text h2 { color: #fff; }
.fan-text p { color: rgba(255,255,255,.8); max-width: 420px; margin: 0 auto; }
.fan-stage {
  position: relative;
  height: 340px;
  perspective: 1200px;
}
.fan-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170px;
  aspect-ratio: 63 / 88;
  margin-left: -85px;
  margin-top: -119px;
  will-change: transform;
}
.fan-card-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  background: linear-gradient(160deg, var(--teal-light), var(--teal-dark) 70%);
  border: 3px solid var(--gold);
  box-shadow: 0 24px 44px rgba(0,0,0,.4);
  position: relative;
}
.fan-card-inner::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(223,164,42,.45);
  border-radius: 50% / 38%;
}
.fan-card-inner img { width: 42%; opacity: .95; border-radius: 50%; }

@media (min-width: 860px) {
  .fan-wrap { grid-template-columns: 1fr 1.2fr; text-align: left; }
  .fan-text { text-align: left; }
  .fan-text p { margin: 0; }
}

/* About split */
.about-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.about-text { font-size: 1.15rem; }
.about-badges {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.badge-pill {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border: 1px solid rgba(4,90,84,.1);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: 0 6px 18px rgba(4,90,84,.07);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.badge-pill:hover { transform: translateY(-4px) translateX(4px); box-shadow: 0 12px 26px rgba(4,90,84,.14); }
.badge-pill strong { color: var(--teal); font-size: 1.05rem; }
.badge-pill span { color: #4a5a58; font-size: .9rem; }

@media (min-width: 860px) {
  .about-split { grid-template-columns: 1.3fr 1fr; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.about-grid { max-width: 780px; }
.about-text { font-size: 1.15rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 32px;
}
@media (min-width: 700px) {
  .card-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(4,90,84,.08);
  border: 1px solid rgba(4,90,84,.08);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.section.alt .card { background: var(--cream); }
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(4,90,84,.16);
  border-color: var(--gold);
}
.card-icon {
  width: 44px; height: 44px;
  color: var(--teal);
  transition: transform .35s var(--ease);
}
.card-icon svg { width: 100%; height: 100%; }
.card:hover .card-icon { transform: scale(1.12) rotate(-4deg); }
.card-icon-logo { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.card-icon-logo img { width: 100%; height: 100%; object-fit: contain; }
.card-title { font-weight: 800; font-size: 1.15rem; color: var(--teal); }
.card-desc { color: #4a5a58; font-size: .95rem; }

.app-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 40px;
}
.app-logo {
  border-radius: 50%;
  justify-self: center;
  filter: drop-shadow(0 12px 26px rgba(4,90,84,.25));
}

.contact-wrap { text-align: center; max-width: 640px; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: 32px 0;
}
.footer-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.footer-row img { border-radius: 50%; }
.footer-row p { margin: 0; }
.footer-social { display: flex; gap: 14px; margin-left: auto; }
.footer-social a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: .85rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  padding: 6px 12px;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.footer-social a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(280px, 80vw);
    background: var(--teal-dark);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 26px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { color: #fff; font-size: 1.15rem; }
  .app-grid { grid-template-columns: 1fr; text-align: center; }
  .app-logo { order: -1; width: 140px; height: 140px; }
  .footer-row { flex-direction: column; }
  .footer-social { margin-left: 0; }
  .hero-visual { order: -1; min-height: 200px; }
  .ring-1 { width: 240px; height: 240px; }
  .ring-2 { width: 290px; height: 290px; }
  .hero-logo { width: 170px; height: 170px; }
  .fan-card { width: 120px; margin-left: -60px; margin-top: -84px; }
  .about-badges { flex-direction: row; flex-wrap: wrap; }
  .badge-pill { flex: 1 1 140px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg, .hero-logo { transform: none !important; }
  .hero-logo, .glow-ring { animation: none !important; }
  .scroll-hint span { animation: none; }
  .btn:hover, .card:hover { transform: none; }
  .fan-section { height: auto; }
  .fan-sticky { position: relative; height: auto; padding: 80px 0; }
  .fan-card { position: relative; margin: 0 auto; display: inline-block; }
}
