/* ================= RESET ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4338ca;
    --accent: #22c55e;
    --danger: #ef4444;

    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-muted: #eef2ff;

    --text-main: #0f172a;
    --text-muted: #475569;

    --radius-lg: 20px;
    --radius-md: 14px;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, .06);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, .12);
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ================= HERO ================= */
.hero {
    background: linear-gradient(135deg, #0f172a, #312e81);
    color: white;
    text-align: center;
    padding: 80px 20px 90px;
}

.logo {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 2.8rem;
    font-weight: 900;
}

.tagline {
    font-size: 1.2rem;
    margin-top: 8px;
}

.subline {
    opacity: .85;
    margin-top: 6px;
}

.hero-cta {
    margin-top: 32px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 16px 30px;
    border-radius: 16px;
    font-weight: 800;
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    border: 2px solid rgba(255, 255, 255, .4);
    color: white;
    padding: 14px 26px;
    border-radius: 16px;
    font-weight: 700;
}

/* ================= SECTIONS ================= */
.section {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 24px;
}

/* ================= PROJECTS ================= */
.projects-list {
    display: flex;
    gap: 18px;
}

.project-item {
    background: var(--surface);
    padding: 18px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    width: 160px;
    text-align: center;
}

.project-item img {
    width: 76px;
    height: 76px;
    border-radius: 16px;
}

/* ================= PRODUCTS ================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.product-card {
    background: var(--surface);
    padding: 26px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.product-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
}

.product-card p {
    color: var(--text-muted);
    margin-top: 10px;
}

.placeholder-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--primary);
    font-weight: 700;
}

/* Free Resources icon color (link-like blue) */
#free .product-card .material-icons {
    color: var(--primary);
}
/* ================= PREMIUM ================= */
.premium-section {
    background: transparent;
    padding: 0 20px;
}

.premium-section .products-grid {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.product-card.premium {
    border: 2px solid rgba(99, 102, 241, .25);
}

.product-card.featured {
    border: 3px solid var(--primary);
    transform: scale(1.02);
}

.badge {
    background: var(--danger);
    color: white;
    display: inline-block;
    padding: 4px 10px;
    font-size: .75rem;
    border-radius: 999px;
    margin-bottom: 10px;
    font-weight: 800;
}

.buy-btn {
    display: inline-block;
    margin-top: 18px;
    background: var(--accent);
    color: white;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 800;
}

.buy-btn.outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

/* ========================================================= Tech Stack (Aesthetic Upgrade) ========================================================= */
.stack {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.stack li {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--surface), var(--surface-muted));
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.stack li .material-icons {
    font-size: 20px;
    color: var(--primary);
}

/* ================= CONTACT ================= */
.section.contact {
    text-align: center;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.contact-icons a {
    width: 48px;
    height: 48px;
    background: var(--surface-muted);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icons img {
    width: 22px;
    height: 22px;
}

/* ================= FOOTER ================= */
.footer {
    background: var(--surface-muted);
    text-align: center;
    padding: 32px;
    color: var(--text-muted);
}
