/* ==========================================================================
   TertiaryWise Welcome Page Stylesheet - Official Corporate Palette
   Color Palette derived from Logo: #0F2D4D (Navy), #16989A (Teal), #C56A29 (Copper), #14233A (Midnight), #F5F3EE (Cream)
   ========================================================================== */

:root {
    /* Brand Colors - Official TertiaryWise Corporate Palette */
    --color-brand-navy: #0F2D4D;
    --color-brand-blue: #16989A;          /* Technical Teal */
    --color-brand-dark: #14233A;          /* Midnight Navy */
    --color-brand-blue-hover: #0E6567;    /* Dark Technical Teal */
    --color-brand-copper: #C56A29;        /* Oxidizer Copper */
    --color-brand-copper-dark: #B06229;   /* Dark Oxidizer Copper */
    --color-brand-cream: #F5F3EE;         /* Cream White */
    --color-brand-light-blue: #EAF6F6;     /* Light Technical Teal tint */
    --color-brand-accent-blue: #CEEBEB;    /* Technical Teal accent tint */
    
    /* Neutral Palette */
    --color-bg-main: #FFFFFF;
    --color-bg-alt: #F5F3EE;
    --color-bg-card: #FFFFFF;
    --color-text-dark: #0F2D4D;
    --color-text-body: #334155;
    --color-text-muted: #64748B;
    --color-border: #E2E8F0;
    --color-border-hover: #CBD5E1;
    
    /* Feedback Colors */
    --color-success: #16989A;
    --color-danger: #EF4444;
    
    /* Typography */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Layout */
    --header-height: 80px;
    --max-width: 1240px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 45, 77, 0.08), 0 8px 10px -6px rgba(15, 45, 77, 0.04);
    --shadow-lg: 0 20px 40px -15px rgba(15, 45, 77, 0.15);
    --shadow-glow: 0 0 40px rgba(22, 152, 154, 0.25);
}

.gradient-text {
    background: linear-gradient(135deg, #0F2D4D 0%, #16989A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

button, input, textarea {
    font-family: inherit;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.section-padding {
    padding: 100px 0;
}

/* Typography Utilities */
.section-header {
    margin-bottom: 3.5rem;
}

.section-header.text-center {
    text-align: center;
}

.section-header.text-center .section-description {
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-brand-blue);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 720px;
    line-height: 1.7;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-brand-navy) 0%, var(--color-brand-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--color-text-body);
    position: relative;
    padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--color-brand-navy);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-brand-blue);
    border-radius: var(--radius-full);
}

.btn-header-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--color-brand-navy) 0%, var(--color-brand-blue) 100%);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(10, 0, 148, 0.2);
    transition: all 0.25s ease;
}

.btn-header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(10, 0, 148, 0.3);
    color: #FFFFFF;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
    position: relative;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 0;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
    overflow: hidden;
}

.hero-background-glow {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(57, 131, 246, 0.12) 0%, rgba(10, 0, 148, 0.03) 50%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-brand-navy);
    background: rgba(22, 152, 154, 0.08);
    border: 1px solid rgba(22, 152, 154, 0.25);
    border-radius: var(--radius-full);
    margin-bottom: 1.75rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-brand-blue);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(57, 131, 246, 0.25);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(57, 131, 246, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(57, 131, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(57, 131, 246, 0); }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--color-text-dark);
    max-width: 900px;
    margin-bottom: 1.25rem;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 900px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 4rem;
    justify-content: center;
}

.btn-primary-clean {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--color-brand-navy) 0%, var(--color-brand-blue) 100%);
    border-radius: var(--radius-full);
    box-shadow: 0 10px 25px -5px rgba(10, 0, 148, 0.3);
    transition: all 0.25s ease;
}

.btn-primary-clean:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -5px rgba(10, 0, 148, 0.4);
    color: #FFFFFF;
}

.btn-secondary-clean {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.btn-secondary-clean:hover {
    border-color: var(--color-brand-blue);
    color: var(--color-brand-navy);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Browser Mockup Visual */
.hero-visual {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;
}

.browser-mockup {
    background: #FFFFFF;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.browser-header {
    height: 42px;
    background: #F1F5F9;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #FF5F56; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #27C93F; }

.browser-address {
    margin-left: 0.75rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    background: #FFFFFF;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.browser-body {
    position: relative;
    background: #0B132B;
    overflow: hidden;
}

.hero-preview-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.floating-stat-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.floating-stat-badge.top-right {
    top: 24px;
    right: 24px;
}

.stat-icon {
    font-size: 1.25rem;
}

.stat-text strong {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-dark);
}

.stat-text small {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Metrics Strip */
.metrics-strip {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 2.5rem 0;
}

.metrics-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.metric-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-brand-navy);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.metric-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.metric-divider {
    width: 1px;
    height: 40px;
    background: var(--color-border);
}

/* ==========================================================================
   Section 2: The Problem
   ========================================================================== */

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

.problem-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1040px;
    margin: 0 auto;
}

.comparison-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.comparison-card:hover {
    box-shadow: var(--shadow-md);
}

.comparison-card.solution {
    border-color: rgba(57, 131, 246, 0.4);
    background: linear-gradient(180deg, #FFFFFF 0%, #F4F8FF 100%);
    position: relative;
}

.comparison-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.card-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.card-icon-badge.danger {
    background: #FEE2E2;
    color: var(--color-danger);
}

.card-icon-badge.success {
    background: #D1FAE5;
    color: var(--color-success);
}

.comparison-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.comparison-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-bottom: 2rem;
}

.comparison-list li {
    font-size: 1rem;
    color: var(--color-text-body);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.5;
}

.list-bullet {
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1;
}
.list-bullet.error { color: var(--color-danger); }
.list-bullet.check { color: var(--color-success); }

.card-action {
    margin-top: auto;
}

.btn-link {
    font-size: 0.938rem;
    font-weight: 700;
    color: var(--color-brand-blue);
}

.btn-link:hover {
    color: var(--color-brand-navy);
    text-decoration: underline;
}

/* ==========================================================================
   Section 3: Platform Showcase
   ========================================================================== */

.platform-section {
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.platform-tab-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--color-text-body);
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.25s ease;
}

.tab-btn:hover {
    border-color: var(--color-brand-blue);
    color: var(--color-brand-navy);
}

.tab-btn.active {
    background: var(--color-brand-navy);
    border-color: var(--color-brand-navy);
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(10, 0, 148, 0.2);
}

.tab-icon {
    font-size: 1rem;
}

.platform-display-card {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 2.5rem;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    align-items: center;
}

.panel-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-brand-blue);
    background: var(--color-brand-light-blue);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.tab-content-panel {
    display: none;
}

.tab-content-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-content-panel h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
}

.tab-content-panel p {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.feature-bullets li {
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.feature-bullets li::before {
    content: '✓';
    color: var(--color-brand-blue);
    font-weight: 800;
}

.platform-display-visual {
    position: relative;
    border-radius: 5px;
    overflow: hidden;
    background: #0B132B;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-stage {
    width: 100%;
    height: 100%;
    position: relative;
}

.stage-img {
    width: 100%;
    height: auto;
    display: none;
    object-fit: contain;
}

.stage-img.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* ==========================================================================
   Section 4: Applications Grid
   ========================================================================== */

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

.applications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.app-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(57, 131, 246, 0.4);
}

.app-card.span-full {
    grid-column: span 2;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

.app-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.app-card.span-full .app-card-icon {
    margin-bottom: 0;
}

.app-card-icon.blue-theme { background: #EFF6FF; color: #2563EB; }
.app-card-icon.navy-theme { background: #EEF2FF; color: #0A0094; }
.app-card-icon.teal-theme { background: #F0FDF4; color: #059669; }
.app-card-icon.indigo-theme { background: #F5F3FF; color: #7C3AED; }
.app-card-icon.electric-theme { background: #FEF3C7; color: #D97706; }

.app-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
}

.app-card p {
    font-size: 0.938rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.app-card.span-full p {
    margin-bottom: 0;
}

.app-card-footer {
    margin-top: auto;
}

.app-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-brand-navy);
    background: var(--color-bg-alt);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
}

/* ==========================================================================
   Section 5: Science & Research
   ========================================================================== */

.science-section {
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.science-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.pama-badge-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
}

.pama-logo-mark {
    font-size: 1.1rem;
    font-weight: 900;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--color-brand-navy) 0%, var(--color-brand-blue) 100%);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

.pama-text strong {
    display: block;
    font-size: 0.938rem;
    color: var(--color-text-dark);
}

.pama-text p {
    font-size: 0.813rem;
    color: var(--color-text-muted);
}

.publications-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

.paper-card {
    display: block;
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
}

.paper-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-brand-blue);
    box-shadow: var(--shadow-md);
}

.paper-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--color-brand-blue);
}

.journal-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

.journal-badge.spe { background: #EFF6FF; color: #1D4ED8; }
.journal-badge.nature { background: #F0FDF4; color: #15803D; }
.journal-badge.jpet { background: #FEF3C7; color: #B45309; }

.paper-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.doi-link {
    font-size: 0.781rem;
    color: var(--color-text-muted);
    font-family: monospace;
}

/* ==========================================================================
   Section 6: About & Contact Form
   ========================================================================== */

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

.about-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: flex-start;
}

.about-features-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.about-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.about-feature-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.about-feature-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.25rem;
}

.about-feature-item p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.contact-card-clean {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.contact-card-header {
    margin-bottom: 2rem;
}

.contact-card-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.contact-card-header p {
    font-size: 0.938rem;
    color: var(--color-text-muted);
}

.clean-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.813rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.clean-input {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.938rem;
    color: var(--color-text-dark);
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.2s ease;
}

.clean-input:focus {
    border-color: var(--color-brand-blue);
    box-shadow: 0 0 0 4px rgba(57, 131, 246, 0.12);
}

.clean-textarea {
    resize: vertical;
    min-height: 110px;
}

.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}

.btn-form-submit {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

.alert-banner {
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.success-banner {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.error-banner {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FCA5A5;
}

/* ==========================================================================
   Hero Subheadline & Extra Buttons
   ========================================================================== */
.hero-subheadline {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-brand-navy);
    margin-bottom: 0.75rem;
}

.btn-outline-clean {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-brand-blue);
    background: transparent;
    border: 1.5px solid var(--color-brand-blue);
    border-radius: var(--radius-full);
    transition: all 0.25s ease;
}

.btn-outline-clean:hover {
    background: rgba(22, 152, 154, 0.08);
    color: var(--color-brand-blue-hover);
    transform: translateY(-2px);
}

/* ==========================================================================
   Two Ways to Use Section
   ========================================================================== */
.ways-section {
    background-color: var(--color-bg-alt);
}

.ways-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, #0F2D4D 0%, #16989A 100%);
    color: #FFFFFF;
    padding: 1.25rem 2rem;
    border-radius: var(--radius-md);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.banner-icon {
    font-size: 1.5rem;
}

.banner-text {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.ways-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.way-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.way-card:hover {
    border-color: var(--color-brand-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.way-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.way-badge.planning {
    background: #EAF6F6;
    color: #16989A;
}

.way-badge.monitoring {
    background: #FEF3C7;
    color: #B45309;
}

.way-card-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.way-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 1.75rem;
}

.way-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.way-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--color-text-body);
    font-weight: 500;
}

.check-icon {
    color: var(--color-brand-blue);
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1;
}

.btn-way-action {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.8rem 1.5rem;
    font-weight: 700;
    font-size: 0.938rem;
    color: var(--color-brand-navy);
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
}

.btn-way-action:hover {
    background: var(--color-brand-navy);
    color: #FFFFFF;
    border-color: var(--color-brand-navy);
}

/* ==========================================================================
   Applications Grid V2 & Status Badges
   ========================================================================== */
.applications-grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.app-card-v2 {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.app-card-v2:hover {
    border-color: var(--color-brand-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.badge-status {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.725rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
    margin-bottom: 0.85rem;
}

.badge-status.validated {
    background: #DCFCE7;
    color: #15803D;
}

.badge-status.inputs-req {
    background: #FEF9C3;
    color: #A16207;
}

.badge-status.development {
    background: #E0F2FE;
    color: #0369A1;
}

.app-card-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 0.75rem;
}

.app-card-v2 p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Specialized Process Modules
   ========================================================================== */
.specialized-section {
    background-color: var(--color-bg-alt);
}

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

.spec-card {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2.25rem 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.spec-card:hover {
    border-color: var(--color-brand-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.spec-icon {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
}

.spec-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.spec-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.spec-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.875rem;
    color: var(--color-text-body);
    font-weight: 500;
}

.spec-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-brand-blue);
    font-size: 1.2rem;
    line-height: 1;
}

/* ==========================================================================
   Traceability Section
   ========================================================================== */
.traceability-section {
    background: #FFFFFF;
}

.traceability-wrapper {
    max-width: 1060px;
    margin: 0 auto;
}

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

.provenance-card {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.75rem 1.25rem;
    text-align: center;
}

.provenance-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.provenance-tag.measured {
    background: #DBEAFE;
    color: #1E40AF;
}

.provenance-tag.calculated {
    background: #DCFCE7;
    color: #166534;
}

.provenance-tag.assumed {
    background: #FEF3C7;
    color: #92400E;
}

.provenance-tag.not-eval {
    background: #FEE2E2;
    color: #991B1B;
}

.provenance-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.provenance-card p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

.anti-hallucination-banner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: #F0FDF4;
    border: 1.5px solid #86EFAC;
    border-radius: var(--radius-md);
    padding: 1.25rem 2rem;
    color: #14532D;
}

.shield-icon {
    font-size: 1.75rem;
}

.anti-hallucination-banner p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* ==========================================================================
   Science Framing & Framework Breakdown
   ========================================================================== */
.science-framing {
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
    color: var(--color-brand-navy);
    border-left: 3px solid var(--color-brand-blue);
    padding-left: 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.framework-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.framework-block {
    background: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.framework-block h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.framework-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.framework-block li {
    font-size: 0.875rem;
    color: var(--color-text-body);
    position: relative;
    padding-left: 1rem;
}

.framework-block li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--color-brand-blue);
    font-weight: 800;
}

/* Form clean select dropdowns */
.clean-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%3C0F2D4D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    cursor: pointer;
}

/* ==========================================================================
   Footer Modal Trigger Buttons & Modal Components
   ========================================================================== */
.footer-modal-btn {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 0.875rem;
    color: #94A3B8;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease;
}

.footer-modal-btn:hover {
    color: #FFFFFF;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 45, 77, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-card {
    background: #FFFFFF;
    border-radius: var(--radius-md);
    max-width: 600px;
    width: 100%;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.75rem;
    background: var(--color-brand-navy);
    color: #FFFFFF;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.modal-body {
    padding: 1.75rem;
    font-size: 0.925rem;
    line-height: 1.65;
    color: var(--color-text-body);
    max-height: 70vh;
    overflow-y: auto;
}

.modal-body p {
    margin-bottom: 1rem;
}

.modal-body p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Footer & Additional Responsive Breakpoints
   ========================================================================== */

.main-footer {
    background-color: var(--color-brand-dark);
    color: #94A3B8;
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 4rem;
}

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

.footer-logo {
    height: 54px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.25rem;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 800;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.footer-col a {
    font-size: 0.875rem;
    color: #94A3B8;
}

.footer-col a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-bottom-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.813rem;
}

.developed-by {
    color: #64748B;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-title { font-size: 2.75rem; }
    .platform-display-card { grid-template-columns: 1fr; }
    .applications-grid-4 { grid-template-columns: 1fr; }
    .specialized-grid { grid-template-columns: 1fr; }
    .provenance-grid { grid-template-columns: repeat(2, 1fr); }
    .ways-grid { grid-template-columns: 1fr; }
    .framework-breakdown { grid-template-columns: 1fr; }
    .science-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    .main-header { height: 70px; }
    .header-logo { height: 32px; }
    
    .mobile-menu-toggle { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: #FFFFFF;
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        gap: 1.5rem;
    }
    
    .nav-menu.open {
        transform: translateY(0);
    }
    
    .hero-title { font-size: 2.25rem; }
    .hero-subheadline { font-size: 1.1rem; }
    .hero-description { font-size: 1rem; }
    .hero-actions { flex-direction: column; width: 100%; }
    .btn-primary-clean, .btn-secondary-clean, .btn-outline-clean { width: 100%; justify-content: center; }
    
    .metrics-container { flex-direction: column; gap: 1.5rem; }
    .metric-divider { display: none; }
    
    .problem-comparison-grid { grid-template-columns: 1fr; }
    .provenance-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    
    .footer-container { flex-direction: column; gap: 2.5rem; }
    .footer-links { flex-wrap: wrap; gap: 2rem; }
    .footer-bottom-container { flex-direction: column; gap: 0.75rem; text-align: center; }
}

