/* ========================================
   GlyphFex Landing Page — style.css
   Clean, professional, manufacturing-focused
   ======================================== */

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

:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a5f;

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --green-500: #10b981;
    --red-500: #ef4444;
    --amber-500: #f59e0b;
    --purple-500: #8b5cf6;
    --cyan-500: #06b6d4;

    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1200px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);
    --shadow-card-hover: 0 16px 32px -8px rgba(0,0,0,0.12), 0 4px 8px rgba(0,0,0,0.04);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family);
    color: var(--gray-800);
    line-height: 1.6;
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code { background: var(--gray-100); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
    color: #fff;
    border-color: var(--blue-600);
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 100%);
    border-color: var(--blue-500);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border-color: var(--gray-300);
}
.btn-outline:hover {
    border-color: var(--blue-600);
    color: var(--blue-600);
    background: var(--blue-50);
}

.btn-white {
    background: #fff;
    color: var(--blue-700);
    border-color: #fff;
}
.btn-white:hover {
    background: var(--blue-50);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* ---------- Navigation ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow 0.3s ease;
}

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

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
}

.logo-icon { flex-shrink: 0; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--blue-600); }

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gray-700);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%);
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, var(--gray-200) 1px, transparent 0);
    background-size: 40px 40px;
    opacity: 0.4;
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--blue-100);
    color: var(--blue-700);
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.hero h1 {
    font-size: clamp(36px, 4.5vw, 56px);
    line-height: 1.1;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

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

.hero-subtitle {
    font-size: 18px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.hero-note {
    font-size: 13px;
    color: var(--gray-400);
}

/* Hero App Mockup */
.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hero-app-mockup {
    width: 100%;
    max-width: 560px;
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.05), 0 0 80px -20px rgba(37, 99, 235, 0.25);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-app-mockup:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.05), 0 0 100px -16px rgba(37, 99, 235, 0.35);
}

.mockup-titlebar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gray-800);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}
.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #10b981; }

.mockup-title {
    font-size: 12px;
    color: var(--gray-400);
    font-weight: 500;
}

.mockup-content {
    display: flex;
    min-height: 320px;
}

.mockup-sidebar {
    width: 140px;
    background: rgba(255,255,255,0.05);
    padding: 12px 0;
    border-right: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.mockup-nav-item {
    padding: 8px 16px;
    font-size: 12px;
    color: var(--gray-400);
    cursor: default;
}
.mockup-nav-item.active {
    color: #fff;
    background: rgba(59, 130, 246, 0.2);
    border-left: 2px solid var(--blue-500);
}

.mockup-main {
    flex: 1;
    padding: 16px;
}

.mockup-pipeline {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
    border-radius: 6px;
    overflow: hidden;
}

.mockup-stage {
    padding: 6px 8px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    background: var(--stage-color);
    width: var(--stage-width);
}

.mockup-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px;
}

.mockup-card-ref {
    font-size: 11px;
    color: var(--blue-500);
    font-weight: 600;
    font-family: 'SFMono-Regular', Menlo, monospace;
    margin-bottom: 2px;
}

.mockup-card-title {
    font-size: 13px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 4px;
}

.mockup-card-meta {
    font-size: 11px;
    color: var(--gray-400);
    margin-bottom: 8px;
}

.mockup-card-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}
.mockup-card-tag.production { background: rgba(245,158,11,0.2); color: #fbbf24; }
.mockup-card-tag.engineering { background: rgba(139,92,246,0.2); color: #a78bfa; }
.mockup-card-tag.qc { background: rgba(16,185,129,0.2); color: #34d399; }

/* ---------- Social Proof ---------- */
.social-proof {
    padding: 40px 0;
    border-bottom: 1px solid var(--gray-200);
}

.proof-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.proof-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.proof-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--blue-600);
    letter-spacing: -0.02em;
}

.proof-label {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 2px;
}

.proof-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-200);
}

/* ---------- Problem / Solution ---------- */
.problem-solution {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-card {
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}

.comparison-card.problem {
    background: #fef2f2;
    border-color: #fecaca;
}

.comparison-card.solution {
    background: var(--blue-50);
    border-color: var(--blue-200);
}

.comparison-icon {
    margin-bottom: 20px;
}

.comparison-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.comparison-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comparison-card li {
    font-size: 15px;
    color: var(--gray-600);
    padding-left: 24px;
    position: relative;
}

.comparison-card.problem li::before {
    content: "\2717";
    position: absolute;
    left: 0;
    color: var(--red-500);
    font-weight: 700;
}

.comparison-card.solution li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--blue-600);
    font-weight: 700;
}

/* ---------- Features ---------- */
.features {
    padding: 100px 0;
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-500), var(--purple-500));
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    border-color: var(--blue-200);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue-50) 0%, rgba(139, 92, 246, 0.08) 100%);
    color: var(--blue-600);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

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

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ---------- How It Works ---------- */
.how-it-works {
    padding: 100px 0;
}

.steps {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-600);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    border-radius: 50%;
}

.step-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.step-content p {
    font-size: 15px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ---------- The Difference ---------- */
.difference {
    padding: 100px 0;
    background: var(--gray-50);
}

.diff-grid {
    max-width: 800px;
    margin: 0 auto;
}

.diff-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.diff-versus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.vs-them {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-500);
}

.vs-divider {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
}

.vs-us {
    font-size: 16px;
    font-weight: 700;
    color: var(--blue-600);
}

.diff-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.diff-them, .diff-us {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.diff-them {
    border-right: 1px solid var(--gray-200);
    background: #fff;
}

.diff-us {
    background: var(--blue-50);
}

.diff-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.diff-us .diff-price { color: var(--blue-700); }

.diff-detail {
    font-size: 14px;
    color: var(--gray-500);
}

.diff-us .diff-detail { color: var(--blue-800); }

/* ---------- Pricing ---------- */
.pricing {
    padding: 100px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 840px;
    margin: 0 auto 48px;
}

.pricing-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 36px;
    position: relative;
    transition: all 0.2s ease;
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--blue-500);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--blue-500);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--blue-600);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 100px;
    white-space: nowrap;
}

.pricing-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.pricing-desc {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.pricing-price {
    margin-bottom: 8px;
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.03em;
}

.price-period {
    font-size: 16px;
    color: var(--gray-400);
    font-weight: 500;
}

.pricing-breakdown {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 24px;
    padding: 12px;
    background: var(--blue-50);
    border-radius: var(--radius-sm);
    line-height: 1.6;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 24px 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-100);
}

.pricing-features li {
    font-size: 14px;
    color: var(--gray-600);
    padding-left: 24px;
    position: relative;
}

.pricing-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--green-500);
    font-weight: 700;
}

.pricing-features li:first-child {
    font-weight: 600;
    color: var(--gray-800);
}

.pricing-features li:first-child::before {
    content: "";
}

.pricing-card .btn {
    margin-top: 8px;
}

/* Pricing Example */
.pricing-example {
    max-width: 640px;
    margin: 0 auto;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 32px;
    text-align: center;
}

.example-content h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.example-content > p {
    font-size: 14px;
    color: var(--gray-500);
}

.example-calc {
    margin: 20px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calc-line {
    font-size: 14px;
    color: var(--gray-600);
    font-family: 'SFMono-Regular', Menlo, monospace;
}

.calc-total {
    font-size: 28px;
    font-weight: 800;
    color: var(--blue-600);
    letter-spacing: -0.02em;
}

.example-note {
    font-size: 14px;
    color: var(--gray-400);
    font-style: italic;
}

/* ---------- FAQ ---------- */
.faq {
    padding: 100px 0;
    background: var(--gray-50);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.faq-item {
    background: #fff;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-item:first-child { border-radius: var(--radius-md) var(--radius-md) var(--radius-sm) var(--radius-sm); }
.faq-item:last-child { border-radius: var(--radius-sm) var(--radius-sm) var(--radius-md) var(--radius-md); }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 20px 24px;
    background: none;
    border: none;
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}

.faq-question:hover { background: var(--gray-50); }

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--gray-400);
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ---------- Final CTA ---------- */
.final-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-900) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.75);
    max-width: 560px;
    margin: 0 auto 32px;
}

.cta-actions {
    margin-bottom: 16px;
}

.cta-note {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ---------- Footer ---------- */
.footer {
    padding: 64px 0 32px;
    background: var(--gray-900);
    color: var(--gray-400);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .nav-logo {
    margin-bottom: 12px;
}

.footer-brand .logo-text { color: #fff; }

.footer-tagline {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: var(--gray-400);
    margin-bottom: 10px;
    transition: color 0.2s ease;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 13px;
    color: var(--gray-500);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        justify-content: center;
    }

    .hero-app-mockup {
        max-width: 500px;
    }

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

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

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--gray-200);
        padding: 16px 24px;
        gap: 0;
        box-shadow: var(--shadow-lg);
    }

    .nav-links.open a {
        padding: 12px 0;
        border-bottom: 1px solid var(--gray-100);
    }

    .hero { padding: 120px 0 60px; }

    .hero h1 { font-size: 32px; }

    .hero-subtitle { font-size: 16px; }

    .mockup-sidebar { display: none; }

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

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

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

    .diff-comparison {
        grid-template-columns: 1fr;
    }

    .diff-them {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }

    .proof-stats {
        gap: 24px;
    }

    .proof-divider { display: none; }

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

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

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

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

@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .section-header h2 { font-size: 24px; }
    .pricing-card { padding: 24px; }
    .price-amount { font-size: 40px; }
}

/* ========================================
   Features Page Styles
   ======================================== */

/* Page hero (smaller than homepage hero) */
.page-hero {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%);
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.page-hero p {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 640px;
    margin: 0 auto;
}

.page-hero .hero-badge {
    margin-bottom: 16px;
}

/* Feature sections — alternating backgrounds */
.feature-section {
    padding: 80px 0;
}

.feature-section:nth-child(even) {
    background: var(--gray-50);
}

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

.feature-section-header h2 {
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.feature-section-header .section-number {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: var(--blue-600);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    margin-right: 12px;
    vertical-align: middle;
}

.feature-section-header p {
    font-size: 16px;
    color: var(--gray-500);
    max-width: 720px;
    line-height: 1.7;
}

/* 2-column layout: text + screenshot */
.feature-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.feature-layout.reversed {
    direction: rtl;
}

.feature-layout.reversed > * {
    direction: ltr;
}

.feature-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.feature-bullets li {
    font-size: 15px;
    color: var(--gray-600);
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
}

.feature-bullets li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--blue-600);
    font-weight: 700;
    font-size: 14px;
}

.feature-media {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Screenshot & Video Placeholders */
.screenshot-placeholder,
.video-placeholder {
    border: 2px dashed var(--gray-300);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.screenshot-placeholder:hover,
.video-placeholder:hover {
    border-color: var(--blue-300);
}

.screenshot-placeholder {
    aspect-ratio: 16 / 10;
}

.video-placeholder {
    aspect-ratio: 16 / 9;
}

.placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px;
    text-align: center;
    gap: 8px;
}

.placeholder-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    border-radius: 50%;
    color: var(--gray-400);
    margin-bottom: 4px;
}

.video-placeholder .placeholder-icon {
    width: 56px;
    height: 56px;
    background: var(--blue-100);
    color: var(--blue-600);
}

.placeholder-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
}

.placeholder-note {
    font-size: 12px;
    color: var(--gray-400);
    max-width: 320px;
    line-height: 1.5;
}

/* Hero video placeholder (wider) */
.hero-video {
    max-width: 800px;
    margin: 32px auto 0;
}

/* Role diagram (CSS-only) */
.role-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 32px 16px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

.role-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.role-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.role-badge.admin { background: var(--blue-100); color: var(--blue-700); border: 2px solid var(--blue-300); }
.role-badge.editor { background: var(--purple-500); color: #fff; opacity: 0.85; }
.role-badge.viewer { background: var(--green-500); color: #fff; opacity: 0.85; }

.role-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
}

.role-desc {
    font-size: 11px;
    color: var(--gray-400);
}

.role-arrow {
    font-size: 20px;
    color: var(--gray-300);
    margin: 0 16px;
    margin-bottom: 20px;
}

/* Features page bottom CTA */
.features-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-900) 100%);
    text-align: center;
}

.features-cta h2 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.features-cta p {
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 24px;
}

/* Quick nav for features page */
.features-nav {
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
    background: #fff;
    position: sticky;
    top: 72px;
    z-index: 100;
}

.features-nav-inner {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.features-nav-inner::-webkit-scrollbar {
    display: none;
}

.features-nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    padding: 6px 14px;
    border-radius: 100px;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.features-nav-link:hover {
    color: var(--blue-600);
    background: var(--blue-50);
}

.features-nav-link.active {
    color: var(--blue-700);
    background: var(--blue-50);
    border-color: var(--blue-200);
    font-weight: 600;
}

/* ========================================
   Download Page Styles
   ======================================== */

.download-hero {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%);
    text-align: center;
}

.download-hero h1 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.download-hero .version-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--blue-100);
    color: var(--blue-700);
    font-size: 13px;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 12px;
}

.download-hero p {
    font-size: 16px;
    color: var(--gray-500);
}

/* Download card */
.download-card {
    max-width: 560px;
    margin: -20px auto 48px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 2px solid var(--blue-200);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.download-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-50);
    border-radius: var(--radius-md);
    color: var(--blue-600);
}

.download-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.download-card .download-subtitle {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.download-card .btn {
    margin-bottom: 12px;
}

.download-meta {
    font-size: 13px;
    color: var(--gray-400);
}

/* System requirements */
.requirements-section {
    padding: 48px 0;
    background: var(--gray-50);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 840px;
    margin: 0 auto;
}

.requirement-card {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    text-align: center;
}

.requirement-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.requirement-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* Trial info */
.trial-section {
    padding: 48px 0;
}

.trial-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 840px;
    margin: 0 auto;
}

.trial-item {
    text-align: center;
    padding: 20px 12px;
}

.trial-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-50);
    border-radius: 50%;
    color: var(--blue-600);
}

.trial-item h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.trial-item p {
    font-size: 13px;
    color: var(--gray-500);
}

/* Demo files grid */
.demo-section {
    padding: 64px 0;
    background: var(--gray-50);
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 960px;
    margin: 0 auto;
}

.demo-card {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all 0.2s ease;
}

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

.demo-card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--blue-50);
    border-radius: var(--radius-sm);
    color: var(--blue-600);
}

.demo-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.demo-card p {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 12px;
    line-height: 1.5;
}

.demo-card .btn {
    font-size: 13px;
    padding: 6px 16px;
}

/* Quick start */
.quickstart-section {
    padding: 64px 0;
}

.quickstart-steps {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Multi-user upsell */
.upsell-section {
    padding: 48px 0;
    background: var(--gray-50);
}

.upsell-card {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--blue-200);
    padding: 36px;
    text-align: center;
}

.upsell-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.upsell-card p {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 20px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* ========================================
   Features + Download Responsive
   ======================================== */

@media (max-width: 1024px) {
    .feature-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-layout.reversed {
        direction: ltr;
    }

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

    .features-nav {
        display: none;
    }
}

@media (max-width: 768px) {
    .requirements-grid {
        grid-template-columns: 1fr;
    }

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

    .demo-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .role-diagram {
        flex-direction: column;
    }

    .role-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    .feature-section {
        padding: 60px 0;
    }
}

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

/* ========================================
   Enhanced Animations & Visual Polish
   ======================================== */

/* --- Scroll reveal system --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.from-left {
    transform: translateX(-40px) translateY(0);
}

.reveal.from-right {
    transform: translateX(40px) translateY(0);
}

.reveal.scale-up {
    transform: scale(0.95) translateY(0);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* --- Pipeline shimmer animation --- */
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.mockup-stage {
    background-image: linear-gradient(
        90deg,
        var(--stage-color) 0%,
        var(--stage-color) 40%,
        rgba(255,255,255,0.2) 50%,
        var(--stage-color) 60%,
        var(--stage-color) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

.mockup-stage:nth-child(1) { animation-delay: 0s; }
.mockup-stage:nth-child(2) { animation-delay: 0.4s; }
.mockup-stage:nth-child(3) { animation-delay: 0.8s; }
.mockup-stage:nth-child(4) { animation-delay: 1.2s; }
.mockup-stage:nth-child(5) { animation-delay: 1.6s; }

/* --- Nav link underline animation --- */
.nav-links a {
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-600);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--blue-600);
}

/* --- Proof stat hover --- */
.proof-number {
    transition: transform 0.3s ease;
}

.proof-stat:hover .proof-number {
    transform: scale(1.1);
}

/* --- Enhanced pricing card --- */
.pricing-card.featured {
    background: linear-gradient(180deg, #fff 0%, var(--blue-50) 100%);
    border-color: var(--blue-400);
    box-shadow: 0 0 0 1px var(--blue-400), 0 20px 40px -12px rgba(37, 99, 235, 0.2);
}

.pricing-card.featured:hover {
    box-shadow: 0 0 0 1px var(--blue-400), 0 24px 48px -12px rgba(37, 99, 235, 0.3);
    transform: translateY(-4px);
}

.pricing-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- CTA pattern overlay --- */
.final-cta {
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}

/* --- Step number hover glow --- */
.step-number {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.step:hover .step-number {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.1);
    transform: scale(1.05);
}

/* --- Comparison card hover --- */
.comparison-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.1);
}

/* --- FAQ item hover polish --- */
.faq-item {
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* --- Download card pulse border --- */
@keyframes pulse-border {
    0%, 100% { border-color: var(--blue-200); }
    50% { border-color: var(--blue-400); }
}

.download-card {
    animation: pulse-border 3s ease-in-out infinite;
}

/* --- Feature section header decorative line --- */
.feature-section-header h2::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--blue-500), var(--purple-500));
    margin-top: 12px;
    border-radius: 2px;
}

/* --- Demo card hover --- */
.demo-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Gradient divider utility --- */
.gradient-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--blue-200) 20%, var(--blue-500) 50%, var(--blue-200) 80%, transparent 100%);
    max-width: 200px;
    margin: 0 auto 32px;
}

/* --- Upsell card hover --- */
.upsell-card {
    transition: all 0.3s ease;
}

.upsell-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* --- Features page CTA enhanced --- */
.features-cta {
    position: relative;
    overflow: hidden;
}

.features-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.07) 1px, transparent 0);
    background-size: 32px 32px;
    pointer-events: none;
}
