/* 
  JR Autonetics Design System
  Light Mode Premium Clinical High-Tech B2B
*/

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

/* Cascade Layers */
@layer reset, base, theme, components, utilities;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

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

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

  img, svg {
    display: block;
    max-width: 100%;
    height: auto;
  }

  button, input, select, textarea {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
  }

  button {
    cursor: pointer;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  table {
    border-collapse: collapse;
    width: 100%;
  }
}

@layer theme {
  :root {
    /* Colors - Clinical Light Scheme */
    --color-bg: #FFFFFF;
    --color-bg-subtle: #F8F9FA;
    --color-bg-darker: #ECEFF1;
    --color-text: #1A1A1A;
    --color-text-muted: #555555;
    --color-text-light: #777777;
    
    /* Accents */
    --color-primary: #0052CC; /* Deep Cobalt */
    --color-primary-hover: #0747A6;
    --color-primary-light: #E9F2FF;
    --color-secondary: #4A5568; /* Slate Blue */
    --color-accent: #00A389; /* Success Teal/Emerald */
    --color-accent-light: #E6F6F4;
    
    /* Borders & Outlines */
    --color-border: #E2E8F0;
    --color-border-hover: #CBD5E0;
    --color-focus: #2684FF;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'Roboto Mono', SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    
    /* Spacing System */
    --space-2xs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-premium: 0 20px 40px -15px rgba(0, 82, 204, 0.08);
    
    /* Layout */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --max-width: 1200px;
    
    /* Scrollbars */
    scrollbar-color: var(--color-secondary) var(--color-border);
    scrollbar-width: thin;
  }
}

@layer components {
  /* Layout Containers */
  .container {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--space-lg);
  }

  /* Header & Navigation */
  .header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    height: 72px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
  }

  .header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text);
  }

  .logo-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .logo-text-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
  }

  .logo-primary {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-text);
  }

  .logo-secondary {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    margin-top: 1px;
  }

  .nav-list {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
  }

  .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-secondary);
    transition: color 0.2s;
  }

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

  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.1s;
    white-space: nowrap;
  }

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

  .btn-primary {
    background-color: var(--color-primary);
    color: #FFFFFF;
  }

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

  .btn-secondary {
    border: 1px solid var(--color-text);
    color: var(--color-text);
  }

  .btn-secondary:hover {
    background-color: var(--color-bg-subtle);
  }

  .btn-sm {
    padding: var(--space-2xs) var(--space-sm);
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
  }

  /* Section Styling */
  .section {
    padding-block: var(--space-3xl);
    border-bottom: 1px solid var(--color-border);
  }

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

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

  .section-header {
    max-width: 680px;
    margin-bottom: var(--space-2xl);
  }

  .section-tag {
    display: inline-block;
    font-family: var(--font-mono);
    color: var(--color-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--space-sm);
  }

  .section-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-md);
    text-wrap: balance;
  }

  .section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    text-wrap: pretty;
  }

  /* Hero Section */
  .hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-2xl);
    align-items: center;
    padding-block: var(--space-xl);
  }

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

  .hero-headline {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
    text-wrap: balance;
  }

  .hero-subhead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    text-wrap: pretty;
  }

  .hero-actions {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
  }

  /* Interactive Hardware Widget */
  .hardware-widget {
    background: #0F172A;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    font-family: var(--font-mono);
    color: #38BDF8;
    box-shadow: var(--shadow-lg), 0 0 20px rgba(0, 82, 204, 0.1);
    font-size: 0.8rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: var(--space-sm);
    margin-bottom: var(--space-md);
  }

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

  .widget-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
  }

  .widget-dot-red { background-color: #EF4444; }
  .widget-dot-yellow { background-color: #F59E0B; }
  .widget-dot-green { background-color: #10B981; }

  .widget-title {
    color: #94A3B8;
  }

  .widget-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }

  .widget-row {
    display: flex;
    justify-content: space-between;
  }

  .widget-row-label {
    color: #94A3B8;
  }

  .widget-row-value {
    color: #F8FAFC;
    font-weight: 500;
  }

  .widget-accent {
    color: #34D399;
  }

  .widget-chart-track {
    background-color: rgba(255, 255, 255, 0.05);
    height: 6px;
    border-radius: 3px;
    margin-top: 4px;
    position: relative;
    overflow: hidden;
  }

  .widget-chart-fill {
    background-color: var(--color-primary);
    height: 100%;
    width: 45%;
    border-radius: 3px;
    transition: width 1.5s ease-in-out;
  }

  .widget-log-stream {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: var(--space-xs);
    font-size: 0.72rem;
    height: 80px;
    overflow: hidden;
    color: #CBD5E1;
  }

  /* Philosophy Highlight */
  .philosophy-container {
    padding-block: var(--space-lg);
  }

  .philosophy-quote {
    background-color: var(--color-bg-subtle);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-xl);
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-text);
    text-wrap: pretty;
  }

  .philosophy-quote span {
    font-weight: 700;
    color: var(--color-primary);
  }

  /* Catalog Tabs and Panels Switcher */
  .catalog-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-sm);
  }

  .catalog-tab-btn {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-secondary);
    padding: var(--space-sm) var(--space-lg);
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -10px; /* Align with border boundary */
  }

  .catalog-tab-btn:hover {
    color: var(--color-primary);
  }

  .catalog-tab-btn.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
  }

  .catalog-panel {
    display: none;
    animation: fadeIn 0.3s ease-out;
  }

  .catalog-panel.active {
    display: block;
  }

  /* Product Grid and Cards */
  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
    gap: var(--space-xl);
  }

  .product-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
    box-shadow: var(--shadow-sm);
    position: relative;
  }

  .product-card:hover {
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-premium);
    transform: translateY(-2px);
  }

  .product-card-hero {
    border-top: 3px solid var(--color-primary);
  }

  .product-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 0.65rem;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    padding: var(--space-2xs) var(--space-xs);
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
  }

  .product-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
  }

  .product-focus {
    font-size: 0.95rem;
    color: var(--color-secondary);
    font-weight: 500;
    margin-bottom: var(--space-md);
  }

  .product-features {
    list-style: none;
    margin-bottom: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }

  .product-feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
    font-size: 0.9rem;
    color: var(--color-text-muted);
  }

  .product-feature-item::before {
    content: "→";
    color: var(--color-primary);
    font-weight: 700;
  }

  .product-actions {
    display: flex;
    gap: var(--space-md);
  }

  /* Interactive Spec Code Block */
  .spec-drawer {
    display: none;
    margin-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-md);
    animation: fadeIn 0.3s ease-out;
  }

  .spec-drawer.active {
    display: block;
  }

  .spec-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #F1F5F9;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    padding: var(--space-2xs) var(--space-sm);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
  }

  .spec-code {
    background-color: var(--color-bg-subtle);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    padding: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    overflow-x: auto;
    color: #0F172A;
  }

  /* Areas of Expertise */
  .expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }

  .expertise-card {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-lg);
  }

  .expertise-icon {
    width: 32px;
    height: 32px;
    margin-bottom: var(--space-md);
    color: var(--color-primary);
  }

  .expertise-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
  }

  .expertise-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
  }

  .expertise-item {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    position: relative;
    padding-left: var(--space-md);
  }

  .expertise-item::before {
    content: "•";
    color: var(--color-primary);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
  }

  /* Technical Flowchart Section */
  .architecture-container {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-lg);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
  }

  .flowchart {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    min-width: 760px;
    margin-inline: auto;
  }

  .flowchart-node {
    background-color: var(--color-bg);
    border: 2px solid var(--color-text);
    border-radius: var(--radius-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
    position: relative;
  }

  .flowchart-node.active {
    background-color: var(--color-primary-light);
    border-color: var(--color-primary);
    color: var(--color-primary);
  }

  .flowchart-split {
    display: flex;
    justify-content: space-around;
    width: 100%;
    position: relative;
    gap: var(--space-2xl);
  }

  .flowchart-sub-node {
    flex: 1;
    max-width: 320px;
  }

  .flowchart-lines {
    position: absolute;
    top: -40px;
    left: 0;
    width: 100%;
    height: 40px;
    pointer-events: none;
  }

  .flowchart-svg-lines {
    width: 100%;
    height: 100%;
    stroke: var(--color-text);
    stroke-width: 2;
    fill: none;
  }

  .signal-dot {
    fill: var(--color-primary);
    animation: pulseSignal 3s infinite linear;
  }

  .flowchart-connector {
    width: 2px;
    height: 36px;
    background-color: var(--color-text);
    position: relative;
  }

  .flowchart-connector::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--color-text);
  }

  /* Advantage Table */
  .advantage-table-container {
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
  }

  .advantage-table th {
    background-color: var(--color-bg-subtle);
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--space-md);
    text-align: left;
    border-bottom: 2px solid var(--color-border);
    text-wrap: balance;
  }

  .advantage-table td {
    padding: var(--space-md);
    font-size: 0.92rem;
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.15s;
  }

  .advantage-table tr:last-child td {
    border-bottom: none;
  }

  .advantage-table tr:nth-child(even) {
    background-color: var(--color-bg-subtle);
  }

  .advantage-table tr:hover td {
    background-color: var(--color-primary-light);
  }

  .advantage-table td strong {
    font-weight: 600;
  }

  .advantage-table td:nth-child(3) {
    color: var(--color-primary);
    font-weight: 500;
  }

  .advantage-highlight {
    background-color: var(--color-accent-light) !important;
    font-weight: 600;
    color: var(--color-accent) !important;
    border-radius: var(--radius-sm);
    padding: var(--space-2xs) var(--space-xs);
    display: inline-block;
  }

  /* Footer & Contact Section */
  .footer {
    background-color: var(--color-bg-darker);
    padding-block: var(--space-3xl) var(--space-xl);
    font-size: 0.85rem;
    border-top: 1px solid var(--color-border);
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
  }

  .footer-about {
    max-width: 480px;
  }

  .footer-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
  }

  .footer-text {
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
  }

  .footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
  }

  .footer-link {
    color: var(--color-text-muted);
    transition: color 0.2s;
  }

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

  .footer-console-btn {
    font-family: var(--font-mono);
    color: var(--color-primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2xs);
  }

  .footer-console-btn::before {
    content: "$";
    color: var(--color-text-light);
  }

  .footer-console-btn:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
  }

  .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-text-light);
  }

  /* Modals and Top-Layer Animations */
  dialog,
  [popover] {
    opacity: 0;
    transform: scale(0.96) translate(-50%, -50%);
    position: fixed;
    top: 50%;
    left: 50%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 0;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    background-color: var(--color-bg);
    overflow: hidden;
    
    /* Discrete property animations for dialog open/close */
    transition-property: opacity, transform, display, overlay;
    transition-duration: 0.25s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    transition-behavior: allow-discrete;
  }

  dialog[open],
  [popover]:popover-open {
    opacity: 1;
    transform: scale(1) translate(-50%, -50%);

    @starting-style {
      opacity: 0;
      transform: scale(0.96) translate(-50%, -50%);
    }
  }

  dialog::backdrop,
  [popover]::backdrop {
    background-color: rgba(26, 26, 26, 0);
    backdrop-filter: blur(0px);
    transition:
      display 0.25s allow-discrete,
      overlay 0.25s allow-discrete,
      background-color 0.25s ease-out,
      backdrop-filter 0.25s ease-out;
  }

  dialog[open]::backdrop,
  [popover]:popover-open::backdrop {
    background-color: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(4px);

    @starting-style {
      background-color: rgba(26, 26, 26, 0);
      backdrop-filter: blur(0px);
    }
  }

  /* Form Elements */
  .dialog-header {
    background-color: var(--color-bg-subtle);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md) var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .dialog-title {
    font-size: 1.15rem;
    font-weight: 700;
  }

  .dialog-close {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    line-height: 1;
  }

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

  .form-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
  }

  .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-secondary);
  }

  .form-input {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-sm);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: var(--color-bg);
  }

  .form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
  }

  .form-input:user-invalid {
    border-color: #EF4444;
  }

  .form-input:user-invalid:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
  }

  .form-submit-row {
    margin-top: var(--space-xs);
    display: flex;
    justify-content: flex-end;
  }


  /* Accessibility & Reduced Motion overrides */
  @media (prefers-reduced-motion: reduce) {
    dialog,
    [popover] {
      transform: translate(-50%, -50%);
      transition-duration: 0.08s;
    }

    dialog[open],
    [popover]:popover-open {
      @starting-style {
        transform: translate(-50%, -50%);
      }
    }

    .signal-dot {
      animation: none;
    }
  }

  /* Custom animations */
  @keyframes pulseSignal {
    0% {
      motion-offset: 0%;
      offset-distance: 0%;
    }
    100% {
      motion-offset: 100%;
      offset-distance: 100%;
    }
  }

  @keyframes blinkLight {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

@layer utilities {
  /* Text Helpers */
  .text-center { text-align: center; }
  .text-right { text-align: right; }
  
  .font-mono {
    font-family: var(--font-mono);
  }
  
  /* Flex & Grid layouts */
  .flex-row {
    display: flex;
    gap: var(--space-md);
  }
  
  .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  
  .margin-top-lg {
    margin-top: var(--space-lg);
  }
}

/* Responsiveness overrides */
@media (max-width: 992px) {
  :root {
    --space-3xl: 3.5rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }
  
  .hero-headline {
    font-size: 2.75rem;
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .nav-list {
    display: none; /* Hide top menu to fit header items */
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  /* Premium horizontal swipable scroll tabs on mobile */
  .catalog-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: var(--space-xs);
    gap: var(--space-xs);
    scrollbar-width: none;
  }

  .catalog-tabs::-webkit-scrollbar {
    display: none;
  }

  .catalog-tab-btn {
    flex: 0 0 auto;
    font-size: 0.9rem;
    padding: var(--space-xs) var(--space-sm);
  }

  /* Compact comparison table spacing on tablet/mobile */
  .advantage-table th, 
  .advantage-table td {
    padding: var(--space-xs);
    font-size: 0.78rem;
  }
}

@media (max-width: 576px) {
  .hero-headline {
    font-size: 2.25rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: var(--space-sm);
  }

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

  /* Compact logo and action button in mobile header */
  .logo-secondary {
    display: none;
  }

  .logo-primary {
    font-size: 0.85rem;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
    padding: 6px !important;
  }

  #header-cta {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  
  .philosophy-quote {
    padding: var(--space-md);
    font-size: 1.1rem;
  }
}
