:root {
  --bg: #050505;
  --bg-2: #0c0c0c;
  --ink: #f7f4ec;
  --muted: rgba(247, 244, 236, 0.62);
  --gold: #d4af37;
  --gold-bright: #f0d878;
  --gold-deep: #8a6914;
  --line: #06c755;
  --line-dark: #05a848;
  --glass: rgba(12, 12, 12, 0.72);
  --stroke: rgba(212, 175, 55, 0.28);
  --shadow-gold: 0 0 40px rgba(212, 175, 55, 0.25);
  --font: "Kanit", system-ui, sans-serif;
  --display: "Orbitron", "Kanit", sans-serif;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(10px + var(--safe-top)) 16px 10px;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.92), rgba(5, 5, 5, 0.55) 70%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--stroke), var(--shadow-gold);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.brand__name {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.brand__tag {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn__icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

.btn--line {
  color: #04150a;
  background: linear-gradient(180deg, #2dff7a 0%, var(--line) 45%, var(--line-dark) 100%);
  box-shadow: 0 8px 28px rgba(6, 199, 85, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--line:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 34px rgba(6, 199, 85, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--sm {
  padding: 9px 14px;
  font-size: 13px;
}

.btn--lg {
  padding: 16px 28px;
  font-size: 17px;
  min-width: min(100%, 320px);
}

.btn--pulse {
  animation: pulse-glow 2.4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 8px 28px rgba(6, 199, 85, 0.35), 0 0 0 0 rgba(6, 199, 85, 0.45); }
  50% { box-shadow: 0 12px 36px rgba(6, 199, 85, 0.5), 0 0 0 12px rgba(6, 199, 85, 0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 20px calc(72px + var(--safe-bottom));
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  animation: hero-ken 18s ease-in-out infinite alternate;
}

@keyframes hero-ken {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(0, -2%, 0); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.35) 0%, rgba(5, 5, 5, 0.15) 28%, rgba(5, 5, 5, 0.55) 58%, rgba(5, 5, 5, 0.96) 100%),
    radial-gradient(120% 60% at 50% 0%, rgba(212, 175, 55, 0.18), transparent 55%);
}

.hero__glow {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 140%;
  height: 40%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.22), transparent 70%);
  filter: blur(20px);
  animation: glow-breathe 4.5s ease-in-out infinite;
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.hero__content {
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
  animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.hero__logo {
  width: min(42vw, 168px);
  aspect-ratio: 1;
  margin: 0 auto 10px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 55, 0.35);
  filter: drop-shadow(0 10px 30px rgba(212, 175, 55, 0.35));
  animation: logo-float 5s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__eyebrow {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.hero__title {
  margin: 0;
  font-size: clamp(1.85rem, 7.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.hero__title-line {
  display: block;
}

.hero__title-line--gold {
  background: linear-gradient(100deg, #fff4c2 0%, var(--gold) 40%, #fff1a8 70%, var(--gold-deep) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.hero__sub {
  margin: 14px 0 0;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
}

.hero__cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero__hint {
  margin: 0;
  font-size: 13px;
  color: rgba(247, 244, 236, 0.5);
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: calc(18px + var(--safe-bottom));
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.hero__scroll span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  animation: scroll-dot 1.6s ease-in-out infinite;
}

@keyframes scroll-dot {
  0% { transform: translateY(-8px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ---------- Stats ---------- */
.stats {
  padding: 8px 16px 0;
}

.stats__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 18px 10px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.12), rgba(12, 12, 12, 0.4)),
    var(--bg-2);
  border: 1px solid var(--stroke);
}

.stat {
  text-align: center;
}

.stat__num,
.stat__plus {
  font-family: var(--display);
  font-weight: 700;
  color: var(--gold-bright);
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
}

.stat__num--text {
  font-size: clamp(0.95rem, 3.6vw, 1.15rem);
  letter-spacing: 0.04em;
}

.stat__label {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 22px 16px 8px;
}

.pillar {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.pillar img {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 18px;
  object-fit: cover;
  background: #000;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-gold);
}

.pillar span {
  display: block;
  line-height: 1.35;
}

/* ---------- Sections ---------- */
.section-head {
  padding: 0 20px;
  margin-bottom: 22px;
  text-align: center;
}

.section-head__eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-head__title {
  margin: 0;
  font-size: clamp(1.55rem, 6.5vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
}

.features {
  padding: 40px 16px 16px;
}

.feature {
  margin-bottom: 28px;
}

.feature__visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.feature__visual img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature:hover .feature__visual img {
  transform: scale(1.04);
}

.feature__num {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #1a1405;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.feature__body {
  padding: 16px 6px 0;
}

.feature__body h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
}

.feature__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 300;
}

/* ---------- Values ---------- */
.values {
  padding: 28px 16px 12px;
}

.value-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.value {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(12, 12, 12, 0.5));
}

.value__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--stroke);
}

.value__icon svg {
  width: 30px;
  height: 30px;
}

.value h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.value p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 300;
}

/* ---------- Final CTA ---------- */
.cta-final {
  position: relative;
  margin: 36px 16px 24px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cta-final__bg {
  position: absolute;
  inset: 0;
}

.cta-final__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(1.15);
}

.cta-final__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.35), rgba(5, 5, 5, 0.82));
}

.cta-final__inner {
  position: relative;
  z-index: 1;
  padding: 40px 22px;
  max-width: 380px;
}

.cta-final__eyebrow {
  margin: 0 0 10px;
  color: var(--gold-bright);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}

.cta-final h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 6.8vw, 2.1rem);
  line-height: 1.25;
}

.cta-final__sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.55;
}

/* ---------- Footer ---------- */
.footer {
  padding: 28px 20px calc(110px + var(--safe-bottom));
  text-align: center;
  color: var(--muted);
}

.footer img {
  margin: 0 auto 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--stroke);
}

.footer p {
  margin: 0 0 6px;
  font-size: 13px;
}

.footer__copy {
  font-size: 11px;
  opacity: 0.7;
}

/* ---------- FAB ---------- */
.fab {
  position: fixed;
  right: 16px;
  bottom: calc(18px + var(--safe-bottom));
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 12px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2dff7a, var(--line));
  color: #04150a;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 12px 30px rgba(6, 199, 85, 0.45);
  animation: fab-in 0.7s 0.8s both, pulse-glow 2.4s ease-in-out infinite;
}

.fab svg {
  width: 22px;
  height: 22px;
}

@keyframes fab-in {
  from { opacity: 0; transform: translateY(24px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Desktop polish ---------- */
@media (min-width: 768px) {
  .topbar {
    padding-inline: 32px;
  }

  .brand__name {
    font-size: 15px;
  }

  .hero {
    padding-inline: 40px;
  }

  .hero__content {
    max-width: 560px;
  }

  .stats,
  .pillars,
  .features,
  .values {
    max-width: 720px;
    margin-inline: auto;
  }

  .cta-final {
    max-width: 720px;
    margin-inline: auto;
  }

  .feature {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 24px;
    align-items: center;
  }

  .feature:nth-child(even) .feature__visual {
    order: 2;
  }

  .feature__visual img {
    aspect-ratio: 4 / 3;
  }

  .feature__body {
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero__img {
    transform: none;
  }
}
