/* Gold Tower — The Tremendous One-Pager */
/* Design System & Theme Tokens */

:root {
  /* Gold palette (shared across themes) */
  --gold-50: #fffbea;
  --gold-100: #fff3c4;
  --gold-200: #fce588;
  --gold-300: #fadb5f;
  --gold-400: #f7c948;
  --gold-500: #f0b429;
  --gold-600: #de911d;
  --gold-700: #cb6e17;
  --gold-800: #b44d12;
  --gold-900: #8d2b0b;

  /* Radii & spacing */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Dark theme (default) */
[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-elev: #121212;
  --bg-soft: #171717;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(240, 180, 41, 0.18);
  --border-strong: rgba(240, 180, 41, 0.42);
  --text: #f5f5f4;
  --text-muted: #c9c5bd;
  --text-dim: #8f8a80;
  --nav-bg: rgba(10, 10, 10, 0.72);
  --shadow-gold: 0 0 40px rgba(240, 180, 41, 0.28);
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.55);
  --grid-line: rgba(240, 180, 41, 0.06);
  --hero-glow: radial-gradient(circle at 50% 30%, rgba(240, 180, 41, 0.28), transparent 62%);
}

/* Light theme */
[data-theme="light"] {
  --bg: #fbf8f1;
  --bg-elev: #ffffff;
  --bg-soft: #f5efe0;
  --surface: rgba(240, 180, 41, 0.06);
  --surface-hover: rgba(240, 180, 41, 0.12);
  --border: rgba(203, 110, 23, 0.22);
  --border-strong: rgba(203, 110, 23, 0.5);
  --text: #1c1917;
  --text-muted: #57534e;
  --text-dim: #8a8177;
  --nav-bg: rgba(251, 248, 241, 0.85);
  --shadow-gold: 0 0 40px rgba(222, 145, 29, 0.22);
  --shadow-card: 0 12px 40px rgba(140, 100, 30, 0.12);
  --grid-line: rgba(203, 110, 23, 0.08);
  --hero-glow: radial-gradient(circle at 50% 30%, rgba(247, 201, 72, 0.4), transparent 62%);
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  transition: background 0.4s var(--ease-out), color 0.4s var(--ease-out);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.font-playfair { font-family: 'Playfair Display', Georgia, serif; }

/* ---- NAV ---- */
.glass-nav {
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), padding 0.3s var(--ease-out);
}
.glass-nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.25);
}
.nav-logo { color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.text-gold {
  background: linear-gradient(120deg, var(--gold-300), var(--gold-500), var(--gold-300));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.shimmer-text { animation: shimmer 4s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }
.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 2px;
  position: relative;
  transition: color 0.25s var(--ease-out);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--gold-400); }
.nav-link:hover::after { width: 100%; }

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
  position: relative;
}
.theme-toggle:hover { transform: rotate(18deg) scale(1.08); background: var(--surface-hover); box-shadow: var(--shadow-gold); }
.theme-toggle svg { width: 18px; height: 18px; position: absolute; transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out); }
.theme-toggle .sun-icon { opacity: 0; transform: scale(0.4); }
.theme-toggle .moon-icon { opacity: 1; transform: scale(1); }
[data-theme="light"] .theme-toggle .sun-icon { opacity: 1; transform: scale(1); }
[data-theme="light"] .theme-toggle .moon-icon { opacity: 0; transform: scale(0.4); }

/* Mobile nav */
.mobile-menu {
  display: flex; flex-direction: column;
  max-height: 0; overflow: hidden;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: max-height 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.mobile-menu.open { max-height: 340px; border-bottom-color: var(--border); }
.mobile-menu a {
  color: var(--text-muted); text-decoration: none;
  padding: 14px 24px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem;
  border-top: 1px solid var(--border);
  transition: color 0.25s var(--ease-out), padding-left 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.mobile-menu a:hover { color: var(--gold-400); padding-left: 32px; background: var(--surface); }
.theme-toggle-mobile {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  padding: 10px 18px; border-radius: 999px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; cursor: pointer;
}

/* ---- HERO ---- */
.hero-section {
  padding-top: 100px;
  background: var(--bg);
}
.hero-bg-glow {
  position: absolute; inset: -10%;
  background: var(--hero-glow);
  pointer-events: none;
  z-index: 1;
  animation: pulseGlow 6s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0.5;
  background-image: radial-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
}
.hero-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  backdrop-filter: blur(6px);
}
.hero-title-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--gold-500);
}
[data-theme="light"] .hero-title-outline { -webkit-text-stroke: 2px var(--gold-600); }
.hero-sub { color: var(--text-muted); }
.hero-quote { color: var(--gold-500); font-family: 'Playfair Display', serif; }
.scroll-hint { color: var(--gold-500); }

/* ---- BUTTONS ---- */
.cta-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 34px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #1a1103;
  font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem;
  border: none; border-radius: 999px;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 10px 30px rgba(240, 180, 41, 0.35);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), filter 0.3s var(--ease-out);
  position: relative; overflow: hidden;
}
.cta-primary::after {
  content: ''; position: absolute; top: 0; left: -150%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.6), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s var(--ease-out);
}
.cta-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(240, 180, 41, 0.55); }
.cta-primary:hover::after { left: 160%; }
.cta-primary:active { transform: translateY(0); }
.cta-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 34px;
  background: transparent; color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 999px;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem;
  text-decoration: none; cursor: pointer;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.cta-secondary:hover { background: var(--surface-hover); border-color: var(--gold-400); transform: translateY(-3px); }

/* ---- SECTIONS ---- */
.section-label {
  color: var(--gold-500); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 16px;
}
.section-title.large { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.section-desc { color: var(--text-muted); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* ---- FEATURES ---- */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.4s var(--ease-out), border-color 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background 0.4s var(--ease-out);
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(240,180,41,0.18), transparent 55%);
  opacity: 0; transition: opacity 0.4s var(--ease-out);
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold-400);
  box-shadow: var(--shadow-gold);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  font-size: 2rem; width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(240,180,41,0.2), rgba(222,145,29,0.08));
  border: 1px solid var(--border);
  margin-bottom: 20px; position: relative; z-index: 1;
}
.feature-card h3 {
  font-size: 1.25rem; font-weight: 700; margin: 0 0 10px; position: relative; z-index: 1; color: var(--text);
}
.feature-card p { color: var(--text-muted); margin: 0; position: relative; z-index: 1; font-size: 0.95rem; }

/* ---- STATS ---- */
.stats-section { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px; text-align: center;
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.stat-card:hover { transform: translateY(-6px); border-color: var(--gold-400); }
.stat-value {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1; color: var(--gold-400);
  text-shadow: 0 0 26px rgba(240, 180, 41, 0.35);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: 10px; color: var(--text-muted);
  font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
}
.stat-bar {
  height: 4px; background: var(--surface-hover); border-radius: 999px; margin-top: 18px; overflow: hidden;
}
.stat-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-600));
  border-radius: 999px;
  transition: width 1.8s var(--ease-out);
}

/* ---- SHOWCASE ---- */
.showcase-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 50%, var(--bg) 100%);
  position: relative;
}
.showcase-parallax {
  position: absolute; inset: -20% 0; z-index: 0;
  background: radial-gradient(circle at 30% 40%, rgba(240,180,41,0.22), transparent 45%),
              radial-gradient(circle at 70% 60%, rgba(222,145,29,0.18), transparent 45%);
  pointer-events: none;
}
.showcase-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black, transparent 75%);
}

/* ---- CTA ---- */
.cta-card {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--bg-soft), var(--bg-elev));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 60px 32px;
  box-shadow: var(--shadow-card);
}
.cta-glow {
  position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
  width: 120%; height: 200%; pointer-events: none;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.25), transparent 60%);
}
.form-row { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--text);
  font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus {
  outline: none; border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.18);
  background: var(--surface-hover);
}
.form-textarea { resize: vertical; min-height: 110px; }
.form-status { margin-top: 14px; font-size: 0.9rem; min-height: 22px; }
.form-status.success { color: var(--gold-400); }
.form-status.error { color: #f87171; }
.contact-note { color: var(--text-muted); }

/* ---- FOOTER ---- */
.footer-section { background: var(--bg-elev); border-top: 1px solid var(--border); }
.footer-copy { color: var(--text-dim); }
.footer-links a {
  color: var(--text-muted); text-decoration: none; transition: color 0.25s var(--ease-out);
}
.footer-links a:hover { color: var(--gold-400); }

/* ---- MARQUEE ---- */
.marquee-section { background: var(--bg-elev); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee { display: flex; overflow: hidden; user-select: none; }
.marquee-content {
  flex-shrink: 0; display: flex; align-items: center; gap: 3rem; min-width: 100%;
  animation: scroll 26s linear infinite;
  color: var(--gold-400); font-weight: 800;
  font-size: clamp(1.1rem, 2.4vw, 1.8rem);
  letter-spacing: 0.2em; text-transform: uppercase;
  padding-right: 3rem;
}
.marquee-content .dot { color: var(--gold-600); font-size: 0.7em; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.marquee:hover .marquee-content { animation-play-state: paused; }

/* ---- ANIMATIONS ---- */
.animate-fade-in-up { opacity: 0; animation: fadeInUp 0.9s var(--ease-out) forwards; }
.animation-delay-200 { animation-delay: 0.2s; }
.animation-delay-400 { animation-delay: 0.4s; }
.animation-delay-500 { animation-delay: 0.5s; }
.animation-delay-700 { animation-delay: 0.7s; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes bounceSlow {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}
.animate-bounce-slow { animation: bounceSlow 2.4s ease-in-out infinite; }

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .animate-fade-in-up, .animate-bounce-slow, .shimmer-text, .hero-bg-glow, .marquee-content { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-elev); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold-400), var(--gold-700));
  border-radius: 6px; border: 3px solid var(--bg-elev);
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(var(--gold-300), var(--gold-600)); }

/* ---- UTILITIES ---- */
@media (max-width: 640px) {
  .section-desc { font-size: 1rem; }
  .cta-card { padding: 40px 22px; }
}
