/* ── Reset & Base ──────────────────────────────────────────────── */

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

:root {
  --bg: #09080d;
  --surface: #111017;
  --surface-2: #18161f;
  --border: rgba(255,255,255,0.06);
  --text: #f4f4f5;
  --text-muted: rgba(255,255,255,0.45);
  --brand: #9B7EC8;
  --brand-glow: rgba(155,126,200,0.35);
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --warm: #e8861b;
  --font: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
}

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

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

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}


/* ── Nav ──────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

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

.nav.scrolled {
  background: rgba(9,8,13,0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom-color: var(--border);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  height: 36px;
  width: auto;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--brand), var(--accent), var(--warm));
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
  transition: width 0.3s ease;
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* ── Hero ─────────────────────────────────────────────────────── */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background video — positioning set inline on the element for reliability */
.hero-bg-video {
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Left-side gradient overlay so text pops against the image */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9,8,13,0.88) 0%, rgba(9,8,13,0.55) 45%, transparent 70%),
    linear-gradient(0deg, rgba(9,8,13,0.7) 0%, transparent 40%);
  z-index: 1;
}

/* Hero content — page-width container, left-aligned, bottom-weighted */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeUp 1s ease-out both;
  animation-delay: 0.3s;
}

.hero-tagline {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 72px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  color: #fff;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  max-width: 400px;
}

.hero-cta {
  margin-top: 4px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--accent-2) 100%);
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.3s;
  box-shadow: 0 0 40px var(--brand-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px var(--brand-glow), 0 8px 30px rgba(0,0,0,0.3);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 3;
  animation: fadeUp 1s ease-out both;
  animation-delay: 1.5s;
}

.scroll-hint span {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.2);
  letter-spacing: 3px;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 18px;
  height: 18px;
  border-right: 1.5px solid rgba(255,255,255,0.18);
  border-bottom: 1.5px solid rgba(255,255,255,0.18);
  transform: rotate(45deg);
  animation: bob 2.5s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.3; }
  50%      { transform: rotate(45deg) translateY(6px); opacity: 0.7; }
}


/* ── Sections (shared) ────────────────────────────────────────── */

.section {
  position: relative;
  padding: 120px 0;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 32px;
}


/* ── Mission ──────────────────────────────────────────────────── */

.section-mission {
  border-top: 1px solid var(--border);
}

.mission-text {
  font-size: 28px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255,255,255,0.75);
  max-width: 720px;
  letter-spacing: -0.3px;
}


/* ── Products ─────────────────────────────────────────────────── */

.section-products {
  border-top: 1px solid var(--border);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.product-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.product-card-glow {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(155,126,200,0.2), transparent 60%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.4s;
  opacity: 0.6;
}

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

.product-card-inner {
  padding: 36px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--border);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.3s, background 0.3s;
}

.product-card:hover .product-card-inner {
  border-color: rgba(155,126,200,0.15);
  background: var(--surface-2);
}

.product-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.product-icon-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(155,126,200,0.1);
  border: 1px solid rgba(155,126,200,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.product-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.product-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #34d399;
  margin-top: 2px;
}

.product-badge.coming-soon {
  color: var(--text-muted);
}

.product-desc {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  flex: 1;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand);
  transition: gap 0.2s, color 0.2s;
}

.product-link:hover {
  gap: 10px;
  color: #b99de0;
}

.product-link.muted {
  color: var(--text-muted);
}


/* ── CTA ──────────────────────────────────────────────────────── */

.section-cta {
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-block {
  max-width: 560px;
  margin: 0 auto;
}

.cta-heading {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 30%, var(--brand) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cta-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
}


/* ── Footer ───────────────────────────────────────────────────── */

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

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
}

.footer-logo {
  height: 48px;
  width: auto;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col a:hover { color: #fff; }

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

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.2);
}


/* ── Scroll reveal ────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

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


/* ── Responsive ───────────────────────────────────────────────── */

@media (max-width: 768px) {
  .nav { padding: 16px 0; }
  .nav-links { gap: 20px; }
  .nav-links a { font-size: 13px; }

  .hero-content { padding-bottom: 60px; }
  .hero-tagline { font-size: 48px; }

  .container { padding: 0 20px; }
  .section { padding: 80px 0; }

  .mission-text { font-size: 22px; }

  .product-grid { grid-template-columns: 1fr; }
  .product-card-inner { padding: 28px; }

  .cta-heading { font-size: 30px; }

  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { gap: 40px; }
}

@media (max-width: 480px) {
  .hero-tagline { font-size: 36px; }
  .hero-sub { font-size: 15px; }
  .mission-text { font-size: 19px; }
  .footer-links { flex-direction: column; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-arrow { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-content { animation: none; opacity: 1; transform: none; }
  .scroll-hint { animation: none; opacity: 1; }
}
