/* ===== VARIABLES ===== */
:root {
  --bg-primary: #0a0a0c;
  --bg-secondary: #0f0f13;
  --bg-card: #13131a;
  --text-primary: #f0ece4;
  --text-secondary: #8a8694;
  --text-muted: #5a5666;
  --accent: #e8952f;
  --accent-light: #f5b84c;
  --accent-dim: #c47a1f;
  --glow-color: rgba(232, 149, 47, 0.35);
  --glow-soft: rgba(232, 149, 47, 0.08);
  --glow-strong: rgba(245, 184, 76, 0.5);
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ===== PARTICLE CANVAS ===== */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 2rem;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.nav.scrolled {
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(232, 149, 47, 0.1);
  padding: 0.75rem 2rem;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}

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

.nav-links .nav-cta {
  color: var(--bg-primary);
  background: var(--accent);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-weight: 500;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-links .nav-cta:hover {
  background: var(--accent-light);
  color: var(--bg-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--glow-color);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: rgba(10, 10, 12, 0.97);
  backdrop-filter: blur(30px);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

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

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.mobile-menu .nav-cta {
  color: var(--bg-primary) !important;
  background: var(--accent);
  padding: 0.75rem 2rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.8; transform: translateX(-50%) scale(1.08); }
}

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

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-title-line {
  display: block;
  font-size: clamp(1.8rem, 8.5vw, 8rem);
  white-space: nowrap;
}

.hero-title-line.accent {
  color: var(--accent);
  text-shadow: 0 0 60px var(--glow-color), 0 0 120px rgba(232, 149, 47, 0.15);
}

.hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  max-width: 500px;
  margin: 0 auto;
}

.hero-scroll-hint {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero-scroll-hint span {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
  z-index: 2;
  padding: 8rem 0;
}

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

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.section-heading.large {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
}

.section-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  max-width: 620px;
  font-weight: 300;
}

/* ===== ABOUT ===== */
.about {
  background: var(--bg-secondary);
}

.about-divider {
  margin-top: 3rem;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--accent), transparent);
  border-radius: 2px;
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-dim), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 149, 47, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--glow-soft);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 100%;
  height: 100%;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.card-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
}

/* ===== COMING SOON ===== */
.coming-soon {
  text-align: center;
  background: var(--bg-secondary);
  overflow: hidden;
}

.coming-soon .section-text {
  margin: 0 auto;
}

.coming-soon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--glow-soft) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.pulse-ring {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 3rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pulse-dot {
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--glow-color);
  position: relative;
  z-index: 2;
}

.pulse-wave {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  animation: pulseExpand 3s ease-out infinite;
}

.pulse-wave.delay {
  animation-delay: 1.5s;
}

@keyframes pulseExpand {
  0% { width: 12px; height: 12px; opacity: 0.8; }
  100% { width: 80px; height: 80px; opacity: 0; }
}

/* ===== CONTACT ===== */
.contact {
  text-align: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem 2.5rem;
  background: var(--accent);
  color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 100px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  letter-spacing: 0.01em;
}

.cta-button svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.cta-button:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px var(--glow-color), 0 0 80px rgba(232, 149, 47, 0.15);
}

.cta-button:hover svg {
  transform: translateX(4px);
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 2rem 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* Cards stagger */
.card.reveal:nth-child(1) { transition-delay: 0s; }
.card.reveal:nth-child(2) { transition-delay: 0.15s; }
.card.reveal:nth-child(3) { transition-delay: 0.3s; }

/* Hero special animation */
.hero .reveal {
  opacity: 0;
  transform: translateY(40px);
  animation: heroReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

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

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .section-heading br {
    display: none;
  }

  .hero-glow {
    width: 500px;
    height: 500px;
  }

  .coming-soon-glow {
    width: 350px;
    height: 350px;
  }
}

/* Mobile */
@media (max-width: 700px) {
  /* Nav */
  .nav {
    padding: 1rem 1.25rem;
  }

  .nav.scrolled {
    padding: 0.65rem 1.25rem;
  }

  .nav-logo {
    font-size: 1rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  /* Global */
  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 7rem 1.25rem 4.5rem;
  }

  .hero-tagline {
    font-size: 1rem;
    padding: 0 0.5rem;
  }

  .hero-glow {
    width: 300px;
    height: 300px;
    bottom: -15%;
  }

  .hero-scroll-hint {
    display: none;
  }

  /* Sections */
  .section-label {
    font-size: 0.7rem;
    margin-bottom: 1rem;
  }

  .section-heading {
    font-size: clamp(1.6rem, 6.5vw, 2.25rem);
    margin-bottom: 1.25rem;
  }

  .section-heading.large {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .section-text {
    font-size: 1rem;
    line-height: 1.75;
  }

  /* About */
  .about-divider {
    margin-top: 2rem;
  }

  /* Cards */
  .cards {
    gap: 1rem;
    margin-top: 2rem;
  }

  .card {
    padding: 2rem 1.5rem;
  }

  .card-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 1.25rem;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .card-text {
    font-size: 0.9rem;
  }

  /* Coming soon */
  .coming-soon-glow {
    width: 280px;
    height: 280px;
  }

  .pulse-ring {
    margin-top: 2rem;
  }

  /* Contact */
  .cta-button {
    padding: 0.9rem 2rem;
    font-size: 0.95rem;
  }

  /* Footer */
  .footer {
    padding: 1.5rem 0;
  }

  .footer .container {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .footer-logo {
    font-size: 0.85rem;
  }

  .footer-copy {
    font-size: 0.75rem;
  }
}

/* Small phones */
@media (max-width: 380px) {
  .hero {
    padding: 6.5rem 1rem 4rem;
  }

  .hero-tagline {
    font-size: 0.9rem;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .section-heading.large {
    font-size: 1.6rem;
  }

  .card {
    padding: 1.75rem 1.25rem;
  }

  .cta-button {
    padding: 0.85rem 1.75rem;
    font-size: 0.9rem;
  }
}

/* Ensure touch targets are large enough */
@media (pointer: coarse) {
  .nav-links a {
    padding: 0.5rem 0.25rem;
  }

  .nav-links .nav-cta {
    padding: 0.6rem 1.5rem;
  }

  .mobile-toggle {
    padding: 8px;
  }

  .mobile-menu a {
    padding: 0.5rem 1rem;
  }
}