/* glambot.lk — design tokens */
:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #16161f;
  --gold: #d4a853;
  --gold-light: #e8c97a;
  --gold-dim: rgba(212, 168, 83, 0.15);
  --teal: #1a6b6b;
  --teal-glow: rgba(26, 107, 107, 0.25);
  --saffron: #c45c26;
  --text: #f0ebe3;
  --text-muted: #9a9488;
  --border: rgba(212, 168, 83, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --nav-height: 72px;
  --container: min(1120px, 92vw);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

@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;
  }
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.reduced-motion .hero__glow,
body.reduced-motion .hero__arc,
body.reduced-motion .hero__ring,
body.reduced-motion .marquee__track {
  animation: none !important;
}

body.reduced-motion .reveal {
  opacity: 1;
  transform: none;
}

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

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

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

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  background: linear-gradient(to bottom, rgba(10, 10, 15, 0.95), transparent);
  backdrop-filter: blur(8px);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nav__logo-dot {
  color: var(--gold);
  font-weight: 400;
}

.nav__cta {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.nav__cta:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold) 0%, #b8923f 100%);
  color: var(--bg);
  box-shadow: 0 4px 24px rgba(212, 168, 83, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 168, 83, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn--shimmer {
  position: relative;
  overflow: hidden;
}

.btn--shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.btn--shimmer:hover::after {
  transform: translateX(100%);
}

.btn--lg {
  min-height: 54px;
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 2rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 8vh, 5rem);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 45%, transparent 30%, rgba(10, 10, 15, 0.5) 100%),
    linear-gradient(to bottom, rgba(10, 10, 15, 0.3) 0%, transparent 25%, transparent 70%, var(--bg) 100%);
  z-index: 3;
}

.hero__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(5rem, 22vw, 14rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 168, 83, 0.07);
  background: linear-gradient(180deg, rgba(212, 168, 83, 0.06) 0%, transparent 85%);
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
  user-select: none;
  z-index: 0;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.hero__glow--gold {
  width: min(120vw, 900px);
  height: min(120vw, 900px);
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 168, 83, 0.35) 0%, transparent 62%);
  animation: glowGold 8s ease-in-out infinite alternate;
}

.hero__glow--teal {
  width: min(80vw, 560px);
  height: min(80vw, 560px);
  top: 8%;
  left: -5%;
  background: radial-gradient(circle, rgba(26, 107, 107, 0.4) 0%, transparent 68%);
  animation: glowTeal 10s ease-in-out infinite alternate;
  animation-delay: -4s;
}

.hero__glow--warm {
  width: min(70vw, 480px);
  height: min(70vw, 480px);
  top: 12%;
  right: -8%;
  background: radial-gradient(circle, rgba(196, 92, 38, 0.15) 0%, transparent 70%);
  animation: glowTeal 12s ease-in-out infinite alternate-reverse;
}

@keyframes glowGold {
  from {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes glowTeal {
  from {
    opacity: 0.45;
    transform: scale(0.88);
  }
  to {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.hero__rings {
  position: absolute;
  top: 58%;
  left: 50%;
  width: min(140vw, 1100px);
  height: min(140vw, 1100px);
  transform: translate(-50%, -50%);
}

.hero__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid transparent;
}

.hero__ring:nth-child(1) {
  border-top-color: rgba(212, 168, 83, 0.22);
  border-right-color: rgba(212, 168, 83, 0.06);
  animation: ringSpin 48s linear infinite;
}

.hero__ring:nth-child(2) {
  inset: 8%;
  border-top-color: rgba(212, 168, 83, 0.14);
  border-left-color: rgba(26, 107, 107, 0.12);
  animation: ringSpin 64s linear infinite reverse;
}

.hero__ring:nth-child(3) {
  inset: 16%;
  border-top-color: rgba(212, 168, 83, 0.08);
  animation: ringSpin 80s linear infinite;
}

@keyframes ringSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero__arc {
  position: absolute;
  width: min(130vw, 1000px);
  height: min(130vw, 1000px);
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  border: 2px solid transparent;
  border-top-color: rgba(212, 168, 83, 0.45);
  border-right-color: rgba(212, 168, 83, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(212, 168, 83, 0.08);
  mask-image: linear-gradient(160deg, black 0%, transparent 50%);
  -webkit-mask-image: linear-gradient(160deg, black 0%, transparent 50%);
}

.hero__horizon {
  position: absolute;
  bottom: 18%;
  left: 50%;
  width: min(95vw, 720px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 168, 83, 0.15) 20%,
    rgba(212, 168, 83, 0.5) 50%,
    rgba(212, 168, 83, 0.15) 80%,
    transparent
  );
  box-shadow: 0 0 40px rgba(212, 168, 83, 0.25);
}

.hero__inner {
  position: relative;
  z-index: 4;
  width: min(960px, 100%);
  margin-inline: auto;
}

.hero__badge {
  display: inline-block;
  font-size: clamp(0.7rem, 1.5vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(212, 168, 83, 0.3);
  padding: 0.55rem 1.35rem;
  border-radius: 100px;
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
  background: rgba(212, 168, 83, 0.1);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 32px rgba(212, 168, 83, 0.12);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
}

.hero__title-line {
  display: block;
  font-size: clamp(2.75rem, 9vw, 5.25rem);
}

.hero__title-accent {
  font-size: clamp(3.25rem, 11vw, 7rem);
  font-style: italic;
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.02em;
  background: linear-gradient(
    135deg,
    #fff8e7 0%,
    var(--gold-light) 25%,
    var(--gold) 55%,
    #c49a3a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 40px rgba(212, 168, 83, 0.35));
  margin-block: 0.05em;
}

.hero__sub {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 26em;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vh, 3rem);
  line-height: 1.75;
  letter-spacing: 0.01em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 1024px) {
  .hero__title-line {
    font-size: 5.5rem;
  }

  .hero__title-accent {
    font-size: 7.5rem;
  }
}

/* Reveal on load */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  animation: revealUp 1.1s var(--ease-out) forwards;
}

.reveal[data-delay="0"] { animation-delay: 0.15s; }
.reveal[data-delay="1"] { animation-delay: 0.35s; }
.reveal[data-delay="2"] { animation-delay: 0.55s; }
.reveal[data-delay="3"] { animation-delay: 0.75s; }

.hero .reveal[data-delay="1"] {
  animation-duration: 1.25s;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

.section-title em {
  font-style: italic;
  color: var(--gold-light);
}

/* Teaser */
.teaser {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.teaser__grid {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .teaser__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.teaser__card {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}

.teaser__card:hover {
  border-color: rgba(212, 168, 83, 0.35);
  transform: translateY(-4px);
}

.teaser__icon {
  display: block;
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.teaser__card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.teaser__card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.teaser__hint {
  text-align: center;
  font-size: 0.9375rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Marquee */
.marquee-section {
  padding: 2rem 0;
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
}

.marquee {
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee__track span {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee__track span:nth-child(odd) {
  color: var(--gold);
  opacity: 0.85;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Local / Sri Lanka */
.local__inner {
  text-align: center;
  max-width: 36em;
  margin-inline: auto;
}

.local__flag {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.local__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

.local__text {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* CTA */
.cta {
  background:
    radial-gradient(ellipse 80% 60% at 50% 100%, var(--gold-dim), transparent),
    var(--bg);
}

.cta__inner {
  text-align: center;
  max-width: 32em;
  margin-inline: auto;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.cta__text {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .cta__actions {
    flex-direction: row;
    justify-content: center;
  }
}

/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-on-scroll .teaser__card,
.reveal-on-scroll .teaser__hint {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-on-scroll.visible .teaser__card:nth-child(1) { transition-delay: 0.1s; }
.reveal-on-scroll.visible .teaser__card:nth-child(2) { transition-delay: 0.2s; }
.reveal-on-scroll.visible .teaser__card:nth-child(3) { transition-delay: 0.3s; }
.reveal-on-scroll.visible .teaser__hint { transition-delay: 0.45s; }

.reveal-on-scroll.visible .teaser__card,
.reveal-on-scroll.visible .teaser__hint {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--gold);
}

.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
