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

:root {
  --black: #0a0a0a;
  --white: #f5f5f3;
  --mid: #1a1a1a;
  --gray: #888;
  --light-gray: #d0d0ce;
  --accent: oklch(52% 0.22 25);
  --accent-dim: oklch(52% 0.22 25 / 0.15);
  --font-display: 'Electrolize', monospace;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  background: transparent;
  transition: background 0.4s, backdrop-filter 0.4s;
}
nav.scrolled {
  background: rgba(10,10,10,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-logo {
  height: 22px;
  filter: invert(0); /* logo is black paths, need white */
}
.nav-logo svg { height: 22px; width: auto; }
.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,245,243,0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 10px 24px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.nav-cta:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.05);
}

/* ─── HERO ─── */
.hero {
  position: relative; /* dot-overlay uses ::before */
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/IMG_4986.JPG');
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.04);
  animation: heroZoom 12s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.0); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.25) 0%,
    rgba(10,10,10,0.0) 40%,
    rgba(10,10,10,0.72) 75%,
    rgba(10,10,10,1.0) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px 96px;
  max-width: 900px;
}
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s ease-out forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s ease-out forwards;
}
.hero-sub {
  font-size: clamp(14px, 1.1vw, 17px);
  font-weight: 300;
  color: rgba(245,245,243,0.65);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.9s 0.8s ease-out forwards;
}
.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.9s 1.0s ease-out forwards;
}
.btn-primary {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--black);
  padding: 16px 36px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--white);
}
.btn-ghost {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,245,243,0.7);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--white); }
.btn-ghost::after {
  content: '→';
  font-size: 16px;
  transition: transform 0.2s;
}
.btn-ghost:hover::after { transform: translateX(4px); }

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 80px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s 1.4s ease-out forwards;
}
.hero-scroll span {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245,245,243,0.4);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(245,245,243,0.4), transparent);
  animation: scrollPulse 2s 1.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

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

/* ─── LOGO SVG (white) in nav ─── */
.logo-svg path { fill: var(--white); }

/* ─── FEATURED PRODUCT ─── */
.featured {
  background: var(--black);
  padding: 0 0 160px;
}
.featured-label {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 80px 80px 56px;
}
.featured-label::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.featured-label span {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.featured-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
}
.featured-image-primary {
  position: relative;
  overflow: hidden;
  background: #111;
}
/* Dot grid corner accent on featured image */
.featured-image-primary::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 120px;
  height: 120px;
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1.5px, transparent 1.5px);
  background-size: 10px 10px;
  pointer-events: none;
  z-index: 2;
}
.featured-image-primary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}
.featured-image-primary:hover img { transform: scale(1.03); }

.featured-right {
  display: flex;
  flex-direction: column;
}
.featured-info {
  padding: 72px 80px 56px 72px;
  flex: 1;
}
.product-number {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--gray);
  margin-bottom: 20px;
}
.product-name {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 28px;
}
.product-tagline {
  font-size: 15px;
  font-weight: 300;
  color: rgba(245,245,243,0.55);
  line-height: 1.75;
  max-width: 380px;
  margin-bottom: 48px;
}
.spec-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 52px;
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 13px;
}
.spec-list li:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
.spec-key {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}
.spec-val {
  color: var(--white);
  font-weight: 400;
}
.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  transition: gap 0.2s;
}
.featured-cta:hover { gap: 20px; }
.featured-cta .arrow { color: var(--accent); }

.featured-image-secondary {
  overflow: hidden;
  background: #0f0f0f;
}
.featured-image-secondary img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition: transform 0.6s ease;
}
.featured-image-secondary:hover img { transform: scale(1.03); }

/* ─── DIVIDER ─── */
.section-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 0 80px;
}

/* ─── PRODUCTS GRID ─── */
.products {
  padding: 120px 80px 160px;
}
.products-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 72px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 48px);
  letter-spacing: -0.02em;
  color: var(--white);
}
.section-eye {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.product-card {
  position: relative;
  background: var(--mid);
  overflow: hidden;
  cursor: pointer;
  group: true;
}
.product-card:hover .product-card-image { transform: scale(1.04); }
.product-card:hover .product-card-overlay { opacity: 1; }
.product-card:hover .card-arrow { transform: translateX(6px); }

.product-card-image-wrap {
  position: relative;
  height: 440px;
  overflow: hidden;
  background: #111;
}
.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 0.6s ease;
  display: block;
}
/* Base for placeholder — dot-grid-dark class adds the texture */
.product-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #111;
}
.placeholder-label {
  font-family: monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.05em;
  text-align: center;
  padding: 0 24px;
}
.placeholder-icon {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.8) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s;
}
.product-card-info {
  padding: 28px 32px 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.card-tag {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 10px;
}
.card-desc {
  font-size: 13px;
  color: var(--gray);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 24px;
}
.card-link {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,245,243,0.5);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}
.card-link:hover { color: var(--white); }
.card-arrow {
  transition: transform 0.2s;
  font-size: 14px;
}

/* ─── ABOUT STRIP ─── */
.about-strip {
  background: var(--white);
  color: var(--black);
  padding: 120px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-left {}
.about-eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.about-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 32px;
}
.about-body {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(10,10,10,0.65);
  max-width: 440px;
}
.about-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.stat-block {
  padding: 40px 36px;
  background: #f0f0ee;
}
.stat-block:nth-child(2) { background: var(--black); }
.stat-block:nth-child(2) .stat-num,
.stat-block:nth-child(2) .stat-label { color: var(--white); }
.stat-num {
  font-family: var(--font-display);
  font-size: 48px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--black);
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10,10,10,0.5);
}
.stat-block:nth-child(2) .stat-label { color: rgba(245,245,243,0.5); }

/* ─── USE CASES STRIP ─── */
.use-cases {
  background: var(--black);
  padding: 120px 80px;
}
.use-cases-header {
  margin-bottom: 64px;
}
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.use-case-item {
  padding: 48px;
  background: var(--mid);
  border-left: 2px solid transparent;
  transition: border-color 0.2s, background 0.2s;
  cursor: default;
}
.use-case-item:hover {
  border-left-color: var(--accent);
  background: #1f1f1f;
}
.use-case-num {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gray);
  margin-bottom: 20px;
}
.use-case-title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 16px;
}
.use-case-body {
  font-size: 14px;
  font-weight: 300;
  color: rgba(245,245,243,0.5);
  line-height: 1.7;
}

/* ─── FOOTER ─── */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 64px 80px 48px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 64px;
}
.footer-logo {
  height: 20px;
}
.footer-logo svg { height: 20px; width: auto; }
.footer-logo path { fill: var(--white); }
.footer-nav {
  display: flex;
  gap: 64px;
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a {
  font-size: 14px;
  color: rgba(245,245,243,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer-copy {
  font-size: 12px;
  color: rgba(245,245,243,0.3);
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,245,243,0.2);
}

/* ─── DOT GRID TEXTURE ─── */
/* Replicates the physical dotted grid on the Omnis tally light body */
.dot-grid {
  background-image: radial-gradient(circle, rgba(255,255,255,0.18) 1.5px, transparent 1.5px);
  background-size: 10px 10px;
}
.dot-grid-dark {
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1.5px, transparent 1.5px);
  background-size: 10px 10px;
}
.dot-grid-light {
  background-image: radial-gradient(circle, rgba(10,10,10,0.12) 1.5px, transparent 1.5px);
  background-size: 10px 10px;
}
/* Decorative dot-grid overlay for sections */
.dot-overlay { position: relative; }
.dot-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1.5px, transparent 1.5px);
  background-size: 10px 10px;
  pointer-events: none;
  z-index: 1;
}
.dot-overlay .hero-bg,
.dot-overlay .hero-overlay { z-index: 0; }
.dot-overlay .hero-content,
.dot-overlay .hero-scroll { z-index: 2; }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── MOBILE HAMBURGER ─── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.97);
  z-index: 105;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}
.nav-mobile-menu a:hover { opacity: 1; color: var(--accent); }
.nav-mobile-cta {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 13px !important;
  letter-spacing: 0.15em !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  padding: 14px 36px;
  opacity: 1 !important;
}

/* ─── RESPONSIVE ─── */

/* Tablet: ≤ 1024px */
@media (max-width: 1024px) {
  nav { padding: 0 32px; }

  .hero-content { padding: 0 48px 80px; }
  .hero-scroll { right: 48px; }

  .featured-label { padding: 64px 48px 40px; }
  .featured-info { padding: 56px 48px 48px 48px; }

  .products { padding: 80px 48px 120px; }
  .section-divider { margin: 0 48px; }

  .about-strip { padding: 80px 48px; gap: 48px; }
  .use-cases { padding: 80px 48px; }
  .footer-top { padding: 0; }
  footer { padding: 56px 48px 40px; }
}

/* Mobile: ≤ 768px */
@media (max-width: 768px) {
  /* Nav */
  nav { padding: 0 24px; height: 64px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero { min-height: 100svh; align-items: flex-end; }
  .hero-content { padding: 0 24px 72px; max-width: 100%; }
  .hero-title { font-size: clamp(32px, 9vw, 52px); }
  .hero-sub { font-size: 15px; max-width: 100%; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 16px; }
  .btn-primary { width: 100%; text-align: center; padding: 16px 24px; }
  .hero-scroll { display: none; }

  /* Featured */
  .featured { padding: 0 0 80px; }
  .featured-label { padding: 48px 24px 32px; }
  .featured-layout { grid-template-columns: 1fr; }
  .featured-image-primary { height: 320px; }
  .featured-image-primary img { height: 320px; }
  .featured-right { order: 2; }
  .featured-info { padding: 40px 24px 36px; }
  .featured-image-secondary img { height: 260px; }
  .product-name { font-size: clamp(32px, 10vw, 52px); }

  /* Full-width strip */
  .featured > div[style*="height: 480px"] { height: 300px !important; }
  .featured > div[style*="height: 480px"] > div { padding: 0 24px !important; }

  /* Products */
  .products { padding: 64px 24px 80px; }
  .products-header { flex-direction: column; gap: 8px; margin-bottom: 40px; }
  .products-grid { grid-template-columns: 1fr; gap: 2px; }
  .product-card-image-wrap { height: 300px; }
  .section-divider { margin: 0 24px; }

  /* About */
  .about-strip {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 64px 24px;
  }
  .about-right { grid-template-columns: 1fr 1fr; }
  .stat-block { padding: 28px 24px; }
  .stat-num { font-size: 36px; }

  /* Use cases */
  .use-cases { padding: 64px 24px; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .use-case-item { padding: 32px 24px; }

  /* Footer */
  footer { padding: 48px 24px 32px; }
  .footer-top {
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
  }
  .footer-nav { gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* Small mobile: ≤ 480px */
@media (max-width: 480px) {
  .about-right { grid-template-columns: 1fr; }
  .footer-nav { flex-direction: column; gap: 32px; }
}