/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Screen-reader only (accessible labels) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

:root {
    --primary: #6C3AFF;
    --primary-light: #8B5CF6;
    --primary-dark: #5B21B6;
    --accent: #00D4AA;
    --accent-light: #34D399;

    --bg: #0A0A0F;
    --bg-card: #111118;
    --bg-dark-section: #0D0D14;

    --text: #E4E4E7;
    --text-muted: #9CA3AF;
    --text-bright: #FFFFFF;

    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);

    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-text: linear-gradient(135deg, #8B5CF6 0%, #06B6D4 50%, #34D399 100%);

    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 48px rgba(0,0,0,0.4);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Global grid + glows */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.global-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
    z-index: 0;
}

.global-glow-1 {
    width: 700px; height: 700px;
    background: var(--primary);
    top: -200px; right: -150px;
    opacity: 0.12;
}

.global-glow-2 {
    width: 500px; height: 500px;
    background: var(--accent);
    bottom: -150px; left: -150px;
    opacity: 0.08;
}

.global-glow-3 {
    width: 400px; height: 400px;
    background: var(--primary);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.04;
}

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

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

.nav-container {
    display: flex; align-items: center; justify-content: space-between;
    max-width: 100%;
    padding: 0 48px;
}

.logo {
    display: flex; align-items: baseline; gap: 8px;
    text-decoration: none;
}

.logo-vix {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem; font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo-int {
    font-size: 0.65rem; font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.nav-links {
    display: flex; align-items: center; gap: 32px; list-style: none;
    margin-left: auto;
}

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

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

.btn-nav {
    padding: 10px 24px !important;
    background: var(--gradient) !important;
    color: var(--text-bright) !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
}

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

.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--text); border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem; font-weight: 600;
    text-decoration: none; cursor: pointer; border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient);
    color: var(--text-bright);
    box-shadow: 0 4px 20px rgba(108, 58, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 58, 255, 0.45);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ===== HERO ===== */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 120px 0 80px;
}

/* Hero bg elements kept for backwards compat but hidden — glows are now global */
.hero-bg { display: none; }

.hero-content {
    position: relative; z-index: 1; text-align: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(108, 58, 255, 0.1);
    border: 1px solid rgba(108, 58, 255, 0.15);
    border-radius: 50px;
    font-size: 0.85rem; font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-bright);
    margin-bottom: 24px;
    letter-spacing: -1px;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-buttons {
    display: flex; gap: 16px;
    justify-content: center; flex-wrap: wrap;
    margin-bottom: 64px;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.hero-stats {
    display: flex; align-items: center; justify-content: center; gap: 40px;
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.stat { text-align: center; }

.stat-num, .stat-suffix {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem; font-weight: 700;
    color: var(--text-bright);
}

.stat-label {
    display: block;
    font-size: 0.8rem; color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ===== SECTIONS ===== */
.section { padding: 100px 0; position: relative; z-index: 1; }

.section-dark { background: var(--bg-dark-section); }

.section-header { text-align: center; margin-bottom: 64px; }

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(108, 58, 255, 0.1);
    border: 1px solid rgba(108, 58, 255, 0.15);
    border-radius: 50px;
    font-size: 0.8rem; font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

/* ===== SERVICES ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.service-card.featured { border-color: rgba(108, 58, 255, 0.2); }
.service-card.featured::before { opacity: 1; }

.service-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: rgba(108, 58, 255, 0.1);
    border: 1px solid rgba(108, 58, 255, 0.12);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-light);
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem; font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 20px;
    line-height: 1.65;
}

.service-features { list-style: none; margin-bottom: 24px; }

.service-features li {
    padding: 6px 0; font-size: 0.88rem;
    color: var(--text);
    position: relative; padding-left: 22px;
}

.service-features li::before {
    content: '';
    position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.service-price {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(108, 58, 255, 0.1);
    border-radius: 50px;
    font-size: 0.88rem; font-weight: 600;
    color: var(--primary-light);
}

.service-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 24px;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    border: 1px solid rgba(108, 58, 255, 0.3);
    color: var(--primary-light);
    background: transparent;
    transition: var(--transition);
    text-align: center;
}
.service-btn:hover {
    background: rgba(108, 58, 255, 0.15);
    border-color: var(--primary);
    color: #fff;
}

/* ===== PROJECTS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.showcase-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    transition: var(--transition);
    display: block;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(108,58,255,0.06) 0%, rgba(0,212,170,0.04) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.project-card:hover .project-placeholder {
    background: linear-gradient(135deg, rgba(108,58,255,0.1) 0%, rgba(0,212,170,0.06) 100%);
}

.project-info {
    padding: 24px;
}

.project-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(108, 58, 255, 0.1);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.project-info h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.project-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== STEPS ===== */
.steps { max-width: 700px; margin: 0 auto; position: relative; }

.steps::before {
    content: '';
    position: absolute; left: 32px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    opacity: 0.2;
}

.step {
    display: flex; gap: 32px;
    align-items: flex-start;
    padding: 32px 0;
    position: relative;
}

.step-number {
    flex-shrink: 0;
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid rgba(108, 58, 255, 0.3);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem; font-weight: 700;
    color: var(--primary-light);
    position: relative; z-index: 1;
}

.step-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem; font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-muted);
    font-size: 0.92rem; line-height: 1.65;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature {
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: var(--transition);
}

.feature:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(108, 58, 255, 0.1);
    border: 1px solid rgba(108, 58, 255, 0.12);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    color: var(--primary-light);
}

.feature h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.05rem; font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 8px;
}

.feature p {
    color: var(--text-muted);
    font-size: 0.88rem; line-height: 1.65;
}

/* ===== CTA ===== */
.cta-section { padding: 60px 0; }

.cta-box {
    background: var(--bg-card);
    border: 1px solid rgba(108, 58, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute; top: -200px; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    background: var(--primary);
    border-radius: 50%;
    filter: blur(200px);
    opacity: 0.06;
}

.cta-box h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 16px;
    position: relative;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 32px;
    position: relative;
}

.cta-buttons {
    display: flex; gap: 16px;
    justify-content: center; flex-wrap: wrap;
    position: relative;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 4px; }

.contact-item {
    display: flex; gap: 16px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: none; }

.contact-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(108, 58, 255, 0.1);
    border: 1px solid rgba(108, 58, 255, 0.12);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--primary-light);
}

.contact-item strong {
    display: block;
    color: var(--text-bright);
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.85rem;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.contact-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover { color: var(--primary-light); }

.company-info {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

/* Form */
.contact-form {
    display: flex; flex-direction: column; gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 58, 255, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239CA3AF' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.form-group select option { background: var(--bg); color: var(--text); }

.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== FOOTER ===== */
.footer {
    padding: 60px 0 24px;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
    gap: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 14px;
    line-height: 1.6;
}

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

.footer-col {
    display: flex; flex-direction: column; gap: 10px;
}

.footer-col h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.85rem; font-weight: 600;
    color: var(--text-bright);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col a, .footer-col span {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-col a:hover { color: var(--text-bright); }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1; transform: translateY(0);
}

/* ===== RESPONSIVE ===== */

/* --- TABLET LANDSCAPE (max 1024px) --- */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .services-grid .service-card:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
    .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .projects-grid .project-card:last-child {
        grid-column: 1 / -1;
        max-width: 400px;
        margin: 0 auto;
    }
    .showcase-grid { grid-template-columns: repeat(2, 1fr); }
    .showcase-grid .project-card:last-child { grid-column: auto; max-width: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .contact-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-links { gap: 40px; }
}

/* --- TABLET PORTRAIT (max 768px) --- */
@media (max-width: 768px) {
    /* Mobile menu */
    .nav-toggle { display: flex; }
    .nav-container { padding: 0 20px; }

    .nav-links {
        position: fixed; top: 0; right: -100%;
        width: 280px; height: 100vh;
        background: rgba(17, 17, 24, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid var(--border);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 8px;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-links.active { right: 0; }

    .nav-links a {
        font-size: 1.05rem;
        padding: 14px 16px;
        border-radius: var(--radius);
        display: block;
        transition: var(--transition);
    }

    .nav-links a:hover {
        background: rgba(108, 58, 255, 0.08);
    }

    .btn-nav {
        margin-top: 16px;
        text-align: center !important;
    }

    /* Mobile menu backdrop */
    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
    }

    .nav-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    /* Hero */
    .hero { min-height: auto; padding: 120px 0 64px; }
    .hero h1 br { display: none; }
    .hero-badge { margin-bottom: 24px; font-size: 0.8rem; }
    .hero h1 { margin-bottom: 20px; }
    .hero-sub { margin-bottom: 32px; }
    .hero-buttons { margin-bottom: 48px; gap: 12px; }

    .hero-stats {
        flex-direction: row;
        gap: 0;
        justify-content: center;
        flex-wrap: wrap;
    }
    .stat { flex: 1; min-width: 90px; }
    .stat-num, .stat-suffix { font-size: 1.8rem; }
    .stat-label { font-size: 0.72rem; }
    .stat-divider { width: 1px; height: 32px; }

    /* Sections */
    .section { padding: 64px 0; }
    .section-header { margin-bottom: 40px; }
    .section-header h2 br { display: none; }
    .section-tag { font-size: 0.72rem; padding: 5px 14px; margin-bottom: 16px; }

    /* Grids — single column */
    .services-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .services-grid .service-card:last-child { grid-column: auto; max-width: none; }
    .projects-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .projects-grid .project-card:last-child { grid-column: auto; max-width: none; margin: 0; }
    .services-grid .service-card:last-child { margin: 0; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }

    /* Service cards */
    .service-card { padding: 32px 24px; }
    .service-card h3 { font-size: 1.2rem; }

    /* Feature cards — compact on tablet */
    .feature { padding: 24px 20px; }
    .feature h4 { font-size: 0.95rem; }
    .feature p { font-size: 0.82rem; }
    .feature-icon { width: 38px; height: 38px; margin-bottom: 14px; }

    /* Steps / Process */
    .steps::before { left: 28px; }
    .step { gap: 24px; padding: 24px 0; }
    .step-number { width: 56px; height: 56px; font-size: 1.05rem; }
    .step-content h3 { font-size: 1.1rem; }
    .step-content p { font-size: 0.88rem; }

    /* CTA */
    .cta-section { padding: 40px 0; }
    .cta-box { padding: 48px 24px; }
    .cta-box h2 br { display: none; }

    /* Form */
    .form-row { grid-template-columns: 1fr; }
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* prevents iOS zoom on focus */
        padding: 14px 16px;
    }

    /* Footer */
    .footer { padding: 48px 0 20px; }
    .footer-content { flex-direction: column; gap: 32px; margin-bottom: 32px; }
    .footer-links { gap: 32px; }
    .footer-brand p { font-size: 0.85rem; }

    /* Global glows — smaller on mobile for performance */
    .global-glow-1 { width: 400px; height: 400px; top: -150px; right: -100px; opacity: 0.1; }
    .global-glow-2 { width: 300px; height: 300px; bottom: -100px; left: -100px; opacity: 0.06; }
    .global-glow-3 { width: 250px; height: 250px; opacity: 0.03; }
}

/* --- MOBILE (max 480px) --- */
@media (max-width: 480px) {
    .container { padding: 0 16px; }

    /* Hero */
    .hero { padding: 110px 0 48px; }
    .hero h1 { letter-spacing: -0.5px; }
    .hero-sub { font-size: 0.92rem; line-height: 1.6; }
    .hero-sub br { display: none; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { width: 100%; text-align: center; }

    /* Stats — horizontal compact */
    .hero-stats { gap: 0; }
    .stat { min-width: 80px; }
    .stat-num, .stat-suffix { font-size: 1.5rem; }
    .stat-label { font-size: 0.65rem; }
    .stat-divider { height: 28px; }

    /* Sections */
    .section { padding: 48px 0; }
    .section-header { margin-bottom: 32px; }

    /* Features — single column on small phones */
    .features-grid { grid-template-columns: 1fr; gap: 12px; }
    .feature { padding: 20px 18px; }

    /* Steps — tighter on mobile */
    .steps::before { left: 24px; }
    .step { gap: 18px; padding: 20px 0; }
    .step-number { width: 48px; height: 48px; font-size: 0.95rem; }

    /* CTA */
    .cta-section { padding: 24px 0; }
    .cta-box { padding: 36px 20px; }
    .cta-buttons { flex-direction: column; align-items: stretch; }
    .cta-buttons .btn { width: 100%; text-align: center; }

    /* Contact */
    .contact-item { gap: 12px; padding: 14px 0; }
    .contact-icon { width: 36px; height: 36px; }
    .contact-item strong { font-size: 0.82rem; }
    .contact-item p { font-size: 0.85rem; }

    /* Footer — stack columns */
    .footer-links { flex-direction: column; gap: 24px; }
    .footer-col { gap: 8px; }
    .footer-bottom p { font-size: 0.7rem; line-height: 1.5; }

    /* Navbar compact */
    .navbar { padding: 12px 0; }
    .navbar.scrolled { padding: 10px 0; }
    .logo-vix { font-size: 1.4rem; }
    .logo-int { font-size: 0.55rem; letter-spacing: 2px; }

    /* Global glows — minimal on phones */
    .global-glow-1 { width: 250px; height: 250px; opacity: 0.08; filter: blur(100px); }
    .global-glow-2 { width: 200px; height: 200px; opacity: 0.05; filter: blur(100px); }
    .global-glow-3 { display: none; }
}

/* --- SMALL PHONES (max 360px) --- */
@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .hero { padding: 100px 0 40px; }
    .hero-badge { font-size: 0.72rem; padding: 6px 14px; }
    .stat-num, .stat-suffix { font-size: 1.3rem; }
    .stat-label { font-size: 0.6rem; }
    .service-card { padding: 24px 18px; }
    .project-info { padding: 18px; }
    .cta-box { padding: 28px 16px; }
    .nav-links { width: 260px; padding: 90px 24px 24px; }
}

/* --- TOUCH TARGETS — ensure min 44px tap targets --- */
@media (pointer: coarse) {
    .nav-links a { min-height: 44px; display: flex; align-items: center; }
    .btn { min-height: 48px; }
    .contact-item a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* --- LANDSCAPE PHONES --- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 80px 0 40px; }
    .hero-buttons { margin-bottom: 32px; }
    .hero-stats { gap: 0; }
    .nav-links { padding-top: 60px; overflow-y: auto; }
}
