@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #03030b;
    --bg-alt: #0d0f1a;
    --surface: rgba(19, 25, 44, 0.8);
    --surface-strong: rgba(255, 255, 255, 0.04);
    --primary: #7b5bff;
    --primary-strong: #a16cff;
    --accent: #4dd0e1;
    --text: #f5f6ff;
    --text-muted: rgba(245, 246, 255, 0.65);
    --outline: rgba(255, 255, 255, 0.12);
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
    --radius: 22px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, rgba(123, 91, 255, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 20% 20%, rgba(77, 208, 225, 0.4) 0%, transparent 40%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

main {
    min-height: 100vh;
    padding: 24px 24px 40px;
}

.page-shell {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.gradient-border {
    position: relative;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(140deg, rgba(123, 91, 255, 0.7), rgba(77, 208, 225, 0.55));
}

.gradient-border > section {
    border-radius: calc(var(--radius) - 1px);
    background: var(--surface);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 12px 0;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-brand img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.site-brand h1 {
    font-size: 1.3rem;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.site-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.site-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
}

.hero {
    position: relative;
    padding: 64px 64px 60px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%),
        var(--surface-strong);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 20% auto auto 55%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(123, 91, 255, 0.45), transparent 60%);
    filter: blur(3px);
    opacity: 0.6;
}

.hero-content {
    position: relative;
    max-width: 540px;
    z-index: 1;
    margin-left: 12px;
    margin-right: 12px;
}

.hero h2 {
    font-size: clamp(2.8rem, 6vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 18px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.cta-pill {
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.cta-pill.primary {
    background: linear-gradient(110deg, var(--primary), var(--primary-strong));
    color: #fff;
}

.cta-pill.secondary {
    background: transparent;
    border: 1px solid var(--outline);
    color: var(--text);
}

.cta-pill:hover,
.cta-pill:focus-visible {
    transform: translateY(-2px) scale(1.01);
}

.hero-visual {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    width: min(320px, 45vw);
    padding: 22px;
    border-radius: 32px;
    border: 1px solid var(--outline);
    background: rgba(3, 3, 11, 0.7);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}

.hero-visual .card {
    background: rgba(255, 255, 255, 0.05);
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-visual .card span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.hero-visual .card strong {
    font-size: 1.2rem;
}

.section-heading {
    margin-bottom: 28px;
    padding-left: 16px;
    padding-right: 16px;
}

.section-heading h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.section-heading p {
    color: var(--text-muted);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(123, 91, 255, 0.1));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover::after,
.feature-card:focus-visible::after {
    opacity: 1;
}

.feature-card .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: rgba(123, 91, 255, 0.15);
    font-size: 1.6rem;
}

.feature-card h4 {
    margin: 18px 0 12px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-muted);
}

.special-grid {
    background: var(--surface-strong);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.special-card {
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.special-card h4 {
    margin-bottom: 10px;
}

.stat-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stat-block strong {
    font-size: 2rem;
}

.quote-card {
    padding: 28px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quote-card p {
    color: var(--text);
    font-size: 1.1rem;
}

.quote-card .attribution {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeRise 0.9s forwards;
}

@keyframes fadeRise {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.message-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    min-width: 280px;
    padding: 18px 22px;
    border-radius: 18px;
    backdrop-filter: blur(10px);
    background: rgba(3, 3, 11, 0.9);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--text);
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 100;
}

.message-toast.active {
    display: flex;
}

.message-toast strong {
    font-size: 1rem;
}

.message-toast p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.section-shell {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.section-shell .section-heading h3 {
    margin-bottom: 8px;
}

.section-shell h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
}

.status-board {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 22px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
}

.status-pill {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
}

.status-pill::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 16px;
    border: 1px solid rgba(123, 91, 255, 0.35);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.status-board[data-state='success'] .status-pill::after {
    opacity: 1;
}

.status-board p {
    margin-bottom: 4px;
    font-size: 1rem;
}

.status-board small {
    color: var(--text-muted);
}

.loading-dots {
    display: flex;
    gap: 6px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.7;
    animation: pulse 1s infinite ease;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.1s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(0.9);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.privacy-grid {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 24px;
    align-items: start;
}

.privacy-nav {
    position: sticky;
    top: 32px;
    align-self: flex-start;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.privacy-nav h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.privacy-nav a {
    display: block;
    margin-bottom: 10px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    padding: 8px 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.privacy-nav a:hover,
.privacy-nav a:focus-visible {
    background: rgba(123, 91, 255, 0.15);
    color: var(--text);
}

.privacy-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.privacy-card {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 18px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.privacy-card h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.privacy-card h3 {
    color: var(--accent);
    margin-top: 18px;
}

.privacy-card ul {
    margin-left: 18px;
}

.privacy-card li {
    margin-bottom: 10px;
}

.privacy-contact {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-top: 12px;
    font-size: 0.95rem;
}

.privacy-contact a {
    color: var(--primary-strong);
    text-decoration: none;
}

@media (max-width: 1024px) {
    .hero {
        padding: 48px 40px;
    }

    .hero-visual {
        position: static;
        margin-top: 32px;
        transform: none;
    }
}

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

    .privacy-nav {
        position: static;
        top: unset;
    }
}

@media (max-width: 768px) {
    .page-shell {
        gap: 36px;
    }

    main {
        padding: 20px 16px 32px;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .site-nav {
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
    }

    .site-nav a {
        padding: 6px 14px;
        border-radius: 999px;
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .hero {
        padding: 40px 28px;
        text-align: left;
    }

    .hero h2 {
        font-size: clamp(2rem, 7vw, 3rem);
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .cta-pill {
        flex: 1;
        min-width: 180px;
        justify-content: center;
    }

    .grid,
    .special-grid,
    .privacy-content {
        grid-template-columns: 1fr;
    }

    .status-board {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 36px 24px;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
    }

    .site-header {
        align-items: center;
    }

    .site-nav {
        justify-content: center;
    }

    .gradient-border {
        padding: 0;
    }

    .special-grid {
        padding: 24px;
    }

    .section-shell {
        padding: 24px 20px;
    }

    .section-heading {
        margin-bottom: 24px;
        text-align: center;
    }

    .section-heading h3 {
        font-size: 1.5rem;
    }

    .status-board,
    footer {
        text-align: center;
    }

    main {
        padding: 16px 16px 32px;
    }
}
