/* CertiGen Senior UI/UX Design System - Clean Light Theme */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
    /* Color Tokens */
    --bg-main: #fcfcfd;
    --bg-surface: #ffffff;
    --bg-subtle: #f8fafc;
    --bg-muted: #f1f5f9;
    
    --border-light: #e2e8f0;
    --border-subtle: #f1f5f9;
    --border-focus: #6366f1;
    --border-brand: #4f46e5;
    
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;
    
    /* Brand Accent Colors */
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --primary-text: #3730a3;
    
    --accent-emerald: #10b981;
    --accent-emerald-light: #ecfdf5;
    --accent-emerald-text: #065f46;
    
    --accent-amber: #d97706;
    --accent-amber-light: #fffbe6;
    
    --dark-badge: #0f172a;
    
    /* Gradients */
    --brand-gradient: linear-gradient(135deg, #312e81 0%, #4f46e5 60%, #0284c7 100%);
    --text-gradient: linear-gradient(135deg, #0f172a 0%, #312e81 100%);
    --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(16, 24, 40, 0.08), 0 1px 2px -1px rgba(16, 24, 40, 0.04);
    --shadow-md: 0 4px 16px -2px rgba(16, 24, 40, 0.06), 0 2px 6px -2px rgba(16, 24, 40, 0.04);
    --shadow-lg: 0 12px 32px -4px rgba(16, 24, 40, 0.08), 0 4px 12px -2px rgba(16, 24, 40, 0.03);
    --shadow-xl: 0 24px 48px -12px rgba(16, 24, 40, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
}

body {
    background-color: var(--bg-main);
    color: var(--text-body);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* Background Grid Pattern */
.bg-grid-pattern {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(226, 232, 240, 0.4) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(226, 232, 240, 0.4) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
    pointer-events: none;
}

.bg-gradient-glow {
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(60px);
}

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

.gradient-text {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.w-100 { width: 100%; display: block; text-align: center; }

/* Senior UI Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
}

.btn-primary {
    background: var(--dark-badge);
    color: #ffffff !important;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-brand {
    background: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.btn-brand:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text-heading) !important;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    background: var(--bg-subtle);
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-large {
    padding: 13px 26px;
    font-size: 15px;
    border-radius: 11px;
}

/* Global Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 6%;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
}

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--primary-light);
    color: var(--primary-text);
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

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

.nav-links a {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-heading);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

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

.nav-link-subtle {
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-heading);
    font-size: 20px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 160px 6% 80px;
    max-width: 1300px;
    margin: 0 auto;
    gap: 50px;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    background: var(--primary-light);
    color: var(--primary-text);
    border: 1px solid #c7d2fe;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.hero h1 {
    font-size: 54px;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    font-weight: 800;
    color: var(--text-heading);
}

.hero p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 14px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.trust-metrics {
    display: flex;
    gap: 32px;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.metric {
    font-size: 13px;
    color: var(--text-muted);
}

.metric strong {
    color: var(--text-heading);
    font-size: 22px;
    display: block;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Hero Visual Card */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.mockup-container {
    width: 100%;
    max-width: 520px;
    background: var(--bg-surface);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.mockup-header {
    background: var(--bg-subtle);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-light);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #f87171; }
.dot.yellow { background: #fbbf24; }
.dot.green { background: #34d399; }

.mockup-title {
    margin-left: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.mockup-body {
    padding: 24px;
    background: #f8fafc;
}

.cert-preview {
    background: #ffffff;
    color: #0f172a;
    padding: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.cert-border {
    border: 2px double #d97706;
    padding: 24px 16px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #fffdfa 100%);
    border-radius: 6px;
}

.serif-title { 
    font-family: 'Playfair Display', Georgia, serif; 
    font-size: 20px; 
    color: #0f172a; 
    margin-bottom: 4px;
    font-weight: 700;
}

.subtitle { 
    font-size: 9px; 
    color: #64748b; 
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.name { 
    font-family: 'Playfair Display', Georgia, serif; 
    font-size: 24px; 
    font-style: italic; 
    margin: 12px 0; 
    color: #b45309; 
    font-weight: 700;
}

.desc { 
    font-size: 11px; 
    color: #475569; 
    max-width: 85%; 
    margin: 0 auto; 
    line-height: 1.4;
}

.signatures { 
    display: flex; 
    justify-content: space-around; 
    margin-top: 20px; 
}

.sig .line { 
    width: 75px; 
    height: 1px; 
    background: #334155; 
    margin: 0 auto 4px auto; 
}

.sig p { 
    font-size: 9px; 
    color: #64748b; 
    font-weight: 600;
}

/* Page Layouts & Containers */
.page-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 130px 6% 80px;
    width: 100%;
    flex: 1;
}

.page-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.page-header .page-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary-text);
    border: 1px solid #c7d2fe;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 14px;
    color: var(--text-heading);
    line-height: 1.15;
}

.page-header p {
    font-size: 17px;
    color: var(--text-muted);
}

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

.section-header h2 {
    font-size: 36px;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
    font-weight: 800;
    color: var(--text-heading);
}

.section-header p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Bento Grid Features */
.features-section {
    padding: 60px 6%;
    max-width: 1240px;
    margin: 0 auto;
}

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

.bento-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 28px;
    box-shadow: var(--shadow-xs);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.bento-item.col-2 {
    grid-column: span 2;
}

.icon-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 18px;
}

.bento-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-heading);
}

.bento-item p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Demo / Verification Section */
.demo-widget-section {
    padding: 50px 6%;
    max-width: 1100px;
    margin: 0 auto;
}

.demo-box {
    border-radius: 20px;
    padding: 36px;
    text-align: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.verify-input-group {
    display: flex;
    max-width: 580px;
    margin: 24px auto 0;
    gap: 10px;
}

.verify-input-group input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    color: var(--text-heading);
    font-size: 14px;
    outline: none;
}

.verify-input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.verify-result {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 10px;
    display: none;
    font-size: 14px;
    text-align: left;
}

.verify-result.success {
    display: block;
    background: var(--accent-emerald-light);
    border: 1px solid #a7f3d0;
    color: var(--accent-emerald-text);
}

/* Billing & Pricing Page */
.billing-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 40px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .25s;
    border-radius: 30px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .25s;
    border-radius: 50%;
    box-shadow: var(--shadow-xs);
}

input:checked + .toggle-slider {
    background: var(--primary);
}

input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

.discount-badge {
    background: var(--accent-emerald-light);
    color: var(--accent-emerald-text);
    padding: 3px 8px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #a7f3d0;
}

.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.price-tier {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 32px 26px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-tier:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.price-tier.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary);
    color: white;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.price-tier h3 { font-size: 20px; font-weight: 700; color: var(--text-heading); }
.tier-desc { color: var(--text-muted); font-size: 13px; margin-top: 4px; min-height: 38px; }

.price {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-heading);
    margin: 18px 0 20px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price span { font-size: 14px; color: var(--text-muted); font-weight: 500; }

.features-list { 
    list-style: none; 
    margin-bottom: 28px; 
    flex: 1; 
}

.features-list li { 
    margin-bottom: 12px; 
    font-size: 13px; 
    display: flex; 
    align-items: center; 
    gap: 10px;
    color: var(--text-body);
}

.check { color: var(--accent-emerald); font-weight: bold; font-size: 15px; }
.cross { color: #f87171; font-weight: bold; font-size: 15px; opacity: 0.7; }

/* Dashboard Billing Panel */
.billing-manage-panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.panel-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.usage-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    padding: 18px;
    border-radius: 12px;
}

.stat-card .label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.stat-card .val { font-size: 24px; font-weight: 800; color: var(--text-heading); margin: 4px 0; }
.progress-bar-bg {
    height: 6px;
    background: #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 8px;
}
.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 6px;
}

.invoice-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 13px;
}

.invoice-table th, .invoice-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.invoice-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--bg-subtle);
}

.status-badge {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}
.status-badge.paid { background: var(--accent-emerald-light); color: var(--accent-emerald-text); }

/* Contact Page Layout */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 32px;
    align-items: start;
}

.contact-info-card, .contact-form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.info-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.info-text h4 { font-size: 15px; margin-bottom: 2px; font-weight: 700; color: var(--text-heading); }
.info-text p { color: var(--text-muted); font-size: 13px; line-height: 1.5; }

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--bg-main);
    border: 1px solid var(--border-light);
    color: var(--text-heading);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

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

/* About Page Layout */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.story-text h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-heading);
    line-height: 1.25;
}

.story-text p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 14px;
    line-height: 1.6;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 60px;
}

.pillar-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--shadow-xs);
}

.pillar-card .icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.pillar-card h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: var(--text-heading);
    font-weight: 700;
}

.pillar-card p {
    font-size: 13px;
    color: var(--text-muted);
}

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

.team-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-xs);
}

.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.team-card h3 { font-size: 17px; font-weight: 700; color: var(--text-heading); }
.team-card .role { color: var(--primary); font-size: 12px; font-weight: 600; margin: 2px 0 10px; }
.team-card p { color: var(--text-muted); font-size: 13px; }

/* Legal Pages (Terms & Privacy) */
.legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 90px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-xs);
}

.legal-sidebar h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 700;
}

.legal-toc {
    list-style: none;
}

.legal-toc li {
    margin-bottom: 8px;
}

.legal-toc a {
    color: var(--text-muted);
    font-size: 13px;
    display: block;
    padding: 3px 0;
}

.legal-toc a:hover {
    color: var(--primary);
}

.legal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    padding: 36px;
    border-radius: 20px;
    box-shadow: var(--shadow-xs);
    line-height: 1.7;
}

.legal-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--text-heading);
    scroll-margin-top: 90px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 6px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-body);
    font-size: 14px;
    margin-bottom: 14px;
}

.legal-content ul {
    margin: 0 0 16px 20px;
    color: var(--text-body);
    font-size: 14px;
}

.legal-content li {
    margin-bottom: 6px;
}

.last-updated {
    display: inline-block;
    padding: 3px 10px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* FAQ Accordion */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-light);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--bg-surface);
}

.faq-question {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: var(--bg-subtle);
}

.faq-answer {
    padding: 0 20px 16px;
    color: var(--text-muted);
    font-size: 14px;
    display: none;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Modal & Toast */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
}

.toast {
    background: var(--dark-badge);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    animation: slideUp 0.25s ease;
}

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

.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-surface);
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none; border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 50px 6% 30px;
    margin-top: auto;
    background: var(--bg-surface);
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 12px;
    max-width: 280px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    color: var(--text-heading);
}

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

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 13px;
}

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

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-subtle);
    font-size: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-item.col-2 { grid-column: span 2; }
    .pricing-cards-grid { grid-template-columns: 1fr; }
    .story-grid { grid-template-columns: 1fr; }
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-sidebar { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .navbar { padding: 12px 20px; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border-light);
        flex-direction: column;
        padding: 16px;
        gap: 12px;
        box-shadow: var(--shadow-md);
    }
    .nav-links.active { display: flex; }
    .mobile-menu-btn { display: block; }
    
    .hero { flex-direction: column; text-align: center; padding-top: 110px; gap: 32px; }
    .hero-content { max-width: 100%; }
    .hero h1 { font-size: 38px; }
    .cta-group { justify-content: center; }
    .trust-metrics { justify-content: center; }
    
    .contact-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: 1fr; }
    .usage-stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
