/* ============================================
   BigRev — Design System & Styles
   ============================================ */

:root {
  --bg: #06060b;
  --bg-elevated: #0e0e16;
  --bg-card: #12121c;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text: #f0f0f5;
  --text-muted: #8888a0;
  --text-dim: #55556a;
  --accent: #6366f1;
  --accent-light: #818cf8;
  --accent-purple: #a855f7;
  --green: #22c55e;
  --blue: #3b82f6;
  --sage: #6f7d5f;
  --gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-purple) 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Syne', var(--font);
  --header-h: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1120px, 100% - 48px);
  margin-inline: auto;
}

/* ---- Ambient Effects ---- */

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* ---- Header ---- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background: rgba(6, 6, 11, 0.85);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.nav-cta {
  padding: 8px 20px !important;
  background: var(--gradient);
  color: white !important;
  border-radius: 100px;
  font-weight: 600 !important;
  transition: transform var(--transition), box-shadow var(--transition) !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-hover);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-social {
  gap: 10px;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

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

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.hero-orb--1 {
  width: 600px;
  height: 600px;
  background: rgba(99, 102, 241, 0.15);
  top: -10%;
  right: -5%;
}

.hero-orb--2 {
  width: 400px;
  height: 400px;
  background: rgba(168, 85, 247, 0.1);
  bottom: 10%;
  left: -5%;
  animation-delay: -3s;
}

.hero-orb--3 {
  width: 300px;
  height: 300px;
  background: rgba(59, 130, 246, 0.08);
  top: 40%;
  left: 30%;
  animation-delay: -5s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 10px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 80px 120px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--transition);
}

.skip-link:focus {
  top: 16px;
}

.product-card__alt {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dim);
}

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

.logo:focus-visible,
.btn:focus-visible,
.nav-links a:focus-visible {
  outline-offset: 4px;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  z-index: 1;
}

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

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

/* ---- Sections ---- */

.section {
  padding-block: 100px;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* ---- Products ---- */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  border-radius: var(--radius);
  transition: transform var(--transition);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.product-card__glow {
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 0;
}

.product-card__glow--green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), transparent 60%);
}

.product-card__glow--blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), transparent 60%);
}

.product-card__glow--sage {
  background: linear-gradient(135deg, rgba(111, 125, 95, 0.3), transparent 60%);
}

.product-card:hover .product-card__glow {
  opacity: 1;
}

.product-card__inner {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}

.product-card:hover .product-card__inner {
  border-color: var(--border-hover);
}

.product-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.product-card__logo {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__logo--round {
  border-radius: 50%;
}

.product-card__logo--round img {
  object-fit: cover;
}

.product-card__logo--icon {
  background: rgba(111, 125, 95, 0.15);
  padding: 10px;
}

.product-card__logo--icon img {
  width: 36px;
  height: 36px;
}

.product-card__badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.product-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}

.product-card__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.product-card__features li {
  font-size: 0.8125rem;
  color: var(--text-dim);
  padding-left: 20px;
  position: relative;
}

.product-card__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-light);
  transition: gap var(--transition), color var(--transition);
}

.product-card__link:hover {
  gap: 12px;
  color: var(--text);
}

.product-card__link svg {
  transition: transform var(--transition);
}

.product-card__link:hover svg {
  transform: translate(2px, -2px);
}

.product-card__preview {
  position: absolute;
  bottom: 32px;
  right: -20px;
  width: 120px;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 2;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.product-card:hover .product-card__preview {
  opacity: 1;
  transform: translateY(0);
}

.product-card__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Approach ---- */

.approach {
  background: var(--bg-elevated);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.approach-step {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}

.approach-step:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.approach-step__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  opacity: 0.5;
}

.approach-step h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.approach-step p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ---- About ---- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 340px;
  position: relative;
  z-index: 2;
}

.about-card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.about-card__row:last-child {
  border-bottom: none;
}

.about-card__label {
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.about-card__value {
  font-size: 0.9375rem;
  font-weight: 600;
}

.about-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orbit-item {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  object-fit: cover;
  animation: orbit 12s linear infinite;
}

.orbit-item--1 {
  width: 48px;
  height: 48px;
  top: 10%;
  right: 10%;
  animation-delay: 0s;
}

.orbit-item--2 {
  width: 40px;
  height: 40px;
  bottom: 15%;
  left: 5%;
  padding: 6px;
  animation-delay: -4s;
}

.orbit-item--3 {
  width: 44px;
  height: 44px;
  top: 50%;
  right: 0;
  animation-delay: -8s;
}

@keyframes orbit {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-10px, 15px) rotate(5deg); }
  50% { transform: translate(5px, -10px) rotate(-3deg); }
  75% { transform: translate(12px, 5px) rotate(3deg); }
}

/* ---- CTA ---- */

.cta-box {
  position: relative;
  text-align: center;
  padding: 80px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  overflow: hidden;
}

.cta-box__glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.cta-box p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 32px;
  position: relative;
}

.cta-box .btn {
  position: relative;
}

/* ---- Footer ---- */

.footer {
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.875rem;
  margin-top: 12px;
}

.footer-domain {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-domain:hover {
  color: var(--accent-light);
}

.footer-social {
  display: inline-block;
  margin-top: 6px;
  margin-left: 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-social:hover {
  color: var(--accent-light);
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-block: 24px;
  border-top: 1px solid var(--border);
}

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

/* ---- Reveal Animations ---- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    z-index: 101;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(6, 6, 11, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

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

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

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

  body.nav-open {
    overflow: hidden;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 32px;
  }

  .product-card__preview {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    height: 160px;
    margin-top: 20px;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .scroll-indicator {
    display: none;
  }

  .cta-box {
    padding: 48px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-glow {
    display: none;
  }
}
