/* ===================================
   WISUTH - TRUE APPLE DESIGN
   Inspired by apple.com
   =================================== */

:root {
    /* Apple Colors */
    --apple-blue: #007AFF;
    --apple-gray: #86868b;
    --apple-dark: #1d1d1f;
    --apple-light-gray: #f5f5f7;
    --white: #ffffff;
    --border: #d2d2d7;

    /* Apple Typography */
    --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;

    /* Spacing - 8pt grid */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-10: 80px;
    --space-12: 96px;
}

/* ===================================
   RESET
   =================================== */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-system);
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--apple-dark);
    background: var(--white);
}

/* ===================================
   TYPOGRAPHY
   =================================== */

h1 {
    font-size: 56px;
    line-height: 1.07143;
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--apple-dark);
}

h2 {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 600;
    letter-spacing: -0.003em;
    color: var(--apple-dark);
}

h3 {
    font-size: 32px;
    line-height: 1.125;
    font-weight: 600;
    letter-spacing: 0.004em;
    color: var(--apple-dark);
}

h4 {
    font-size: 24px;
    line-height: 1.16667;
    font-weight: 600;
    letter-spacing: 0.009em;
    color: var(--apple-dark);
}

p {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    color: var(--apple-gray);
}

a {
    color: var(--apple-blue);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===================================
   LAYOUT
   =================================== */

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 var(--space-3);
}

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

/* ===================================
   NAVIGATION
   =================================== */

.navbar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 var(--space-3);
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--apple-dark);
}

/* ===================================
   HERO
   =================================== */

.hero {
    text-align: center;
    padding: var(--space-12) 0 var(--space-10);
    background: var(--white);
}

.hero h1 {
    margin-bottom: var(--space-2);
}

.hero p {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: 0.011em;
    color: var(--apple-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   CARDS
   =================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2);
    margin-top: var(--space-8);
}

.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-5);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.card-icon {
    font-size: 48px;
    color: var(--apple-blue);
    margin-bottom: var(--space-3);
}

.card h4 {
    margin-bottom: var(--space-1);
    font-size: 21px;
    line-height: 1.381;
    font-weight: 600;
    letter-spacing: 0.011em;
}

.card p {
    font-size: 14px;
    line-height: 1.42859;
    font-weight: 400;
    letter-spacing: -0.016em;
    color: var(--apple-gray);
}

/* ===================================
   FOOTER
   =================================== */

footer {
    background: var(--apple-light-gray);
    border-top: 1px solid var(--border);
    padding: var(--space-5) 0;
    margin-top: var(--space-12);
}

.footer-content {
    text-align: center;
}

.footer-text {
    font-size: 12px;
    line-height: 1.33337;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--apple-gray);
    margin-bottom: var(--space-2);
}

.footer-copyright {
    font-size: 12px;
    line-height: 1.33337;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--apple-gray);
}

/* ===================================
   UTILITIES
   =================================== */

.text-center {
    text-align: center;
}

/* ===================================
   ACCESSIBILITY
   =================================== */

*:focus-visible {
    outline: 2px solid var(--apple-blue);
    outline-offset: 2px;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 734px) {
    h1 {
        font-size: 40px;
        line-height: 1.1;
        letter-spacing: 0;
    }

    h2 {
        font-size: 32px;
        line-height: 1.125;
        letter-spacing: 0.004em;
    }

    .hero p {
        font-size: 17px;
        line-height: 1.47059;
        letter-spacing: -0.022em;
    }

    .card-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }

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

    .hero {
        padding: var(--space-8) 0 var(--space-6);
    }
}

@media (max-width: 1068px) and (min-width: 735px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===================================
   DARK MODE READY
   =================================== */

@media (prefers-color-scheme: dark) {
    :root {
        --apple-dark: #f5f5f7;
        --apple-gray: #a1a1a6;
        --white: #000000;
        --apple-light-gray: #1d1d1f;
        --border: #424245;
    }
}