/* ═══════════════════════════════════════════════════════════
   SMART STACK DEVELOPERS — Premium Design System
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg-deep: #050a12;
  --bg-primary: #0a1420;
  --bg-surface: #0f1c2e;
  --bg-elevated: #152438;
  --bg-card: rgba(21, 36, 56, 0.6);
  --navy: #1a2b48;
  --teal: #1ecad3;
  --teal-dim: rgba(30, 202, 211, 0.15);
  --teal-glow: rgba(30, 202, 211, 0.4);
  --orange: #e8943a;
  --orange-dim: rgba(232, 148, 58, 0.15);
  --gold: #d4a853;
  --gold-light: #f0d78c;
  --gold-dim: rgba(212, 168, 83, 0.12);
  --text-primary: #f0f4f8;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --glass: rgba(10, 20, 32, 0.75);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --header-h: 64px;
  --section-pad: clamp(48px, 6vw, 80px);
  --container: min(1280px, 90vw);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

body.loading { overflow: hidden; }

::selection {
  background: var(--teal);
  color: var(--bg-deep);
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.eyebrow--teal { color: var(--teal); }
.eyebrow--teal::before { background: linear-gradient(90deg, var(--teal), transparent); }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.75rem, 6.5vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }

.text-gradient {
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--teal) 50%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold { color: var(--gold); }
.text-teal { color: var(--teal); }

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
}

.section-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header--center {
  text-align: center;
}

.section-header--center .lead { margin-inline: auto; }
.section-header--center .eyebrow { justify-content: center; }
.section-header--center .eyebrow::before { display: none; }

.section-header h2 { margin-bottom: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease-out-expo); }
.btn:hover svg { transform: translate(3px, -3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
  color: var(--bg-deep);
  box-shadow: 0 4px 32px rgba(212, 168, 83, 0.25);
}

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

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-light);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-dim);
}

.btn-teal {
  background: var(--teal);
  color: var(--bg-deep);
}

.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--teal-glow);
}

.btn-full { width: 100%; }

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.preloader.hide {
  pointer-events: none;
}

.preloader-logo {
  width: min(280px, 70vw);
  height: auto;
  opacity: 0;
  transform: scale(0.9);
}

.preloader-bar {
  width: 120px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 2px;
}

/* Header — sticky (no main padding offset needed) */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0.65rem 0;
  display: flex;
  align-items: center;
  transition: background 0.5s var(--ease-out-expo), backdrop-filter 0.5s, border-color 0.5s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(1.4);
  border-color: var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: 0.7rem 1.5rem !important;
  background: var(--gold-dim) !important;
  border: 1px solid rgba(212, 168, 83, 0.3) !important;
  border-radius: 100px;
  color: var(--gold-light) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--bg-deep) !important;
  border-color: var(--gold) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.4s var(--ease-out-expo);
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out-expo);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--text-secondary);
  transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--gold); }

/* Footer */
.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: clamp(60px, 8vw, 100px) 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 1.25rem;
  display: block;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.3s, transform 0.3s;
  display: inline-block;
}

.footer-col a:hover { color: var(--teal); transform: translateX(4px); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.footer-social a:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-dim);
}

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

.marquee {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee:hover { animation-play-state: paused; }

.marquee-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-right: 2rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee-item .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
}

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

/* Reveal animations (fallback) */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Page hero (inner pages) — compact, content at top */
.page-hero {
  position: relative;
  min-height: 0;
  display: block;
  padding: 0.5rem 0 1.5rem;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 10, 18, 0.4) 0%,
    rgba(5, 10, 18, 0.75) 60%,
    var(--bg-deep) 100%
  );
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 { max-width: 800px; margin-bottom: 1rem; }

/* CTA Banner */
.cta-banner {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.cta-banner-inner {
  position: relative;
  border-radius: var(--radius-xl);
  padding: clamp(3rem, 6vw, 5rem);
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--border);
}

.cta-banner-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--navy) 50%, var(--bg-surface) 100%);
}

.cta-banner-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--teal-glow) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  opacity: 0.3;
  animation: pulse-glow 6s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.1); }
}

.cta-banner-content {
  position: relative;
  z-index: 1;
}

.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p { color: var(--text-secondary); margin-bottom: 2rem; max-width: 480px; margin-inline: auto; }

.cta-banner-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 56px; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
