/* ===== Variables ===== */

:root {
    --blue: #4568DC;
    --cyan: #06B6D4;
    --teal: #2A9D8F;
    --coral: #E17055;
    --purple: #6C5CE7;
    --green: #00B894;
    --amber: #FFB347;
    --bg: #F2F2F7;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F8F9FA;
    --surface: #FFFFFF;
    --surface-elevated: #FFFFFF;
    --text-primary: #000000;
    --text-secondary: rgba(60, 60, 67, 0.6);
    --text-tertiary: rgba(60, 60, 67, 0.3);
    --separator: #E8E8ED;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
    --card-hover-border: #D0D0D5;
    --screenshot-hover-glow: rgba(69, 104, 220, 0.4);
    --screenshot-hover-ring: #4568DC;
    --hero-gradient: linear-gradient(180deg, #E8F4FD 0%, #F2F2F7 100%);
    --feature-icon-bg: rgba(69, 104, 220, 0.08);
    --nav-bg: rgba(242, 242, 247, 0.85);
    --qr-filter: none;
}

[data-theme="dark"] {
    --bg: #000000;
    --bg-secondary: #1C1C1E;
    --bg-tertiary: #2C2C2E;
    --surface: #1C1C1E;
    --surface-elevated: #2C2C2E;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(235, 235, 245, 0.6);
    --text-tertiary: rgba(235, 235, 245, 0.3);
    --separator: #38383A;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    --card-shadow-hover: 0 8px 32px rgba(69, 104, 220, 0.15);
    --card-hover-border: rgba(69, 104, 220, 0.4);
    --screenshot-hover-glow: rgba(69, 104, 220, 0.5);
    --screenshot-hover-ring: #6C8BF0;
    --hero-gradient: linear-gradient(180deg, #0a1628 0%, #000000 100%);
    --feature-icon-bg: rgba(69, 104, 220, 0.15);
    --nav-bg: rgba(0, 0, 0, 0.85);
    --qr-filter: invert(1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #000000;
        --bg-secondary: #1C1C1E;
        --bg-tertiary: #2C2C2E;
        --surface: #1C1C1E;
        --surface-elevated: #2C2C2E;
        --text-primary: #FFFFFF;
        --text-secondary: rgba(235, 235, 245, 0.6);
        --text-tertiary: rgba(235, 235, 245, 0.3);
        --separator: #38383A;
        --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
        --card-shadow-hover: 0 8px 32px rgba(69, 104, 220, 0.15);
        --card-hover-border: rgba(69, 104, 220, 0.4);
        --screenshot-hover-glow: rgba(69, 104, 220, 0.5);
        --screenshot-hover-ring: #6C8BF0;
        --hero-gradient: linear-gradient(180deg, #0a1628 0%, #000000 100%);
        --feature-icon-bg: rgba(69, 104, 220, 0.15);
        --nav-bg: rgba(0, 0, 0, 0.85);
        --qr-filter: invert(1);
    }
}

/* ===== Reset & Base ===== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Typography ===== */

h1, h2, h3, h4 {
    font-family: 'Outfit', -apple-system, sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* ===== Navigation ===== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--separator);
    transition: transform 0.3s ease;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-brand span {
    font-family: ui-rounded, 'SF Pro Rounded', 'Nunito', -apple-system, system-ui, sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    align-items: center;
}

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

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

.nav-link-active {
    color: var(--text-primary) !important;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--blue);
    color: white !important;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(69, 104, 220, 0.4);
}

.theme-toggle {
    background: none;
    border: 1px solid var(--separator);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--blue);
    transform: scale(1.1);
}

/* ===== Footer ===== */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--separator);
    padding: 48px 24px;
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-brand img {
    width: 32px;
    height: 32px;
    border-radius: 7px;
}

.footer-brand span {
    font-family: ui-rounded, 'SF Pro Rounded', 'Nunito', -apple-system, system-ui, sans-serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.01em;
}

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

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

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

.footer-meta {
    color: var(--text-tertiary);
    font-size: 12px;
    line-height: 1.8;
}

.footer-meta a {
    color: var(--text-tertiary);
    text-decoration: none;
}

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

/* ===== Animations ===== */

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}
