@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Syne:wght@400;600;700;800&display=swap');

:root {
  --bg-color: #060608;
  --bg-secondary: #0c0c10;
  --bg-tertiary: #111116;
  --text-primary: #f0f0f5;
  --text-secondary: #8a8a9a;
  --text-tertiary: #5a5a6a;
  --accent-color: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-glow: rgba(139, 92, 246, 0.4);
  --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #ec4899 100%);
  --glass-bg: rgba(255, 255, 255, 0.02);
  --glass-bg-hover: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(139, 92, 246, 0.3);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --card-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.6);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-primary);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === Noise Grain Overlay === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.025;
  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");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* === Custom Cursor === */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  background-color: var(--text-primary);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s var(--transition-smooth), width 0.3s ease, height 0.3s ease;
}

@media (pointer: coarse) {
  .cursor {
    display: none !important;
  }
}

/* === Utility === */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s var(--transition-smooth);
}

a:hover {
  opacity: 0.8;
}

::selection {
  background: var(--accent-color);
  color: white;
}

/* === Header === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.2rem 0;
  z-index: 100;
  background: rgba(6, 6, 8, 0.65);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.4s ease, padding 0.4s ease;
}

header.scrolled {
  background: rgba(6, 6, 8, 0.9);
  padding: 0.8rem 0;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  position: relative;
}

.logo span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links li a {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 4px;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-gradient);
  transition: width 0.4s var(--transition-smooth);
}

.nav-links li a:hover {
  color: var(--text-primary);
  opacity: 1;
}

.nav-links li a:hover::after {
  width: 100%;
}

/* === Base Main Section === */
main {
  min-height: 100vh;
  padding-top: 100px;
}

/* === Animations === */
.fade-up {
  opacity: 0;
  transform: translateY(50px);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.2rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  transition: all 0.4s var(--transition-smooth);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px var(--accent-glow);
  opacity: 1;
  color: white;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  opacity: 1;
}

/* === Footer === */
footer {
  background: var(--bg-secondary);
  padding: 5rem 0 2rem;
  margin-top: 6rem;
  border-top: 1px solid var(--glass-border);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 1px;
  background: var(--accent-gradient);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h3 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--accent-light);
  opacity: 1;
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  letter-spacing: 0.05em;
}

/* === Marquee / Ticker === */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  padding: 1.5rem 0;
  background: var(--accent-gradient);
  position: relative;
  display: flex;
  z-index: 10;
}

.marquee-content {
  display: flex;
  gap: 3rem;
  animation: marquee 25s linear infinite;
}

.marquee-content span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
  letter-spacing: 0.04em;
}

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

/* === Mobile Navigation & Floating Actions === */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1000;
  padding: 0.25rem;
}

.wa-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
  z-index: 1000;
  transition: transform 0.4s var(--transition-bounce), box-shadow 0.4s ease;
}

.wa-floating:hover {
  transform: scale(1.12);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
  color: white;
}

/* === Glow Blob (ambient background) === */
.glow-blob {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
  pointer-events: none;
  z-index: -1;
}

.glow-blob--purple {
  background: #8b5cf6;
  top: -200px;
  right: -200px;
}

.glow-blob--pink {
  background: #ec4899;
  bottom: 20%;
  left: -200px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(6, 6, 8, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    gap: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s var(--transition-smooth);
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li a {
    font-size: 1.2rem;
  }
  .nav-wrap > .btn-glass {
    display: none;
  }
  .container {
    padding: 0 1.25rem;
  }
  .wa-floating {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
  .wa-floating svg {
    width: 25px;
    height: 25px;
  }
}
