/* ============================================================
   SourceExtract — Unified Design System
   Dark glassmorphism theme across all pages
   ============================================================ */

:root {
    --bg: #09090b;
    --bg-subtle: #0f0f13;
    --text: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-faint: #71717a;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.12);
    --green: #4ade80;
    --green-glow: rgba(34, 197, 94, 0.10);
    --teal: #5eead4;
    --teal-glow: rgba(20, 184, 166, 0.10);
    --amber: #fbbf24;
    --amber-glow: rgba(245, 158, 11, 0.10);
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-bg-hover: rgba(255, 255, 255, 0.07);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-border-hover: rgba(255, 255, 255, 0.16);
    --radius: 16px;
    --radius-lg: 24px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Background glow effects */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 500px at 75% 0%, rgba(59, 130, 246, 0.10), transparent),
        radial-gradient(ellipse 600px 400px at 15% 100%, rgba(99, 102, 241, 0.07), transparent);
    pointer-events: none;
    z-index: 0;
}

/* All content above the background */
header, main, footer, .privacy-hero { position: relative; z-index: 1; }


/* ─── Navigation ─────────────────────────────────────────── */

header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(9, 9, 11, 0.82);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border-bottom: 1px solid var(--card-border);
}

.logo {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--accent-glow);
    border: 1px solid rgba(59, 130, 246, 0.20);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg { width: 16px; height: 16px; }

.nav-links { display: flex; gap: 0.25rem; }

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    padding: 6px 14px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--card-bg);
}


/* ─── Hero ───────────────────────────────────────────────── */

.hero {
    text-align: center;
    padding: 7rem 2rem 5rem;
    max-width: 880px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.8rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 1.5rem;
}

.hero h1 .gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #818cf8 50%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: 1.12rem;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}


/* ─── Buttons ────────────────────────────────────────────── */

.cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.25s;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.25s;
}

.cta-ghost:hover {
    border-color: var(--card-border-hover);
    background: var(--card-bg-hover);
    transform: translateY(-2px);
}


/* ─── Sections ───────────────────────────────────────────── */

.section {
    padding: 5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.section-divider {
    height: 1px;
    background: var(--card-border);
    max-width: 1100px;
    margin: 0 auto;
}


/* ─── Feature Grids ──────────────────────────────────────── */

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

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

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

@media (max-width: 900px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
    .grid-3 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .grid-2 { grid-template-columns: 1fr; }
}


/* ─── Cards ──────────────────────────────────────────────── */

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.75rem;
    border-radius: var(--radius);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--card-border-hover);
    background: var(--card-bg-hover);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent-glow);
    border: 1px solid rgba(59, 130, 246, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1.25rem;
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

.card ul {
    list-style: none;
    padding: 0;
    margin-top: 0.6rem;
}

.card ul li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.25rem 0 0.25rem 1.2rem;
    position: relative;
    line-height: 1.6;
}

.card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.7;
}


/* ─── Detail Cards (larger feature sections) ─────────────── */

.detail-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.25rem;
    border-radius: var(--radius-lg);
}

.detail-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.detail-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.detail-card p:last-child { margin-bottom: 0; }

.detail-card .note {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--card-border);
    font-size: 0.88rem;
    color: var(--text-faint);
    font-style: italic;
}


/* ─── Steps (How it Works) ───────────────────────────────── */

.step {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1.75rem;
    border-radius: var(--radius);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.step:hover {
    transform: translateY(-4px);
    border-color: var(--card-border-hover);
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.step h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}


/* ─── Format Tags ────────────────────────────────────────── */

.format-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 1.25rem;
}

.format-tag {
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    letter-spacing: 0.02em;
}


/* ─── Closing CTA ────────────────────────────────────────── */

.closing {
    text-align: center;
    padding: 5rem 2rem 6rem;
    max-width: 700px;
    margin: 0 auto;
}

.closing h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.closing p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}


/* ─── Footer ─────────────────────────────────────────────── */

footer {
    text-align: center;
    padding: 2.5rem 2rem;
    color: var(--text-faint);
    font-size: 0.82rem;
    border-top: 1px solid var(--card-border);
    position: relative;
    z-index: 1;
}

.footer-links {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover { color: var(--text); }


/* ─── Content Pages (Support) ────────────────────────────── */

.page-header {
    text-align: center;
    padding: 5rem 2rem 3rem;
    max-width: 700px;
    margin: 0 auto;
}

.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    margin-bottom: 0.75rem;
}

.page-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.container .section-subtitle {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--card-border);
}

.container .card {
    margin-bottom: 1rem;
}

.container .card p {
    margin-bottom: 0.5rem;
}

.container .card p:last-child { margin-bottom: 0; }

.card .q {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}


/* ─── Privacy Page ───────────────────────────────────────── */

.privacy-hero {
    text-align: center;
    padding: 4.5rem 2rem 3rem;
    border-bottom: 1px solid var(--card-border);
    background:
        radial-gradient(ellipse 600px 300px at 50% 100%, rgba(59, 130, 246, 0.08), transparent),
        var(--bg-subtle);
}

.privacy-hero .hero-eyebrow { margin-bottom: 1.25rem; }

.privacy-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.privacy-hero p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.privacy-layout {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 720px) {
    .privacy-layout { grid-template-columns: 1fr; }
    .privacy-layout .sidebar { display: none; }
}

.sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    margin-bottom: 0.75rem;
}

.sidebar-nav { display: flex; flex-direction: column; gap: 1px; }

.sidebar-nav a {
    font-size: 0.82rem;
    color: var(--text-faint);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}

.sidebar-nav a:hover {
    color: var(--text);
    background: var(--card-bg);
}

.toc-meta {
    font-size: 0.78rem;
    color: var(--text-faint);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--card-border);
    line-height: 1.7;
}

/* Privacy content sections */
.privacy-content section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--card-border);
}

.privacy-content section:last-of-type { border-bottom: none; }

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.section-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.privacy-content h2 {
    font-size: 1.12rem;
    font-weight: 600;
}

.privacy-content h3 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.25rem 0 0.4rem;
}

.privacy-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.privacy-content p:last-child { margin-bottom: 0; }


/* ─── Highlight Boxes ────────────────────────────────────── */

.highlight-box {
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
}

.highlight-box p { font-size: 0.85rem; margin-bottom: 0; line-height: 1.65; }
.highlight-box strong { font-weight: 600; }

.highlight-box.green {
    background: var(--green-glow);
    border-color: rgba(34, 197, 94, 0.18);
}
.highlight-box.green p { color: #86efac; }
.highlight-box.green strong { color: var(--green); }

.highlight-box.teal {
    background: var(--teal-glow);
    border-color: rgba(20, 184, 166, 0.18);
}
.highlight-box.teal p { color: #99f6e4; }
.highlight-box.teal strong { color: var(--teal); }

.highlight-box.amber {
    background: var(--amber-glow);
    border-color: rgba(245, 158, 11, 0.18);
}
.highlight-box.amber p { color: #fde68a; }
.highlight-box.amber strong { color: var(--amber); }

.highlight-box.accent {
    background: var(--accent-glow);
    border-color: rgba(59, 130, 246, 0.18);
}
.highlight-box.accent p { color: #93c5fd; }
.highlight-box.accent strong { color: #60a5fa; }


/* ─── Data Table ─────────────────────────────────────────── */

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 1rem 0;
}

.data-table th {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-faint);
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--card-border);
}

.data-table td {
    padding: 10px 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--card-border);
    vertical-align: top;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table td:first-child { color: var(--text); font-weight: 500; }
.dot-no { color: var(--green); font-weight: 600; }


/* ─── Method Grid ────────────────────────────────────────── */

.method-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 1rem 0;
}

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

.method-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 1rem;
}

.method-card .method-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.method-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.55;
}


/* ─── Permission Rows ────────────────────────────────────── */

.permission-row {
    display: flex;
    gap: 12px;
    padding: 1rem 0;
    border-bottom: 1px solid var(--card-border);
}

.permission-row:last-child { border-bottom: none; }

.perm-icon {
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.perm-content { flex: 1; }
.perm-title { font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.perm-desc { font-size: 0.82rem; color: var(--text-secondary); margin: 0; line-height: 1.55; }

.perm-badge {
    font-size: 0.7rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    align-self: flex-start;
    white-space: nowrap;
}

.badge-optional {
    background: var(--green-glow);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.18);
}

.badge-required {
    background: var(--accent-glow);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.18);
}


/* ─── Contact Card ───────────────────────────────────────── */

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 1rem;
}

.contact-avatar {
    width: 44px;
    height: 44px;
    background: var(--accent-glow);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 600;
    color: #60a5fa;
    flex-shrink: 0;
}

.contact-info .name { font-size: 0.92rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.contact-info .role { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 10px; }
.contact-info a {
    display: inline-block;
    font-size: 0.82rem;
    color: #60a5fa;
    text-decoration: none;
    background: var(--accent-glow);
    border: 1px solid rgba(59, 130, 246, 0.18);
    padding: 4px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}
.contact-info a:hover { background: rgba(59, 130, 246, 0.18); }


/* ─── Prose Lists ────────────────────────────────────────── */

ul.prose-list {
    padding-left: 1.25rem;
    margin: 0.5rem 0 0.75rem;
}

ul.prose-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.65;
}


/* ─── Inline Code ────────────────────────────────────────── */

code {
    font-family: "SF Mono", "Fira Code", "Consolas", monospace;
    font-size: 0.85em;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 1px 6px;
    border-radius: 5px;
    color: #93c5fd;
}


/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 640px) {
    header { padding: 0 1rem; }
    .hero { padding: 5rem 1.5rem 3.5rem; }
    .section { padding: 3.5rem 1.5rem; }
    .page-header { padding: 3.5rem 1.5rem 2rem; }
    .container { padding: 0 1.5rem 3rem; }
    .privacy-hero { padding: 3rem 1.5rem 2rem; }
    .privacy-layout { padding: 2rem 1.5rem 3rem; }
    .closing { padding: 3.5rem 1.5rem 4rem; }
    .hero-actions { flex-direction: column; align-items: center; }
}
