/* ============================================================
   Ardverium Labs — homepage stylesheet
   Aesthetic: dark, futuristic, minimalist, high-density.
   ============================================================ */

:root {
  --bg: #060812;
  --bg-2: #0a0f1f;
  --surface: #0f1428;
  --surface-2: #131a30;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);
  --text: #e8ecf6;
  --text-muted: #9aa3bd;
  --text-faint: #5a6488;
  --accent: #6ee7ff;        /* electric cyan */
  --accent-2: #b794ff;      /* violet */
  --accent-glow: rgba(110, 231, 255, 0.35);
  --accent-2-glow: rgba(183, 148, 255, 0.30);
  --max-w: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ============================================================
   Animated backdrop — grid + orbs + grain
   ============================================================ */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.grid {
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(to right, rgba(110, 231, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(110, 231, 255, 0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, #000 30%, transparent 80%);
  animation: gridPan 40s linear infinite;
}

@keyframes gridPan {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(80px, 80px); }
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.orb-1 {
  width: 520px; height: 520px;
  top: -120px; left: -100px;
  background: radial-gradient(circle, var(--accent-glow), transparent 60%);
  animation: drift1 18s ease-in-out infinite;
}
.orb-2 {
  width: 440px; height: 440px;
  top: 20%; right: -120px;
  background: radial-gradient(circle, var(--accent-2-glow), transparent 60%);
  animation: drift2 22s ease-in-out infinite;
}
.orb-3 {
  width: 360px; height: 360px;
  bottom: -80px; left: 30%;
  background: radial-gradient(circle, rgba(110,231,255,0.18), transparent 65%);
  animation: drift3 26s ease-in-out infinite;
}

@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, 40px); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-40px, 30px); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px, -30px); } }

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.7'/></svg>");
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(6, 8, 18, 0.55);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-mark {
  width: 22px;
  height: 22px;
  color: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent-glow));
}
.brand:hover { color: var(--text); }
.brand:hover .brand-mark { filter: drop-shadow(0 0 14px var(--accent-glow)); }

.nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-muted);
}
.nav a { transition: color 0.2s ease; }
.nav a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: 140px 0 120px;
  position: relative;
}

.hero .container {
  display: grid;
  justify-items: center;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 0 0 24px;
  text-transform: uppercase;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  max-width: 14ch;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 60%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 0 40px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 100px;
  font-size: 14px;
  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, box-shadow 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(180deg, #ffffff, #d8e0f0);
  color: #060812;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.6),
    0 8px 32px rgba(110, 231, 255, 0.18);
}
.btn-primary:hover {
  color: #060812;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.9),
    0 10px 40px rgba(110, 231, 255, 0.32);
}

.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.22);
  color: var(--text);
}

.btn-large {
  padding: 16px 26px;
  font-size: 15px;
}

.hero-meta {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 600px;
  width: 100%;
}
.meta-item {
  flex: 1;
  padding: 18px 20px 18px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.meta-item + .meta-item {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.meta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.meta-value {
  font-size: 14px;
  color: var(--text);
}

/* ============================================================
   Generic section
   ============================================================ */

.section {
  padding: 100px 0;
  border-top: 1px solid var(--line);
  position: relative;
}

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

.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 14px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0;
  max-width: 18ch;
  margin-inline: auto;
}

.prose {
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 auto;
  text-align: center;
}
.prose p + p { margin-top: 1.1em; }
.prose .hl { color: var(--text); }

.prose-vision {
  max-width: 100%;
}

@media (min-width: 901px) {
  .prose-vision p:first-child {
    white-space: nowrap;
  }
}

/* ============================================================
   Product cards
   ============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  position: relative;
  display: block;
  padding: 28px 26px 26px;
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(255,255,255,0.005));
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  overflow: hidden;
  text-align: center;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(110, 231, 255, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01));
}
.card:hover::before { opacity: 1; }

.card-product { color: var(--text); }
.card-product:hover .card-link { color: var(--accent); }

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  justify-content: center;
}
.card-status.muted { color: var(--text-faint); }
.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--text);
}

.card-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 22px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
  justify-content: center;
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(110, 231, 255, 0.08);
  color: var(--accent);
  border: 1px solid rgba(110, 231, 255, 0.18);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.02em;
}
.tag.muted {
  background: rgba(255,255,255,0.03);
  color: var(--text-faint);
  border-color: var(--line);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  justify-content: center;
}

.card-soon {
  background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0));
}

/* ============================================================
   Contact
   ============================================================ */

.section-contact { padding: 80px 0 100px; }

.contact-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 48px 44px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(110, 231, 255, 0.04), rgba(110, 231, 255, 0.012));
  border: 1px solid rgba(110, 231, 255, 0.18);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px circle at 0% 0%, rgba(110, 231, 255, 0.08), transparent 50%),
    radial-gradient(600px circle at 100% 100%, rgba(183, 148, 255, 0.06), transparent 50%);
  pointer-events: none;
}
.contact-card > * { position: relative; }
.contact-card > div {
  display: grid;
  justify-items: center;
}

.contact-card .section-tag { color: var(--accent); }
.contact-card .section-title { font-size: clamp(28px, 3.5vw, 42px); margin-bottom: 12px; }
.contact-sub {
  font-size: 15.5px;
  color: var(--text-muted);
  margin: 0;
  max-width: 50ch;
}

@media (max-width: 720px) {
  .contact-card { flex-direction: column; align-items: center; padding: 36px 28px; }
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  color: var(--text);
}
.footer-tag {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: var(--text-faint);
}

.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

.footer-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* ============================================================
   Scroll reveals
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* Reduce motion preferences */
@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; }
}
