:root {
    --bg-color: #0f172a; /* Lighter slate blue */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.4);
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.08);
    --accent: #818cf8;
}

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

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Custom Selection */
::selection {
    background: var(--primary-glow);
    color: #fff;
}

/* Scroll Reveal Base */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll To Top Button */
.scroll-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 99;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px var(--primary-glow);
}
@media (max-width: 768px) {
    .scroll-to-top {
        right: 20px;
        bottom: 20px;
        width: 40px;
        height: 40px;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


header {
    width: 100%;
    padding: 28px 5%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-color);
    background: var(--bg-color);
    border-bottom: 2px solid var(--primary-glow);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

header.scrolled {
    padding: 12px 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.header-nav {
    display: flex;
    gap: 24px;
}

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

.header-nav a:hover {
    color: var(--text-main);
}

@media (max-width: 768px) {
    header {
        padding: 24px 5%;
        justify-content: center;
    }
    .hamburger {
        display: flex;
        position: absolute;
        top: calc(100vh - 90px);
        top: calc(100dvh - 90px);
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 60px;
        background: var(--primary);
        border-radius: 50%;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        padding: 21px 18px;
    }
    .hamburger span {
        background-color: #ffffff;
    }
    .mobile-break {
        display: block;
        margin-top: 4px;
    }
    .header-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(2, 6, 23, 0.75);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transform: translateY(100%);
        visibility: hidden;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
        z-index: 90;
        border: none;
        border-radius: 0;
    }
    .header-nav.active {
        transform: translateY(0);
        visibility: visible;
    }
    .header-nav a {
        width: 85%;
        max-width: 320px;
        padding: 24px 32px;
        background: linear-gradient(145deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        font-size: 22px;
        font-weight: 700;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.8);
        text-align: center;
        transform: translateY(40px);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .header-nav.active a {
        transform: translateY(0);
        opacity: 1;
        color: #ffffff;
        border-color: rgba(255, 255, 255, 0.2);
    }
    .header-nav a:hover, .header-nav a:active {
        background: linear-gradient(145deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
        border-color: var(--primary);
        color: #ffffff;
        box-shadow: 0 8px 32px var(--primary-glow);
    }
    .header-nav.active a:nth-child(1) { transition-delay: 0.1s; }
    .header-nav.active a:nth-child(2) { transition-delay: 0.2s; }
    .header-nav.active a:nth-child(3) { transition-delay: 0.3s; }
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary);
    text-transform: none;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

main {
    flex: 1;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 100px 5% 30px 5%;
    position: relative;
    z-index: 10;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Section */
.hero-section {
    width: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 1) 85%, rgba(15, 23, 42, 1) 100%), url('../img/hero-bg.png') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 144px 5% 80px 5%;
    position: relative;
}

.hero-content {
    max-width: 1000px;
    position: relative;
    z-index: 10;
}

.badge {
    display: inline-block;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 32px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    animation: fadeUp 0.8s ease-out forwards;
}

h1 {
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 32px;
    animation: fadeUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

h1 span {
    color: var(--primary);
}

p.subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    animation: fadeUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
    font-weight: 400;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    width: 100%;
    animation: fadeUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    padding: 40px 32px;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s ease;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    font-size: 22px;
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
}

.mission-statement {
    margin-top: 80px;
    padding: 48px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
    border-top: 1px solid var(--card-border);
    border-radius: 24px;
    animation: fadeUp 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

.mission-statement h2 {
    font-size: 28px;
    margin-bottom: 24px;
    font-weight: 700;
}

.mission-statement p {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
}

/* Legal doc typography */
.doc-hero {
    width: 100%;
    padding: 120px 5% 30px 5%;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid var(--card-border);
    text-align: center;
}

.doc-hero h1 {
    font-size: clamp(28px, 4vw, 36px);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.doc-hero p {
    color: var(--primary);
    font-weight: 500;
}

.document-card {
    text-align: left;
    max-width: 100%;
    margin: 0;
    align-self: flex-start;
    width: 100%;
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
}

.document-card h2 {
    font-size: 24px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 16px;
    color: #ffffff;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 8px;
}

.document-card h2:first-of-type {
    margin-top: 0;
}

.document-card p, .document-card ul {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.document-card ul {
    padding-left: 24px;
}

.document-card li {
    margin-bottom: 8px;
}

.document-card strong {
    color: #e4e4e7;
}

/* Footer */
.site-footer {
    width: 100%;
    background: rgba(255, 255, 255, 0.015);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
    position: relative;
    z-index: 10;
}

.footer-top {
    padding: 30px 5%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 100%;
    gap: 40px;
    text-align: left;
}

.footer-info {
    max-width: 400px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
}

.footer-logo span {
    color: var(--primary);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact-info h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-contact-info p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-contact-info a {
    color: var(--primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-contact-info a:hover {
    opacity: 0.8;
}

.footer-bottom {
    padding: 24px 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: left;
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .card {
        text-align: center !important;
    }
    .site-footer {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-bottom {
        text-align: center;
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
