:root {
    /* Colors */
    --primary-color: #6C63FF;
    --primary-dark: #5a52d5;
    --secondary-color: #FF6584;
    --bg-color: #F5F5F7;
    /* Apple-like light gray */
    --surface-color: #FFFFFF;
    --text-color: #1D1D1F;
    /* Apple-like nearly black */
    --text-light: #86868B;
    /* Apple-like gray */
    --border-color: #D2D2D7;

    /* Spacing (8pt grid) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-6: 48px;
    --space-8: 64px;
    --space-10: 80px;
    --space-15: 120px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.12);

    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 9999px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #000000;
        --surface-color: #1C1C1E;
        --text-color: #F5F5F7;
        --text-light: #86868B;
        --border-color: #38383A;
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
        --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.4);
    }
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Layout */
.container {
    max-width: 1024px;
    /* Tighter container for better readability */
    margin: 0 auto;
    padding: 0 var(--space-3);
}

.section-padding {
    padding: var(--space-10) 0;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    /* Larger, more impactful */
    margin-bottom: var(--space-3);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-2);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-1);
}

p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--space-2) 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    .header {
        background-color: rgba(28, 28, 30, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
}

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

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.nav-link:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.2s;
}

.btn:active {
    transform: scale(0.96);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    /* Subtle border */
}

.btn-secondary:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
}

.card {
    background-color: var(--surface-color);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    padding: var(--space-15) 0 var(--space-10);
    text-align: center;
}

.hero h1 {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero .subtext {
    font-size: 1.5rem;
    /* Larger intro text */
    max-width: 640px;
    margin: 0 auto var(--space-4);
    font-weight: 400;
}

.hero-logo {
    width: 128px;
    height: 128px;
    border-radius: 28px;
    /* Squircle-ish */
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-md);
}

.cta-group {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    margin-top: var(--space-4);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-3);
}

.feature-card {
    background-color: var(--surface-color);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: var(--space-2);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

/* Screenshots */
.screenshots {
    background-color: var(--surface-color);
    overflow: hidden;
    /* For scrolling if needed */
}

.screenshots-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    padding: var(--space-4) 0;
}

.screenshot-wrapper {
    position: relative;
    border-radius: 40px;
    /* Phone corner radius */
    box-shadow: var(--shadow-lg);
    border: 8px solid #2c2c2c;
    /* Phone bezel */
    overflow: hidden;
    max-width: 280px;
}

@media (prefers-color-scheme: dark) {
    .screenshot-wrapper {
        border-color: #3a3a3a;
    }
}

.screenshot {
    display: block;
    width: 100%;
    height: auto;
}

/* Support Page */
.support-hero {
    padding: var(--space-10) 0 var(--space-6);
    text-align: center;
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-8);
}

.topic-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.topic-card h3 {
    color: var(--text-color);
    font-size: 1.25rem;
}

.contact-section {
    text-align: center;
    background: var(--surface-color);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    max-width: 600px;
    margin: 0 auto;
}

/* Legal Pages */
.prose {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-3);
}

.prose h1 {
    font-size: 2.5rem;
    margin-bottom: var(--space-6);
    text-align: center;
}

.prose h2 {
    font-size: 1.5rem;
    margin-top: var(--space-6);
    color: var(--text-color);
}

.prose ul {
    list-style-type: disc;
    padding-left: var(--space-3);
    margin-bottom: var(--space-3);
    color: var(--text-light);
}

.prose li {
    margin-bottom: var(--space-1);
}

/* Footer */
.footer {
    padding: var(--space-6) 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--surface-color);
    margin-top: auto;
}

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

.footer-links {
    display: flex;
    gap: var(--space-3);
}

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

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    :root {
        --space-10: 60px;
        --space-15: 80px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero .subtext {
        font-size: 1.25rem;
    }

    .screenshots-grid {
        gap: var(--space-3);
    }

    .screenshot-wrapper {
        max-width: 240px;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }

    .footer .container {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }
}