/* Google Fonts - Must be at top of file */
@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@300;400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================
   INFONOTE LIMS - Design System
   Laboratory Information Management System
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Primary Palette - Medical/Scientific Blues */
    --primary-900: #0a2540;
    --primary-800: #0d3156;
    --primary-700: #124a7a;
    --primary-600: #1a5f9e;
    --primary-500: #2474b8;
    --primary-400: #3d8fd4;
    --primary-300: #6aacdf;
    --primary-200: #a3ceed;
    --primary-100: #d6ebf7;
    --primary-50: #eef6fc;

    /* Accent - Scientific Teal */
    --accent-600: #0d7377;
    --accent-500: #14919b;
    --accent-400: #2cb1bc;
    --accent-300: #5fcad4;
    --accent-200: #9ce0e6;
    --accent-100: #d4f3f5;

    /* Neutral Palette */
    --neutral-900: #1a1d21;
    --neutral-800: #2d3239;
    --neutral-700: #434a54;
    --neutral-600: #5c656f;
    --neutral-500: #7a8490;
    --neutral-400: #9aa4b0;
    --neutral-300: #bdc4cc;
    --neutral-200: #dde1e6;
    --neutral-100: #eef0f2;
    --neutral-50: #f8f9fa;

    /* Semantic Colors */
    --success: #0f8a5f;
    --warning: #d97706;
    --error: #dc2626;
    --info: #2563eb;

    /* Background & Surface */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: var(--primary-900);

    /* Typography */
    --font-display: 'Source Serif 4', 'Georgia', serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Font Sizes - Fluid Typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
    --text-sm: clamp(0.8125rem, 0.75rem + 0.3125vw, 0.875rem);
    --text-base: clamp(0.9375rem, 0.875rem + 0.3125vw, 1rem);
    --text-lg: clamp(1.0625rem, 0.9375rem + 0.625vw, 1.125rem);
    --text-xl: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-2xl: clamp(1.375rem, 1.125rem + 1.25vw, 1.5rem);
    --text-3xl: clamp(1.625rem, 1.25rem + 1.875vw, 1.875rem);
    --text-4xl: clamp(2rem, 1.5rem + 2.5vw, 2.5rem);
    --text-5xl: clamp(2.5rem, 1.75rem + 3.75vw, 3.5rem);
    --text-6xl: clamp(3rem, 2rem + 5vw, 4.5rem);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Layout */
    --container-max: 1280px;
    --container-wide: 1440px;
    --container-narrow: 960px;

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

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(36, 116, 184, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-toast: 600;
}

/* ============================================
   BASE RESET & FOUNDATIONS
   ============================================ */

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

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--neutral-800);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

input, button, textarea, select {
    font: inherit;
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-700);
}

a:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

/* ============================================
   SKIP LINK (Accessibility)
   ============================================ */

.skip-link {
    position: absolute;
    top: -100%;
    left: var(--space-4);
    z-index: var(--z-toast);
    padding: var(--space-3) var(--space-6);
    background: var(--primary-900);
    color: white;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-4);
    outline: 2px solid var(--accent-400);
    outline-offset: 2px;
}

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-6);
}

.container--wide {
    max-width: var(--container-wide);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding-block: var(--space-16);
}

.section--lg {
    padding-block: var(--space-24);
}

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

.section--dark {
    background-color: var(--primary-900);
    color: white;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--neutral-900);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: white;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

.section-header {
    text-align: center;
    max-width: 720px;
    margin-inline: auto;
    margin-bottom: var(--space-12);
}

.section-header__label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-600);
    margin-bottom: var(--space-3);
}

.section--dark .section-header__label {
    color: var(--accent-300);
}

.section-header__title {
    margin-bottom: var(--space-4);
}

.section-header__desc {
    font-size: var(--text-lg);
    color: var(--neutral-600);
}

.section--dark .section-header__desc {
    color: var(--neutral-300);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-base);
    font-weight: 600;
    text-align: center;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 2px;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    border-color: var(--primary-600);
}

.btn--primary:hover {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn--secondary {
    background: white;
    color: var(--primary-700);
    border-color: var(--primary-300);
}

.btn--secondary:hover {
    background: var(--primary-50);
    border-color: var(--primary-500);
    color: var(--primary-800);
}

.btn--ghost {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-lg);
}

.btn--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--neutral-100);
    transition: all var(--transition-base);
}

.header--scrolled {
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary-900);
}

.logo__icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.logo__text-wrapper {
    display: flex;
    flex-direction: column;
}

.logo__text {
    font-size: 40px !important;
    line-height: 1.2;
}

.logo__text span {
    color: var(--primary-600);
}

.logo__tagline {
    font-size: 20px !important;
    font-weight: 500;
    opacity: 0.8;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

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

.nav__link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--neutral-700);
    padding: var(--space-2) 0;
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-600);
    transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
    color: var(--primary-700);
}

.nav__link:hover::after,
.nav__link--active::after {
    width: 100%;
}

.nav__cta {
    display: flex;
    gap: var(--space-3);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
    width: 44px;
    height: 44px;
    position: relative;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--neutral-800);
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 50%, #1a4a6e 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(45, 212, 191, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(36, 116, 184, 0.15) 0%, transparent 40%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content {
    color: white;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-6);
    backdrop-filter: blur(8px);
}

.hero__badge svg {
    width: 16px;
    height: 16px;
    color: var(--accent-400);
}

.hero__title {
    font-size: var(--text-6xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: white;
}

.hero__title span {
    background: linear-gradient(135deg, var(--accent-300) 0%, var(--accent-400) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__desc {
    font-size: var(--text-xl);
    line-height: 1.7;
    color: var(--neutral-300);
    margin-bottom: var(--space-8);
    max-width: 540px;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
}

.hero__stats {
    display: flex;
    gap: var(--space-10);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat {
    text-align: left;
}

.hero__stat-value {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: white;
}

.hero__stat-label {
    font-size: var(--text-sm);
    color: var(--neutral-400);
}

.hero__visual {
    position: relative;
}

.hero__image-wrapper {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.hero__image {
    width: 100%;
    height: auto;
    display: block;
}

.hero__floating-card {
    position: absolute;
    background: white;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.hero__floating-card--top {
    top: -20px;
    right: -20px;
}

.hero__floating-card--bottom {
    bottom: 30px;
    left: -40px;
}

.hero__floating-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.hero__floating-icon--blue {
    background: var(--primary-100);
    color: var(--primary-600);
}

.hero__floating-icon--teal {
    background: var(--accent-100);
    color: var(--accent-600);
}

.hero__floating-text {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--neutral-800);
}

.hero__floating-subtext {
    font-size: var(--text-xs);
    color: var(--neutral-500);
}

/* ============================================
   MARKETS SECTION
   ============================================ */

.markets {
    background: var(--bg-secondary);
}

.markets__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.market-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 1px solid var(--neutral-100);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.market-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-base);
}

.market-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-100);
}

.market-card:hover::before {
    transform: scaleX(1);
}

.market-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: var(--primary-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: var(--space-5);
}

.market-card__title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.market-card__desc {
    color: var(--neutral-600);
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: var(--space-4);
}

.market-card__features {
    list-style: none;
}

.market-card__features li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--neutral-700);
    padding: var(--space-1) 0;
}

.market-card__features li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
    font-size: 12px;
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.feature {
    text-align: center;
    padding: var(--space-6);
}

.feature__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-5);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--accent-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.feature__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
}

.feature__desc {
    color: var(--neutral-600);
    font-size: var(--text-sm);
    line-height: 1.7;
}

/* ============================================
   PRICING SECTION
   ============================================ */

.pricing {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, white 100%);
}

.pricing__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-10);
}

.pricing__toggle-label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--neutral-600);
}

.pricing__toggle-label--active {
    color: var(--neutral-900);
}

.pricing__switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--neutral-300);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition-base);
}

.pricing__switch--active {
    background: var(--primary-600);
}

.pricing__switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.pricing__switch--active::after {
    transform: translateX(24px);
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    align-items: start;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    border: 2px solid var(--neutral-100);
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
    border-color: var(--primary-500);
    transform: scale(1.02);
}

.pricing-card--featured:hover {
    transform: scale(1.04);
}

.pricing-card__badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card__header {
    text-align: center;
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--neutral-100);
    margin-bottom: var(--space-6);
}

.pricing-card__name {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: var(--space-2);
}

.pricing-card__desc {
    font-size: var(--text-sm);
    color: var(--neutral-500);
    margin-bottom: var(--space-4);
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-1);
}

.pricing-card__currency {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--neutral-600);
}

.pricing-card__amount {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--neutral-900);
}

.pricing-card__period {
    font-size: var(--text-sm);
    color: var(--neutral-500);
}

.pricing-card__features {
    list-style: none;
    margin-bottom: var(--space-8);
}

.pricing-card__features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--neutral-700);
}

.pricing-card__features li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--success);
    margin-top: 2px;
}

.pricing-card__cta {
    width: 100%;
}

.pricing__note {
    text-align: center;
    margin-top: var(--space-8);
    font-size: var(--text-sm);
    color: var(--neutral-600);
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials {
    background: var(--primary-900);
    color: white;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.testimonial {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    backdrop-filter: blur(8px);
}

.testimonial__quote {
    font-size: var(--text-lg);
    line-height: 1.7;
    margin-bottom: var(--space-6);
    color: var(--neutral-200);
}

.testimonial__author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-400) 0%, var(--accent-400) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: var(--text-lg);
}

.testimonial__name {
    font-weight: 600;
    color: white;
}

.testimonial__role {
    font-size: var(--text-sm);
    color: var(--neutral-400);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--accent-100) 100%);
    text-align: center;
}

.cta__title {
    margin-bottom: var(--space-4);
}

.cta__desc {
    font-size: var(--text-lg);
    color: var(--neutral-600);
    margin-bottom: var(--space-8);
    max-width: 600px;
    margin-inline: auto;
}

.cta__buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

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

.footer {
    background: var(--neutral-900);
    color: var(--neutral-400);
    padding-top: var(--space-16);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: var(--space-10);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--neutral-800);
}

.footer__brand {
    max-width: 280px;
}

.footer__brand .logo {
    margin-bottom: var(--space-4);
}

.footer__brand .logo__icon {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
}

.footer__brand-desc {
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.footer__social {
    display: flex;
    gap: var(--space-3);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--neutral-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-400);
    transition: all var(--transition-base);
}

.footer__social-link:hover {
    background: var(--primary-600);
    color: white;
}

.footer__column h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-5);
}

.footer__links {
    list-style: none;
}

.footer__links li {
    margin-bottom: var(--space-3);
}

.footer__links a {
    font-size: var(--text-sm);
    color: var(--neutral-400);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: white;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-6) 0;
    font-size: var(--text-sm);
}

.footer__legal {
    display: flex;
    gap: var(--space-6);
}

.footer__legal a {
    color: var(--neutral-500);
}

.footer__legal a:hover {
    color: white;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .pricing__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card--featured {
        transform: none;
    }
}

@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero__desc {
        margin-inline: auto;
    }
    
    .hero__cta {
        justify-content: center;
    }
    
    .hero__stats {
        justify-content: center;
    }
    
    .hero__visual {
        max-width: 600px;
        margin-inline: auto;
    }
    
    .hero__floating-card--bottom {
        left: 0;
    }
    
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-6);
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--neutral-100);
    }
    
    .nav--open {
        display: flex;
    }
    
    .nav__list {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    
    .nav__cta {
        width: 100%;
        flex-direction: column;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding-block: calc(72px + var(--space-12)) var(--space-12);
    }
    
    .hero__stats {
        flex-direction: column;
        gap: var(--space-4);
        align-items: center;
    }
    
    .hero__floating-card {
        display: none;
    }
    
    .features__grid {
        grid-template-columns: 1fr;
    }
    
    .pricing__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    .footer__legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding-inline: var(--space-4);
    }
    
    .section {
        padding-block: var(--space-12);
    }
    
    .btn {
        width: 100%;
    }
    
    .hero__cta {
        flex-direction: column;
    }
}

/* ============================================
   DARK MODE SUPPORT
   ============================================ */

@media (prefers-color-scheme: dark) {
    :root {
        /* Optionally implement dark mode */
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .header,
    .nav-toggle,
    .hero__cta,
    .cta,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
    }
}

/* ============================================
   MARKET & FEATURE PAGE STYLES
   ============================================ */

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 50%, #1a4a6e 100%);
    padding: 140px 0 80px;
    text-align: center;
    color: white;
}

.page-hero-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.page-hero h1 {
    font-size: var(--text-5xl);
    color: white;
    margin-bottom: var(--space-6);
}

.page-hero p {
    font-size: var(--text-xl);
    color: var(--neutral-300);
    line-height: 1.7;
    margin-bottom: var(--space-8);
}

.market-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
    color: var(--accent-300);
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--bg-secondary);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--neutral-100);
}

.breadcrumb-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
    font-size: var(--text-sm);
    color: var(--neutral-600);
}

.breadcrumb a {
    color: var(--neutral-600);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--primary-600);
}

.breadcrumb .separator {
    margin: 0 var(--space-2);
    color: var(--neutral-400);
}

.breadcrumb .current {
    color: var(--neutral-800);
    font-weight: 500;
}

/* Market Content */
.market-content {
    padding-top: 72px; /* Account for fixed header */
}

/* Content Sections */
.content-section {
    padding: var(--space-16) var(--space-6);
}

.content-section.alt-bg {
    background: var(--bg-secondary);
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}

.content-text h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.content-text > p {
    font-size: var(--text-lg);
    color: var(--neutral-600);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

/* Feature List */
.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-top: 2px;
}

.feature-list li strong {
    display: block;
    font-size: var(--text-base);
    color: var(--neutral-900);
    margin-bottom: var(--space-1);
}

.feature-list li p {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    line-height: 1.6;
    margin: 0;
}

/* Content Image */
.content-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-placeholder {
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--accent-100) 100%);
    padding: var(--space-20);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

.image-placeholder span {
    color: var(--primary-700);
    font-weight: 500;
    font-size: var(--text-lg);
}

/* Workflow Section */
.workflow-section {
    background: var(--bg-secondary);
    padding: var(--space-16) var(--space-6);
}

.workflow-container {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.workflow-container h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.workflow-intro {
    font-size: var(--text-lg);
    color: var(--neutral-600);
    margin-bottom: var(--space-12);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-6);
}

.workflow-step {
    background: white;
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    font-weight: 700;
    margin: 0 auto var(--space-4);
}

.workflow-step h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-2);
    font-family: var(--font-body);
    font-weight: 600;
}

.workflow-step p {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    line-height: 1.6;
}

/* Features Grid Section */
.features-grid-section {
    padding: var(--space-16) var(--space-6);
}

.features-grid-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

.features-grid-container h2 {
    text-align: center;
    font-size: var(--text-3xl);
    margin-bottom: var(--space-10);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.feature-card {
    background: var(--bg-secondary);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: white;
}

.feature-card-icon {
    font-size: 36px;
    margin-bottom: var(--space-4);
}

.feature-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
    font-family: var(--font-body);
    font-weight: 600;
}

.feature-card p {
    font-size: var(--text-sm);
    color: var(--neutral-600);
    line-height: 1.6;
}

/* Stats Bar */
.stats-bar {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
    padding: var(--space-12) var(--space-6);
}

.stats-container {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    text-align: center;
}

.stat-item {
    color: white;
}

.stat-number {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--neutral-300);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--accent-100) 100%);
    padding: var(--space-16) var(--space-6);
    text-align: center;
}

.cta-container {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

.cta-container h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-4);
}

.cta-container > p {
    font-size: var(--text-lg);
    color: var(--neutral-600);
    margin-bottom: var(--space-8);
}

.cta-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-secondary {
    color: var(--primary-700);
    border-color: var(--primary-300);
}

.cta-section .btn-secondary:hover {
    background: var(--primary-50);
    border-color: var(--primary-500);
    color: var(--primary-800);
}

/* Market/Feature Page Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--neutral-100);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
    height: 100px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--primary-900);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
    border-radius: var(--radius-md);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-8);
    align-items: center;
}

.nav-links a {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--neutral-700);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary-600);
}

.nav-cta {
    padding: var(--space-3) var(--space-6);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: var(--space-3) 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: var(--z-dropdown);
    margin-top: var(--space-2);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-sm);
    color: var(--neutral-700);
    transition: all var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--primary-50);
    color: var(--primary-700);
}

/* Footer for Market/Feature Pages */
.footer-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-10);
    padding: var(--space-16) 0;
    border-bottom: 1px solid var(--neutral-800);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-4);
}

.footer-brand p {
    font-size: var(--text-sm);
    color: var(--neutral-400);
    line-height: 1.7;
}

.footer-links h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-5);
    font-family: var(--font-body);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--neutral-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding: var(--space-6) 0;
    text-align: center;
    font-size: var(--text-sm);
    color: var(--neutral-500);
}

/* Responsive for Market/Feature Pages */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .content-grid.reverse {
        direction: ltr;
    }

    .workflow-steps {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }

    .nav-links {
        display: none;
    }

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

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

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

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

    .hero-buttons {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .workflow-steps {
        grid-template-columns: 1fr;
    }
}
