/* ============================================
   INVENTAIR — Industrial Redesign
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --black: #111111;
  --dark-gray: #1E1E1E;
  --gray: #757575;
  --light-gray: #E0E0E0;
  --bg-gray: #F4F4F5;
  --white: #FFFFFF;
  --accent: #E8863A;
  /* Brand Orange used sharply */
  --font-main: 'Inter', sans-serif;
  --transition: 0.3s ease;
  --max-width: 1400px;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* ── Typography ── */
h1,
h2,
h3,
h4,
.box-title {
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 700px;
}

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

.text-white {
  color: var(--white) !important;
}

.text-white-dim {
  color: rgba(255, 255, 255, 0.7) !important;
}

.section-label,
.section-label-white {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}

.section-label {
  color: var(--black);
}

.section-label-white {
  color: var(--white);
}

/* ── Buttons & Links ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--black);
}

.block-btn {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--black);
  border-bottom: 2px solid var(--black);
  padding-bottom: 4px;
}

.link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── Top Bar ── */
.top-bar {
  background: var(--black);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 40px;
}

.top-info {
  display: flex;
  gap: 24px;
}

.top-info span {
  opacity: 0.8;
}

.top-action a {
  background: var(--accent);
  color: var(--white);
  padding: 0 16px;
  display: flex;
  align-items: center;
  height: 40px;
  transition: var(--transition);
}

.top-action a:hover {
  background: #d7762a;
}

@media (max-width: 900px) {
  .top-info {
    display: none;
  }

  .top-bar-inner {
    justify-content: flex-end;
  }
}

/* ── Header ── */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--light-gray);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 78px;
}

.header-logo img {
  height: 64px;
}

.nav-links-desktop {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links-desktop a {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links-desktop a:hover {
  color: var(--accent);
}

.nav-cta {
  border: 2px solid var(--black);
  padding: 8px 16px;
}

.nav-cta:hover {
  background: var(--black);
  color: var(--white) !important;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1002;
  position: relative;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

/* Mobile nav panel & overlay - hidden on desktop */
.mobile-nav-overlay,
.mobile-nav-panel {
  display: none;
}

@media (max-width: 900px) {
  .nav-links-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hide hamburger when mobile nav panel is open */
  .hamburger.active {
    opacity: 0;
    pointer-events: none;
  }

  /* ── Mobile Nav Overlay (dark backdrop) ── */
  .mobile-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1000;
    pointer-events: none;
    transition: background 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .mobile-nav-overlay.show {
    background: rgba(0, 0, 0, 0.25);
    pointer-events: auto;
  }

  /* ── Mobile Nav Panel (Stripe-style slide-down drawer) ── */
  .mobile-nav-panel {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--white);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 16px 70px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(0, 0, 0, 0.05);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    
    /* Closed state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-16px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s 0.3s;
  }

  .mobile-nav-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 0.35s cubic-bezier(0, 0, 0.2, 1),
                transform 0.35s cubic-bezier(0, 0, 0.2, 1),
                visibility 0s 0s;
  }

  /* ── Panel Header ── */
  .mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .mobile-nav-logo img {
    height: 36px;
  }

  .mobile-nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--bg-gray);
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .mobile-nav-close:hover,
  .mobile-nav-close:active {
    background: var(--light-gray);
    color: var(--black);
  }

  /* ── Nav Links ── */
  .mobile-nav-links {
    padding: 8px 24px;
  }

  .mobile-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    border-bottom: 1px dotted rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: var(--black);
    transition: all 0.2s ease;
  }
  .mobile-nav-item:last-child {
    border-bottom: none;
  }
  .mobile-nav-item:active {
    opacity: 0.6;
  }

  .mobile-nav-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .mobile-nav-item-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--black);
    letter-spacing: -0.01em;
  }

  .mobile-nav-item-desc {
    font-size: 0.82rem;
    color: var(--gray);
    font-weight: 400;
  }

  .mobile-nav-chevron {
    color: var(--gray);
    flex-shrink: 0;
    transition: transform 0.2s ease;
  }
  .mobile-nav-item:active .mobile-nav-chevron {
    transform: translateX(3px);
    color: var(--accent);
  }

  /* ── Panel Footer (CTAs + Contact) ── */
  .mobile-nav-footer {
    padding: 20px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .mobile-nav-cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: var(--accent);
    color: var(--white) !important;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  .mobile-nav-cta-primary:active {
    transform: scale(0.98);
    background: #d7762a;
  }

  .mobile-nav-cta-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    background: var(--white);
    color: var(--black) !important;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    text-decoration: none;
    transition: all 0.2s ease;
  }
  .mobile-nav-cta-secondary:active {
    background: var(--bg-gray);
  }

  .mobile-nav-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  .mobile-nav-contact span {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
  }
}

/* ── Hero Split Architecture ── */
.hero {
  display: flex;
  min-height: calc(100vh - 120px);
  background: var(--bg-gray);
  overflow: hidden;
}

.hero-left {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 60px 5vw;
  background: var(--white);
}

.hero-content {
  max-width: 600px;
}

.hero-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gray);
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--dark-gray);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-right {
  flex: 1;
  position: relative;
  min-height: 50vh;
}

.hero-media {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
  /* Light dramatic overlay */
}

/* Brutalist Overlap Box */
.hero-overlap-box {
  position: absolute;
  bottom: 0;
  left: -80px;
  /* Overlaps onto the white area */
  background: var(--accent);
  color: var(--white);
  padding: 40px;
  width: 360px;
  z-index: 10;
}

.box-top {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.box-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  opacity: 0.9;
  margin-bottom: 8px;
}

.box-title {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 12px;
}

.box-desc {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  margin-bottom: 24px;
}

.box-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  padding-top: 16px;
  font-weight: 600;
  font-size: 0.85rem;
}

.arrow-btn {
  font-size: 1.2rem;
}

@media (max-width: 1100px) {
  .hero-overlap-box {
    left: 0;
    width: 100%;
    bottom: 0;
  }
}

@media (max-width: 900px) {
  .hero {
    flex-direction: column;
  }

  .hero-left,
  .hero-right {
    flex: none;
    width: 100%;
  }

  .hero-right {
    height: 500px;
  }

  .hero-overlap-box {
    position: relative;
    left: 0;
    width: 100%;
  }
}

/* ── Generic Sections ── */
.section {
  padding: 120px 0;
}

.gray-section {
  background: var(--bg-gray);
}

.dark-section {
  background: var(--black);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

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

.section-desc {
  margin: 0 auto;
}

/* ── Problems Grid ── */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.problem-card {
  border-top: 4px solid var(--black);
  padding-top: 24px;
}

.card-icon {
  font-size: 3rem;
  font-weight: 900;
  color: var(--light-gray);
  margin-bottom: 16px;
  line-height: 1;
}

.problem-card h3 {
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .problems-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Split Layouts (Solution & Livrable) ── */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-layout.alt {
  grid-template-columns: 1.2fr 1fr;
}

.split-img {
  position: relative;
}

.split-img img {
  width: 100%;
}

.img-badge {
  position: absolute;
  top: -20px;
  right: -20px;
  background: var(--accent);
  color: var(--white);
  padding: 16px 24px;
  font-weight: 800;
  font-size: 1.2rem;
  text-transform: uppercase;
}

.feature-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-list li {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  color: var(--light-gray);
}

.feature-list strong {
  display: block;
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.check-list li {
  font-weight: 600;
  color: var(--black);
  font-size: 1.1rem;
  border-bottom: 1px solid var(--light-gray);
  padding-bottom: 16px;
}

@media (max-width: 900px) {

  .split-layout,
  .split-layout.alt {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .img-badge {
    top: 0;
    right: 0;
  }

  .split-layout.alt .split-img {
    grid-row: 1;
  }

  /* Image first on mobile */
}

/* ── Process Grid / Method ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--dark-gray);
}

.process-step {
  padding: 40px;
  border-right: 1px solid var(--dark-gray);
}

.process-step:last-child {
  border-right: none;
}

.step-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 24px;
}

.process-step h3 {
  margin-bottom: 16px;
}

.process-step p {
  color: var(--light-gray);
  font-size: 0.95rem;
}

@media (max-width: 1000px) {
  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-step:nth-child(even) {
    border-right: none;
  }

  .process-step:nth-child(1),
  .process-step:nth-child(2) {
    border-bottom: 1px solid var(--dark-gray);
  }
}

@media (max-width: 600px) {
  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-step {
    border-right: none;
    border-bottom: 1px solid var(--dark-gray);
  }
}

/* ── Stats Section ── */
.stats-section { padding: 80px 0; border-top: 1px solid var(--dark-gray); border-bottom: 1px solid var(--dark-gray); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.stat-item { border-right: 1px solid var(--dark-gray); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 4rem; font-weight: 900; line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.9rem; font-weight: 700; color: var(--light-gray); letter-spacing: 2px; }

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .stat-item:nth-child(even) { border-right: none; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; padding-bottom: 32px; border-bottom: 1px solid var(--dark-gray); }
  .stat-item:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ── FAQ ── */
.faq-section { background: var(--bg-gray); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.faq-card { background: var(--white); padding: 40px; border-top: 4px solid var(--black); }
.faq-card h4 { margin-bottom: 16px; font-size: 1.1rem; line-height: 1.4; }
.faq-card p { font-size: 0.95rem; }

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ── Contact Section ── */
.contact {
  background: var(--accent);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--black);
}

.contact-info-block {
  padding: 80px;
}

.contact-details-list {
  margin-top: 40px;
  color: var(--white);
}

.contact-details-list p {
  margin-bottom: 16px;
  color: var(--light-gray);
}

.contact-details-list strong {
  color: var(--accent);
  margin-right: 8px;
}

.contact-form-block {
  padding: 80px;
  background: var(--white);
}

.industrial-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.input-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.industrial-form input,
.industrial-form textarea {
  width: 100%;
  padding: 16px;
  background: var(--bg-gray);
  border: 1px solid var(--light-gray);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
}

.industrial-form input:focus,
.industrial-form textarea:focus {
  outline: none;
  border-color: var(--black);
  background: var(--white);
}

.industrial-form textarea {
  height: 120px;
  resize: vertical;
}

.form-success {
  display: none;
  padding: 24px;
  background: #E8F5E9;
  color: #2E7D32;
  font-weight: 700;
  text-align: center;
  border: 1px solid #C8E6C9;
  margin-top: 24px;
}

.form-success.show {
  display: block;
}

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info-block {
    padding: 40px;
  }

  .contact-form-block {
    padding: 40px;
  }
}

/* ── Footer ── */
.footer {
  background: var(--black);
  padding: 80px 0 0;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--dark-gray);
}

.footer-brand img { height: 48px; margin-bottom: 24px; }
.footer-brand p { color: var(--gray); font-size: 0.95rem; line-height: 1.7; margin-bottom: 24px; }

.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--dark-gray);
  color: var(--white); font-weight: 800; font-size: 0.75rem;
  transition: var(--transition);
}
.footer-socials a:hover { background: var(--accent); border-color: var(--accent); }

.footer-links h4 { margin-bottom: 24px; font-size: 0.9rem; color: var(--white); letter-spacing: 1px; }
.footer-links a { display: block; margin-bottom: 14px; font-size: 0.85rem; font-weight: 500; color: var(--gray); transition: var(--transition); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }

.footer-contact h4 { margin-bottom: 24px; font-size: 0.9rem; color: var(--white); letter-spacing: 1px; }
.footer-contact-item { margin-bottom: 16px; }
.footer-contact-item strong { display: block; font-size: 0.75rem; color: var(--accent); letter-spacing: 1px; margin-bottom: 4px; }
.footer-contact-item span { font-size: 0.95rem; color: var(--light-gray); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0; font-size: 0.8rem; font-weight: 600; color: var(--gray);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--gray); font-size: 0.8rem; font-weight: 600; transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ── Legal Pages ── */
.legal-hero {
  background: var(--black);
  padding: 80px 0 60px;
  border-bottom: 4px solid var(--accent);
}
.legal-hero .section-label-white { margin-bottom: 16px; }
.legal-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 16px;
}
.legal-hero p { color: var(--gray); font-size: 1.05rem; }

.legal-content {
  padding: 80px 0;
  background: var(--bg-gray);
}
.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
}
.legal-card {
  background: var(--white);
  padding: 40px;
  border-left: 4px solid var(--black);
  transition: var(--transition);
}
.legal-card:hover { border-left-color: var(--accent); }
.legal-card-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--light-gray);
  line-height: 1;
  margin-bottom: 12px;
}
.legal-card h3 {
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.legal-card p,
.legal-card li {
  color: var(--dark-gray);
  font-size: 0.95rem;
  line-height: 1.8;
}
.legal-card ul {
  margin-top: 12px;
  padding-left: 20px;
  list-style: disc;
}
.legal-card li { margin-bottom: 6px; }
.legal-card strong { color: var(--black); }
.legal-card em { color: var(--accent); font-style: normal; font-weight: 700; }
.legal-card.full-width { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   RESPONSIVE OVERHAUL — Complete Mobile / Tablet adjustments
   ================================================================ */

/* ── TABLET LANDSCAPE (≤1100px) ── */
@media (max-width: 1100px) {
  .section { padding: 80px 0; }
  .section-header { margin-bottom: 60px; }
  .hero-content { max-width: 100%; }
  .stats-grid { gap: 24px; }
  .contact-info-block, .contact-form-block { padding: 60px; }
}

/* ── TABLET PORTRAIT / MOBILE PRO (≤768px) ── */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { padding: 0 24px; }

  /* Top Bar & Header Mobile Premium */
  .top-bar { display: none; } /* Too much clutter on top for mobile */
  .header-inner { height: 70px; }
  .header-logo img { height: 40px; }
  
  /* Full-bleed Cinematic Hero for Mobile */
  .hero { 
    display: block; 
    position: relative; 
    min-height: 100vh;
    padding-top: 0;
    overflow: hidden;
  }
  .hero-right {
    position: absolute; inset: 0; width: 100%; height: 100vh; z-index: 1;
  }
  .hero-video, .hero-fallback {
    width: 100%; height: 100%; object-fit: cover;
  }
  .hero-left {
    position: absolute; bottom: 0; left: 0; width: 100%;
    z-index: 2;
    padding: 180px 24px 40px;
    background: linear-gradient(to top, rgba(17,17,17,1) 0%, rgba(17,17,17,0.8) 40%, rgba(17,17,17,0) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
  }
  .hero-content { padding-top: 0; }
  .hero-content h1 { 
    color: var(--white); 
    font-size: 2.2rem; 
    line-height: 1.1; 
    margin-bottom: 16px;
  }
  .hero-content p { 
    color: var(--light-gray); 
    font-size: 1.05rem; 
    margin-bottom: 24px;
  }
  .hero-actions { 
    flex-direction: column; width: 100%; gap: 12px; 
  }
  .hero-actions .btn { width: 100%; padding: 18px; font-size: 1rem; text-align: center; }
  .hero-actions .link-arrow { color: var(--white); justify-content: center; width: 100%; margin-top: 8px; }
  .hero-overlap-box { display: none; } /* Hidden on mobile to keep hero clean and focused */

  /* Section Spacing Refinement */
  .section { padding: 70px 0; }
  .section-title { font-size: 1.8rem; line-height: 1.2; word-wrap: break-word; }
  
  /* Problems UI — Sleeker List */
  .problems-grid { grid-template-columns: 1fr; gap: 16px; }
  .problem-card { padding: 32px 24px; border-width: 2px; }
  .card-icon { font-size: 2rem; margin-bottom: 16px; }

  /* Split Layouts (Solution) */
  .split-layout, .split-layout.alt { grid-template-columns: 1fr; gap: 40px; }
  .split-layout.alt .split-img { grid-row: 1; } /* Image on top on mobile */
  .split-text { padding: 0; }
  .split-img { min-height: 300px; }
  .feature-list { margin-top: 32px; gap: 24px; }

  /* Mobile Method Timeline */
  .process-grid { grid-template-columns: 1fr; }
  .process-step { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); padding: 40px 24px; }
  .process-step:last-child { border-bottom: none; }
  .step-num { font-size: 1.5rem; margin-bottom: 16px; }

  /* Compact Stats */
  .stats-grid { grid-template-columns: 1fr; gap: 0; border: 1px solid var(--dark-gray); }
  .stat-item { padding: 32px 24px; border-right: none; border-bottom: 1px solid var(--dark-gray); }
  .stat-item:last-child { border-bottom: none; }
  .stat-num { font-size: 3.5rem; }

  /* Table overflow fix */
  .data-preview { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 16px; }
  .data-grid { min-width: 600px; }

  /* FAQ */
  .faq-grid { grid-template-columns: 1fr; gap: 16px; }
  .faq-card { padding: 24px; }

  /* Contact Form */
  .contact-wrapper { grid-template-columns: 1fr; }
  .contact-info-block { padding: 40px 24px; }
  .contact-form-block { padding: 40px 24px; }
  .industrial-form input, .industrial-form textarea { padding: 16px; }

  /* Footer & Legal */
  .footer { padding: 60px 0 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; text-align: left; }
  .footer-bottom-links { flex-wrap: wrap; gap: 16px; }

  .legal-hero { padding: 80px 0 40px; }
  .legal-hero h1 { font-size: 2.2rem; }
  .legal-grid { grid-template-columns: 1fr; gap: 16px; }
  .legal-card { padding: 24px; }
  .legal-card-num { font-size: 1.5rem; }

  /* Hero specific text visibility on mobile */
  .hero-label { color: var(--accent); font-weight: 800; }
  .hero-actions .btn { background: var(--accent); color: var(--black); border-color: var(--accent); }

  /* Header z-index for mobile nav */
  .header { 
    position: sticky; 
    z-index: 1002; 
  }
}

/* ── SMALL PHONES (≤400px) ── */
@media (max-width: 400px) {
  .hero-content h1 { font-size: 1.9rem; }
  .section-title { font-size: 1.5rem; }
  .stat-num { font-size: 3rem; }
}