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

:root {
  --bg: #07070b;
  --bg-2: #0c0c14;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ececf1;
  --text-dim: #a1a1aa;
  --text-muted: #6b7280;
  --accent-1: #7c8cff;
  --accent-2: #c084fc;
  --accent-3: #38bdf8;
  --grad: linear-gradient(135deg, #7c8cff 0%, #c084fc 60%, #f472b6 100%);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max: 1200px;
  --r: 16px;
  --r-lg: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

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

button {
  font: inherit;
  cursor: pointer;
}

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

/* ---------- Background layers ---------- */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at top, rgba(0, 0, 0, 0.85), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top, rgba(0, 0, 0, 0.85), transparent 70%);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(124, 140, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 20%, rgba(192, 132, 252, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 30%, rgba(56, 189, 248, 0.08), transparent 70%);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

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

/* ---------- Header & nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(7, 7, 11, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 7, 11, 0.8);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 17px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  font-size: 14.5px;
  color: var(--text-dim);
}

.nav-links a {
  transition: color 0.2s ease;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: #ffffff;
  color: #0a0a0f;
  font-weight: 600;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #f3f3f7;
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

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

.btn-link {
  color: var(--text-dim);
  padding: 11px 4px;
}

.btn-link:hover {
  color: var(--text);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15.5px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 100px;
  position: relative;
}

.hero-inner {
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.01em;
  margin-bottom: 32px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.6);
}

.hero-title {
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #c5c5d3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.05em;
}

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 90px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: 980px;
  margin: 0 auto;
}

.stat {
  background: rgba(8, 8, 12, 0.7);
  padding: 32px 20px;
  text-align: center;
}

.stat-num {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff, #b9b9c8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}

.stat-num span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  font-size: 13.5px;
  color: var(--text-dim);
  letter-spacing: 0.005em;
}

/* ---------- Sections shared ---------- */
.section-tag {
  display: inline-block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-1);
  margin-bottom: 22px;
  font-weight: 500;
}

.section-title {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--text);
}

.section-title .muted {
  color: var(--text-muted);
  font-weight: 400;
}

.section-head {
  text-align: center;
  margin-bottom: 72px;
}

/* ---------- About ---------- */
.about .two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}

.col-left {
  position: sticky;
  top: 110px;
}

.lead {
  font-size: 19px;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -0.005em;
}

.col-right p {
  color: var(--text-dim);
  margin-bottom: 18px;
}

.pillars {
  list-style: none;
  margin-top: 40px;
  display: grid;
  gap: 20px;
}

.pillars li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.pillars li:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.18), rgba(192, 132, 252, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 18px;
}

.pillars h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}

.pillars p {
  font-size: 14.5px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-card {
  position: relative;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(124, 140, 255, 0.07), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

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

.product-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  box-shadow:
    0 12px 32px -10px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover .product-icon-wrap {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 18px 40px -10px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.product-icon {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-body {
  position: relative;
  z-index: 1;
}

.product-cat {
  display: inline-block;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}

.product-name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin-bottom: 12px;
  color: var(--text);
}

.product-desc {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 22px;
}

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

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

/* ---------- Mission ---------- */
.mission {
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(192, 132, 252, 0.06), transparent 70%);
}

.mission-inner {
  text-align: center;
}

.mission-title {
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 500;
  max-width: 880px;
  margin: 18px auto 80px;
  color: var(--text);
}

.mission-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-dim);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  text-align: left;
  max-width: 1040px;
  margin: 0 auto;
}

.mission-grid > div {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.mission-grid h3 {
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-1);
  margin-bottom: 14px;
}

.mission-grid p {
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ---------- Contact ---------- */
.contact {
  padding: 100px 0 140px;
}

.contact-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 40px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(124, 140, 255, 0.06), rgba(192, 132, 252, 0.04)),
    rgba(8, 8, 12, 0.5);
  position: relative;
  overflow: hidden;
}

.contact-inner::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent, rgba(124, 140, 255, 0.12), transparent 30%);
  animation: spin 18s linear infinite;
  z-index: 0;
}

.contact-inner::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--r-lg) - 1px);
  background: rgba(8, 8, 12, 0.85);
  z-index: 0;
}

.contact-inner > * {
  position: relative;
  z-index: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.contact-title {
  font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: -0.03em;
  font-weight: 600;
  margin-bottom: 16px;
}

.contact-sub {
  color: var(--text-dim);
  font-size: 17px;
  margin-bottom: 36px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
  background: rgba(5, 5, 9, 0.6);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
}

.footer-brand .brand-text {
  font-size: 17px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 14.5px;
  max-width: 320px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px;
}

.footer-cols h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 16px;
}

.footer-cols a {
  display: block;
  color: var(--text-dim);
  font-size: 14.5px;
  padding: 5px 0;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .section {
    padding: 80px 0;
  }
  .nav-links {
    display: none;
  }
  .about .two-col {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .col-left {
    position: static;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .mission-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-cols {
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 80px 0 60px;
  }
  .hero-cta {
    margin-bottom: 60px;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
  .product-card {
    padding: 26px;
  }
  .contact-inner {
    padding: 60px 24px;
  }
}
