/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-base: #030407;
    --surface: #0a0b10;
    --surface-hover: #12141c;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(56, 189, 248, 0.3);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-cyan: #38bdf8;
    --accent-indigo: #6366f1;
    --accent-emerald: #10b981;
    --accent-rose: #f43f5e;
}

body {
    background-color: var(--bg-base);
    color: var(--text-muted);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: hidden;
}

.ambient-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(180px);
    opacity: 0.14;
}

.glow-orb-1 {
    background: var(--accent-indigo);
    top: -200px;
    left: -200px;
}

.glow-orb-2 {
    background: var(--accent-cyan);
    bottom: -200px;
    right: -200px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(3, 4, 7, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    z-index: 1000;
}

.brand {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
}

.brand-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-emerald);
}

nav {
    display: flex;
    gap: 0.2rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 3px;
    border-radius: 9999px;
    border: 1px solid var(--border);
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.95rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

nav a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

nav a.active {
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
}

main {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: calc(72px + 3rem) 1.5rem 4rem 1.5rem;
    flex: 1;
}

.view {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.view.active-view {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-modern {
    max-width: 850px;
    margin: 2rem auto;
    min-height: calc(100vh - 72px - 12rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    width: fit-content;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
}

.hero-modern h1 {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    line-height: 1.08;
}

.hero-modern h1 span {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-modern p {
    font-size: 1.2rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.9rem 2rem;
    border-radius: 9999px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan));
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.page-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.page-icon {
    width: 56px;
    height: 56px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.page-header h1 {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.03em;
    margin: 0;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-cyan);
    margin: 2.5rem 0 1.25rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-label:first-of-type {
    margin-top: 0;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem 1.75rem;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.card:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    word-break: break-word;
}

.card-sub-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.card-sub {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.card-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 0.25rem 0.7rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.active-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.active-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--accent-emerald);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-emerald);
}

.retired-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent-rose);
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.25);
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.retired-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--accent-rose);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--accent-rose);
}

.contact-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.5rem 1.75rem;
    border-radius: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 1rem;
}

.contact-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.contact-symbol {
    width: 46px;
    height: 46px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-text-wrap {
    min-width: 0;
}

.contact-meta-type {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.contact-meta-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-pill {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem 1.1rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.contact-card:hover .copy-pill {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: scale(1.05);
}

.contact-card.copied .copy-pill {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
    transform: scale(1.1);
}

.redirect-box {
    text-align: center;
    max-width: 540px;
    margin: 2rem auto;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.warn-icon {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem auto;
}

.warn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 20px;
    filter: blur(15px);
    opacity: 0.6;
}

.warn-core {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.url-display {
    background: var(--bg-base);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 14px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--accent-cyan);
    word-break: break-all;
    margin: 1.25rem 0 1.75rem 0;
}

.redirect-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.redirect-btns .btn {
    flex: 1;
}

footer {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 3rem 2rem;
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    gap: 1rem;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 500;
    text-align: right;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-emerald);
    border-radius: 50%;
    animation: pulseDot 2s infinite;
    flex-shrink: 0;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); opacity: 1; }
    70% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

@media (max-width: 768px) {
    header {
        padding: 0 1rem;
        height: 64px;
    }

    .brand {
        font-size: 0.85rem;
        gap: 6px;
    }

    nav {
        gap: 0.1rem;
        padding: 2px;
    }

    nav a {
        padding: 0.35rem 0.65rem;
        font-size: 0.72rem;
    }

    main {
        padding: calc(64px + 2rem) 1rem 3rem 1rem;
    }

    .hero-modern {
        margin: 1rem auto;
        min-height: calc(100vh - 64px - 10rem);
    }

    .hero-modern h1 {
        font-size: 2.3rem;
    }

    .hero-modern p {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .contact-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1.25rem;
    }

    .contact-info {
        width: 100%;
    }

    .contact-meta-value {
        white-space: normal;
        word-break: break-all;
    }

    .copy-pill {
        width: 100%;
        justify-content: center;
    }

    .redirect-box {
        padding: 2rem 1.25rem;
    }

    .redirect-btns {
        flex-direction: column;
    }

    footer {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        padding: 1.5rem 1rem 2.5rem 1rem;
    }

    .status-badge {
        justify-content: center;
        text-align: center;
    }
}