/* Variables */
:root {
    /* Colors */
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-text: #1a1a1a;
    --color-text-main: #1a1a1a;
    --color-text-secondary: #6c757d;
    --color-accent: #0066cc;
    --accent-rgb: 0, 102, 204;
    --color-accent-hover: #0077ED;
    --color-border: #dee2e6;
    --color-white: #FFFFFF;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-size-base: 16px;
    --font-size-h1: 3.5rem;
    --font-size-h2: 2.5rem;
    --font-size-h3: 1.75rem;
    --font-size-body: 1.0625rem;
    --font-size-small: 0.875rem;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Layout */
    --container-width: 1200px;
    --header-height: 60px;
    --border-radius: 12px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition-fast: 0.2s ease;
}

/* Dark Mode Support (Optional, can be expanded later) */
@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #050505;
        --color-bg-alt: #111216;
        --color-text: #F5F5F7;
        --color-text-main: #F5F5F7;
        --color-text-secondary: #A0A0A5;
        --color-border: #2B2C30;
    }
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

h1 {
    font-size: var(--font-size-h1);
    line-height: 1.1;
}

h2 {
    font-size: var(--font-size-h2);
}

h3 {
    font-size: var(--font-size-h3);
}

p {
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-size-body);
    color: var(--color-text-secondary);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

ul {
    list-style: none;
}

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

/* iPhone-Specific Responsive Design */

/* iPhone SE and smaller (375px and below) */
@media (max-width: 375px) {
    :root {
        --font-size-h1: 2rem;
        --font-size-h2: 1.5rem;
        --font-size-h3: 1.25rem;
        --font-size-body: 0.9375rem;
        --spacing-md: 1rem;
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }
}

/* iPhone 12/13/14 (390px) and similar */
@media (min-width: 376px) and (max-width: 390px) {
    :root {
        --font-size-h1: 2.25rem;
        --font-size-h2: 1.75rem;
        --font-size-h3: 1.35rem;
        --spacing-lg: 2.5rem;
        --spacing-xl: 3.5rem;
    }
}

/* iPhone Pro Max and larger (up to 480px) */
@media (min-width: 391px) and (max-width: 480px) {
    :root {
        --font-size-h1: 2.5rem;
        --font-size-h2: 2rem;
        --font-size-h3: 1.5rem;
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
}

/* Small phones and portrait orientation */
@media (max-width: 576px) {
    body {
        font-size: 15px;
    }

    h1 {
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    h2,
    h3 {
        line-height: 1.3;
    }

    p {
        line-height: 1.6;
    }

    /* Force left alignment for all text on mobile to match logo */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    .hero-content,
    .card {
        text-align: left !important;
    }

    /* Ensure all content is left-aligned */
    .hero-content,
    .page-inner .hero-content {
        align-items: flex-start !important;
    }
}