:root {
    /* Default Light Mode */
    --bg-color: #FFFFFF;
    --surface-color: #F5F5F7;
    --text-primary: #1D1D1F;
    --text-secondary: #86868B;
    --accent-color: #000000;
    --border-subtle: #D2D2D7;
    --gradient-text: linear-gradient(135deg, #1D1D1F 0%, #434344 100%);

    /* Typography */
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Premium Dark Mode */
        --bg-color: #050505;
        --surface-color: #111111;
        --text-primary: #F5F5F7;
        --text-secondary: #86868B;
        --accent-color: #FFFFFF;
        --border-subtle: #222222;
        --gradient-text: linear-gradient(135deg, #FFFFFF 0%, #888888 100%);
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    font-size: 17px;
}

/* Layout */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Scale */
h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Links */
a {
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.7;
}

/* Header */
.site-header {
    padding-top: 40px;
    padding-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header Logo Alignment */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
    /* Tighter line height helps vertical alignment with icon */
    color: var(--text-primary);
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    display: block;
    /* Removes bottom whitespace of inline images */
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

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

/* Hero Section */
.hero {
    padding-top: 100px;
    padding-bottom: 80px;
    max-width: 700px;
}

.hero-sub {
    font-size: 1.35rem;
    line-height: 1.5;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 80px 0;
    border-top: 1px solid var(--border-subtle);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Privacy Page / Terms Table Styles (kept from old CSS but themed) */
.content h2 {
    margin-top: 48px;
}

.content ul {
    margin-bottom: 24px;
    padding-left: 20px;
    color: var(--text-secondary);
}

.content li {
    margin-bottom: 8px;
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    margin: 32px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th,
td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

th {
    background: var(--surface-color);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    color: var(--text-secondary);
}

tr:last-child td {
    border-bottom: none;
}

/* Footer */
.site-footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-subtle);
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-links li {
    list-style: none;
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.copyright {
    font-size: 0.85rem;
    color: #444;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    .hero {
        padding-top: 60px;
        padding-bottom: 50px;
    }

    .hero-sub {
        font-size: 1.1rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
}