/* main.css — global styles, home page, utility pages */

:root {
    --orange: #d4843a;
    --orange-dark: #b56a28;
    --orange-light: #e8a05c;
    --orange-glow: rgba(212, 132, 58, 0.18);
    --orange-subtle: rgba(212, 132, 58, 0.10);
    --orange-border: rgba(212, 132, 58, 0.28);
    --white: #e4e6eb;
    --black: #14171e;
    --deeper-black: #0c0e12;
    --gray: #8b919a;
    --success: #5cb87a;
    --bg: #0c0e12;
    --surface: #14171e;
    --surface-raised: #1a1e27;
    --text: #e4e6eb;
    --text-muted: #8b919a;
    --border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(20, 23, 30, 0.55);
    --glass-bg-strong: rgba(20, 23, 30, 0.72);
    --glass-border: rgba(255, 255, 255, 0.10);
    --glass-border-orange: rgba(212, 132, 58, 0.22);
    --glass-blur: 16px;
    --glass-blur-strong: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--deeper-black);
    color: var(--text);
    line-height: 1.75;
    min-height: 100vh;
    font-weight: 400;
}

body.home { overflow-x: hidden; }

h1, h2, h3, .section-header h2, .related-header h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 600;
}

/* Liquid glass utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 32px rgba(0, 0, 0, 0.35);
}

.glass--orange {
    border-color: var(--glass-border-orange);
    box-shadow: inset 0 1px 0 rgba(212, 132, 58, 0.08), 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(212, 132, 58, 0.05);
}

@supports not (backdrop-filter: blur(1px)) {
    .glass, .glass--orange, header, .glass-link-box, .nav-dropdown-menu, .toast,
    .related-card, .verify-badge, .step-content, .trouble-card {
        background: var(--surface);
    }
}

.bg-animation {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(212, 132, 58, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(212, 132, 58, 0.03) 0%, transparent 50%);
}

header {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border-orange);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }

.logo-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; font-size: 16px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--orange-glow);
}

.logo-text {
    font-size: 1.2rem; font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

.logo-text span { color: var(--orange); }

nav { display: flex; gap: 8px; flex-wrap: wrap; }

nav a {
    color: var(--text-muted);
    text-decoration: none; font-size: 14px; font-weight: 500;
    padding: 10px 18px; border-radius: 8px;
    transition: all 0.25s;
}

nav a:hover, nav a.active {
    color: var(--text);
    background: var(--orange-subtle);
}

.nav-dropdown { position: relative; }

.nav-dropdown-toggle {
    display: inline-block;
    color: var(--text-muted);
    font-size: 14px; font-weight: 500;
    padding: 10px 18px; border-radius: 8px;
    transition: all 0.25s;
    cursor: pointer;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.nav-dropdown.active .nav-dropdown-toggle {
    color: var(--text);
    background: var(--orange-subtle);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px); left: 0;
    min-width: 240px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--glass-blur-strong));
    -webkit-backdrop-filter: blur(var(--glass-blur-strong));
    border: 1px solid var(--glass-border-orange);
    border-radius: 10px;
    padding: 8px 0 12px;
    z-index: 200;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 48px rgba(0, 0, 0, 0.45);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: block; }

.nav-dropdown-label {
    padding: 10px 18px 6px;
    font-size: 10px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-muted);
}

.nav-dropdown-menu a {
    display: block; padding: 9px 18px;
    color: rgba(228, 230, 235, 0.75);
    text-decoration: none; font-size: 13px; font-weight: 500;
    border-radius: 0; background: transparent;
    transition: background 0.2s;
}

.nav-dropdown-menu a:hover {
    background: var(--orange-subtle);
    color: var(--text);
}

.breadcrumbs {
    padding: 20px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumbs a { color: var(--orange-light); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* Hero — body modifiers */
body.home .hero { padding: 100px 0 60px; text-align: center; }
body.page .hero { padding: 40px 0 50px; text-align: center; }

.hero-badge {
    display: inline-block;
    background: var(--orange-subtle);
    border: 1px solid var(--orange-border);
    color: var(--orange-light);
    padding: 8px 20px;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 25px; border-radius: 30px;
}

body.home .hero h1 {
    font-size: 3rem;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero h1 {
    font-size: 2.5rem;
    letter-spacing: 0.01em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    display: block;
    color: var(--orange-light);
    font-size: 1.3rem;
    margin-top: 12px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

body.home .hero h1 span { font-size: 1.4rem; }

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

body.home .hero-description {
    font-size: 1.15rem;
    max-width: 640px;
    line-height: 1.9;
}

/* Home link box */
.link-section { padding: 40px 0 80px; }

.glass-link-container {
    max-width: 750px;
    margin: 0 auto;
    position: relative;
}

.glass-link-box {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border-orange);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(212, 132, 58, 0.08), 0 8px 32px rgba(0, 0, 0, 0.35);
}

.box-header {
    background: rgba(212, 132, 58, 0.06);
    border-bottom: 1px solid var(--glass-border-orange);
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.box-title { display: flex; align-items: center; gap: 12px; }

.box-title-icon {
    width: 36px; height: 36px;
    background: var(--orange-subtle);
    border: 1px solid var(--orange-border);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
}

.box-title-icon svg { width: 18px; height: 18px; fill: var(--orange-light); }

.box-title-text {
    font-size: 14px; font-weight: 600;
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

.box-status {
    background: var(--orange-subtle);
    border: 1px solid var(--orange-border);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px; font-weight: 500;
    display: flex; align-items: center; gap: 8px;
    color: var(--text-muted);
}

.box-status-dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
}

.box-body { padding: 50px 40px; text-align: center; }

.link-label {
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.08em; text-transform: uppercase;
    margin-bottom: 12px; display: block;
}

.pgp-note { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.pgp-note a { color: var(--orange-light); text-decoration: none; }
.pgp-note a:hover { text-decoration: underline; }

.last-verified {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-bottom: 20px;
    color: var(--success);
    font-size: 12px; font-weight: 500;
}

.last-verified-dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
}

.link-display {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--orange-border);
    border-radius: 12px;
    padding: 28px 35px;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
    margin-bottom: 35px;
}

.link-display:hover {
    border-color: var(--orange);
    box-shadow: 0 0 0 1px rgba(212, 132, 58, 0.15), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.link-url {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 17px;
    color: var(--text);
    word-break: break-all;
    letter-spacing: 0.02em;
    line-height: 1.6;
}

.copy-hint {
    display: flex; align-items: center; justify-content: center;
    gap: 10px; margin-top: 18px;
    color: var(--orange-light);
    font-size: 13px; font-weight: 500;
}

.copy-hint svg { width: 18px; height: 18px; fill: currentColor; }

.verification-row {
    display: flex; justify-content: center;
    gap: 16px; flex-wrap: wrap;
}

.verify-badge {
    display: flex; align-items: center; gap: 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.verify-icon {
    width: 26px; height: 26px;
    background: var(--orange-subtle);
    border: 1px solid var(--orange-border);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
}

.verify-icon svg { width: 14px; height: 14px; fill: var(--orange-light); }

.verify-text {
    font-size: 12px; font-weight: 500;
    color: rgba(228, 230, 235, 0.85);
}

.box-footer {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--border);
    display: flex; justify-content: center;
}

.action-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    font-size: 14px; font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s;
    border: 1px solid var(--orange-border);
    background: var(--orange-subtle);
    color: var(--orange-light);
    font-family: 'Inter', sans-serif;
}

.action-btn:hover {
    background: rgba(212, 132, 58, 0.18);
    border-color: var(--orange);
    color: var(--text);
}

.action-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* Content sections (home + simple pages) */
body.home .content-section,
body.page .content-section { padding: 50px 0 70px; }

body.home .content-section:nth-child(even) { background: rgba(255, 255, 255, 0.015); }

.section-header { text-align: center; margin-bottom: 40px; }

.section-header h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.section-header h2 span { color: var(--orange); }

.prose {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(228, 230, 235, 0.75);
    font-size: 1.02rem;
}

.prose p { margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 16px 0; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--orange-light); text-decoration: none; }
.prose a:hover { text-decoration: underline; }

.prose h2 {
    font-size: 1.2rem; font-weight: 600;
    color: var(--text);
    margin: 36px 0 14px;
    font-family: 'Source Serif 4', serif;
}

.prose h2:first-child { margin-top: 0; }

.quick-steps {
    max-width: 640px; margin: 0 auto;
    list-style: none; counter-reset: step;
}

.quick-steps li {
    counter-increment: step;
    position: relative;
    padding: 20px 20px 20px 70px;
    margin-bottom: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.quick-steps li::before {
    content: counter(step);
    position: absolute; left: 20px; top: 50%;
    transform: translateY(-50%);
    width: 36px; height: 36px;
    background: var(--orange-subtle);
    border: 1px solid var(--orange-border);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 15px;
    color: var(--orange-light);
}

.cta-center { text-align: center; margin-top: 32px; }

.cta-link {
    display: inline-block;
    padding: 14px 28px;
    background: transparent;
    border: 1px solid var(--orange-border);
    color: var(--orange-light);
    text-decoration: none;
    font-size: 14px; font-weight: 600;
    border-radius: 10px;
    transition: all 0.25s;
}

.cta-link:hover {
    background: var(--orange-subtle);
    border-color: var(--orange);
    color: var(--text);
}

.changelog {
    max-width: 720px; margin: 0 auto;
    list-style: none; padding: 0;
}

.changelog li {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.changelog li:first-child { padding-top: 0; }
.changelog li:last-child { border-bottom: none; padding-bottom: 0; }

.changelog-date {
    display: block;
    font-size: 0.85rem; font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--orange-light);
    margin-bottom: 10px;
}

.changelog p {
    color: rgba(228, 230, 235, 0.75);
    font-size: 1.02rem; line-height: 1.7;
}

.changelog a { color: var(--orange-light); text-decoration: none; }
.changelog a:hover { text-decoration: underline; }

.related-section {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.015);
}

.related-header { text-align: center; margin-bottom: 35px; }

.related-header h2 { font-size: 1.4rem; }
.related-header h2 span { color: var(--orange); }

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 900px; margin: 0 auto;
}

.related-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    transition: border-color 0.25s, box-shadow 0.25s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.related-card:hover {
    border-color: var(--glass-border-orange);
    box-shadow: inset 0 1px 0 rgba(212, 132, 58, 0.06), 0 4px 16px rgba(0, 0, 0, 0.2);
}

.related-card h3 {
    font-size: 1rem; font-weight: 600;
    color: var(--text); margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.related-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

footer {
    background: rgba(0, 0, 0, 0.35);
    padding: 50px 0 25px;
    border-top: 1px solid var(--border);
}

.footer-nav {
    display: flex; justify-content: center;
    gap: 25px; flex-wrap: wrap; margin-bottom: 24px;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none; font-size: 13px; font-weight: 500;
    transition: color 0.25s;
}

.footer-nav a:hover { color: var(--orange-light); }

.footer-guides {
    display: flex; justify-content: center;
    align-items: center; flex-wrap: wrap;
    gap: 8px 20px; margin-bottom: 24px;
}

.footer-guides-label {
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--orange);
}

.footer-guides a {
    color: var(--text-muted);
    text-decoration: none; font-size: 12px; font-weight: 500;
    transition: color 0.25s;
}

.footer-guides a:hover { color: var(--orange-light); }

.footer-warning {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border-orange);
    padding: 18px 24px;
    text-align: center;
    font-size: 12px; font-weight: 500;
    line-height: 1.6;
    border-radius: 10px;
    margin-bottom: 24px;
    max-width: 720px;
    margin-left: auto; margin-right: auto;
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    color: rgba(228, 230, 235, 0.35);
    font-size: 12px;
}

.toast {
    position: fixed;
    top: 100px; right: 30px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border-orange);
    color: var(--text);
    padding: 16px 28px;
    border-radius: 10px;
    font-size: 14px; font-weight: 500;
    z-index: 1001;
    transform: translateX(120%);
    transition: transform 0.3s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.toast.show { transform: translateX(0); }

@media (max-width: 768px) {
    .header-inner { flex-direction: column; }
    nav { justify-content: center; }
    .hero h1, body.home .hero h1 { font-size: 1.8rem; }
    .box-body { padding: 35px 25px; }
    .link-url { font-size: 14px; }
    .verification-row { flex-direction: column; align-items: center; }
}
