/* Graphene Design System - Consolidated */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --color-bg-dark: #0a0a0a;
    --color-bg-card: rgba(20, 20, 20, 0.7);
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0a0;
    --color-accent-primary: #3b82f6;
    --color-accent-secondary: #60a5fa;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-error: #ff4d4d;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--color-bg-dark) 0%, #1a1a1a 100%);
    --gradient-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;

    /* Animations */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

html {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--color-bg-dark);
    color: var(--color-text-primary);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

p {
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    width: 100%;
}

.text-accent {
    color: var(--color-accent-primary);
}

.text-gradient {
    background: linear-gradient(90deg, var(--color-text-primary), var(--color-text-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 0.875rem;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--gradient-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--color-accent-primary);
    color: var(--color-bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Sections */
section {
    padding: var(--spacing-xl) 0;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 64px;
    text-decoration: none;
    color: var(--color-text-primary);
}

.logo-mark {
    width: 56px;
    height: 56px;
    display: block;
}

.logo span {
    margin-left: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-accent-primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #000000 !important;
}

.btn-sm:hover {
    color: #666666 !important;
}

/* Hero */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.silver-shine {
    background: linear-gradient(110deg, #777777 30%, #ffffff 50%, #777777 70%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    display: inline-block;
    font-weight: 800;
}

.blue-shine {
    background: linear-gradient(110deg, #3b82f6 30%, #ffffff 50%, #3b82f6 70%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    display: inline-block;
    font-weight: 800;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 2rem 0;
    color: var(--color-text-secondary);
}

.hero-subtitle a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 2px;
}

.hero-subtitle a:hover {
    color: #e5e7eb;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.hero-logo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(120vw, 1200px);
    height: min(120vw, 1200px);
    background: url('logo.svg') center center / contain no-repeat;
    opacity: 0.038;
    z-index: 0;
    filter: blur(0.2px);
    pointer-events: none;
}

/* Philosophy */
.philosophy-section {
    position: relative;
    background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.05) 0%, transparent 40%);
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.text-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0 3rem;
    font-size: 1.1rem;
}

.grapheneos-callout {
    margin-bottom: 2rem;
}

.grapheneos-callout ul {
    margin: 0;
    padding-left: 1.25rem;
}

.grapheneos-callout li {
    margin-bottom: 0.5rem;
}

.highlight-box {
    border-left: 4px solid var(--color-accent-primary);
}

.box-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-icon svg {
    width: 1.35rem;
    height: 1.35rem;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
}

.advanced-wrapper {
    margin-top: 3rem;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.02);
}

.advanced-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem 2rem;
}

.advanced-list li {
    display: flex;
    gap: 0.95rem;
    align-items: flex-start;
}

.advanced-badge {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.advanced-badge svg {
    width: 1.08rem;
    height: 1.08rem;
}

.advanced-text {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.advanced-name {
    font-weight: 600;
    line-height: 1.2;
}

.advanced-desc {
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Comparison */
.comparison-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.comparison-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.comparison-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.check {
    color: var(--color-accent-primary);
    font-weight: bold;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.stat-row {
    margin-bottom: 1.5rem;
}

.bar-container {
    background: rgba(255, 255, 255, 0.05);
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 0.5rem;
    position: relative;
    display: flex;
    align-items: center;
}

.bar {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.signal-bar {
    background: #3b82f6;
    color: white;
}

.zero-text {
    margin-left: 1rem;
    color: var(--color-accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Technical */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.card-header .icon {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.card-header .icon svg {
    width: 1.35rem;
    height: 1.35rem;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.22));
}

.steps h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.steps ul,
.steps ol {
    padding-left: 1.5rem;
}

.steps li {
    margin-bottom: 0.5rem;
}

.code-block {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    font-family: monospace;
    color: var(--color-accent-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Download */
.download-section {
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
}

.download-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.download-actions {
    margin-top: 2.5rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: #050505;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--color-accent-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Legal Pages */
.privacy-policy-page,
.terms-of-service-page,
.licenses-page {
    padding-top: var(--header-height);
    padding-bottom: 4rem;
    min-height: 100vh;
}

.policy-content {
    margin-top: 2rem;
    padding: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.policy-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--color-accent-primary);
    margin-bottom: 2rem;
}

.meta-info {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.policy-content section {
    margin-bottom: 2.5rem;
    padding: 0;
    min-height: auto;
    display: block;
}

.policy-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.policy-content h3 {
    font-size: 1.1rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-accent-secondary);
}

.policy-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.policy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.contact-info {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.dependency-list {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    max-height: 300px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.license-block {
    background: #000;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: #ccc;
    overflow-x: auto;
}

.license-block pre {
    margin: 0;
    white-space: pre-wrap;
    line-height: 1.4;
}

/* Page Visibility */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 5rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .text-columns {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .comparison-content {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .policy-content {
        padding: 1.5rem;
    }

    .hero-logo {
        width: min(150vw, 760px);
        height: min(150vw, 760px);
        opacity: 0.07;
    }
}