:root {
    color-scheme: dark;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #0a0a0a;
    color: #fff;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero {
    padding: 100px 0 56px;
    text-align: center;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.hero p {
    margin: 0;
    color: #a0a0a0;
    font-size: 1.15rem;
}

.apps {
    padding: 0 0 80px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 24px;
}

.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    border: 1px solid #222;
    border-radius: 20px;
    background: #121212;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.card-calc:hover {
    transform: translateY(-4px);
    border-color: #333;
}

.app-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    margin-bottom: 24px;
    border: 1px solid #222;
    border-radius: 28px;
    background: linear-gradient(135deg, #181818, #0c0c0c);
    color: #ff00aa;
    font-size: 2.5rem;
    font-weight: 700;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.05);
}

.icon-calc {
    text-shadow: 0 0 15px rgba(255, 0, 170, 0.6);
}

.app-icon-unknown {
    color: #a0a0a0;
}

.app-card h2 {
    margin: 0 0 4px;
    font-size: 1.3rem;
    font-weight: 600;
}

.tagline {
    margin-bottom: 12px;
    color: #ff00aa;
    font-size: 0.9rem;
    font-weight: 500;
}

.app-card p {
    margin: 0 0 24px;
    color: #a0a0a0;
    font-size: 0.95rem;
}

.app-link {
    margin-top: auto;
    padding: 12px 20px;
    border-radius: 12px;
    background: #ff00aa;
    color: #0a0a0a;
    font-weight: 700;
    text-decoration: none;
}

.app-link:hover {
    background: #ff58c7;
}

.app-link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 4px;
}

footer {
    padding: 32px 24px;
    border-top: 1px solid #222;
    color: #a0a0a0;
    font-size: 0.9rem;
    text-align: center;
}

footer p {
    margin: 0;
}
