:root {
    --bg-color: #fbfbfd;
    --card-bg: rgba(255, 255, 255, 0.8);
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #0071e3;
    --accent-hover: #0077ed;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.08);
    --radius: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- Animated Background --- */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(0, 113, 227, 0.04) 0%, rgba(255, 255, 255, 0) 60%);
    z-index: -1;
    animation: rotateBg 30s linear infinite;
    pointer-events: none;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Header & Nav --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

header h1 {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-color);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 6rem 1rem 4rem; /* Reduced top padding slightly */
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.hero-image {
    max-width: 350px; /* Adjust size as needed */
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.2)); /* Enhanced shadow for depth */
    border-radius: 30px; /* Rounded corners for hero image */
}

.hero h2 {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0; /* For animation */
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.hero p {
    font-size: 1.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.3;
    opacity: 0; /* For animation */
    transform: translateY(20px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Layout --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 3rem;
    padding-bottom: 4rem;
}

/* --- Cards --- */
.app-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
}

.app-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.app-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-md);
}

.app-image-container {
    padding: 3.5rem;
    background: linear-gradient(to bottom, #fafafa, #f5f5f7);
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.app-image-container img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 24px; /* Rounded corners for app icons */
}

.app-card:hover .app-image-container img {
    transform: scale(1.15) rotate(-3deg);
}

.app-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.app-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.app-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    flex-grow: 1;
    line-height: 1.6;
}

/* --- Features List --- */
.features-list {
    list-style: none;
    margin-bottom: 2rem;
    background: rgba(245, 245, 247, 0.5);
    padding: 1.5rem;
    border-radius: 16px;
}

.features-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    padding-left: 1.4rem;
    position: relative;
}

.features-list li::before {
    content: "✓";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* --- App Store Link --- */
.app-store-link {
    display: inline-block;
    margin-top: auto;
    align-self: flex-start;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-store-link:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.app-store-link img {
    height: 150px; /* Increased size */
    width: auto;
    display: block;
}

/* --- Footer --- */
footer {
    background-color: #1d1d1f; /* Apple dark grey */
    color: #f5f5f7;
    padding: 4rem 0;
    font-size: 0.9rem;
    margin-top: 6rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    color: #d2d2d7;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: color 0.2s;
    font-weight: 500;
}

.footer-links a:hover {
    color: #fff;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero h2 { font-size: 2.8rem; }
    .hero p { font-size: 1.3rem; }
    nav ul { display: none; }
    .apps-grid { grid-template-columns: 1fr; }
    .footer-links { flex-direction: column; gap: 1.5rem; text-align: center; }
}
