/* ==========================================================================
   BATROX CONSTRUCTION SAAS — MASTER DESIGN SYSTEM & LANDING CSS
   ========================================================================== */

:root {
  /* Canvas & Backgrounds */
  --bg-canvas: #0B0F19;
  --bg-surface: #0F172A;
  --bg-card: #111827;
  --bg-card-subtle: #161F30;
  --bg-glass: rgba(17, 24, 39, 0.75);
  --bg-glass-light: rgba(255, 255, 255, 0.04);

  /* Construction Amber Accent */
  --amber-primary: #F59E0B;
  --amber-hover: #D97706;
  --amber-dark: #B45309;
  --amber-glow: rgba(245, 158, 11, 0.25);
  --amber-subtle: rgba(245, 158, 11, 0.12);

  /* Status Accents */
  --emerald: #10B981;
  --emerald-subtle: rgba(16, 185, 129, 0.15);
  --blue: #3B82F6;
  --blue-subtle: rgba(59, 130, 246, 0.15);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --border-amber: rgba(245, 158, 11, 0.3);

  /* Text Colors */
  --text-white: #FFFFFF;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  /* Typography Defaults */
  --font-latin: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-arabic: 'Cairo', 'Alexandria', system-ui, -apple-system, sans-serif;
  --font-family: var(--font-latin);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 16px 36px -8px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(245, 158, 11, 0.25);
}

/* Direction-aware typography */
[dir="rtl"] {
  --font-family: var(--font-arabic);
}

[dir="ltr"] {
  --font-family: var(--font-latin);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-main);
  font-family: var(--font-family);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Architectural Blueprint Subtle Canvas */
.blueprint-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 980px;
  background-color: #0B0F17;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle 700px at 70% 120px, rgba(30, 41, 59, 0.45), transparent 70%),
    radial-gradient(circle 500px at 15% 280px, rgba(245, 158, 11, 0.035), transparent 60%);
  background-size: 64px 64px, 64px 64px, 100% 100%, 100% 100%;
  pointer-events: none;
  z-index: 0;
}

/* Common Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Links & Buttons Reset */
a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--amber-primary);
  outline-offset: 3px;
}

/* ==========================================================================
   NAVBAR COMPONENT
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(11, 15, 23, 0.9);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.brand-title {
  font-family: var(--font-latin);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #FFFFFF;
  text-transform: uppercase;
}

/* Nav Links Menu (Quiet B2B Layout) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: #94A3B8;
  position: relative;
  padding-block: 0.5rem;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #FFFFFF;
}

.nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--amber-primary);
  border-radius: 2px;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--bg-glass-light);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-light);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 140px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 0.4rem;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 110;
}

.lang-menu.open {
  display: flex;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.lang-item:hover, .lang-item.active {
  background: var(--bg-card-subtle);
  color: var(--amber-primary);
}

/* CTA Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.35rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber-primary) 0%, var(--amber-hover) 100%);
  color: #0B0F19 !important;
  box-shadow: 0 4px 18px var(--amber-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, #FBBF24 0%, var(--amber-primary) 100%);
}

.btn-secondary {
  background: var(--bg-glass-light);
  border: 1px solid var(--border-subtle);
  color: var(--text-white) !important;
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-light);
  transform: translateY(-2px);
}

/* Navbar specific button visibility */
.nav-btn-login {
  display: inline-flex;
}

.nav-btn-cta {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
}

[dir="rtl"] .cta-arrow-icon {
  transform: rotate(180deg);
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 24px;
  justify-content: center;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Navigation Drawer */
.mobile-drawer {
  position: fixed;
  top: 74px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 15, 23, 0.98);
  backdrop-filter: blur(24px);
  padding: 1.5rem;
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 99;
  border-top: 1px solid var(--border-subtle);
  overflow-y: auto;
}

.mobile-drawer.open {
  display: flex;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  text-align: start;
  width: 100%;
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ==========================================================================
   HERO SECTION — 2-COLUMN SPLIT WITH CONSTRUCTION MOCKUPS
   ========================================================================== */

.hero-section {
  padding-top: 3.5rem;
  padding-bottom: 4.5rem;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  text-align: start;
}

/* Architectural Construction Badge */
.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.38rem 0.95rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: 1.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--amber-primary);
}

.badge-pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--amber-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulse-dot 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* Balanced Authoritative Headline */
.hero-title {
  font-size: clamp(2rem, 3.1vw, 2.75rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 1.15rem;
}

/* Crisp BTP Subtitle */
.hero-subtitle {
  font-size: clamp(0.95rem, 1.15vw, 1.05rem);
  line-height: 1.7;
  color: #94A3B8;
  margin-bottom: 2rem;
  max-width: 530px;
  font-weight: 400;
}

/* CTAs Group */
.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.btn-hero-cta {
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-cta-sub {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.2);
  color: #0B0F19;
  padding: 2px 7px;
  border-radius: 4px;
  margin-inline-start: 0.2rem;
}

.btn-hero-secondary {
  padding: 0.8rem 1.4rem;
  font-size: 0.95rem;
}

/* 3 Construction Trust Indicators */
.hero-trust-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.desktop-only-trust {
  display: flex;
}

.mobile-only-trust {
  display: none;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: #94A3B8;
  font-weight: 500;
}

.trust-icon-box {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   HERO DUAL-SCREEN MOCKUP (OFFICE DESKTOP + FIELD MOBILE)
   ========================================================================== */

.hero-visual-col {
  position: relative;
  width: 100%;
}

.mockup-stage {
  position: relative;
  width: 100%;
  max-width: 650px;
  margin-inline: auto;
}

/* Desktop Browser Mockup Frame */
.mockup-desktop {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85),
              0 0 40px rgba(245, 158, 11, 0.04);
  overflow: hidden;
  text-align: start;
}

/* Window Top Bar */
.mockup-header {
  background: #161F30;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot-red { background-color: #EF4444; }
.dot-yellow { background-color: #F59E0B; }
.dot-green { background-color: #10B981; }

.mockup-url-bar {
  flex: 1;
  max-width: 360px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.65rem;
  font-size: 0.74rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: monospace;
}

.mockup-demo-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: var(--amber-primary);
  font-weight: 700;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
  margin-inline-start: auto;
}

.demo-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--amber-primary);
}

/* Screen Body Content */
.mockup-screen-body {
  padding: 1.15rem;
  background: #0B101B;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* Site Top Header Bar */
.mockup-site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-category-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--amber-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #FFFFFF;
}

.site-budget-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.72rem;
  color: #94A3B8;
}

.budget-val {
  font-weight: 700;
  color: #10B981;
  margin-inline-start: 0.25rem;
}

/* Two Independent Progress Meters */
.mockup-meters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.meter-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 0.75rem;
}

.meter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.meter-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.meter-icon {
  font-size: 0.85rem;
}

.meter-title {
  font-size: 0.74rem;
  font-weight: 700;
  color: #E2E8F0;
}

.meter-pct {
  font-size: 0.85rem;
  font-weight: 800;
}

.pct-amber { color: var(--amber-primary); }
.pct-emerald { color: #10B981; }

.meter-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.35rem;
}

.meter-bar-fill {
  height: 100%;
  border-radius: 3px;
}

.meter-bar-fill.fill-amber {
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

.meter-bar-fill.fill-emerald {
  background: linear-gradient(90deg, #10B981, #34D399);
}

.meter-sub {
  font-size: 0.65rem;
  color: #64748B;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 3-Col KPI Mini Row */
.mockup-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.kpi-mini-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.kpi-mini-label {
  font-size: 0.68rem;
  color: #94A3B8;
}

.kpi-mini-val {
  font-size: 0.92rem;
  font-weight: 800;
  color: #FFFFFF;
}

.text-dim-white {
  color: #E2E8F0;
}

/* Key Materials Tracking Strip (Matériaux) */
.mockup-materials-box {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.materials-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.materials-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #94A3B8;
}

.materials-status {
  font-size: 0.65rem;
  color: #10B981;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.material-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chip-name {
  font-size: 0.65rem;
  color: #94A3B8;
}

.chip-qty {
  font-size: 0.72rem;
  font-weight: 700;
  color: #FFFFFF;
}

/* Mobile Phone Overlapping Mockup (Morning Field Pointage & Advance) */
.mockup-phone {
  position: absolute;
  bottom: -22px;
  inset-inline-end: -22px;
  width: 224px;
  background: #0B0F17;
  border: 3px solid #334155;
  border-radius: 24px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.95),
              0 0 25px rgba(245, 158, 11, 0.08);
  overflow: hidden;
  z-index: 10;
  padding: 0.7rem;
  text-align: start;
}

.phone-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: #64748B;
  font-weight: 700;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.phone-site-tag {
  color: var(--amber-primary);
}

.phone-screen-content {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.phone-widget {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 0.5rem;
}

.phone-widget-title {
  font-size: 0.68rem;
  color: #94A3B8;
  margin-bottom: 0.35rem;
}

.phone-pills-row {
  display: flex;
  gap: 0.35rem;
}

.pointage-pill {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.pill-present {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
}

.pill-absent {
  background: rgba(255, 255, 255, 0.06);
  color: #94A3B8;
}

.phone-worker-card {
  border-inline-start: 3px solid var(--amber-primary);
}

.worker-card-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.worker-avatar {
  font-size: 1rem;
}

.worker-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #FFFFFF;
}

.worker-trade {
  font-size: 0.62rem;
  color: #64748B;
}

.worker-advance-line, .worker-balance-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
}

.advance-label { color: #94A3B8; }
.advance-amount { font-weight: 700; color: #F87171; }
.balance-label { color: #94A3B8; }
.balance-amount { font-weight: 700; color: #34D399; }

/* Responsive Layout Rules for Hero & Navbar */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-content {
    text-align: center;
  }
  .hero-subtitle {
    margin-inline: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-trust-list {
    align-items: center;
  }
  .mockup-phone {
    bottom: -15px;
    inset-inline-end: 0;
  }
}

@media (max-width: 768px) {
  .navbar-inner {
    height: 64px;
  }
  .nav-menu {
    display: none;
  }
  .nav-btn-login {
    display: none !important;
  }
  .mobile-toggle {
    display: flex;
  }
  .desktop-only-trust {
    display: none !important;
  }
  .mobile-only-trust {
    display: flex !important;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    margin-top: 2rem;
    text-align: start;
  }
  .hero-section {
    padding-top: 2rem;
    padding-bottom: 3.5rem;
  }
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.3;
  }
  .btn-hero-cta {
    width: 100%;
    justify-content: center;
  }
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
  .mockup-url-bar {
    max-width: 190px;
    font-size: 0.65rem;
  }
  .mockup-meters-grid {
    grid-template-columns: 1fr;
  }
  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mockup-phone {
    position: static;
    width: 100%;
    max-width: 260px;
    margin: 1.25rem auto 0 auto;
  }
}

/* ==========================================================================
   FOOTER COMPONENT
   ========================================================================== */

.footer {
  background: #070A11;
  border-top: 1px solid var(--border-subtle);
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-col {
  max-width: 360px;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: 1rem;
  line-height: 1.65;
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-link:hover {
  color: var(--amber-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mockup-body {
    grid-template-columns: 1fr;
  }

  .mockup-sidebar {
    display: none;
  }

  .mockup-phone {
    position: static;
    margin: 2rem auto 0;
    width: 290px;
    transform: none;
  }

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

/* ==========================================================================
   PHASE B SECTION STYLES
   ========================================================================== */

.py-section {
  padding-block: 5.5rem;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--amber-subtle);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.25;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Trust Pillars Grid ──────────────────────────────────────────────────── */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.3s ease;
}

.trust-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-sm);
}

.trust-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--amber-subtle);
  color: var(--amber-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
}

.trust-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Problems Grid ───────────────────────────────────────────────────────── */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.problem-card {
  background: rgba(26, 17, 24, 0.6);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #EF4444;
}

.problem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: 0 12px 24px rgba(239, 68, 68, 0.1);
}

.problem-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
}

.problem-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Solutions Overview Grid ─────────────────────────────────────────────── */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.solution-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.solution-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-amber);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.12);
}

.solution-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--amber-subtle);
  color: var(--amber-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
}

.solution-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Worker Management Deep Dive ─────────────────────────────────────────── */
.workers-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.calc-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.calc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
}

.calc-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
}

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
}

.calc-row.advance {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
  font-weight: 600;
}

.calc-row.total {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6EE7B7;
  font-weight: 800;
  font-size: 1.05rem;
}

.ledger-preview-box {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* ── Work Progress Section ───────────────────────────────────────────────── */
.works-principle-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(59, 130, 246, 0.1));
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.75rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--amber-primary);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.work-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.work-card-title {
  color: var(--text-white);
  font-size: 1.15rem;
  font-weight: 800;
}

.work-card-description {
  color: var(--text-dim);
  line-height: 1.7;
}

/* ── Finance Section ─────────────────────────────────────────────────────── */
.finance-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.finance-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.finance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--fin-accent, var(--amber-primary));
}

.fin-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.fin-value {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-white);
}

.fin-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ── Materials Section ───────────────────────────────────────────────────── */
.materials-showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.materials-tags-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.materials-tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.mat-pill:hover {
  background: var(--amber-subtle);
  border-color: var(--border-amber);
  color: var(--amber-primary);
  transform: translateY(-2px);
}

/* ── Mobile + Desktop Section ────────────────────────────────────────────── */
.device-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.device-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.device-card.field {
  border-inline-start: 4px solid var(--amber-primary);
}

.device-card.office {
  border-inline-start: 4px solid var(--blue);
}

.device-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.device-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.device-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.device-check-item svg {
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── Steps Section ───────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-amber);
}

.step-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--amber-primary);
  opacity: 0.8;
  font-family: monospace;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Personas Section ────────────────────────────────────────────────────── */
.personas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.persona-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: all 0.3s ease;
}

.persona-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
}

.persona-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  color: var(--amber-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.persona-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-white);
}

.persona-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Pricing Section ─────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card.featured {
  border-color: var(--amber-primary);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(245, 158, 11, 0.2);
  background: linear-gradient(180deg, #161F30 0%, #111827 100%);
}

.launch-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--amber-primary), var(--amber-hover));
  color: #0B0F19;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-plan-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.pricing-plan-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 40px;
}

.pricing-price-box {
  margin-bottom: 1.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.pricing-price-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text-white);
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.pricing-feature-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-main);
}

.pricing-feature-item svg {
  color: var(--emerald);
  flex-shrink: 0;
}

/* ── FAQ Accordion ───────────────────────────────────────────────────────── */
.faq-accordion {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--border-amber);
}

.faq-question {
  width: 100%;
  text-align: start;
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-white);
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

.faq-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-card-subtle);
  color: var(--amber-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.75rem 1.5rem 1.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ── Final CTA Banner ────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 50%, #090D16 100%);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-lg);
  padding: 4.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(245, 158, 11, 0.15);
}

.cta-banner-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 1rem;
  max-width: 800px;
  margin-inline: auto;
}

.cta-banner-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 650px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM BREAKPOINTS (ENHANCED)
   ========================================================================== */

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mockup-body {
    grid-template-columns: 1fr;
  }

  .mockup-sidebar {
    display: none;
  }

  .mockup-phone {
    position: static;
    margin: 2rem auto 0;
    width: 290px;
    transform: none;
  }

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

  .trust-grid, .problems-grid, .steps-grid, .personas-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .solutions-grid, .finance-cards-grid, .pricing-grid, .works-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-card.featured {
    transform: none;
  }

  .materials-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-inner {
    height: 70px;
  }

  .brand-logo-img {
    height: 40px;
  }

  .brand-title {
    font-size: 1.1rem;
  }

  .hero-section {
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

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

  .hero-cta-group .btn {
    width: 100%;
  }

  .mockup-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mockup-row {
    grid-template-columns: 1fr;
  }

  .trust-grid, .problems-grid, .steps-grid, .personas-grid,
  .solutions-grid, .finance-cards-grid, .pricing-grid, .works-grid,
  .workers-showcase, .device-showcase-grid {
    grid-template-columns: 1fr;
  }

  .ledger-preview-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 1rem;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .nav-btn-cta {
    display: none !important;
  }

  .lang-btn {
    padding-inline: 0.55rem;
  }

  .mockup-stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-trust-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .calc-box {
    padding: 1.5rem 1rem;
  }
}

/* ==========================================================================
   PHASE C: AUTHENTICATION & ONBOARDING STYLES
   ========================================================================== */

.auth-page {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 5rem 1.5rem;
  position: relative;
  z-index: 2;
}

.auth-card {
  width: 100%;
  max-width: 580px;
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.08);
  position: relative;
  overflow: hidden;
}

.auth-card.wide {
  max-width: 700px;
}

.auth-card.onboarding-card {
  max-width: 820px;
  border-color: var(--border-amber);
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-primary), #FBBF24, var(--amber-primary));
}

.auth-header {
  text-align: center;
  margin-bottom: 2.25rem;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--amber-subtle);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber-primary);
  margin-bottom: 1rem;
}

.auth-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-white);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.auth-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-grid.single {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.form-label .required {
  color: #EF4444;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--amber-primary);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-control::placeholder {
  color: var(--text-dim);
  font-size: 0.85rem;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  background-size: 1em;
  padding-inline-end: 2.5rem;
}

[dir="ltr"] select.form-control {
  background-position: right 1rem center;
  padding-inline-end: 2.5rem;
}

select.form-control option {
  background: #111827;
  color: var(--text-white);
}

.form-control.is-invalid {
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.05);
}

.form-error {
  font-size: 0.78rem;
  color: #F87171;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
  user-select: none;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  accent-color: var(--amber-primary);
}

.auth-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.auth-footer a {
  color: var(--amber-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-footer a:hover {
  color: var(--amber-hover);
}

/* ── Onboarding Steps Grid ───────────────────────────────────────────────── */
.onboarding-steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-block: 2.25rem;
}

.onboarding-step-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  transition: all 0.3s ease;
}

.onboarding-step-box:hover {
  border-color: var(--border-amber);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.onboarding-step-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--amber-subtle);
  color: var(--amber-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.onboarding-step-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-white);
}

.onboarding-step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

@media (max-width: 768px) {
  .auth-card {
    padding: 2.25rem 1.5rem;
  }

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

  .onboarding-steps-list {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   PHASE D: LEGAL & INFORMATIONAL PAGES (TERMS & PRIVACY)
   ========================================================================== */

.legal-page {
  padding: 4rem 1.5rem 6rem 1.5rem;
  position: relative;
  z-index: 2;
}

.legal-container {
  max-width: 920px;
  margin-inline: auto;
}

.legal-card {
  background: rgba(17, 24, 39, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8);
  position: relative;
}

.legal-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: var(--amber-subtle);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber-primary);
  margin-bottom: 1rem;
}

.legal-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--text-white);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.legal-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.legal-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.legal-section {
  padding-block: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-section:last-of-type {
  border-bottom: none;
}

.legal-section-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.legal-callout {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  margin-block: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.legal-callout svg {
  color: var(--amber-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.legal-callout-text {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.6;
}

.legal-footer-nav {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 768px) {
  .legal-card {
    padding: 2.25rem 1.5rem;
  }
}
