/* ==========================================================================
   Hallucinate Labs — "Neural Neon Dark" design system
   Shared stylesheet for all pages. Custom properties live at the top —
   change values there to re-theme the whole site.
   ========================================================================== */

:root {
  /* Colors */
  --color-bg: #0A0A0A;
  --color-bg-raised: #111214;
  --color-bg-card: #15171A;
  --color-border: #24262B;
  --color-text: #E8E9EA;
  --color-text-muted: #A3A7AD;
  --color-accent: #00F5FF;
  --color-accent-dim: #0AA7AD;
  --color-secondary: #8B7CF6;
  --color-tertiary: #F5B942;
  --color-danger: #FF4D4D;

  /* Typography */
  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;

  /* Layout */
  --max-width: 1180px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  /* Effects */
  --radius: 10px;
  --transition-fast: 150ms ease;
  --transition-med: 300ms ease;
  --glow: 0 0 24px rgba(0, 245, 255, 0.35);
}

/* ---- Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

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

/* ---- Typography ---------------------------------------------------------*/
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 var(--space-sm);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 var(--space-sm); color: var(--color-text-muted); }
.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

/* ---- Layout helpers ------------------------------------------------------*/
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
section { padding: var(--space-xl) 0; }
.section-alt {
  background:
    radial-gradient(ellipse 800px 400px at 15% 0%, rgba(139, 124, 246, 0.06), transparent),
    var(--color-bg-raised);
}

/* ---- Buttons ------------------------------------------------------------*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--color-accent);
  color: #04141A;
}
.btn-primary:hover { box-shadow: var(--glow); }
.btn-outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-accent); color: var(--color-accent); }

/* ---- Navigation ----------------------------------------------------------*/
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 0.55rem; height: 28px; }
.logo-icon { width: 28px; height: 28px; flex-shrink: 0; }
.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--color-text);
  white-space: nowrap;
}
.logo-text span { color: var(--color-text-muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-bg-raised);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-med);
  }
  .nav-links.open { max-height: 400px; }
  .nav-links a {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border-top: 1px solid var(--color-border);
  }
}

/* ---- Hero ----------------------------------------------------------------*/
.hero {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
}
.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: var(--space-md);
}
.hero-brand-icon { width: 52px; height: 52px; flex-shrink: 0; }
.hero-brand-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.01em;
  color: var(--color-text);
}
.hero-brand-text span { color: var(--color-text-muted); }
.hero-headline {
  position: relative;
  display: inline-block;
  cursor: default;
  user-select: none;
}
.hero-headline .headline-front {
  position: relative;
  z-index: 2;
}
.hero-headline .ghost-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-headline .ghost-purple {
  color: var(--color-secondary);
  opacity: 0.5;
  transform: translate(6px, 5px);
}
.hero-headline .ghost-amber {
  color: var(--color-tertiary);
  opacity: 0.35;
  transform: translate(-6px, 5px);
}
.hero-sub {
  max-width: 640px;
  margin: 0 auto var(--space-md);
  font-size: 1.15rem;
}
.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Cards / grids ---------------------------------------------------------*/
.grid {
  display: grid;
  gap: var(--space-md);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.card:hover { border-color: var(--color-accent-dim); }

/* Product summary cards on the homepage */
.product-preview {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.product-preview .icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(139, 124, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
}

/* ---- Product detail sections (products.html) ------------------------------*/
.product-block {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
}
.product-block:last-child { border-bottom: none; }
.product-header { margin-bottom: var(--space-md); }
.product-tagline {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-secondary);
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  margin: var(--space-md) 0;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin: var(--space-md) 0;
}
.shot-grid .shot {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-card);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}
.shot-grid .shot:hover { border-color: var(--color-tertiary); }
.shot-grid img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .shot-grid { grid-template-columns: 1fr; }
}

.feature-list { display: grid; gap: var(--space-sm); margin: var(--space-md) 0; }
.feature-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--color-text);
}
.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--color-accent);
}
.feature-list li:nth-child(3n+2)::before { background: var(--color-secondary); }
.feature-list li:nth-child(3n+3)::before { background: var(--color-tertiary); }

/* ---- Forms ------------------------------------------------------------- */
form { display: grid; gap: var(--space-sm); max-width: 560px; }
label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 0.35rem;
}
input, textarea {
  width: 100%;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.12);
}
textarea { min-height: 140px; resize: vertical; }
.form-status {
  font-size: 0.9rem;
  min-height: 1.4em;
}
.form-status.success { color: var(--color-accent); }
.form-status.error { color: var(--color-danger); }

/* ---- Footer ------------------------------------------------------------- */
footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-lg) 0 var(--space-md);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}
.footer-links { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-sm);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

/* ---- Cookie banner -------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: var(--space-sm);
  left: var(--space-sm);
  right: var(--space-sm);
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  z-index: 200;
  transform: translateY(150%);
  transition: transform var(--transition-med);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: 0.9rem; flex: 1 1 260px; }

/* ---- Scroll reveal --------------------------------------------------------*/
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---- About page specifics ------------------------------------------------*/
.value-list { display: grid; gap: var(--space-md); }

/* ---- Utility -------------------------------------------------------------*/
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
