:root {
  --bg: #0a0a0a;
  --bg-pure: #000000;
  --text: #f0ede8;
  --text-muted: #8a8680;
  --accent: #e8573a;
  --accent-hover: #ff6b4a;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--bg-pure);
}

body {
  font-family: var(--font-body);
  background: var(--bg-pure);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ───── Loader ───── */

#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-pure);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--text);
}

#loader-bar {
  width: 200px;
  height: 2px;
  background: rgba(240, 237, 232, 0.15);
  border-radius: 1px;
  overflow: hidden;
}

#loader-fill {
  width: 0%;
  height: 100%;
  background: var(--text);
  transition: width 0.1s linear;
}

#loader-percent {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

/* ───── Header ───── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  mix-blend-mode: difference;
}

.site-header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--text);
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(240, 237, 232, 0.3);
  border-radius: 100px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-cta:hover {
  background: rgba(240, 237, 232, 0.1);
  border-color: rgba(240, 237, 232, 0.6);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ───── Hero ───── */

.hero-standalone {
  position: relative;
  z-index: 10;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  background: var(--bg-pure);
  padding: 20vh 2rem 4rem;
}

.hero-inner {
  max-width: 900px;
}

.hero-standalone .section-label {
  display: block;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 0;
}

.hero-heading .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

.hero-tagline {
  margin-top: 3rem;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 42rem;
  text-align: center;
}

.hero-stat {
  margin-top: 3rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.6rem;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.hero-stat-text {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.5;
}

/* ───── CTA Button ───── */

.cta-button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg-pure);
  background: var(--accent);
  text-decoration: none;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
  background: var(--accent-hover);
  transform: scale(1.04);
}

.cta-button-large {
  font-size: 1rem;
  padding: 1.2rem 3.5rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 3rem;
}

.cta-button-ghost {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  background: transparent;
  text-decoration: none;
  padding: 1rem 2.5rem;
  border: 1px solid rgba(240, 237, 232, 0.3);
  border-radius: 100px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.cta-button-ghost:hover {
  background: rgba(240, 237, 232, 0.08);
  border-color: rgba(240, 237, 232, 0.6);
  transform: scale(1.04);
}

.cta-button-ghost.cta-button-large {
  font-size: 1rem;
  padding: 1.2rem 3.5rem;
}

.hero-cta {
  margin-bottom: 0;
}

/* ───── Scroll Indicator ───── */

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ───── Split Layout ───── */

.split-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  position: relative;
}

.split-left {
  position: relative;
  z-index: 2;
}

.split-left::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.88) 35%, rgba(0,0,0,0.4) 60%, transparent);
  z-index: 1;
  pointer-events: none;
}

.split-right {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
}

/* ───── Sticky Canvas ───── */

.canvas-wrap {
  position: fixed;
  top: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ───── Text Sections (Left Side) ───── */

.text-section {
  position: relative;
  z-index: 2;
  min-height: 65vh;
  display: flex;
  align-items: center;
  padding: 6rem 5vw 6rem 7vw;
  border-bottom: 1px solid rgba(240, 237, 232, 0.06);
}

.text-section-inner {
  max-width: 580px;
}

/* ───── Section Labels ───── */

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

/* ───── Section Typography ───── */

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.2vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  color: var(--text);
}

.section-body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.15vw, 1.2rem);
  font-weight: 400;
  line-height: 1.75;
  color: #c5c1bb;
  max-width: 520px;
}

.section-line {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1.4vw, 1.4rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-left: 1.2rem;
  border-left: 2px solid rgba(232, 87, 58, 0.4);
}

.section-footer {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 2rem;
  font-style: italic;
}

/* ───── Stat Blocks ───── */

.stat-blocks {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-block {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-left: 2px solid rgba(232, 87, 58, 0.4);
  padding-left: 1rem;
}

.stat-block-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat-source {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.45;
  letter-spacing: 0.02em;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  min-width: 5rem;
}

.stat-unit {
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.stat-text {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  color: var(--text);
  line-height: 1.5;
}

/* ───── Use Cases Section ───── */

.use-cases {
  position: relative;
  z-index: 5;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 7vw;
  border-top: 2px solid var(--accent);
}

.use-cases-inner {
  max-width: 800px;
  margin: 0 auto;
}

.use-cases .section-label {
  color: var(--accent);
}

.use-cases-heading {
  color: var(--text);
  margin-bottom: 1.5rem;
}

.use-case-item {
  border-bottom: 1px solid rgba(240, 237, 232, 0.08);
}

.use-case-item:first-child {
  border-top: 1px solid rgba(240, 237, 232, 0.08);
}

.use-case-item summary {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.use-case-item summary:hover {
  color: var(--accent);
}

.use-case-item summary::-webkit-details-marker {
  display: none;
}

.use-case-item summary::after {
  content: '+';
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
  transition: color 0.3s ease;
  flex-shrink: 0;
  margin-left: 2rem;
}

.use-case-item[open] summary {
  color: var(--accent);
}

.use-case-item[open] summary::after {
  content: '−';
  color: var(--accent);
}

.use-case-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease-out;
}

.use-case-item[open] .use-case-detail {
  grid-template-rows: 1fr;
}

.use-case-detail-inner {
  overflow: hidden;
  padding: 0 0 2.5rem 0;
}

.use-case-detail p {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.use-case-bullets {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.use-case-bullets li {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(240, 237, 232, 0.15);
  border-radius: 100px;
}

/* ───── FAQ Section ───── */

.faq-section {
  position: relative;
  z-index: 5;
  background: var(--bg-pure);
  padding: 6rem 7vw;
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq-section .section-label {
  color: var(--accent);
}

/* ───── CTA Section (Full Width) ───── */

.cta-section {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg-pure);
  padding: 4rem 2rem;
}

.cta-inner {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.cta-brand {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #ffffff;
  margin-bottom: 2rem;
}

.cta-heading {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 0;
  text-align: center;
  color: #ffffff;
}

.cta-stat {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 500px;
}

.cta-email {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cta-email a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 237, 232, 0.3);
  transition: color 0.3s ease, border-color 0.3s ease;
}

.cta-email a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ───── Footer ───── */

.site-footer {
  position: relative;
  z-index: 6;
  padding: 4rem 3rem 2rem;
  pointer-events: auto;
  background: #0a0a0a;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner-wrap {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.footer-col-brand {
  flex-direction: row;
  align-items: center;
  gap: 1.25rem;
}

.footer-logo {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-tagline {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 22ch;
}

.footer-col-heading {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  opacity: 0.5;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.5;
}

.footer-privacy,
.footer-back-top {
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.footer-privacy:hover,
.footer-back-top:hover {
  opacity: 1;
}

/* ───── Mobile ───── */

@media (max-width: 768px) {
  .site-header {
    padding: 1rem 1.5rem;
    transition: transform 0.4s ease;
  }

  .site-header.header-hidden {
    transform: translateY(-100%);
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    padding: 0.7rem 1.6rem;
    font-size: 0.75rem;
  }

  .hero-heading {
    font-size: clamp(1.8rem, 9vw, 3.2rem);
  }

  .scroll-indicator {
    display: none;
  }

  .hero-tagline {
    font-size: 1rem;
    max-width: 100%;
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .split-right {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    opacity: 0.45;
    pointer-events: none;
  }

  .split-left {
    position: relative;
    z-index: 2;
  }

  .split-left::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.92) 40%, rgba(0,0,0,0.6) 65%, transparent);
    z-index: 1;
    pointer-events: none;
  }

  .canvas-wrap {
    position: fixed;
    inset: 0;
    height: 100vh;
  }

  .text-section {
    position: relative;
    z-index: 2;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 4rem 6vw;
    border-bottom: none;
  }

  .section-heading {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .section-body {
    font-size: 0.95rem;
  }

  .section-line {
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
  }

  .section-footer {
    font-size: 0.8rem;
  }

  .stat-block {
    flex-direction: column;
    gap: 0.3rem;
  }

  .stat-number {
    min-width: auto;
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .faq-section {
    padding: 4rem 6vw;
  }

  .hero-standalone {
    position: relative;
    z-index: 5;
    min-height: 90vh;
    height: auto;
  }

  .hero-tagline {
    margin-bottom: 1.5rem;
  }

  .cta-section {
    position: relative;
    z-index: 5;
    min-height: 100dvh;
    padding-bottom: 5rem;
  }

  .cta-heading {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .cta-button-large {
    padding: 1.1rem 2.5rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .cta-button-ghost.cta-button-large {
    padding: 1.1rem 2.5rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .use-cases {
    padding: 5rem 6vw;
  }

  .use-cases-heading {
    margin-bottom: 3rem;
  }

  .use-case-item summary {
    font-size: 1.15rem;
    padding: 1.5rem 0;
  }

  .use-case-detail p {
    font-size: 1rem;
  }

  .use-case-bullets {
    gap: 0.5rem;
  }

  .use-case-bullets li {
    font-size: 0.75rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer {
    padding: 3rem 1.5rem 2rem;
  }

}

#particleCanvas,
#particleCanvasCta {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
