:root {
  --bg: #000000;
  --primary: #f0f0f0;
  --text: #ffffff;
  --accent: #cddb00;
  --muted: #a8a8a8;
  --border: rgba(255, 255, 255, 0.15);
  --max-width: 1140px;
  --font: "Saira", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Hero photo bleeds up behind the header for a continuous top-of-page image,
   fading to solid black by the end of the hero section. */
body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 820px;
  max-height: 100vh;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.45) 35%, rgba(0, 0, 0, 0.85) 72%, var(--bg) 100%),
    url("../img/hero.jpg") center 25% / cover no-repeat;
  z-index: -1;
  pointer-events: none;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  font-family: var(--font);
  font-weight: 600;
  margin: 0 0 0.5em;
  line-height: 1.25;
}

h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 500; }
p { color: var(--text); margin: 0 0 1em; }
hr { border: none; border-top: 2px solid var(--accent); width: 48px; margin: 0.75em 0 1em; }
hr.wide { width: 70px; border-top: 3px solid var(--accent); margin: 1em auto 2em; }

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #000;
  padding: 0.5em 1em;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 10px;
  padding: 0.7em 1.4em;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn:hover { opacity: 0.85; }

.btn-light {
  background: var(--primary);
  color: #000000;
}

.btn-accent {
  background: var(--accent);
  color: #000000;
}
.btn-accent:hover { color: #fff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.scrolled {
  background: rgba(0, 0, 0, 0.9);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75em 1.25em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}

.logo img { height: 40px; width: auto; }

.main-nav {
  display: flex;
  gap: 2em;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
}
.main-nav a { text-decoration: none; }
.main-nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 1em; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
}

/* Hero */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3em 1.25em;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 0.5em;
}
.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  text-transform: lowercase;
  max-width: 700px;
}
.hero .eyebrow {
  font-size: clamp(2.4rem, 8vw, 4.75rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.3em;
  margin-bottom: 0.35em;
}
.hero .hero-title {
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  max-width: none;
}
.scroll-cue {
  margin-top: 2.5em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.scroll-cue:hover { color: var(--accent); }
.scroll-cue svg { animation: bounce 1.6s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* Sections */
.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4em 1.25em;
}
.section-title-center { text-align: center; margin-bottom: 1.5em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 800px; }

.grid { display: grid; gap: 2em; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.feature p { color: var(--muted); font-size: 0.95rem; }

/* Split sections */
.split-section {
  display: flex;
  align-items: center;
  gap: 3em;
  flex-wrap: wrap;
}
.split-section.reverse { flex-direction: row-reverse; }
.split-text, .split-image { flex: 1 1 400px; min-width: 300px; }
.split-image img { border-radius: 12px; margin: 0 auto; }

.use-case { margin-bottom: 1.5em; }
.use-case h3 { color: var(--accent); }
.use-case p { color: var(--muted); font-size: 0.95rem; }

/* Accent / digital twin section */
.accent-section {
  text-align: center;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.6)),
    url("../img/digital-twin.jpg") center / cover no-repeat;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.accent-section .eyebrow { font-size: 1.4rem; letter-spacing: 0.2em; }
.section-headline { font-size: clamp(1.3rem, 3vw, 1.8rem); max-width: 750px; margin: 0.3em auto; }
.accent-section .lead { margin: 1.5em auto; }
.accent-section .btn { margin-top: 0.5em; }

/* Streaming */
.streaming-block { text-align: center; max-width: 760px; margin: 0 auto 2.5em; }
.streaming-block h3 { color: var(--accent); font-size: 1.05rem; }
.streaming-block p { color: var(--muted); }

.cta-center {
  text-align: center;
  background: var(--accent);
  padding: 2.5em 1.25em;
  margin: 2em 0;
}
.cta-center .btn-light {
  background: #050505;
  color: #ffffff;
}

/* Footer */
.site-footer {
  border-top: 4px solid var(--accent);
  padding: 2em 1.25em;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
}
.footer-back {
  display: flex;
  align-items: center;
  gap: 0.75em;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.footer-back img { height: 32px; width: auto; }
.footer-inner p { color: var(--muted); font-size: 0.85rem; margin: 0; }

@media (max-width: 600px) {
  .footer-inner { justify-content: center; text-align: center; }
}

/* WhatsApp floating button */
.whatsapp-fab {
  position: fixed;
  right: 1.25em;
  bottom: 1.25em;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 200;
  text-decoration: none;
}
.whatsapp-fab:hover { transform: scale(1.05); }

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #000;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 300px; }
  .main-nav a {
    padding: 1em 1.25em;
    border-top: 1px solid var(--border);
    width: 100%;
  }
  .header-actions .btn { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .split-section, .split-section.reverse { flex-direction: column; }
}
