:root {
    --bg: #fafafa;
    --bg-elevated: #ffffff;
    --fg: #1a1a1a;
    --fg-muted: #666666;
    --fg-subtle: #999999;
    --border: #e8e8e8;
    --border-strong: #d0d0d0;
    --accent-blue: #1a73e8;
    --accent-red: #ea4335;
    --accent-dim: #f5f5f5;
    --card-bg: #ffffff;
    --card-border: #e8e8e8;
    --font: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-display: 'Sora', system-ui, -apple-system, sans-serif;
    --max-width: 720px;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0a0a0b;
        --bg-elevated: #111113;
        --fg: #fafafa;
        --fg-muted: #a1a1aa;
        --fg-subtle: #71717a;
        --border: #27272a;
        --border-strong: #3f3f46;
        --accent-blue: #4d9cff;
        --accent-red: #ff6b5a;
        --accent-dim: #1a1a1a;
        --card-bg: #161618;
        --card-border: #27272a;
        --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.4);
    }
}

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

html { -webkit-font-smoothing: antialiased; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    min-height: 100vh;
}

/* Subtle background pattern */
.bg-pattern {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.025;
    background-image: 
        linear-gradient(90deg, var(--fg) 1px, transparent 1px),
        linear-gradient(var(--fg) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

/* Top Nav */
.topnav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(var(--bg-elevated), 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
}

.topnav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.topnav-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topnav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--fg-muted);
    text-decoration: none;
    transition: color 150ms ease;
}

.topnav-link:hover {
    color: var(--fg);
}

.page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 24px 60px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 48px;
}

.wordmark {
    /*font-family: 'Space Grotesk';*/
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 1;
    margin: 0;
    background: linear-gradient(135deg, #00f6ff 0%, #4696ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    font-variation-settings: 'wght' 700;
}

.wordmark-char {
    display: inline-block;
    animation: weight-wave 5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.18s);
    font-variation-settings: 'wght' 300;
}
/*
.wordmark-char[style*="--i: 0"] { width: 52px; }
.wordmark-char[style*="--i: 1"] { width: 42px; }
.wordmark-char[style*="--i: 2"] { width: 66px; }
.wordmark-char[style*="--i: 3"] { width: 41px; }
.wordmark-char[style*="--i: 4"] { width: 26px; }
.wordmark-char[style*="--i: 5"] { width: 38px; }
.wordmark-char[style*="--i: 6"] { width: 17px; }
*/
@keyframes weight-wave {
    0%, 100% { font-variation-settings: 'wght' 300; }
    50% { font-variation-settings: 'wght' 700; }
}

@media (prefers-reduced-motion: reduce) {
    .wordmark-char { animation: none; }
    .wordmark-char[style*="--i: 0"] { font-variation-settings: 'wght' 300; }
    .wordmark-char[style*="--i: 1"] { font-variation-settings: 'wght' 350; }
    .wordmark-char[style*="--i: 2"] { font-variation-settings: 'wght' 400; }
    .wordmark-char[style*="--i: 3"] { font-variation-settings: 'wght' 475; }
    .wordmark-char[style*="--i: 4"] { font-variation-settings: 'wght' 550; }
    .wordmark-char[style*="--i: 5"] { font-variation-settings: 'wght' 625; }
    .wordmark-char[style*="--i: 6"] { font-variation-settings: 'wght' 700; }
}

.tagline {
    font-size: 20px;
    font-weight: 400;
    color: var(--fg-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Featured Product */
.featured { margin-bottom: 64px; }

.featured-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 32px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: start;
    box-shadow: var(--shadow);
    transition: box-shadow 200ms ease, border-color 200ms ease;
}

.featured-card:hover {
    box-shadow: var(--shadow-hover);
    border-color: var(--border-strong);
}

.featured-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #237be1 0%, #3143c8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    margin-top: 4px;
}

.featured-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-blue);
    margin-bottom: 8px;
}

.featured-name {
    font-family: var(--font);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    color: var(--fg);
}

.featured-desc {
    font-size: 16px;
    color: var(--fg-muted);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 520px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 150ms ease;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, #237be1 0%, #3143c8 100%);
    color: #fff;
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(35, 123, 225, 0.3);
}

/* Philosophy */
.philosophy { margin-bottom: 64px; }

.philosophy-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-subtle);
    margin-bottom: 24px;
}

.principles {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.principle {
    display: flex;
    gap: 14px;
    padding: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    transition: border-color 200ms ease;
}

.principle:hover { border-color: var(--border-strong); }

.principle-number {
    font-family: var(--font-mono, var(--font));
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-blue);
    letter-spacing: 0.05em;
    flex-shrink: 0;
    margin-top: 2px;
}

.principle-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--fg);
}

.principle-desc {
    font-size: 13px;
    color: var(--fg-muted);
    line-height: 1.5;
}

/* Exploring */
.exploring { margin-bottom: 64px; }

.exploring-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-subtle);
    margin-bottom: 12px;
}

.exploring-desc {
    font-size: 16px;
    color: var(--fg-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.explore-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.explore-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    transition: all 200ms ease;
}

.explore-item:hover {
    border-color: var(--border-strong);
    background: var(--bg-elevated);
}

.explore-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--fg);
}

.explore-desc {
    font-size: 13px;
    color: var(--fg-muted);
    line-height: 1.5;
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 20px;
}

.footer-links a {
    font-size: 14px;
    color: var(--fg-muted);
    text-decoration: none;
    transition: color 150ms ease;
}

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

.footer-toggle {
    margin-bottom: 20px;
}

.toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 8px 8px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 150ms ease;
    position: relative;
}

.toggle-btn:hover {
    border-color: var(--border-strong);
}

.toggle-track {
    width: 36px;
    height: 20px;
    border-radius: 100px;
    background: var(--border);
    position: relative;
    transition: background 150ms ease;
}

.toggle-thumb {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--fg);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 150ms ease;
}

.toggle-btn[aria-pressed="true"] .toggle-track {
    background: linear-gradient(135deg, #00f6ff 0%, #4696ff 100%);
}

.toggle-btn[aria-pressed="true"] .toggle-thumb {
    transform: translateX(16px);
}

.toggle-label {
    font-size: 13px;
    color: var(--fg-muted);
    font-weight: 500;
}

.copyright {
    font-size: 13px;
    color: var(--fg-subtle);
}

/* Responsive */
@media (max-width: 640px) {
    .page { padding: 60px 16px 40px; }
    .header { margin-bottom: 48px; }
    .wordmark { font-size: 44px; }
    .tagline { font-size: 17px; }
    
    .featured-card {
        grid-template-columns: 1fr;
        padding: 24px;
        text-align: center;
    }
    .featured-icon {
        width: 48px;
        height: 48px;
        margin: 0 auto;
    }
    .btn--primary { width: 100%; justify-content: center; }
    
    .principles { grid-template-columns: 1fr; }
    .principle { text-align: left; }
    
    .footer-links { flex-direction: column; gap: 12px; }
}