/* ══════════════════════════════════════════════════
   MHX Media — Landing Page Stylesheet
   Dark elegant theme with navy/teal accents
   ══════════════════════════════════════════════════ */

/* ─── Reset & Base ─────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-deep:     #06070b;
    --bg-dark:     #0a0c14;
    --bg-card:     #0f1219;
    --bg-card-hover: #141822;
    --border:      rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    
    --text:        #e8e9ed;
    --text-muted:  #7a7f8e;
    --text-dim:    #4a4f5e;
    
    --accent:      #39c1c7;      /* teal from MHX Studio logo */
    --accent-glow: rgba(57, 193, 199, 0.15);
    --accent-2:    #6366f1;      /* indigo */
    --accent-3:    #818cf8;      /* light indigo */

    --navy-1:      #1a1a3e;
    --navy-2:      #1e3a5f;
    
    --radius:      16px;
    --radius-sm:   8px;
    --radius-xs:   6px;
    
    --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ─── Navigation ───────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    transition: var(--transition);
    backdrop-filter: blur(0px);
}

.nav.scrolled {
    padding: 12px 32px;
    background: rgba(6, 7, 11, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: var(--transition);
}

.nav.scrolled .nav-logo-img {
    width: 30px;
    height: 30px;
}

.logo-suffix {
    font-size: 18px;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* ─── Hero ─────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--navy-1), transparent);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(57, 193, 199, 0.3), transparent);
    top: 30%;
    right: -15%;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--navy-2), transparent);
    bottom: -10%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 24px;
    max-width: 800px;
    animation: fadeUp 1s ease-out;
}

.hero-logo {
    width: min(550px, 60vw);
    height: auto;
    margin: 0 auto 56px;
    object-fit: contain;
    filter: drop-shadow(0 0 80px rgba(57, 193, 199, 0.2));
    animation: fadeUp 0.8s ease-out, logoPulse 4s ease-in-out infinite 1s;
    position: relative;
    z-index: 1;
}

@keyframes logoPulse {
    0%, 100% { filter: drop-shadow(0 0 80px rgba(57, 193, 199, 0.2)); }
    50% { filter: drop-shadow(0 0 120px rgba(57, 193, 199, 0.35)); }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.title-line {
    display: inline;
}

.dot {
    color: var(--accent);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border: 1px solid var(--border-hover);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.03);
}

.hero-cta:hover {
    color: var(--accent);
    border-color: rgba(57, 193, 199, 0.3);
    background: var(--accent-glow);
    transform: translateY(-2px);
}

.cta-arrow {
    transition: var(--transition);
}

.hero-cta:hover .cta-arrow {
    transform: translateY(3px);
}

.hero-cta-accent {
    color: var(--bg-deep);
    background: var(--accent);
    border-color: transparent;
    font-weight: 600;
}

.hero-cta-accent:hover {
    color: var(--bg-deep);
    background: #4dd4da;
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(57, 193, 199, 0.25);
}


/* ─── Sections ─────────────────────────────────── */
.section {
    padding: 120px 0;
    position: relative;
}

.section-eyebrow {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 56px;
    line-height: 1.15;
}


/* ─── Product Cards ────────────────────────────── */
.products {
    background: var(--bg-dark);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.product-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    overflow: hidden;
    /* Fade-in animation */
    opacity: 0;
    transform: translateY(24px);
}

.product-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, background var(--transition), border-color var(--transition);
}

.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    opacity: 0;
    transition: var(--transition);
}

.card-ptp::before {
    background: linear-gradient(135deg, rgba(57, 193, 199, 0.05), rgba(99, 102, 241, 0.05));
}

.card-studio::before {
    background: linear-gradient(135deg, rgba(57, 193, 199, 0.06), rgba(57, 193, 199, 0.02));
}

.card-bt::before {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.05), rgba(167, 139, 250, 0.05));
}

.card-dev::before {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(57, 193, 199, 0.04));
}

/* ─── Hire MHX Dev ─────────────────────────────── */
.dev-hire {
    background: var(--bg-deep);
    border-top: 1px solid var(--border);
}

.dev-hire-title {
    max-width: 720px;
}

.dev-hire-title span {
    color: var(--accent);
}

.dev-hire-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
}

.dev-hire-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(57, 193, 199, 0.04));
    pointer-events: none;
}

.dev-hire-panel.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.dev-hire-intro,
.dev-hire-builds {
    position: relative;
    z-index: 1;
}

.dev-hire-intro p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.dev-hire-intro p:last-of-type {
    margin-bottom: 32px;
}

.dev-hire-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    color: var(--bg-deep);
    background: var(--accent);
    transition: var(--transition);
}

.dev-hire-cta:hover {
    background: #4dd4da;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(57, 193, 199, 0.25);
}

.dev-hire-builds h3 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.dev-hire-builds ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dev-hire-builds li {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dev-hire-builds strong {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.dev-hire-builds span {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

.card-elskolen::before {
    background: linear-gradient(135deg, rgba(41, 149, 255, 0.08), rgba(255, 126, 38, 0.08));
}

.card-backtrackr::before {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(56, 189, 248, 0.05));
}

.product-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

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

a.product-card {
    cursor: pointer;
}

.card-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-studio .card-icon {
    background: #0d1117;
    padding: 6px;
}

.card-bt .card-icon {
    background: #ffffff;
    padding: 0;
    border-radius: 14px;
}

.card-icon-text {
    background: linear-gradient(135deg, var(--navy-1), var(--navy-2));
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
}

.card-elskolen .card-icon {
    background: transparent;
    overflow: visible;
}

.card-elskolen .card-icon img {
    transform: scale(1.68);
    transform-origin: center;
}

.card-body {
    flex: 1;
    min-width: 0;
}

.card-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.card-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.card-arrow {
    position: absolute;
    top: 28px;
    right: 28px;
    color: var(--text-dim);
    transition: var(--transition);
}

.product-card:hover .card-arrow {
    color: var(--accent);
    transform: translate(3px, -3px);
}


/* ─── App Store ────────────────────────────────── */
.appstore {
    background:
        radial-gradient(1200px 500px at 15% 20%, rgba(57, 193, 199, 0.08), transparent 55%),
        radial-gradient(900px 400px at 85% 80%, rgba(99, 102, 241, 0.10), transparent 60%),
        var(--bg-deep);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.appstore-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.appstore-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(15, 18, 25, 0.88);
    overflow: hidden;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(24px);
}

.appstore-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color var(--transition), background var(--transition);
}

.appstore-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: var(--transition);
    background: linear-gradient(130deg, rgba(57, 193, 199, 0.08), rgba(99, 102, 241, 0.06));
}

a.appstore-card {
    cursor: pointer;
}

a.appstore-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

a.appstore-card:hover::before {
    opacity: 1;
}

.appstore-icon,
.appstore-body,
.appstore-button {
    position: relative;
    z-index: 1;
}

.appstore-icon {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
}

.appstore-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.appstore-body {
    flex: 1;
    min-width: 0;
}

.appstore-body h3 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.appstore-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 14px;
}

.appstore-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    transition: var(--transition);
}

a.appstore-card:hover .appstore-button {
    color: var(--accent);
    border-color: rgba(57, 193, 199, 0.36);
    background: var(--accent-glow);
}

.appstore-card.card-backtrackr::before {
    background: linear-gradient(130deg, rgba(14, 165, 233, 0.1), rgba(99, 102, 241, 0.06));
}

a.appstore-card.card-backtrackr:hover .appstore-button {
    color: #38bdf8;
    border-color: rgba(14, 165, 233, 0.36);
    background: rgba(14, 165, 233, 0.12);
}


/* ─── About ────────────────────────────────────── */
.about {
    background: var(--bg-deep);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.about-text {
    opacity: 0;
    transform: translateY(24px);
}

.about-text.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-text p:not(.section-eyebrow) {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 24px;
    opacity: 0;
    transform: translateY(24px);
}

.about-stats.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(12px);
}

.stat.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, border-color var(--transition);
}

.stat:hover {
    border-color: var(--border-hover);
}

.stat-icon {
    color: var(--accent);
    flex-shrink: 0;
    opacity: 0.7;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    background: linear-gradient(135deg, var(--text), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}


/* ─── Contact ──────────────────────────────────── */
.contact {
    background: var(--bg-dark);
}

.contact .section-title {
    margin-bottom: 20px;
}

.contact-intro {
    max-width: 560px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 48px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(24px);
}

.contact-item.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, border-color var(--transition), background var(--transition);
}

a.contact-item:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.contact-icon {
    color: var(--accent);
    margin-bottom: 16px;
    opacity: 0.8;
}

.contact-item h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.contact-item span,
.contact-item a {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
    transition: var(--transition);
}

a.contact-item:hover span {
    color: var(--accent);
}

/* ─── Email reveal card ────────────────────────── */
.contact-item-clickable {
    cursor: pointer;
}

.contact-item-clickable:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.contact-item-clickable:hover .email-reveal-hint {
    color: var(--accent);
}

.email-reveal-hint {
    font-size: 14px;
    color: var(--text-dim);
    transition: var(--transition);
}

/* ─── Turnstile Modal ──────────────────────────── */
.ts-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ts-modal.open {
    opacity: 1;
    visibility: visible;
}

.ts-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ts-modal-box {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 36px 36px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
}

.ts-modal.open .ts-modal-box {
    transform: translateY(0) scale(1);
}

.ts-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color var(--transition);
}

.ts-modal-close:hover {
    color: var(--text);
}

.ts-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.ts-modal-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.ts-widget {
    display: flex;
    justify-content: center;
    min-height: 65px;
}

.ts-loading {
    color: var(--text-dim);
    font-size: 14px;
    padding: 20px 0;
    animation: ts-pulse 1.2s ease-in-out infinite;
}

@keyframes ts-pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}


/* ─── Footer ───────────────────────────────────── */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-deep);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-dim);
    transition: var(--transition);
}

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

.footer-copy {
    font-size: 13px;
    color: var(--text-dim);
}


/* ─── Responsive ───────────────────────────────── */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .appstore-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-stats {
        flex-direction: row;
    }
    
    .stat {
        flex: 1;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .nav {
        padding: 16px 20px;
    }
    
    .nav.scrolled {
        padding: 10px 20px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: rgba(10, 12, 20, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 24px;
        transition: var(--transition);
        border-left: 1px solid var(--border);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-links a {
        font-size: 18px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .hero-logo {
        width: min(280px, 65vw);
        margin-bottom: 40px;
    }
    
    .product-card {
        flex-direction: column;
        padding: 24px;
    }

    .appstore-card {
        flex-direction: column;
        padding: 24px;
    }

    .appstore-icon {
        width: 72px;
        height: 72px;
    }

    .appstore-button {
        align-self: flex-start;
    }

    .dev-hire-panel {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 32px 24px;
    }
    
    .card-arrow {
        top: 20px;
        right: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
    }
    
    .stat {
        flex-direction: row;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}


/* ─── Selection & scrollbar ────────────────────── */
::selection {
    background: rgba(57, 193, 199, 0.25);
    color: var(--text);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}
