/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */
:root {
  --orange: #FF6600;
  --blue: #0059ff;
  --green: #1db937;
  --ink: #111111;
  --muted: #5f6470;
  --surface: #ffffff;
  --bg: #f5f6f8;
  --border: #e8ebef;
  --shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  text-transform: uppercase;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--blue);
}

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

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.page-shell {
  min-height: 100vh;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 1.5rem clamp(1.25rem, 3vw, 2.5rem) 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 105, 0, 0.06), rgba(6, 147, 227, 0.04));
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.brand-mark {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: auto;
  max-height: 3.25rem;
  height: auto;
  object-fit: contain;
  z-index: 2;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.top-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 auto 2rem;
  width: min(1120px, 100%);
}

.top-nav a {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.top-nav a:hover {
  border-color: var(--blue);
  background: rgba(0, 89, 255, 0.05);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-intro {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 2rem;
  align-items: center;
}

.home-hero .hero-intro {
  grid-template-columns: 1fr;
  text-align: center;
}

.home-hero .hero-copy {
  text-align: center;
}

.home-hero .hero-copy img {
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin-bottom: 1.5rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.7rem;
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-hero .eyebrow {
  display: block;
  text-align: center;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.4vw, 3.2rem);
  line-height: 1.1;
  color: var(--ink);
  text-transform: uppercase;
}

.hero-copy p {
  margin: 0 0 1.4rem;
  max-width: 640px;
  font-size: 1rem;
  color: var(--muted);
}

.home-hero .hero-copy p {
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem) !important;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink) !important;
  margin-bottom: 0.75rem !important;
}

.home-hero .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 2rem !important;
}

.home-hero .hero-desc {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}

.trust-badges {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-hero .trust-badges {
  align-items: center;
}

.trust-badges span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}

.badge-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.home-hero .badge-list {
  justify-content: center;
}

.badge-list img {
  height: 38px;
  width: auto;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

.badge-list img.dna-usp-logo {
  height: 60px;
}

.badge-list img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.home-hero .hero-actions {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
  color: white;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(255, 102, 0, 0.25);
}

.btn-success {
  background: var(--green);
  color: white;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.btn-success:hover {
  box-shadow: 0 10px 28px rgba(29, 185, 55, 0.25);
}

.btn-info {
  background: var(--blue);
  color: white;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.btn-info:hover {
  box-shadow: 0 10px 28px rgba(0, 89, 255, 0.25);
}

.btn-grey {
  background: var(--border);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.btn-grey:hover {
  background: var(--muted);
  color: white;
  box-shadow: 0 10px 28px rgba(95, 100, 112, 0.25);
}

section {
  padding: clamp(3.5rem, 6vw, 4.8rem) clamp(1.25rem, 3vw, 2.5rem);
}

.section-alt {
  background: var(--surface);
}

.section-header {
  width: min(760px, 100%);
  margin: 0 auto 2rem;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  text-transform: uppercase;
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.section-header-left {
  text-align: left;
  width: min(1120px, 100%);
  margin: 0 0 2rem;
}

.story-content {
  margin: 1.5rem 0 2.5rem;
}

.story-content p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.story-content p strong {
  color: var(--ink);
}

.info-grid,
.services-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.service-card,
.contact-card,
.page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.info-card h3,
.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.info-card p,
.service-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
}

/* ==========================================================================
   PAGE LAYOUT
   ========================================================================== */
.page-section {
  min-height: auto;
  padding-top: 2rem;
}

.page-topbar {
  width: min(1120px, 100%);
  margin: 0 auto 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.back-link {
  font-weight: 700;
  color: var(--orange);
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-nav a {
  padding: 0.6rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.page-nav a:hover {
  border-color: var(--blue);
  background: rgba(0, 89, 255, 0.05);
}

.page-card {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.page-card .hero-actions {
  margin-top: 1.2rem;
}

.split-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: center;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.7rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--ink);
}

.check-list li::before {
  content: "•";
  color: var(--orange);
  font-size: 1.2rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.image-stack {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

.image-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 0.9rem;
  border: 1px solid var(--border);
}

.contact-card {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
}

.contact-card .hero-actions {
  justify-content: center;
  margin-top: 1rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.2rem 1.5rem;
  min-width: 280px;
}

.contact-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.hero-footer {
  width: min(1120px, 100%);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-footer a {
  transition: color 0.2s ease;
}

.hero-footer a:hover {
  color: var(--orange);
}

.hero-footer .footer-links {
  display: flex;
  gap: 1.5rem;
}

.hero-footer .footer-links a {
  font-weight: 700;
}

/* ==========================================================================
   SIMPLE-Z PAGE
   ========================================================================== */
.specs-grid {
  width: min(1120px, 100%);
  margin: 1.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.spec-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.spec-item h3 {
  margin: 0 0 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-item p {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.4;
}

.downloads-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.downloads-section h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
}

.downloads-section p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-disabled {
  background: var(--border);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
  border: 1px solid var(--border);
}

.btn-disabled:hover {
  transform: none;
}

.btn-label {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 102, 0, 0.1);
  color: var(--orange);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: -0.5rem;
  border: 1px solid var(--orange);
}

.cta-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 105, 0, 0.08), rgba(6, 147, 227, 0.06));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem clamp(1.25rem, 3vw, 2.5rem);
}

.cta-section .section-header {
  text-align: center;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 1.5rem;
  background: var(--green);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(29, 185, 55, 0.25);
}

.btn-cta img {
  height: 20px;
  margin-right: 0.5rem;
  width: auto;
}

.manual-link-wrap {
  margin-top: 2rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .hero-intro,
  .split-grid,
  .info-grid,
  .services-grid,
  .specs-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .section-header {
    text-align: center;
  }

  .image-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand-mark {
    width: 2.7rem;
    height: 2.7rem;
  }

  .top-nav,
  .page-nav {
    justify-content: center;
  }

  .hero {
    padding-top: 4.75rem;
  }

  .btn {
    width: 100%;
  }

  .page-topbar {
    justify-content: center;
  }

  .button-group {
    flex-direction: column;
    width: 100%;
  }

  .button-group .btn,
  .button-group button {
    width: 100%;
  }

  .button-group .btn-label {
    width: 100%;
    text-align: center;
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   MOBILE NAVIGATION
   ========================================================================== */
.mobile-toggle {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}

.mobile-toggle button {
  all: unset;
  cursor: pointer;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  display: inline-block;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

@media (max-width: 900px) {
  .mobile-toggle { display: flex; }

  .top-nav {
    display: none;
    position: fixed;
    top: 4.5rem;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    gap: 0.25rem;
    width: auto;
    max-width: 340px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
    z-index: 1000;
    pointer-events: auto;
  }

  .top-nav.open { display: flex; }

  .top-nav a { display: block; padding: 0.9rem 1rem; margin: 0.25rem 0; }

  .page-nav {
    display: none;
    position: fixed;
    top: 4.5rem;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    gap: 0.25rem;
    width: auto;
    max-width: 340px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
    z-index: 1000;
    pointer-events: auto;
  }

  .page-nav.open { display: flex; }

  .page-nav a { display: block; padding: 0.9rem 1rem; margin: 0.25rem 0; }
}

@media (max-width: 640px) {
  .hero { min-height: auto; padding-bottom: 2rem; }
  .contact-btn { min-width: 0; width: 100%; }
  .top-nav a, .page-nav a { padding: 0.9rem 1rem; }
}