/* =========================================================================
   AzerView — Bold Industrial Theme
   ----------------------------------------------------------------------
   Palette, type, and spacing tokens live in :root. To change the brand
   colour or theme later, edit only the variables below.
   ========================================================================= */

:root {
  /* Brand & surface */
  --accent: #f50233;
  --accent-hover: #ff1a4a;
  --accent-dim: rgba(245, 2, 51, 0.15);
  --accent-line: rgba(245, 2, 51, 0.35);

  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface-2: #222222;
  --surface-3: #2a2a2a;

  --text: #f5f5f5;
  --text-muted: #a0a0a0;
  --text-dim: #6a6a6a;

  --border: #2f2f2f;
  --border-strong: #3f3f3f;

  --status-good: #22c55e;
  --status-late: #f97316;

  /* Type */
  --font-display: 'Inter', 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Layout */
  --radius-sm: 2px;
  --radius-md: 4px;
  --container-max: 1180px;
  --nav-height: 72px;
}

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

/* ------------- Typography ------------- */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 var(--space-md);
}

h1.display {
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  text-transform: uppercase;
  letter-spacing: -0.025em;
}
h2.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: 0; text-transform: none; }

p { margin: 0 0 var(--space-sm); color: var(--text-muted); }
p.lead { font-size: 1.2rem; color: var(--text); max-width: 56ch; }

.accent { color: var(--accent); }
.text-strong { color: var(--text); }

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

section {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border);
}
section:first-of-type { border-top: none; }

.section-head { text-align: center; max-width: 700px; margin: 0 auto var(--space-xl); }
.section-head p { font-size: 1.05rem; }

/* ------------- Buttons ------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: transform 80ms ease, background 150ms ease, border-color 150ms ease;
  text-transform: uppercase;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost {
  padding: 0.5rem 0;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--accent); }
.btn-lg { padding: 1.1rem 1.8rem; font-size: 1rem; }

/* ------------- Nav ------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 1.05rem;
}
.nav-brand svg { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 120ms ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: var(--space-sm); }
.nav-toggle { display: none; }

/* ------------- Hero ------------- */
.hero {
  padding: var(--space-2xl) 0 calc(var(--space-2xl) - 1rem);
  border-top: none;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 0%, var(--accent-dim), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(245, 2, 51, 0.05), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.hero-meta {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
  color: var(--text-dim);
  font-size: 0.85rem;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--status-good); }

.hero-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
  position: relative;
  margin-top: 2.3rem;
  margin-left: 1.5rem;
}
.hero-visual::after {
  content: 'LIVE';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 3px 8px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
}

/* ------------- Trust strip ------------- */
.trust {
  padding: var(--space-lg) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-lg);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.trust-inner strong { color: var(--text); font-weight: 600; }

/* ------------- ERP/MRP integrations ------------- */
.integrations { background: var(--surface); }
.erp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: var(--space-lg);
}
.erp-badge {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--surface-2);
  transition: border-color 150ms ease, color 150ms ease;
}
.erp-badge:hover { border-color: var(--accent); color: var(--text); }
.erp-note {
  text-align: center;
  margin-top: var(--space-md);
  font-size: 0.88rem;
  color: var(--text-dim);
}
.erp-note span { color: var(--accent); }

/* ------------- Feature grid ------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.feature-card {
  background: var(--bg);
  padding: var(--space-lg);
  transition: background 150ms ease;
}
.feature-card:hover { background: var(--surface); }
.feature-card .icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}
.feature-card h3 { margin-bottom: 0.5rem; color: var(--text); }
.feature-card p { font-size: 0.95rem; margin: 0; }

/* ------------- How it works ------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  counter-reset: step;
}
.step {
  padding: var(--space-md) 0;
  border-top: 2px solid var(--accent);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}
.step h3 { font-size: 1.4rem; text-transform: uppercase; letter-spacing: -0.01em; }
.step p { font-size: 0.95rem; }

/* ------------- Deep-dive rows ------------- */
.deep-dive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-xl);
}
.deep-dive:last-child { margin-bottom: 0; }
.deep-dive.reverse > :first-child { order: 2; }
.deep-dive h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.deep-dive ul {
  margin-top: var(--space-md);
  color: var(--text-muted);
}
.deep-dive li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}
.deep-dive li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 1px;
}
.deep-dive .visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------- Floor View live dot ------------- */
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}
.live-dot { animation: live-pulse 1.6s ease-in-out infinite; }

/* ------------- Pricing teaser ------------- */
.pricing-teaser {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--accent);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.pricing-teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--accent-dim), transparent 60%);
  pointer-events: none;
}
.pricing-teaser h2 { position: relative; }
.pricing-teaser p { position: relative; max-width: 50ch; margin: 0 auto var(--space-md); }
.pricing-teaser .btn { position: relative; }

/* ------------- FAQ ------------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq details {
  border-top: 1px solid var(--border);
  padding: var(--space-md) 0;
}
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 400;
  transition: transform 150ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: var(--space-sm); font-size: 0.95rem; }

/* ------------- Footer CTA ------------- */
.footer-cta {
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  text-align: center;
}
.footer-cta h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.footer-cta .btn { margin-top: var(--space-md); }

/* ------------- Footer ------------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0 var(--space-md);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer-grid h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: var(--space-sm);
}
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 120ms ease;
}
.footer-grid a:hover { color: var(--accent); }
.footer-tagline {
  color: var(--text-dim);
  max-width: 32ch;
  font-size: 0.92rem;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ------------- Auth card ------------- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  background:
    radial-gradient(ellipse at 50% 0%, var(--accent-dim), transparent 60%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.auth-card .brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-lg);
}
.auth-card .brand svg { color: var(--accent); }
.auth-card h1 {
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.auth-card .subtitle {
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-size: 0.95rem;
}
.field { margin-bottom: var(--space-sm); }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.field input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.auth-card .btn { width: 100%; justify-content: center; margin-top: var(--space-xs); }
.auth-meta {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-md);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.auth-meta a { color: var(--accent); }
.auth-meta a:hover { text-decoration: underline; }
.auth-message {
  display: none;
  padding: 0.75rem 0.9rem;
  margin-top: var(--space-sm);
  background: var(--accent-dim);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.9rem;
}
.auth-message.visible { display: block; }
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: var(--space-md);
  color: var(--text-dim);
  font-size: 0.85rem;
}
.auth-back:hover { color: var(--accent); }

/* ------------- Focus ring ------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ------------- Responsive ------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .deep-dive { grid-template-columns: 1fr; gap: var(--space-md); }
  .deep-dive.reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text);
  }
  .nav.open .nav-links {
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-sm) var(--space-md);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-links a:not(.btn) {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
  }
  .nav.open .nav-cta { margin-left: 0; margin-top: var(--space-sm); }
  section { padding: var(--space-xl) 0; }
}

@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
}
