/* 1. RESET & BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Moved text-decoration: none here; global '*' reset can break accessibility */
a {
    text-decoration: none;
    color: inherit;
}

p {
    font-size: xxx-large;
    font-weight: 900;
    font-family: "JetBrains Mono", monospace;
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding-top: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 2. VARIABLES (Light Mode Default) */
:root {
    --white: #ffffff;
    --bg: #f5f5f7;
    --bg-card: #ffffff;
    --text: #1d1d1f;
    --text-secondary: #86868b; /* Adjusted to Apple's standard gray */
    --text-tertiary: #aeaeb2;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --border: rgba(0, 0, 0, 0.08);
    --border-strong: rgba(0, 0, 0, 0.14);
    --nav-bg: rgba(255, 255, 255, 0.72);

    --card-shadow:
        0 2px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --card-shadow-hover:
        0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);

    --surface: #f5f5f7;
    --surface-elevated: #ffffff;

    /* CTA Band specific (moved to variables for easy switching) */
    --cta-bg: #161617;
    --cta-text: #ffffff;
}

/* 3. DARK MODE OVERRIDES */
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #000000;
        --bg-card: #1c1c1e;
        --text: #f5f5f7;
        --text-secondary: #a1a1a6;
        --border: rgba(255, 255, 255, 0.12);
        --border-strong: rgba(255, 255, 255, 0.2);
        --nav-bg: rgba(22, 22, 23, 0.8);
        --surface: #1c1c1e;
        --surface-elevated: #2c2c2e;
    }
}

/* 4. BODY STYLES */
body {
    background: var(--bg);
    color: var(--text);
    font-family:
        "Outfit",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.3s ease;
}

/* 5. NAVIGATION */
nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    height: 48px; /* Slightly slimmer for Apple look */
    display: flex;
    align-items: center;
}

.nav-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 9px;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo-gem {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #a259f7 0%, #0071e3 100%);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    /* Removed absolute centering; it causes overlaps on small screens */
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 400;
    transition: color 0.2s;
}

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

.nav-cta {
    font-size: 0.8rem;
    color: var(--accent);
    transition: color 0.2s;
}

.nav-cta:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* 6. COMPONENTS & DARK MODE FIXES */
.hero,
.product-hero,
.feature-cell {
    background: var(--bg-card);
    color: var(--text);
    transition: background 0.3s ease;
}

/* Subtle hover effect for Bento cells */
.feature-cell:hover {
    background: var(--surface-elevated);
    box-shadow: var(--card-shadow-hover);
}

.feature-row {
    background: var(--border);
    border: 1px solid var(--border);
}

/* Fixed CTA Band using Variables */
.cta-band {
    background: var(--cta-bg);
    color: var(--cta-text);
    padding: 60px 20px;
    text-align: center;
}

.cta-band .section-title {
    color: #ffffff;
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

.cta-band .section-sub {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 10px;
}
