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

:root {
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --bg-white: #ffffff;
    --bg-light: #f5f5f7;
    --border-color: #d2d2d7;
    --shadow-light: 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
    --icon-bg: #f5f5f7;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    --apple-blue: #2997ff;
    --apple-blue-hover: #409cff;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --bg-white: #000000;
    --bg-light: #1d1d1f;
    --border-color: #424245;
    --shadow-light: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.6);
    --icon-bg: #1d1d1f;
}

.theme-toggle {
    position: fixed;
    top: 30px;
    right: 40px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100;
}

.theme-toggle:hover {
    background: var(--bg-light);
    transform: scale(1.05);
}

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 60px 30px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 50px;
}

.title {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.subtitle {
    font-size: 21px;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.004em;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 60px;
}

.card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 36px 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-light);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.card:hover::before {
    opacity: 0.5;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--icon-bg);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--apple-blue);
    color: white;
}

.card-name {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.card:hover .card-name {
    color: var(--apple-blue);
}

.card-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    letter-spacing: -0.022em;
}

.card-arrow {
    margin-top: 18px;
    color: var(--apple-blue);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -0.016em;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s ease;
}

.card:hover .card-arrow {
    gap: 8px;
}

.footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer p {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: -0.016em;
}

@media (max-width: 768px) {
    .theme-toggle {
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .container {
        padding: 50px 20px;
    }

    .header {
        margin-bottom: 40px;
    }

    .title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 17px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .card {
        padding: 30px 24px;
    }

    .card-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .card-name {
        font-size: 20px;
    }

    .card-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 28px;
    }

    .subtitle {
        font-size: 15px;
    }

    .card {
        padding: 26px 20px;
    }
}