/* WorthyID — static site design system (ported from the Blazor app.css) */

:root {
    --bg-deep: #060a12;
    --bg-surface: #0c1220;
    --bg-elevated: #111a2e;
    --bg-glass: rgba(17, 26, 46, 0.65);
    --border-subtle: rgba(148, 163, 184, 0.12);
    --border-glow: rgba(0, 229, 192, 0.35);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-teal: #00e5c0;
    --accent-teal-dim: #00b89a;
    --accent-indigo: #6366f1;
    --accent-gold: #f59e0b;
    --accent-rose: #f43f5e;

    --gradient-hero: linear-gradient(135deg, #00e5c0 0%, #6366f1 50%, #a855f7 100%);
    --gradient-mesh: radial-gradient(ellipse 80% 60% at 20% 10%, rgba(0, 229, 192, 0.15) 0%, transparent 60%),
                     radial-gradient(ellipse 60% 50% at 80% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 55%),
                     radial-gradient(ellipse 50% 40% at 50% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 50%);

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-glow: 0 0 60px rgba(0, 229, 192, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);

    --nav-height: 72px;
    --section-padding: clamp(4rem, 8vw, 7rem);
    --container-max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
    font-family: var(--font-sans);
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--gradient-mesh);
    pointer-events: none;
    z-index: 0;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { color: var(--text-secondary); }

.container { width: min(var(--container-max), 100% - 2rem); margin-inline: auto; }

.section-label {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-teal);
    margin-bottom: 1rem;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--accent-teal); }
.section-title { margin-bottom: 1rem; }
.section-subtitle { font-size: 1.125rem; max-width: 600px; margin-bottom: 3rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.875rem 1.75rem; font-family: var(--font-sans); font-size: 0.9375rem;
    font-weight: 600; border-radius: var(--radius-md); border: none; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s; white-space: nowrap;
}
.btn-primary { background: var(--gradient-hero); color: var(--bg-deep); box-shadow: 0 4px 20px rgba(0, 229, 192, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0, 229, 192, 0.4); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1px solid var(--border-subtle); backdrop-filter: blur(8px); }
.btn-secondary:hover { border-color: var(--border-glow); background: rgba(0, 229, 192, 0.06); }
.btn-ghost { background: transparent; color: var(--text-secondary); padding: 0.5rem 1rem; }
.btn-ghost:hover { color: var(--accent-teal); }
.btn:disabled, .btn.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* Glass cards */
.glass-card {
    background: var(--bg-glass); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); backdrop-filter: blur(16px);
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.glass-card:hover { border-color: var(--border-glow); transform: translateY(-4px); box-shadow: var(--shadow-glow); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 600; border-radius: 999px; letter-spacing: 0.02em; }
.badge-teal { background: rgba(0, 229, 192, 0.12); color: var(--accent-teal); border: 1px solid rgba(0, 229, 192, 0.25); }
.badge-gold { background: rgba(245, 158, 11, 0.12); color: var(--accent-gold); border: 1px solid rgba(245, 158, 11, 0.25); }
.badge-muted { background: rgba(148, 163, 184, 0.08); color: var(--text-muted); border: 1px solid var(--border-subtle); }

.gradient-text { background: var(--gradient-hero); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Layout */
.page-wrapper { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

/* Navigation */
.site-nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-height); z-index: 100; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; }
.site-nav.scrolled { background: rgba(6, 10, 18, 0.85); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-subtle); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-brand { display: flex; align-items: center; gap: 0.75rem; font-weight: 700; font-size: 1.25rem; }
.nav-brand-icon { width: 36px; height: 36px; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; }
.nav-links a:hover { color: var(--accent-teal); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 0.5rem; }

.mobile-menu { display: none; position: fixed; top: var(--nav-height); left: 0; right: 0; background: rgba(6, 10, 18, 0.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-subtle); padding: 1.5rem; z-index: 99; }
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu a { font-size: 1.1rem; font-weight: 500; color: var(--text-secondary); }
.mobile-menu a:hover { color: var(--accent-teal); }

/* Hero */
.hero { position: relative; padding-top: calc(var(--nav-height) + var(--section-padding)); padding-bottom: var(--section-padding); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-content { position: relative; z-index: 2; }
.hero-eyebrow { margin-bottom: 1.5rem; }
.hero h1 { margin-bottom: 1.5rem; }
.hero-description { font-size: 1.2rem; line-height: 1.7; margin-bottom: 2.5rem; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.5rem; }
.stat-item { display: flex; flex-direction: column; }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text-primary); font-family: var(--font-mono); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.vault-showcase { position: relative; width: 100%; max-width: 440px; aspect-ratio: 1; }
.vault-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--border-subtle); animation: pulse-ring 4s ease-in-out infinite; }
.vault-ring:nth-child(2) { inset: 10%; animation-delay: -1s; }
.vault-ring:nth-child(3) { inset: 20%; animation-delay: -2s; }
@keyframes pulse-ring { 0%, 100% { opacity: 0.3; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.02); } }
.vault-core { position: absolute; inset: 25%; background: var(--bg-elevated); border: 1px solid var(--border-glow); border-radius: var(--radius-xl); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; box-shadow: var(--shadow-glow), var(--shadow-card); animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.vault-shield { width: 80px; height: 80px; color: var(--accent-teal); }
.vault-core-label { font-family: var(--font-mono); font-size: 0.75rem; color: var(--accent-teal); letter-spacing: 0.15em; text-transform: uppercase; }
.vault-items { position: absolute; width: 100%; height: 100%; }
.vault-item { position: absolute; padding: 0.625rem 1rem; background: var(--bg-glass); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); backdrop-filter: blur(12px); font-size: 0.8rem; display: flex; align-items: center; gap: 0.5rem; animation: float 5s ease-in-out infinite; white-space: nowrap; }
.vault-item svg { width: 16px; height: 16px; color: var(--accent-teal); flex-shrink: 0; }
.vault-item:nth-child(1) { top: 5%; left: -5%; animation-delay: 0s; }
.vault-item:nth-child(2) { top: 20%; right: -10%; animation-delay: -1.5s; }
.vault-item:nth-child(3) { bottom: 25%; left: -8%; animation-delay: -3s; }
.vault-item:nth-child(4) { bottom: 8%; right: -5%; animation-delay: -0.5s; }

/* Features / principles / tools */
.features { padding: var(--section-padding) 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card { padding: 2rem; }
.feature-icon { width: 48px; height: 48px; padding: 12px; background: rgba(0, 229, 192, 0.1); border-radius: var(--radius-md); color: var(--accent-teal); margin-bottom: 1.25rem; }
.feature-card h3 { margin-bottom: 0.75rem; color: var(--text-primary); }
.feature-card p { font-size: 0.9375rem; line-height: 1.65; }
.tools-section { background: linear-gradient(180deg, transparent 0%, rgba(12, 18, 32, 0.4) 100%); }

.principles { padding: var(--section-padding) 0; }
.principles-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.principle-card { padding: 2rem; }
.principle-icon { width: 48px; height: 48px; padding: 12px; background: rgba(0, 229, 192, 0.1); border-radius: var(--radius-md); color: var(--accent-teal); margin-bottom: 1.25rem; }
.principle-card h3 { margin-bottom: 0.75rem; }
.principle-card p { font-size: 0.9375rem; line-height: 1.65; }

/* Data types */
.data-types { padding: var(--section-padding) 0; background: linear-gradient(180deg, transparent 0%, rgba(12, 18, 32, 0.5) 50%, transparent 100%); }
.data-types-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.data-type-card { padding: 1.5rem; text-align: center; }
.data-type-icon { width: 40px; height: 40px; margin: 0 auto 1rem; color: var(--accent-indigo); }
.data-type-card h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.data-type-card p { font-size: 0.85rem; }

/* Security */
.security { padding: var(--section-padding) 0; }
.security-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.security-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2rem; }
.security-item { display: flex; gap: 1rem; align-items: flex-start; }
.security-item-icon { flex-shrink: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(99, 102, 241, 0.12); border-radius: var(--radius-sm); color: var(--accent-indigo); }
.security-item h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.security-item p { font-size: 0.9rem; }
.encryption-visual { padding: 2.5rem; position: relative; }
.encryption-flow { display: flex; flex-direction: column; gap: 1rem; }
.encryption-step { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: rgba(6, 10, 18, 0.5); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); font-family: var(--font-mono); font-size: 0.8rem; }
.encryption-step .step-num { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--gradient-hero); border-radius: 50%; color: var(--bg-deep); font-weight: 700; font-size: 0.75rem; flex-shrink: 0; }
.encryption-step .step-text { color: var(--text-secondary); }
.encryption-step .step-text strong { color: var(--accent-teal); font-weight: 600; }
.encryption-arrow { text-align: center; color: var(--text-muted); font-size: 1.25rem; }

/* Sync */
.sync-section { padding: var(--section-padding) 0; background: linear-gradient(180deg, transparent 0%, rgba(12, 18, 32, 0.5) 50%, transparent 100%); }
.sync-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.sync-visual { padding: 2rem; }
.sync-file-demo { display: flex; flex-direction: column; gap: 1.25rem; }
.sync-file-header { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-mono); font-size: 0.9rem; color: var(--accent-teal); padding-bottom: 1rem; border-bottom: 1px solid var(--border-subtle); }
.sync-file-parts { display: flex; flex-direction: column; gap: 0.75rem; }
.sync-part { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; background: rgba(6, 10, 18, 0.5); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); font-size: 0.8rem; gap: 1rem; }
.sync-part-label { color: var(--text-muted); font-family: var(--font-mono); }
.sync-part-value { color: var(--text-secondary); text-align: right; }
.sync-file-note { font-size: 0.8rem; color: var(--text-muted); text-align: center; margin-top: 0.5rem; }

/* Platforms */
.platforms { padding: var(--section-padding) 0; text-align: center; }
.platforms .section-subtitle { margin-inline: auto; }
.platforms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 3rem; }
.platforms-grid-6 { grid-template-columns: repeat(3, 1fr); }
.platform-card { padding: 2.5rem 2rem; text-align: center; }
.platform-icon { width: 56px; height: 56px; margin: 0 auto 1.25rem; }
.platform-card h3 { margin-bottom: 0.5rem; }
.platform-card p { font-size: 0.9rem; margin-bottom: 1.5rem; }
.platform-store-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; background: rgba(148, 163, 184, 0.06); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); font-size: 0.85rem; font-weight: 600; color: var(--text-muted); cursor: not-allowed; }
.ai-powered-banner { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; padding: 1.5rem 2rem; margin-top: 2rem; border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(0, 229, 192, 0.08) 100%); border: 1px solid var(--border-subtle); }
.ai-powered-banner p { font-size: 0.95rem; color: var(--text-secondary); }
.ai-powered-banner a { color: var(--accent-teal); font-weight: 600; transition: color 0.2s; }
.ai-powered-banner a:hover { color: var(--accent-teal-dim); }

/* App preview (stylized mockups) */
.app-preview { padding: var(--section-padding) 0; background: linear-gradient(180deg, transparent 0%, rgba(12, 18, 32, 0.6) 100%); }
.preview-header { text-align: center; margin-bottom: 4rem; }
.preview-header .section-subtitle { margin-inline: auto; }
.preview-showcase { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; perspective: 1200px; }
.phone-mockup { width: 260px; background: var(--bg-elevated); border: 2px solid var(--border-subtle); border-radius: 36px; padding: 12px; box-shadow: var(--shadow-card); transition: transform 0.4s; }
.phone-mockup:hover { transform: translateY(-8px) rotateY(2deg); }
.phone-mockup:nth-child(2) { transform: translateY(-20px); }
.phone-mockup:nth-child(2):hover { transform: translateY(-28px) rotateY(-2deg); }
.phone-notch { width: 100px; height: 24px; background: var(--bg-deep); border-radius: 0 0 16px 16px; margin: 0 auto 8px; }
.phone-screen { background: var(--bg-deep); border-radius: 24px; overflow: hidden; aspect-ratio: 9/19; display: flex; flex-direction: column; }
.screen-header { padding: 1rem; background: rgba(0, 229, 192, 0.06); border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; gap: 0.5rem; }
.screen-header-icon { width: 24px; height: 24px; color: var(--accent-teal); }
.screen-header span { font-size: 0.75rem; font-weight: 600; color: var(--text-primary); }
.screen-body { flex: 1; padding: 1rem; display: flex; flex-direction: column; gap: 0.625rem; }
.screen-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); }
.screen-item-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); background: rgba(99, 102, 241, 0.15); display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }
.screen-item-info { flex: 1; min-width: 0; }
.screen-item-title { font-size: 0.7rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen-item-sub { font-size: 0.6rem; color: var(--text-muted); font-family: var(--font-mono); }
.screen-placeholder { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem; padding: 2rem; text-align: center; }

/* Real screenshot gallery */
.gallery { padding: var(--section-padding) 0; }
.gallery-header { text-align: center; margin-bottom: 3rem; }
.gallery-header .section-subtitle { margin-inline: auto; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.gallery-figure { margin: 0; overflow: hidden; padding: 0; }
.gallery-figure button { display: block; width: 100%; border: none; padding: 0; margin: 0; background: transparent; cursor: zoom-in; }
.gallery-figure img { width: 100%; height: 220px; object-fit: cover; object-position: top center; border-bottom: 1px solid var(--border-subtle); background: var(--bg-surface); }
.gallery-figure figcaption { padding: 1rem 1.25rem; font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; text-align: left; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(6, 10, 18, 0.92); backdrop-filter: blur(8px); padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(960px, 100%); max-height: 88vh; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-card); }
.lightbox-close { position: absolute; top: 1.25rem; right: 1.5rem; background: none; border: none; color: var(--text-primary); cursor: pointer; padding: 0.5rem; }
.lightbox-caption { position: absolute; bottom: 1.5rem; left: 0; right: 0; text-align: center; color: var(--text-secondary); font-size: 0.9rem; }

/* CTA + signup */
.cta { padding: var(--section-padding) 0; }
.cta-card { padding: clamp(3rem, 6vw, 5rem); text-align: center; position: relative; overflow: hidden; }
.cta-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(0, 229, 192, 0.1) 0%, transparent 70%); pointer-events: none; }
.cta-card h2 { margin-bottom: 1rem; position: relative; }
.cta-card p { font-size: 1.125rem; max-width: 500px; margin: 0 auto 2rem; position: relative; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; position: relative; }

.signup-form-wrapper { max-width: 520px; margin: 0 auto; position: relative; }
.signup-form { display: flex; flex-direction: column; gap: 0.75rem; }
.signup-input-group { display: flex; gap: 0.5rem; }
.signup-input { flex: 1; padding: 0.875rem 1.25rem; background: rgba(6, 10, 18, 0.6); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); color: var(--text-primary); font-family: var(--font-sans); font-size: 0.9375rem; transition: border-color 0.2s, box-shadow 0.2s; }
.signup-input::placeholder { color: var(--text-muted); }
.signup-input:focus { outline: none; border-color: var(--border-glow); box-shadow: 0 0 0 3px rgba(0, 229, 192, 0.1); }
.signup-submit { flex-shrink: 0; }
.signup-consent { display: flex; align-items: flex-start; gap: 0.625rem; font-size: 0.8rem; color: var(--text-muted); text-align: left; cursor: pointer; line-height: 1.5; }
.signup-consent input[type="checkbox"] { margin-top: 0.2rem; accent-color: var(--accent-teal); flex-shrink: 0; }
.signup-consent a { color: var(--accent-teal); text-decoration: underline; text-underline-offset: 2px; }
.signup-consent a:hover { color: var(--accent-teal-dim); }
.signup-error { color: var(--accent-rose); font-size: 0.8rem; text-align: left; min-height: 1rem; }
.signup-message { display: none; align-items: center; justify-content: center; gap: 0.625rem; padding: 1rem 1.5rem; border-radius: var(--radius-md); font-size: 0.9375rem; font-weight: 500; }
.signup-message.show { display: flex; }
.signup-message.success { background: rgba(0, 229, 192, 0.1); border: 1px solid rgba(0, 229, 192, 0.3); color: var(--accent-teal); }
.cta-legal-note { margin-top: 1.5rem; font-size: 0.75rem; color: var(--text-muted); position: relative; }
.cta-legal-note a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.cta-legal-note a:hover { color: var(--accent-teal); }

/* Footer */
.site-footer { border-top: 1px solid var(--border-subtle); padding: 3rem 0 2rem; background: rgba(6, 10, 18, 0.5); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.9rem; margin-top: 1rem; max-width: 320px; }
.footer-links h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-links a { font-size: 0.9rem; color: var(--text-secondary); transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-teal); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid var(--border-subtle); flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); }
.footer-bottom a { color: var(--text-secondary); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent-teal); }
.footer-parent { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-muted); }
.footer-parent a { color: var(--accent-gold); font-weight: 600; transition: color 0.2s; }
.footer-parent a:hover { color: var(--accent-teal); }

/* Animations */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .fade-in { opacity: 1; transform: none; transition: none; }
    .vault-core, .vault-item, .vault-ring { animation: none; }
    html { scroll-behavior: auto; }
}

h1:focus { outline: none; }
code { font-family: var(--font-mono); font-size: 0.85em; color: var(--accent-teal); background: rgba(0, 229, 192, 0.08); padding: 0.125rem 0.375rem; border-radius: 4px; }

/* Legal pages */
.legal-page { padding-top: calc(var(--nav-height) + 3rem); padding-bottom: var(--section-padding); }
.legal-container { max-width: 800px; }
.legal-header { margin-bottom: 2.5rem; }
.legal-header h1 { margin-bottom: 0.5rem; }
.legal-meta { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.legal-related { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; font-size: 0.875rem; }
.legal-related a { color: var(--accent-teal); font-weight: 500; }
.legal-related a:hover { color: var(--accent-teal-dim); }
.legal-related span { color: var(--text-muted); }
.legal-content { padding: clamp(2rem, 4vw, 3rem); }
.legal-intro { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border-subtle); }
.legal-content h2 { font-size: 1.35rem; margin-top: 2.5rem; margin-bottom: 1rem; color: var(--text-primary); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: 0.75rem; color: var(--text-primary); }
.legal-content p { margin-bottom: 1rem; line-height: 1.75; font-size: 0.9375rem; }
.legal-content ul { margin-bottom: 1rem; padding-left: 1.5rem; color: var(--text-secondary); }
.legal-content li { margin-bottom: 0.5rem; line-height: 1.65; font-size: 0.9375rem; }
.legal-content a { color: var(--accent-teal); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--accent-teal-dim); }
.legal-content strong { color: var(--text-primary); font-weight: 600; }
.legal-callout { padding: 1.25rem 1.5rem; margin: 1.5rem 0; background: rgba(0, 229, 192, 0.06); border: 1px solid rgba(0, 229, 192, 0.2); border-radius: var(--radius-md); font-size: 0.9rem; line-height: 1.65; color: var(--text-secondary); }
.legal-callout strong { color: var(--accent-teal); }
.legal-callout-warning { background: rgba(245, 158, 11, 0.06); border-color: rgba(245, 158, 11, 0.25); }
.legal-callout-warning strong { color: var(--accent-gold); }

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid, .security-layout, .sync-layout { grid-template-columns: 1fr; gap: 3rem; }
    .principles-grid { grid-template-columns: 1fr; }
    .platforms-grid-6 { grid-template-columns: repeat(2, 1fr); }
    .hero-visual { order: -1; }
    .vault-showcase { max-width: 340px; margin-inline: auto; }
    .features-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .data-types-grid { grid-template-columns: repeat(2, 1fr); }
    .platforms-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn-secondary { display: none; }
    .nav-toggle { display: block; }
    .features-grid, .data-types-grid, .gallery-grid { grid-template-columns: 1fr; }
    .hero-stats { gap: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .vault-item { font-size: 0.7rem; padding: 0.5rem 0.75rem; }
    .signup-input-group { flex-direction: column; }
    .signup-submit { width: 100%; }
    .platforms-grid-6 { grid-template-columns: 1fr; }
    .sync-part { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
    .sync-part-value { text-align: left; }
}
