:root {
    --bg: #0a0a0f;
    --text: #f0f0f5;
    --muted: #8a8a9a;
    --faint: #5a5a6a;
    --border: rgba(255,255,255,0.06);
    --accent-1: #6366f1;
    --accent-2: #8b5cf6;
    --accent-3: #a78bfa;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Shared Elements */

.mesh {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Ambient orbs */
.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.ambient-orb {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    will-change: transform;
    animation: float 20s ease-in-out infinite;
}

.ambient-orb:nth-child(1) {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--accent-1), transparent 70%);
    top: -15%; right: -5%;
}

.ambient-orb:nth-child(2) {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--accent-2), transparent 70%);
    bottom: -10%; left: -5%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
}


/* Index layout */
.page {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
}

.page h1 {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
    max-width: 700px;
    margin-bottom: 1.5rem;
    
    /* Gradient text */
    background: linear-gradient(90deg, #60a5fa, #818cf8, #a78bfa, #c084fc, #f472b6);
    background-size: 150% 150%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shift 6s ease-in-out infinite;
    transform: translate3d(0, 0, 0);
}

@keyframes shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.page .sub {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 3.5rem;
}

.page .section-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--faint);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* Feature cards */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1024px;
    width: 100%;
    margin: 0 auto 4rem;
    text-align: center;
}

@media (max-width: 768px) {
    .features { grid-template-columns: 1fr; max-width: 400px; }
    .feature { padding: 1.5rem; }
}

.feature {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.75rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.feature:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    margin: 0 auto 1.25rem;
}

.feature h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.feature p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.65;
}

/* Company details */
.details {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.detail-label {
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--faint);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.detail-value {
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 480px) {
    .details { gap: 1.5rem; }
}


/* Legal layout */
.legal-wrap {
    max-width: 620px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
    flex: 1;
}

.legal-wrap .back {
    display: inline-block;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
    transition: color 150ms;
}

.legal-wrap .back:hover {
    color: var(--text);
}

.legal-wrap h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.legal-wrap .date {
    font-size: 0.8rem;
    color: var(--faint);
    margin-bottom: 2rem;
}

.legal-wrap p {
    color: var(--muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}


/* Footer */
a { color: var(--accent-3); text-decoration: none; transition: color 150ms; }
a:hover { color: var(--text); }

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

.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer-links { margin-top: 0.4rem; }
.footer-links a + a { margin-left: 1.5rem; }


/* Animations */
@keyframes fadein {
    from { opacity: 0.001; transform: translate3d(0, 20px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.reveal {
    opacity: 0.001;
    will-change: transform, opacity;
    animation: fadein 0.6s ease-out both;
}

.reveal-1 { animation-delay: 0.1s; }
.reveal-2 { animation-delay: 0.2s; }
.reveal-3 { animation-delay: 0.35s; }
.reveal-4 { animation-delay: 0.5s; }
.reveal-5 { animation-delay: 0.6s; }
.reveal-6 { animation-delay: 0.7s; }
.reveal-7 { animation-delay: 0.85s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
