/* ============================================
   2BOXLIVE - Landing Page Styles
   ============================================ */

/* -- Reset & Base -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: hsl(220, 20%, 4%);
  --fg: hsl(180, 10%, 92%);
  --card-bg: hsl(220, 18%, 8%);
  --primary: hsl(174, 72%, 50%);
  --primary-fg: hsl(220, 20%, 4%);
  --secondary-accent: hsl(260, 70%, 60%);
  --muted: hsl(220, 10%, 50%);
  --border: hsl(220, 14%, 16%);
  --glass-bg: hsla(220, 20%, 8%, 0.7);
  --glass-strong: hsla(220, 20%, 8%, 0.85);
  --radius: 0.75rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Space Grotesk', sans-serif; line-height: 1.1; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* -- Text Utilities -- */
.text-gradient {
  background: linear-gradient(135deg, hsl(174, 72%, 50%), hsl(174, 72%, 70%));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}
.text-gradient-multi {
  background: linear-gradient(135deg, hsl(174, 72%, 50%), hsl(260, 70%, 60%));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* -- Buttons -- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.5rem; border-radius: var(--radius);
  background: var(--primary); color: var(--primary-fg);
  font-weight: 600; font-size: 0.875rem;
  transition: transform 0.2s, box-shadow 0.3s;
  border: none; cursor: pointer;
}
.btn-primary:hover { transform: scale(1.05); }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; border-radius: 0.875rem; }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-glow { animation: pulseGlow 3s ease-in-out infinite; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 2rem; border-radius: 0.875rem;
  background: var(--glass-bg); color: var(--fg);
  font-weight: 600; font-size: 1.125rem;
  border: 1px solid hsla(174, 72%, 50%, 0.3);
  box-shadow: 0 0 20px hsla(174, 72%, 50%, 0.1), inset 0 0 20px hsla(174, 72%, 50%, 0.05);
  backdrop-filter: blur(20px);
  transition: transform 0.2s; cursor: pointer;
}
.btn-outline:hover { transform: scale(1.05); }

/* -- Navbar -- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s, backdrop-filter 0.3s;
}
.navbar.scrolled {
  background: var(--glass-strong);
  backdrop-filter: blur(30px);
  border-bottom: 1px solid hsla(220, 14%, 20%, 0.5);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between; height: 4rem;
}
.navbar-logo img { height: 2rem; }
.navbar-links { display: flex; align-items: center; gap: 2rem; }
.navbar-links a { font-size: 0.875rem; color: var(--muted); transition: color 0.2s; }
.navbar-links a:hover { color: var(--fg); }
.navbar-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.navbar-toggle span {
  display: block; width: 24px; height: 2px; background: var(--fg);
  transition: transform 0.3s, opacity 0.3s;
}
.navbar-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* -- Hero -- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, hsla(220, 20%, 4%, 0.7), hsla(220, 20%, 4%, 0.5), var(--bg));
}
.hero-overlay-side {
  position: absolute; inset: 0;
  background: linear-gradient(to right, hsla(220, 20%, 4%, 0.6), transparent, hsla(220, 20%, 4%, 0.6));
}
.hero-glow {
  position: absolute; border-radius: 50%; filter: blur(120px);
  animation: pulseGlow 3s ease-in-out infinite;
}
.hero-glow-1 { top: 25%; left: 25%; width: 24rem; height: 24rem; background: hsla(174, 72%, 50%, 0.1); }
.hero-glow-2 { bottom: 25%; right: 25%; width: 16rem; height: 16rem; background: hsla(260, 70%, 60%, 0.1); animation-delay: 1.5s; }
.hero-content { position: relative; z-index: 10; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 9999px;
  background: var(--glass-bg); backdrop-filter: blur(20px);
  border: 1px solid hsla(220, 14%, 16%, 0.6);
  margin-bottom: 2rem; font-size: 0.875rem; color: var(--muted);
}
.badge-dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--primary); animation: pulse 2s infinite;
}
.hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.hero-subtitle { font-size: 1.125rem; color: var(--muted); max-width: 40rem; margin: 0 auto 2.5rem; line-height: 1.7; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero-fade-bottom {
  position: absolute; bottom: 0; left: 0; right: 0; height: 8rem;
  background: linear-gradient(to top, var(--bg), transparent);
}

/* -- Sections -- */
.section { padding: 6rem 0; position: relative; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
  font-size: 0.75rem; font-weight: 600; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.15em;
}
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-top: 1rem; margin-bottom: 1.5rem; }
.section-header p { font-size: 1.125rem; color: var(--muted); max-width: 36rem; margin: 0 auto; }
.section-glow-center {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 37rem; height: 37rem; background: hsla(174, 72%, 50%, 0.05);
  border-radius: 50%; filter: blur(150px); pointer-events: none;
}
.section-glow-right {
  position: absolute; bottom: 0; right: 0;
  width: 31rem; height: 31rem; background: hsla(260, 70%, 60%, 0.05);
  border-radius: 50%; filter: blur(150px); pointer-events: none;
}

/* -- Steps Grid -- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step-card {
  padding: 2rem; border-radius: 1rem;
  background: var(--glass-bg); backdrop-filter: blur(20px);
  border: 1px solid hsla(220, 14%, 16%, 0.6);
  transition: border-color 0.5s, box-shadow 0.5s;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s, border-color 0.5s, box-shadow 0.5s;
}
.step-card.visible { opacity: 1; transform: translateY(0); }
.step-card:hover {
  border-color: hsla(174, 72%, 50%, 0.3);
  box-shadow: 0 0 20px hsla(174, 72%, 50%, 0.1), inset 0 0 20px hsla(174, 72%, 50%, 0.05);
}
.step-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 0.75rem;
  background: hsla(174, 72%, 50%, 0.1); display: flex;
  align-items: center; justify-content: center; margin-bottom: 1.5rem;
  color: var(--primary); transition: background 0.3s;
}
.step-card:hover .step-icon { background: hsla(174, 72%, 50%, 0.2); }
.step-number { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.step-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 600; margin: 0.75rem 0; }
.step-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* -- Solutions -- */
.solutions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; max-width: 64rem; margin: 0 auto; }
.solution-card {
  padding: 2.5rem; border-radius: 1rem;
  background: var(--glass-bg); backdrop-filter: blur(20px);
  border: 1px solid hsla(220, 14%, 16%, 0.6);
  display: flex; flex-direction: column;
  transition: border-color 0.5s, box-shadow 0.5s;
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s, border-color 0.5s, box-shadow 0.5s;
}
.solution-card.visible { opacity: 1; transform: translateY(0); }
.solution-card:hover {
  border-color: hsla(174, 72%, 50%, 0.3);
  box-shadow: 0 0 20px hsla(174, 72%, 50%, 0.1), inset 0 0 20px hsla(174, 72%, 50%, 0.05);
}
.solution-header { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.solution-icon {
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
}
.solution-icon.primary { background: hsla(174, 72%, 50%, 0.1); color: var(--primary); }
.solution-icon.secondary { background: hsla(260, 70%, 60%, 0.1); color: var(--secondary-accent); }
.solution-tag { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.solution-tag.primary { color: var(--primary); }
.solution-tag.secondary { color: var(--secondary-accent); }
.solution-arrow { margin-left: auto; color: var(--muted); transition: color 0.3s; }
.solution-card:hover .solution-arrow { color: var(--primary); }
.solution-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.solution-card > p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.5rem; }
.solution-features { list-style: none; margin-top: auto; display: flex; flex-direction: column; gap: 0.75rem; }
.solution-features li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.dot { width: 0.375rem; height: 0.375rem; border-radius: 50%; flex-shrink: 0; }
.dot.primary { background: var(--primary); }
.dot.secondary { background: var(--secondary-accent); }

/* -- Differentials -- */
.differentials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 56rem; margin: 0 auto; }
.differential-item {
  text-align: center;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}
.differential-item.visible { opacity: 1; transform: translateY(0); }
.differential-icon {
  width: 4rem; height: 4rem; border-radius: 1rem;
  background: hsla(174, 72%, 50%, 0.1); display: flex;
  align-items: center; justify-content: center; margin: 0 auto 1.5rem;
  color: var(--primary);
}
.differential-item h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
.differential-item p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* -- CTA -- */
.section-cta { overflow: hidden; }
.cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 50rem; height: 25rem; background: hsla(174, 72%, 50%, 0.1);
  border-radius: 50%; filter: blur(150px); pointer-events: none;
}
.cta-card {
  max-width: 48rem; margin: 0 auto; text-align: center;
  padding: 4rem; border-radius: 1.5rem;
  background: var(--glass-strong); backdrop-filter: blur(30px);
  border: 1px solid hsla(174, 72%, 50%, 0.3);
  box-shadow: 0 0 20px hsla(174, 72%, 50%, 0.1), inset 0 0 20px hsla(174, 72%, 50%, 0.05);
  position: relative; z-index: 1;
}
.cta-card h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; margin-bottom: 1.5rem; }
.cta-card p { font-size: 1.125rem; color: var(--muted); max-width: 32rem; margin: 0 auto 2.5rem; }

/* -- Footer -- */
.footer { padding: 3rem 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.footer-logo img { height: 1.75rem; }
.footer-copy { font-size: 0.875rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.875rem; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }

/* -- Animations -- */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px hsla(174, 72%, 50%, 0.2); }
  50% { box-shadow: 0 0 40px hsla(174, 72%, 50%, 0.4), 0 0 80px hsla(174, 72%, 50%, 0.1); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* -- Responsive -- */
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 4rem; left: 0; right: 0;
    background: var(--glass-strong); backdrop-filter: blur(30px);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
  }
  .navbar-toggle { display: flex; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: 1fr; }
  .differentials-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .cta-card { padding: 2.5rem 1.5rem; }
}
@media (max-width: 480px) {
  .steps-grid { grid-template-columns: 1fr; }
}
