/* Apple SF Pro Display - Official Typography */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.02); }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 122, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 122, 255, 0.6);
    }
}

:root {
    /* Light Theme */
    --primary: #007AFF;
    --primary-hover: #0051D5;
    --accent: #0A84FF;
    --text-primary: #1D1D1F;
    --text-secondary: #6e6e73;
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    /* Premium Dark Theme */
    --primary: #0A84FF;
    --primary-hover: #409CFF;
    --accent: #00d4ff;
    --text-primary: #f5f5f7;
    --text-secondary: #98989d;
    --bg-primary: #000000;
    --bg-secondary: #0a0a0c;
    --bg-glass: rgba(10, 10, 12, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
}

html {
    scroll-behavior: smooth;
}

html, body {
    font-family: 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 17px;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    font-weight: 400;
}

body {
    position: relative;
    background: linear-gradient(180deg, #000000 0%, #0a0a0c 50%, #000000 100%);
    transition: background-color 0.3s ease;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(0, 122, 255, 0.05) 0%, transparent 50%),
                radial-gradient(ellipse at bottom, rgba(0, 212, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.theme-toggle svg {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--text-primary);
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 15px;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    background: transparent;
}

.back-link:hover {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    transform: translateX(-5px);
}

.back-link svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    animation: slideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo {
    font-family: 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 24px;
    text-transform: uppercase;
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    background: linear-gradient(135deg, #ffffff 0%, #0a84ff 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideIn 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.effective-date {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Intro Box */
.intro {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 24px;
    border-radius: 1rem;
    margin-bottom: 48px;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary);
    box-shadow: var(--shadow-md);
    animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Section */
.section {
    margin-bottom: 48px;
    animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    letter-spacing: -0.03em;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

ul {
    margin: 16px 0 16px 24px;
    color: var(--text-secondary);
}

li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.highlight {
    color: var(--primary);
    font-weight: 500;
}

/* Links and Buttons */
.discord-link,
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    border: none;
    cursor: pointer;
}

.discord-link:hover,
.btn-primary:hover {
    background: var(--primary-hover);
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(10, 132, 255, 0.3);
}

.discord-link:active,
.btn-primary:active {
    transform: scale(0.98);
}

/* Warning Box */
.warning-box {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--primary);
    padding: 20px;
    border-radius: 0.75rem;
    margin: 20px 0;
    box-shadow: var(--shadow-sm);
    animation: pulse 2s ease-in-out infinite;
}

.warning-box p {
    color: var(--text-primary);
}

/* Data Type Box */
.data-type-box {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 16px;
    margin: 12px 0;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    border-left: 2px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.data-type-box:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--accent);
}

/* Jurisdiction Box */
.jurisdiction-box {
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 20px;
    border-radius: 0.75rem;
    margin-top: 16px;
    border: 1px solid var(--border-color);
    border-left: 2px solid #f59e0b;
    box-shadow: var(--shadow-sm);
}

.jurisdiction-box p {
    color: var(--text-primary);
}

/* Footer */
footer {
    text-align: center;
    padding-top: 40px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    font-size: 14px;
}

footer p {
    margin-bottom: 8px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--border-color);
    z-index: 999;
}

.scroll-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--primary);
}

/* Selection */
::selection {
    background: var(--primary);
    color: white;
}

::-moz-selection {
    background: var(--primary);
    color: white;
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Smooth transitions */
* {
    transition-property: background-color, border-color, color;
    transition-duration: 0.3s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 20px;
    }

    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
}

@media (min-width: 1600px) {
    .container {
        padding: 60px 80px;
    }
}

