/* ==========================================================================
   Colvio Design System & Global Styles
   ========================================================================== */

:root {
  /* Color Palette - Refined HSL */
  --bg-primary: hsl(224, 48%, 6%);
  --bg-secondary: hsl(224, 42%, 10%);
  --bg-card: hsl(224, 38%, 12%);
  --bg-card-hover: hsl(224, 38%, 15%);
  --bg-subtle: hsl(224, 30%, 18%);
  
  --border-subtle: hsl(224, 25%, 20%);
  --border-focus: hsl(243, 75%, 59%);

  --text-primary: hsl(210, 40%, 98%);
  --text-secondary: hsl(215, 20%, 75%);
  --text-muted: hsl(215, 16%, 52%);

  --colvio-indigo: hsl(243, 75%, 59%);
  --colvio-indigo-light: hsl(243, 85%, 72%);
  --colvio-indigo-dark: hsl(243, 75%, 45%);
  --colvio-cyan: hsl(189, 94%, 43%);
  --colvio-cyan-light: hsl(189, 90%, 65%);
  --colvio-slate: hsl(215, 16%, 47%);
  
  --success: hsl(158, 64%, 52%);
  --warning: hsl(38, 92%, 50%);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --container-max: 1140px;
  --header-height: 72px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms ease;
  --transition-smooth: 250ms var(--ease-spring);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: hsla(224, 48%, 6%, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}

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

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.logo-link:hover {
  opacity: 0.9;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--colvio-indigo);
  color: #FFFFFF;
  box-shadow: 0 2px 8px hsla(243, 75%, 59%, 0.3);
}

.btn-primary:hover {
  background-color: var(--colvio-indigo-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px hsla(243, 75%, 59%, 0.4);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--text-muted);
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 13px;
  padding: 8px 14px;
}

/* Hero Section */
.hero-section {
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 9999px;
  background: hsla(243, 75%, 59%, 0.12);
  color: var(--colvio-indigo-light);
  border: 1px solid hsla(243, 75%, 59%, 0.25);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 820px;
  margin: 0 auto 24px;
}

.hero-subtitle {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Section Common */
.section {
  padding: 80px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  margin-bottom: 48px;
}

.section-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--colvio-cyan);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
}

/* Products Showcase */
.product-card-featured {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  transition: border-color var(--transition-smooth);
}

.product-card-featured:hover {
  border-color: hsla(243, 75%, 59%, 0.5);
}

.product-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: hsla(189, 94%, 43%, 0.12);
  color: var(--colvio-cyan-light);
  border: 1px solid hsla(189, 94%, 43%, 0.25);
  margin-bottom: 16px;
}

.product-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.product-tagline {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
}

.feature-icon {
  color: var(--colvio-cyan);
  font-weight: 800;
  line-height: 1.4;
}

/* Products Showcase - SLDS Authentic LWC Preview */
.product-visual-preview {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #080707;
}

.slds-mock-card-header {
  background: #F3F4F6;
  border-bottom: 1px solid #E5E7EB;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slds-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #080707;
}

.slds-icon-shipment {
  width: 28px;
  height: 28px;
  background: #7B68EE;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

.slds-btn-group {
  display: flex;
  gap: 6px;
}

.slds-mock-btn {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #D1D5DB;
  background: #FFFFFF;
  color: #0176D3;
  cursor: default;
}

.slds-mock-btn-brand {
  background: #0176D3;
  color: #FFFFFF;
  border-color: #0176D3;
}

.slds-mock-body {
  padding: 16px;
}

.slds-shipment-accordion {
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  background: #FAFAFA;
  overflow: hidden;
}

.slds-accordion-header {
  padding: 10px 14px;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
}

.slds-badge-transit {
  background: #0176D3;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.slds-package-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  margin: 12px;
  padding: 14px;
}

.slds-pkg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.slds-pkg-title {
  font-size: 13px;
  font-weight: 700;
  color: #080707;
  display: flex;
  align-items: center;
  gap: 6px;
}

.slds-carrier-tag {
  font-size: 11px;
  background: #F1F5F9;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #E2E8F0;
}

/* 4-Step Progress Bar Exact SLDS Matching */
.slds-progress-container {
  position: relative;
  margin: 14px 0 16px;
  padding: 0 8px;
}

.slds-progress-track {
  position: absolute;
  top: 10px;
  left: 12%;
  right: 12%;
  height: 4px;
  background: #E2E8F0;
  z-index: 1;
}

.slds-progress-fill {
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, #0176D3 0%, #0176D3 100%);
}

.slds-progress-nodes {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.slds-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 25%;
  text-align: center;
}

.slds-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
}

.slds-step.completed .slds-dot {
  background: #0176D3;
  border-color: #0176D3;
  color: #FFFFFF;
}

.slds-step.current .slds-dot {
  background: #FFFFFF;
  border-color: #0176D3;
  color: #0176D3;
  box-shadow: 0 0 0 3px rgba(1, 118, 211, 0.25);
}

.slds-step-label {
  font-size: 11px;
  color: #64748B;
  margin-top: 4px;
  font-weight: 600;
}

.slds-step.completed .slds-step-label,
.slds-step.current .slds-step-label {
  color: #080707;
  font-weight: 700;
}

.slds-status-box {
  background: #F8FAFC;
  border-left: 3px solid #0176D3;
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
  font-size: 12px;
}

.slds-status-detail {
  font-weight: 600;
  color: #080707;
  margin-bottom: 2px;
}

.slds-status-meta {
  color: #64748B;
  font-size: 11px;
}

/* Pipeline Grid */
.pipeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.pipeline-card {
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: 12px;
  padding: 28px;
}

.pipeline-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}

.pipeline-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pipeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Philosophy / Standards Cards */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.standard-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 32px;
  transition: transform var(--transition-smooth);
}

.standard-card:hover {
  transform: translateY(-2px);
}

.standard-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.standard-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.standard-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Support & SLA Section */
.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

.sla-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: hsla(158, 64%, 52%, 0.1);
  color: var(--success);
  border: 1px solid hsla(158, 64%, 52%, 0.25);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.support-email {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--colvio-cyan-light);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 40px;
  background: var(--bg-primary);
  font-size: 14px;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-column-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

/* Modal for Privacy & Terms */
.legal-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 15, 29, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.legal-modal.active {
  display: flex;
}

.modal-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  width: 100%;
  max-width: 800px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

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

.modal-title {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.modal-body h3 {
  color: var(--text-primary);
  margin: 20px 0 8px;
  font-size: 16px;
}

.modal-body p {
  margin-bottom: 12px;
}

.modal-body ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 860px) {
  .product-card-featured {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .nav-menu {
    display: none;
  }
}
