/* ========================================
   MS7APP — Global Styles
   Dark, sharp, premium aesthetic
   ======================================== */

:root {
    --bg: #101010;
    --surface: #181818;
    --card-bg: #1a1a1a;
    --white: #ffffff;
    --text-primary: #e8e8e8;
    --text-muted: #777777;
    --border: #2a2a2a;
    --accent: #5b8def;
    --radius: 16px;
    --transition: 0.25s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ======== NAVBAR ======== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    background: rgba(16, 16, 16, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--white);
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
}

.nav-links a:hover {
    color: var(--white);
}

/* ======== HERO ======== */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10rem 2rem 4rem;
    text-align: center;
}

.hero-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin-bottom: 1.5rem;
    background: rgba(91, 141, 239, 0.08);
    border: 1px solid rgba(91, 141, 239, 0.2);
    padding: 0.45rem 1.1rem;
    border-radius: 100px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* ======== PROJECTS GRID ======== */
.projects {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 6rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    border-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    width: fit-content;
    margin-bottom: 0.25rem;
}

.tag-extensions { background: rgba(91, 141, 239, 0.12); color: #5b8def; }
.tag-etsy { background: rgba(245, 130, 32, 0.12); color: #f58220; }
.tag-ebay { background: rgba(52, 199, 89, 0.12); color: #34c759; }
.tag-tools { background: rgba(175, 130, 255, 0.12); color: #af82ff; }

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex-grow: 1;
}

.card-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color var(--transition);
}

.card-link .arrow {
    transition: transform var(--transition);
    display: inline-block;
}

.project-card:hover .card-link {
    color: var(--accent);
}

.project-card:hover .card-link .arrow {
    transform: translateX(3px);
}

/* ======== FOOTER ======== */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.75rem 0;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

/* ======== SUBPAGES (Privacy, Terms, Contact) ======== */
.page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 9rem 2rem 5rem;
}

.page-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.page-content .page-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.page-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 2.5rem 0 0.75rem;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.page-content p,
.page-content li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.page-content ul {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.page-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 700px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 8rem 1.5rem 3rem;
    }
    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
