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

:root {
    --void: #05050a;
    --void-deep: #020204;
    --surface: #0a0a12;
    --accent: #8B7BB8;
    --accent-soft: rgba(139, 123, 184, 0.6);
    --accent-dim: rgba(139, 123, 184, 0.2);
    --accent-glow: rgba(139, 123, 184, 0.15);
    --text-primary: rgba(255, 255, 255, 0.92);
    --text-secondary: rgba(255, 255, 255, 0.55);
    --text-tertiary: rgba(255, 255, 255, 0.3);
    --text-whisper: rgba(255, 255, 255, 0.18);
}

@font-face {
    font-family: 'System';
    src: local('-apple-system'), local('BlinkMacSystemFont'), local('Segoe UI');
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    background: var(--void);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Nebula canvas */
#nebula {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* Cosmic overlay gradient */
.cosmos {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(139, 123, 184, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(100, 80, 140, 0.02) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 32px;
    min-height: 100vh;
    position: relative;
}

/* Header */
header {
    padding: 40px 0;
    height: 40px;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: lowercase;
    transition: color 0.5s ease;
}

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

/* Portal Section */
.portal {
    text-align: center;
    padding: 80px 0 100px;
    position: relative;
}

.glyph-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 50px;
    position: relative;
}

.glyph-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--accent-dim);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 180px;
    height: 180px;
    border-color: rgba(139, 123, 184, 0.1);
    animation: rotate-slow 60s linear infinite;
}

.ring-2 {
    width: 120px;
    height: 120px;
    border-color: rgba(139, 123, 184, 0.2);
    animation: rotate-slow 45s linear infinite reverse;
}

.ring-3 {
    width: 60px;
    height: 60px;
    border-color: rgba(139, 123, 184, 0.3);
    animation: rotate-slow 30s linear infinite;
}

.glyph-core {
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
    border-radius: 50%;
    animation: breathe 4s ease-in-out infinite;
}

@keyframes rotate-slow {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes breathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
}

.portal h1 {
    font-size: 64px;
    font-weight: 200;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-shadow: 0 0 60px var(--accent-glow);
}

.essence {
    font-size: 16px;
    font-weight: 300;
    color: var(--text-secondary);
    font-style: italic;
    letter-spacing: 0.05em;
}

/* Transmission */
.transmission {
    text-align: center;
    padding: 80px 0;
    max-width: 600px;
    margin: 0 auto;
}

.transmission p {
    font-size: 18px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 24px;
}

/* Divider */
.divider {
    text-align: center;
    padding: 60px 0;
}

.divider-symbol {
    color: var(--accent-dim);
    font-size: 18px;
}

/* Offering Section */
.offering {
    padding: 40px 0 80px;
}

.offering h2 {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 60px;
}

.tool-card {
    background: linear-gradient(135deg, rgba(139, 123, 184, 0.08) 0%, rgba(139, 123, 184, 0.02) 100%);
    border: 1px solid rgba(139, 123, 184, 0.12);
    border-radius: 24px;
    padding: 60px;
    display: flex;
    gap: 50px;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-dim), transparent);
}

.tool-glyph {
    flex-shrink: 0;
}

.tool-glyph svg {
    filter: drop-shadow(0 0 30px var(--accent-glow));
}

.tool-glyph .pulse {
    animation: glyph-pulse 3s ease-in-out infinite;
}

@keyframes glyph-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.tool-info h3 {
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.tool-tagline {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 400;
}

.tool-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.tool-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.tool-features span {
    font-size: 11px;
    color: var(--text-tertiary);
    padding: 6px 14px;
    border: 1px solid var(--accent-dim);
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.portal-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 0.05em;
    transition: all 0.4s ease;
}

.portal-link:hover {
    color: var(--accent);
}

.portal-link .arrow {
    transition: transform 0.4s ease;
}

.portal-link:hover .arrow {
    transform: translateX(4px);
}

/* Philosophy Section */
.philosophy {
    padding: 40px 0 100px;
}

.philosophy h2 {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 60px;
}

.principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.principle {
    text-align: center;
    padding: 32px 24px;
}

.principle-symbol {
    display: block;
    font-size: 24px;
    color: var(--accent-dim);
    margin-bottom: 20px;
}

.principle h4 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.principle p {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.8;
}

/* Closing */
.closing {
    text-align: center;
    padding: 80px 0 120px;
}

.invitation {
    font-size: 20px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 2;
    font-style: italic;
}

/* Footer */
footer {
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-glyph {
    font-size: 20px;
    color: var(--accent-dim);
    margin-bottom: 20px;
}

footer p {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.4s ease;
}

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

.copyright {
    margin-top: 24px;
    color: var(--text-whisper);
}

/* Page Styles (Privacy & Support) */
.page-header {
    text-align: center;
    padding: 100px 0 60px;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 200;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.page-header .subtitle {
    color: var(--text-tertiary);
    font-size: 14px;
    font-style: italic;
}

.content {
    background: linear-gradient(135deg, rgba(139, 123, 184, 0.05) 0%, rgba(139, 123, 184, 0.01) 100%);
    border: 1px solid rgba(139, 123, 184, 0.08);
    border-radius: 20px;
    padding: 50px;
    margin-bottom: 80px;
}

.content h2 {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.content h2:first-child {
    margin-top: 0;
}

.content p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.9;
}

.content ul {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
    padding-left: 24px;
    line-height: 2;
}

.content a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.content a:hover {
    opacity: 0.7;
}

.last-updated {
    font-size: 12px;
    color: var(--text-whisper);
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.contact-info {
    background: rgba(139, 123, 184, 0.08);
    border-radius: 12px;
    padding: 24px 28px;
    margin-top: 24px;
    border: 1px solid rgba(139, 123, 184, 0.1);
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .portal h1 {
        font-size: 40px;
        letter-spacing: 0.15em;
    }

    .tool-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 32px;
    }

    .tool-features {
        justify-content: center;
    }

    .principles {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .content {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .portal h1 {
        font-size: 32px;
    }

    .glyph-container {
        width: 140px;
        height: 140px;
    }

    .ring-1 { width: 140px; height: 140px; }
    .ring-2 { width: 90px; height: 90px; }
    .ring-3 { width: 45px; height: 45px; }
}
