/* ===================================
   CSS CUSTOM PROPERTIES (CSS VARIABLES)
   Based on PrepTraX Brand Guidelines
   =================================== */
:root {
  /* ── Traxium Dark Theme Tokens ── */

  /* Core Brand Colors — mapped to Traxium palette */
  --primary-blue: var(--tx-color-navy-deep);        /* was #152452 → now deep bg-primary */
  --primary-green: var(--tx-color-cyan-brand);       /* was #1DB954 → Traxium cyan */
  --electric-blue: var(--tx-color-blue-brand);       /* was #3D7BFF → Traxium blue */
  --emerald: var(--tx-color-cyan-brand);             /* was #30D158 → Traxium cyan */
  --cyan: var(--tx-color-cyan-brand);                /* was #06B6D4 → Traxium cyan */
  --purple: var(--tx-color-blue-brand);              /* unchanged (Traxium purple) */
  --coral: var(--tx-color-blue-brand);               /* was #F97316 → Traxium pink */
  --amber: var(--tx-color-amber-550);               /* kept warm accent */
  --lime: var(--tx-color-cyan-brand);                /* was #84CC16 → Traxium cyan */
  --red: var(--tx-color-blue-brand);                 /* was #EF4444 → Traxium pink/error */

  /* Blue Variations */
  --blue-dark: var(--tx-color-navy-deep);           /* deepest bg */
  --blue-medium: var(--tx-color-slate-450);         /* muted text */
  --blue-light: var(--tx-color-blue-brand);          /* brand blue */
  --blue-lighter: var(--tx-color-cyan-brand);        /* bright blue */
  --sky-blue: var(--tx-color-cyan-brand);
  --electric-blue-dark: var(--tx-color-blue-brand);
  --sky-light: var(--tx-color-navy-deep);           /* surface bg */
  --sky-lighter: var(--tx-color-navy-canvas);         /* panel bg */

  /* Accent Variations */
  --green-dark: var(--tx-color-blue-brand);          /* was dark green → brand blue */
  --green-light: var(--tx-color-cyan-brand);
  --green-lighter: var(--tx-color-cyan-brand);

  /* Cyan Variations */
  --cyan-dark: var(--tx-color-cyan-brand);

  /* Red Variations */
  --red-dark: var(--tx-color-blue-brand);

  /* Neutral Colors */
  --white: var(--tx-color-white);
  --off-white: var(--tx-color-slate-250);           /* was #F8F9FA → secondary text */
  --light-gray: rgba(255,255,255,0.07);  /* was #E2E8F0 → dark border */
  --medium-gray: var(--tx-color-slate-450);         /* was #8FA2B8 → muted text */
  --slate: var(--tx-color-slate-250);               /* was #475569 → secondary text */
  --dark-gray: var(--tx-color-white);           /* was #0A1430 → primary text */
  --black: var(--tx-color-navy-deep);               /* was #000000 → bg-primary */

  /* Background Tints — now dark Traxium surfaces */
  --blue-tint: var(--tx-color-navy-canvas);           /* was #EFF6FF → panel */
  --green-tint: var(--tx-color-navy-deep);          /* was #ECFDF5 → surface */
  --cyan-tint: var(--tx-color-navy-canvas);           /* was #ECFEFF → panel */
  --purple-tint: var(--tx-color-navy-surface);         /* was #F5F3FF → panel-2 */

  /* Typography — Traxium fonts */
  --font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows — Traxium dark shadows */
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.35);
  --shadow-md:  0 4px 28px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-lg:  0 20px 64px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.3);
  --shadow-xl:  0 20px 64px rgba(0,0,0,0.6), 0 4px 16px rgba(0,0,0,0.3);
  --shadow-2xl: 0 28px 90px rgba(0,0,0,0.6), 0 8px 24px rgba(0,0,0,0.4);

  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s ease-in-out;

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* ===================================
   RESET AND BASE STYLES
   =================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  color: var(--white);
  background-color: var(--tx-color-navy-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===================================
   ACCESSIBILITY
   =================================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-blue);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--radius-md);
  z-index: 9999;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 6px;
}

/* ===================================
   HEADER AND NAVIGATION
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--tx-color-navy-deep) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  z-index: var(--z-fixed);
  transition: all var(--transition-normal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  position: relative;
  gap: var(--spacing-xl);
}

/* .nav-logo now wraps the canonical .tx-logo component */
.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--spacing-2xl);
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  font-size: 1rem;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-md);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: all var(--transition-smooth);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link.active {
  color: var(--white);
  font-weight: var(--font-weight-bold);
  background-color: rgba(255, 255, 255, 0.15);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--bg-2);
  border-radius: var(--radius-full);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  position: absolute;
  right: var(--spacing-lg);
  z-index: var(--z-modal);
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--bg-2);
  margin: 3px 0;
  transition: all var(--transition-fast);
  border-radius: var(--radius-full);
}

/* ===================================
   MAIN CONTENT
   =================================== */
.main-content {
  margin-top: 70px;
  min-height: calc(100vh - 70px);
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ===================================
   TYPOGRAPHY
   =================================== */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--font-weight-bold);
  color: var(--white);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  line-height: 1.2;
}

.section-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--slate);
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================
   GRADIENT TEXT
   =================================== */
.text-blue {
  background: linear-gradient(135deg, var(--tx-color-cyan-brand) 0%, var(--tx-color-blue-brand) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--cyan);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.text-gradient {
  background: linear-gradient(135deg, var(--tx-color-blue-brand) 0%, var(--tx-color-blue-brand) 30%, var(--tx-color-blue-brand) 65%, var(--tx-color-cyan-brand) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--amber);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.text-green {
  background: linear-gradient(135deg, var(--tx-color-blue-brand) 0%, var(--tx-color-cyan-brand) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--lime);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--tx-color-blue-brand) 0%, var(--tx-color-cyan-brand) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(61, 123, 255,0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: rgba(61, 123, 255,0.12);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-login {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  margin-top: var(--spacing-md);
}

.btn-warehouse {
  background: linear-gradient(135deg, var(--tx-color-blue-brand) 0%, var(--tx-color-cyan-brand) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
}

.btn-warehouse:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 54, 93, 0.4);
}

.btn-client {
  background: linear-gradient(135deg, var(--tx-color-cyan-brand) 0%, var(--tx-color-cyan-brand) 100%);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-client:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.btn-large {
  padding: 1.25rem 2.5rem;
  font-size: 1.125rem;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
  background: var(--tx-color-navy-deep);
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  color: var(--white);
}

.hero-logo-container {
  margin-bottom: var(--spacing-2xl);
  display: flex;
  justify-content: center;
}

.hero-logo {
  max-width: 1600px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.hero-wordmark {
  gap: var(--spacing-md);
}

.hero-wordmark .tx-logo-mark {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  font-size: 1.45rem;
}

.hero-wordmark .tx-logo-word {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
}

.hero-wordmark .tx-logo-sub {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-lg);
  color: var(--white);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-bottom: var(--spacing-3xl);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--slate);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================================
   LOGIN SECTION
   =================================== */
.login-section {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: linear-gradient(135deg, var(--tx-color-navy-deep) 0%, var(--tx-color-navy-deep) 50%, var(--tx-color-navy-canvas) 100%);
  position: relative;
  overflow: hidden;
}

.login-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.login-section .section-title {
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.login-section .section-subtitle {
  color: rgba(255, 255, 255, 0.95);
}

.login-section .container {
  position: relative;
  z-index: 1;
}

.login-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-3xl);
  max-width: 1000px;
  margin: 0 auto;
}

.login-card {
  background: var(--tx-color-navy-canvas);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-3xl);
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-smooth);
  border-top: 4px solid transparent;
}

.warehouse-portal {
  border-top-color: var(--primary-blue);
}

.client-portal {
  border-top-color: var(--emerald);
}

.login-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
}

.login-card-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.login-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: transparent;
}

.login-icon svg {
  width: 70px;
  height: 70px;
  fill: var(--white);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3))
          drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.login-card-title {
  font-size: 1.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.login-card-description {
  font-size: 1rem;
  color: var(--slate);
}

/* Form Styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.form-label {
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  color: var(--white);
}

.form-input {
  padding: 0.875rem 1rem;
  font-size: 1rem;
  background: var(--tx-color-navy-deep);
  color: var(--tx-color-white);
  border: 2px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  font-family: var(--font-family);
}

.form-input:focus {
  outline: none;
  border-color: var(--electric-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.client-portal .form-input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  color: var(--slate);
}

.checkbox-input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.forgot-link {
  color: var(--electric-blue);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-normal);
}

.forgot-link:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

.register-cta {
  text-align: center;
  margin-top: var(--spacing-md);
  font-size: 0.875rem;
  color: var(--slate);
}

/* Inline login status messages (pending / rejected) */
.login-status-msg {
  margin-top: var(--spacing-md);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.5;
}
.login-status-msg.pending {
  background: rgba(245,166,35,0.12);
  border: 1px solid rgba(245,166,35,0.3);
  color: var(--tx-color-amber-550);
}
.login-status-msg.rejected {
  background: rgba(61, 123, 255,0.1);
  border: 1px solid rgba(61, 123, 255,0.3);
  color: var(--tx-color-blue-brand);
}
.login-status-msg.error {
  background: rgba(61, 123, 255,0.1);
  border: 1px solid rgba(61, 123, 255,0.3);
  color: var(--tx-color-blue-brand);
}

/* ===================================
   FEATURES SECTION
   =================================== */
.features-section {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: linear-gradient(135deg, var(--tx-color-navy-deep) 0%, var(--tx-color-navy-deep) 50%, var(--tx-color-navy-canvas) 100%);
  position: relative;
  overflow: hidden;
}

.features-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 25% 40%, rgba(16, 185, 129, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 75% 60%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.features-section .section-title {
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.features-section .section-subtitle {
  color: rgba(255, 255, 255, 0.95);
}

.features-section .container {
  position: relative;
  z-index: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-3xl);
  max-width: 1200px;
  margin: 0 auto;
}

.feature-column {
  background: var(--tx-color-navy-canvas);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-3xl);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-smooth);
  border-top: 4px solid transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.warehouse-features {
  border-top: 4px solid var(--tx-color-blue-brand);
  background: var(--tx-color-navy-canvas);
}

.client-features {
  border-top: 4px solid var(--tx-color-cyan-brand);
  background: var(--tx-color-navy-canvas);
}

.feature-column:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  background: var(--tx-color-navy-surface);
}

.feature-column-header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 2px solid rgba(255,255,255,0.07);
}

.feature-header-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
}



.feature-header-icon svg {
  width: 40px;
  height: 40px;
  color: var(--white);
}

.feature-column-title {
  font-size: 1.75rem;
  font-weight: var(--font-weight-bold);
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.feature-column-subtitle {
  font-size: 1rem;
  color: var(--slate);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}

.feature-item {
  display: flex;
  gap: var(--spacing-lg);
  align-items: flex-start;
}

.feature-icon-wrapper {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  box-shadow: var(--shadow-md);
}

.warehouse-features .feature-icon-wrapper {
  background: linear-gradient(135deg, var(--blue-tint) 0%, var(--bg-3) 100%);
}

.client-features .feature-icon-wrapper {
  background: linear-gradient(135deg, var(--green-tint) 0%, var(--bg-3) 100%);
}

.feature-icon-wrapper svg {
  width: 24px;
  height: 24px;
  color: var(--primary-blue);
}

.client-features .feature-icon-wrapper svg {
  color: var(--emerald);
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-size: 1.125rem;
  font-weight: var(--font-weight-semibold);
  color: var(--white);
  margin-bottom: var(--spacing-sm);
}

.feature-description {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.6;
}

/* New Individual Feature Cards */
.features-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2rem);
  margin-top: var(--spacing-3xl);
}

.feature-card-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.feature-card {
  background: transparent;
  border-radius: var(--radius-2xl);
  position: relative;
  height: 380px;
  perspective: 1000px;
  cursor: pointer;
}

.feature-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.feature-card:hover .feature-card-inner {
  transform: rotateY(180deg);
}

.feature-card-front,
.feature-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-2xl);
  padding: clamp(2rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.4s ease;
}

.feature-card-front {
  background: var(--primary-blue);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.feature-card-back {
  background: var(--tx-color-navy-canvas);
  border: 2px solid rgba(61, 123, 255,0.4);
  transform: rotateY(180deg);
  padding: clamp(1.5rem, 3vw, 2rem);
  justify-content: flex-start;
  overflow-y: auto;
}

.warehouse-card:hover .feature-card-front,
.warehouse-card:hover .feature-card-back {
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.4);
}

.client-card:hover .feature-card-front,
.client-card:hover .feature-card-back {
  box-shadow: 0 20px 60px rgba(16, 185, 129, 0.4);
}

.feature-card-icon {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
  background: none !important;
  border: none !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-card-front .feature-card-icon {
  transform: scale(1.15);
}

.feature-card-icon svg {
  width: 100px;
  height: 100px;
  fill: var(--white);
  color: var(--white);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5))
          drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover .feature-card-front .feature-card-icon svg {
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.6))
          drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.feature-card-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.375rem 0.875rem;
  border-radius: 100px;
  margin-bottom: var(--spacing-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.warehouse-badge {
  background: rgba(61, 123, 255,0.2);
  color: var(--tx-color-cyan-brand);
  border: 1px solid rgba(61, 123, 255,0.3);
}

.client-badge {
  background: rgba(56, 225, 255,0.2);
  color: var(--tx-color-cyan-brand);
  border: 1px solid rgba(56, 225, 255,0.3);
}

/* Front of card - White text on Primary Blue background */
.feature-card-front .feature-card-title {
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 700;
  margin: 0;
  color: var(--white);
  line-height: 1.3;
}

/* Back of card - Primary Blue text on White background */
.feature-card-title-back {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--white);
  line-height: 1.3;
}

.feature-card-description {
  font-size: clamp(0.8125rem, 1.4vw, 0.875rem);
  line-height: 1.6;
  color: var(--slate);
  margin: 0 0 var(--spacing-md) 0;
  text-align: left;
}

.feature-capabilities {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
}

.feature-capabilities li {
  font-size: clamp(0.75rem, 1.3vw, 0.8125rem);
  line-height: 1.5;
  color: var(--slate);
  margin-bottom: var(--spacing-xs);
  padding-left: 1.5rem;
  position: relative;
}

.feature-capabilities li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
  font-size: 0.875rem;
}

.warehouse-card .feature-capabilities li::before {
  color: var(--electric-blue);
}

.client-card .feature-capabilities li::before {
  color: var(--emerald);
}

/* Demo Login Section - REMOVE BEFORE PRODUCTION */
.demo-login-section {
  margin-bottom: var(--spacing-xl);
  text-align: center;
}

.btn-demo-login {
  width: 100%;
  padding: var(--spacing-lg) var(--spacing-xl);
  background: linear-gradient(135deg, var(--tx-color-blue-brand) 0%, var(--tx-color-cyan-brand) 100%);
  color: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1.125rem;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  transition: all var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  box-shadow: 0 8px 24px rgba(61, 123, 255,0.4);
  position: relative;
  overflow: hidden;
}

.btn-demo-login::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-demo-login:hover::before {
  left: 100%;
}

.btn-demo-login svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.btn-demo-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(61, 123, 255,0.5);
}

.btn-demo-login:active {
  transform: translateY(-1px);
}

.demo-login-text {
  margin-top: var(--spacing-sm);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: var(--font-weight-medium);
}

/* Login Divider */
.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: var(--spacing-xl) 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.login-divider span {
  padding: 0 var(--spacing-md);
}

/* ===================================
   TRUST SECTION
   =================================== */
.trust-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: linear-gradient(135deg, var(--tx-color-navy-deep) 0%, var(--tx-color-navy-canvas) 100%);
  border-top: 3px solid var(--tx-color-blue-brand);
  border-bottom: 3px solid var(--tx-color-blue-brand);
}

.trust-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.trust-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--font-weight-bold);
  color: var(--white);
  margin-bottom: var(--spacing-lg);
}

.trust-description {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--slate);
  line-height: 1.7;
}

/* ===================================
   CONTACT SECTION
   =================================== */
.contact-section {
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: linear-gradient(135deg, var(--tx-color-navy-deep) 0%, var(--tx-color-navy-deep) 50%, var(--tx-color-navy-canvas) 100%);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(132, 204, 22, 0.2) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.contact-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}

.contact-section .section-title {
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.contact-section .section-subtitle {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: var(--spacing-2xl);
}

.contact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
}

.contact-info {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-link {
  color: var(--tx-color-cyan-brand);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: color var(--transition-normal);
}

.contact-link:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--tx-color-black);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--tx-color-blue-brand) 0%, var(--tx-color-blue-brand) 30%, var(--tx-color-blue-brand) 65%, var(--tx-color-cyan-brand) 100%);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2.5fr;
  gap: clamp(3rem, 6vw, 5rem);
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Brand Column */
.footer-brand-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

/* .footer-logo now wraps the canonical .tx-logo component */
.footer-logo {
  display: inline-flex;
  align-items: center;
  margin: 0;
  text-decoration: none;
}

.footer-tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.footer-description {
  font-size: clamp(0.875rem, 1.5vw, 0.9375rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 420px;
}

/* Navigation Columns */
.footer-nav-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 var(--spacing-md) 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  display: inline-block;
  line-height: 1.6;
}

.footer-link:hover {
  color: var(--cyan);
  transform: translateX(4px);
}

/* Contact List */
.footer-contact-list {
  gap: var(--spacing-md);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.footer-icon {
  width: 18px;
  height: 18px;
  stroke: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.footer-contact-item .footer-link {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item .footer-link:hover {
  color: var(--cyan);
  transform: none;
}

/* Footer Bottom */
.footer-bottom {
  padding: var(--spacing-xl) 0;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  margin: 0;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.footer-legal-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-legal-link:hover {
  color: var(--cyan);
}

.footer-separator {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.875rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 768px) {
  /* Navigation - Mobile */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8,15,30,0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }

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

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

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

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

  .features-grid-new {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
  }

  /* Footer - Tablet */
  .footer-main {
    grid-template-columns: 1fr;
    gap: var(--spacing-3xl);
  }

  .footer-nav-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-2xl);
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .hero-logo {
    max-width: 1120px;
  }

  .hero-wordmark .tx-logo-mark {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    font-size: 1.1rem;
  }

  .login-card {
    padding: var(--spacing-2xl);
  }

  .feature-column {
    padding: var(--spacing-2xl);
  }

  .btn {
    padding: 0.875rem 1.5rem;
  }

  /* Footer - Mobile */
  .footer-nav-columns {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .footer-main {
    padding: var(--spacing-3xl) 0 var(--spacing-2xl);
  }

  .features-grid-new {
    grid-template-columns: 1fr;
  }

  .feature-card {
    height: 350px;
  }

  .feature-card-icon {
    width: 100px;
    height: 100px;
  }

  .feature-card-icon svg {
    width: 70px;
    height: 70px;
  }

  .feature-capabilities li {
    font-size: 0.75rem;
  }
}

