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

:root {
    --bg: #07070a;
    --bg-subtle: #0e0e14;
    --bg-card: #13131a;
    --bg-card-hover: #1a1a24;
    --border: #23232e;
    --border-subtle: #1a1a24;
    --text: #f5f5f7;
    --text-muted: #9d9db5;
    --text-subtle: #6b6b82;
    --primary: #6366f1;
    --primary-light: #818cf8;
    --accent: #8b5cf6;
    --cyan: #22d3ee;
    --green: #10b981;
    --orange: #f59e0b;
    --pink: #ec4899;
    --red: #ef4444;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

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

h1, h2, h3, h4 { font-family: 'Space Grotesk', 'Inter', sans-serif; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }

/* ===== Research Data Banner ===== */
.research-banner {
    padding: 60px 0 20px;
}

.research-card {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.04) 0%, rgba(0, 102, 255, 0.02) 100%);
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 20px;
    padding: 36px 44px;
    overflow: hidden;
}

.research-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4ff 30%, #0066ff 70%, transparent);
}

.research-card::after {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.research-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.research-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(0, 212, 255, 0.12);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    color: #00d4ff;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.research-stat {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.research-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 96px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.9;
    background: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.research-description {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}

.research-headline {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    margin: 0;
}

.research-headline strong {
    color: #00d4ff;
    font-weight: 700;
}

.research-detail {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
}

.research-detail strong {
    color: var(--text);
    font-weight: 600;
}

.research-source {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    color: var(--text-subtle);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.research-source a {
    color: #00d4ff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.research-source a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.research-source .dot-sep {
    color: var(--text-subtle);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .research-card { padding: 28px 24px; }
    .research-stat { grid-template-columns: 1fr; gap: 16px; }
    .research-number { font-size: 68px; }
    .research-headline { font-size: 18px; }
}

/* ===== Mobile Expertise Section ===== */
.mobile-expertise {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.mobile-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

.mobile-content h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 16px 0 20px;
}

.mobile-lead {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 520px;
}

.mobile-lead strong {
    color: #00d4ff;
    font-weight: 700;
}

.mobile-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.mobile-feat {
    display: flex;
    gap: 16px;
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: all 0.25s ease;
}

.mobile-feat:hover {
    border-color: rgba(0, 212, 255, 0.25);
    transform: translateX(4px);
    box-shadow: 0 4px 24px rgba(0, 212, 255, 0.08);
}

.mobile-feat-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 102, 255, 0.1));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 10px;
    color: #00d4ff;
}

.mobile-feat h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.mobile-feat p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.mobile-stats {
    display: flex;
    gap: 32px;
    padding: 20px 24px;
    background: rgba(0, 212, 255, 0.04);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 12px;
}

.mobile-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-stat strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.mobile-stat span {
    font-size: 11px;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* Mobile visual — device showcase */
.mobile-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
}

.device-scene {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 480px;
}

.device {
    position: absolute;
    background: #1a1a24;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 212, 255, 0.1);
}

.device-desktop {
    left: 0;
    top: 40px;
    width: 360px;
    height: 260px;
    border-radius: 10px;
    border: 1px solid #2a2a38;
    overflow: hidden;
    animation: float-device-1 6s ease-in-out infinite;
}

.device-chrome {
    display: flex;
    gap: 5px;
    padding: 8px 12px;
    background: #0f0f16;
    border-bottom: 1px solid #2a2a38;
}

.device-chrome span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3a3a48;
}

.device-screen {
    padding: 12px;
    height: 100%;
}

.desktop-screen {
    background: linear-gradient(180deg, #0f0f16 0%, #13131a 100%);
}

.screen-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 14px;
}

.screen-logo {
    width: 50px;
    height: 14px;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    border-radius: 4px;
}

.screen-links {
    display: flex;
    gap: 8px;
}

.screen-links span {
    width: 30px;
    height: 6px;
    background: rgba(255,255,255,0.12);
    border-radius: 3px;
}

.screen-hero {
    margin-bottom: 12px;
}

.screen-heading {
    width: 70%;
    height: 14px;
    background: linear-gradient(90deg, #00d4ff, rgba(0, 212, 255, 0.3));
    border-radius: 4px;
    margin-bottom: 8px;
}

.screen-line {
    width: 90%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-bottom: 5px;
}

.screen-line.short {
    width: 60%;
}

.screen-cta {
    width: 80px;
    height: 18px;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    border-radius: 4px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.screen-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.screen-card {
    height: 50px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
}

/* Phone */
.device-phone {
    right: 20px;
    top: 80px;
    width: 150px;
    height: 300px;
    border-radius: 22px;
    border: 8px solid #2a2a38;
    overflow: hidden;
    animation: float-device-2 6s ease-in-out infinite 0.8s;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 2px rgba(0, 212, 255, 0.2), 0 0 40px rgba(0, 212, 255, 0.15);
}

.device-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 14px;
    background: #0a0a0f;
    border-radius: 0 0 10px 10px;
    z-index: 2;
}

.phone-screen {
    background: linear-gradient(180deg, #0a0a0f 0%, #13131a 100%);
    padding: 24px 10px 10px;
    height: 100%;
}

.phone-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 2px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 10px;
}

.phone-logo {
    width: 40px;
    height: 11px;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    border-radius: 3px;
}

.phone-menu {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}

.phone-hero { margin-bottom: 10px; }

.phone-heading {
    width: 85%;
    height: 11px;
    background: linear-gradient(90deg, #00d4ff, rgba(0, 212, 255, 0.3));
    border-radius: 3px;
    margin-bottom: 6px;
}

.phone-line {
    width: 95%;
    height: 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    margin-bottom: 10px;
}

.phone-cta {
    width: 100%;
    height: 20px;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    border-radius: 6px;
    box-shadow: 0 3px 10px rgba(0, 212, 255, 0.3);
}

.phone-cards {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.phone-card {
    height: 34px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 6px;
}

.device-home {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
}

/* Connecting arrow */
.device-arrow {
    position: absolute;
    left: 320px;
    top: 170px;
    z-index: 3;
    animation: pulse-arrow 2.4s ease-in-out infinite;
}

@keyframes float-device-1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes float-device-2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse-arrow {
    0%, 100% { opacity: 0.7; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(4px); }
}

@media (max-width: 1024px) {
    .mobile-layout { grid-template-columns: 1fr; gap: 60px; }
    .mobile-visual { min-height: 400px; }
}

@media (max-width: 640px) {
    .mobile-features { gap: 14px; }
    .mobile-feat { padding: 16px; flex-direction: column; gap: 10px; }
    .mobile-stats { flex-direction: column; gap: 16px; text-align: center; }
    .device-scene { max-width: 340px; height: 380px; }
    .device-desktop { width: 240px; height: 180px; top: 30px; }
    .device-phone { width: 110px; height: 230px; top: 50px; right: 10px; }
    .device-arrow { display: none; }
}

/* ===== Published Case Studies Section ===== */
.case-studies {
    padding: 120px 0;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

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

.case-card {
    display: flex;
    flex-direction: column;
    padding: 28px 26px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.case-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.case-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 212, 255, 0.25);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 212, 255, 0.08);
}

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

.case-metric {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.case-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.case-unit {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

.case-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-light);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 4px 10px;
    border-radius: 50px;
    margin-bottom: 14px;
    width: fit-content;
    letter-spacing: 0.02em;
}

.case-card h3 {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 20px;
    color: var(--text);
    flex-grow: 1;
}

.case-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    margin-bottom: 16px;
}

.case-stats > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    color: var(--text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-stats strong {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #00d4ff;
    letter-spacing: -0.01em;
}

.case-source {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-subtle);
    font-weight: 500;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    transition: color 0.2s ease;
}

.case-card:hover .case-source { color: #00d4ff; }

.case-disclaimer {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    padding: 20px 24px;
    background: rgba(0, 212, 255, 0.03);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 12px;
}

.case-disclaimer p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.case-disclaimer a {
    color: #00d4ff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.case-disclaimer a:hover { opacity: 0.8; text-decoration: underline; }

@media (max-width: 1024px) {
    .case-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .case-grid { grid-template-columns: 1fr; }
    .case-num { font-size: 40px; }
}

/* ===== Consultation Form Modal ===== */
.form-modal {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.form-modal.active { opacity: 1; visibility: visible; }
body.modal-open { overflow: hidden; }

.form-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(7, 7, 10, 0.75);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}

.form-modal-content {
    position: relative;
    width: 100%; max-width: 580px; max-height: 90vh;
    overflow-y: auto; overflow-x: hidden;
    background: linear-gradient(145deg, #0e0e14 0%, #0a0a0f 100%);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 20px;
    padding: 40px 36px 32px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6), 0 0 60px rgba(0, 212, 255, 0.08);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.form-modal.active .form-modal-content {
    transform: translateY(0) scale(1);
}

.form-modal-close {
    position: absolute; top: 16px; right: 16px; z-index: 2;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer; transition: all 0.2s;
}
.form-modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text);
    transform: rotate(90deg);
}

.form-orb {
    position: absolute; border-radius: 50%;
    filter: blur(60px); opacity: 0.35;
    pointer-events: none;
}
.form-orb-1 { width: 200px; height: 200px; background: #00d4ff; top: -50px; right: -50px; }
.form-orb-2 { width: 180px; height: 180px; background: #8b5cf6; bottom: -40px; left: -40px; opacity: 0.25; }

.form-modal-inner { position: relative; z-index: 1; }

/* Form header */
.form-header { margin-bottom: 28px; }
.form-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px; margin-bottom: 16px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 50px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
    color: #00d4ff;
}
.form-badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #10b981; animation: pulse-glow 2s infinite;
}
.form-header h2 {
    font-size: 30px; font-weight: 800; line-height: 1.15;
    letter-spacing: -0.03em; margin-bottom: 10px;
}
.form-header p {
    font-size: 14px; color: var(--text-muted); line-height: 1.6;
}

/* Form fields */
.consultation-form { display: flex; flex-direction: column; gap: 18px; }
.form-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
    font-size: 12px; font-weight: 600; color: var(--text);
    letter-spacing: 0.02em;
}
.form-field label .req { color: #00d4ff; }
.form-field label .optional { color: var(--text-subtle); font-weight: 400; }
.form-field input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    font-size: 14px; font-family: inherit;
    color: var(--text);
    transition: all 0.2s;
}
.form-field input::placeholder { color: var(--text-subtle); }
.form-field input:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(255,255,255,0.06);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}
.form-field input.error { border-color: #ef4444; }

/* Service chips */
.chip-group {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
    cursor: pointer; user-select: none;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50px;
    font-size: 13px; font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s;
}
.chip span svg { flex-shrink: 0; opacity: 0.7; transition: opacity 0.2s; }
.chip:hover span svg { opacity: 1; }
.chip input:checked + span svg { opacity: 1; }
.chip:hover span {
    background: rgba(255,255,255,0.08);
    color: var(--text);
}
.chip input:checked + span {
    background: rgba(0, 212, 255, 0.15);
    border-color: #00d4ff;
    color: #00d4ff;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.1);
}

/* Error message */
.form-error {
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #fca5a5; font-size: 13px;
}

/* Submit button */
.form-submit {
    position: relative;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%;
    padding: 14px 28px;
    margin-top: 6px;
    background: linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    color: #fff;
    border: none; border-radius: 12px;
    font-family: inherit; font-size: 15px; font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
    overflow: hidden;
}
.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.45);
}
.form-submit:active { transform: translateY(0); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }
.form-submit.loading .submit-text,
.form-submit.loading .submit-arrow { opacity: 0; }
.form-submit .submit-spinner {
    position: absolute;
    width: 22px; height: 22px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    opacity: 0;
    animation: spin 0.8s linear infinite;
}
.form-submit.loading .submit-spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-footer-note {
    font-size: 12px; color: var(--text-subtle);
    text-align: center; margin-top: 4px;
}

/* Success step */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeInUp 0.5s ease; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step-2 { text-align: center; padding: 20px 0; }
.success-icon {
    display: flex; justify-content: center;
    margin-bottom: 24px;
    animation: scaleIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes scaleIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.form-step-2 h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.form-step-2 p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
.success-meta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
    padding: 18px; margin-bottom: 28px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
}
.success-meta > div { display: flex; flex-direction: column; gap: 4px; }
.success-meta-lbl { font-size: 10px; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 1.5px; }
.success-meta-val { font-size: 14px; font-weight: 600; color: #00d4ff; }

@media (max-width: 640px) {
    .form-modal-content { padding: 32px 22px 24px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-header h2 { font-size: 24px; }
    .form-step-2 h2 { font-size: 26px; }
    .success-meta { grid-template-columns: 1fr; }
}

/* ===== Global Background Animation Layer ===== */
.bg-animation {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
body > nav,
body > section,
body > footer { position: relative; z-index: 1; }

/* Aurora gradient orbs that drift across the page */
.bg-aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.25;
    will-change: transform;
}
.bg-aurora-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #00d4ff, transparent 70%);
    top: -10%; left: -10%;
    animation: aurora-drift-1 28s ease-in-out infinite;
}
.bg-aurora-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, #8b5cf6, transparent 70%);
    top: 40%; right: -10%;
    animation: aurora-drift-2 34s ease-in-out infinite;
}
.bg-aurora-3 {
    width: 550px; height: 550px;
    background: radial-gradient(circle, #0080ff, transparent 70%);
    bottom: -10%; left: 30%;
    animation: aurora-drift-3 30s ease-in-out infinite;
}
@keyframes aurora-drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40vw, 20vh) scale(1.15); }
    66% { transform: translate(20vw, 50vh) scale(0.9); }
}
@keyframes aurora-drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30vw, 10vh) scale(1.2); }
    66% { transform: translate(-15vw, -30vh) scale(0.85); }
}
@keyframes aurora-drift-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-25vw, -40vh) scale(0.95); }
    66% { transform: translate(30vw, -20vh) scale(1.1); }
}

/* Slowly shifting grid pattern */
.bg-grid-move {
    position: absolute;
    inset: -50px;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 90%);
    animation: grid-slide 40s linear infinite;
    will-change: transform;
}
@keyframes grid-slide {
    from { transform: translate(0, 0); }
    to { transform: translate(60px, 60px); }
}

/* Mouse-follow cursor glow */
.bg-cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08), transparent 60%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 0;
    will-change: transform, opacity;
}
.bg-cursor-glow.active { opacity: 1; }

/* Particles canvas */
.bg-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
    .bg-aurora, .bg-grid-move { animation: none !important; }
    .bg-cursor-glow { display: none; }
}

/* Disable heavy effects on mobile for performance */
@media (max-width: 768px) {
    .bg-cursor-glow { display: none; }
    .bg-particles { display: none; }
    .bg-aurora { filter: blur(80px); opacity: 0.2; }
}

/* ===== Animations ===== */
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-20px)} }
@keyframes pulse-glow { 0%,100%{opacity:.4;transform:scale(1)} 50%{opacity:1;transform:scale(1.1)} }
@keyframes float-browser { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-12px) rotate(1deg)} }

[data-animate] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 10px; font-size: 14px;
    font-weight: 500; cursor: pointer; transition: all 0.25s ease;
    border: none; font-family: inherit; white-space: nowrap;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 0 20px rgba(99,102,241,0.25); }
.btn-primary:hover { background: var(--primary-light); box-shadow: 0 0 30px rgba(99,102,241,0.4); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--text-subtle); background: var(--bg-card); }
.btn-white { background: white; color: var(--bg); font-weight: 600; }
.btn-white:hover { background: #f0f0f0; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(255,255,255,0.1); }
.btn-ghost-white { background: rgba(255,255,255,0.1); color: white; border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost-white:hover { background: rgba(255,255,255,0.2); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 12px; }

/* ===== Navigation ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 16px 0; transition: all 0.3s ease; background: transparent;
}
.navbar.scrolled {
    background: rgba(7,7,10,0.85); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-subtle); padding: 10px 0;
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }

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

/* Stacked logo (AjaxDevApp Logo v3 — "Minimal w/ divider") */
.logo-stacked {
    display: block;
    height: 56px;
    width: auto;
    max-width: 100%;
    transition: filter 0.2s ease, transform 0.2s ease;
}
.logo:hover .logo-stacked {
    transform: translateY(-1px);
    filter: drop-shadow(0 3px 14px rgba(0, 184, 255, 0.55));
}
.logo-stacked--footer { height: 72px; }

.logo-mark {
    /* Standalone gradient infinity mark — no box, no border. */
    box-sizing: border-box;
    width: 52px;
    height: 44px;
    flex: 0 0 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 2px 10px rgba(0, 212, 255, 0.35));
}
.logo-mark img {
    width: 50px;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    overflow: visible;
}
.logo:hover .logo-mark {
    transform: translateY(-1px);
    filter: drop-shadow(0 3px 14px rgba(0, 212, 255, 0.55));
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px; font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text);
    background: linear-gradient(135deg, #ffffff 0%, #b3ecff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-tagline {
    font-size: 10px; color: #00d4ff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-top: 2px;
}

.nav-links { display: flex; list-style: none; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ===== Hero ===== */
.hero { position: relative; padding: 140px 0 60px; overflow: hidden; }

.hero-bg { position: absolute; inset: 0; }
.gradient-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle,rgba(99,102,241,0.25),transparent 70%); top: -200px; right: -100px; animation: float 8s ease-in-out infinite; }
.orb-2 { width: 400px; height: 400px; background: radial-gradient(circle,rgba(139,92,246,0.2),transparent 70%); bottom: 0; left: -100px; animation: float 10s ease-in-out infinite reverse; }

.grid-overlay {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
                       linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 30%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 30%, black 40%, transparent 100%);
}

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

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2); border-radius: 50px;
    font-size: 13px; color: var(--primary-light); margin-bottom: 24px; font-weight: 500;
}
.badge-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; animation: pulse-glow 2s infinite; }

.hero h1 { font-size: clamp(38px, 5.5vw, 68px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 24px; }
.gradient-text { background: linear-gradient(135deg, var(--primary-light), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: clamp(16px, 2vw, 19px); color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; line-height: 1.7; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }

.hero-stats { display: flex; align-items: center; justify-content: center; gap: 32px; }
.stat strong { display: block; font-size: 28px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--text-subtle); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ===== Floating Browsers in Hero ===== */
.hero-browsers {
    position: relative; z-index: 2; margin-top: 60px; padding: 0 24px;
    display: flex; justify-content: center; gap: 24px; perspective: 1000px;
}

.floating-browser {
    width: 280px; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); background: var(--bg-card);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4); transition: transform 0.3s ease;
    position: relative;
}
.floating-browser:hover { transform: translateY(-8px) !important; }
.browser-1 { animation: float-browser 6s ease-in-out infinite; transform: rotate(-3deg); }
.browser-2 { animation: float-browser 7s ease-in-out infinite 0.5s; transform: scale(1.05); z-index: 2; box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(99,102,241,0.1); }
.browser-3 { animation: float-browser 8s ease-in-out infinite 1s; transform: rotate(3deg); }

.browser-bar {
    display: flex; gap: 5px; padding: 8px 12px;
    background: var(--bg-subtle); border-bottom: 1px solid var(--border-subtle);
}
.browser-bar span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.browser-bar span:first-child { background: #ef4444; }
.browser-bar span:nth-child(2) { background: #f59e0b; }
.browser-bar span:last-child { background: #10b981; }

.browser-label {
    position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: white; padding: 3px 12px;
    border-radius: 50px; font-size: 11px; font-weight: 600;
}

.browser-content { height: 180px; overflow: hidden; }

/* Preview mockup innards */
.preview-nav { height: 20px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.05); }
.preview-hero-img { height: 60px; background: linear-gradient(135deg, var(--primary), var(--accent)); opacity: 0.6; }
.preview-text-block { padding: 10px; }
.preview-heading { height: 8px; width: 60%; background: rgba(255,255,255,0.15); border-radius: 4px; margin-bottom: 6px; }
.preview-line { height: 5px; width: 80%; background: rgba(255,255,255,0.07); border-radius: 4px; margin-bottom: 4px; }
.preview-line.short { width: 50%; }
.preview-cta-btn { width: 50%; height: 14px; margin: 6px 10px; background: var(--primary); border-radius: 4px; opacity: 0.6; }
.preview-cards { display: flex; gap: 6px; padding: 8px; }
.preview-card { flex: 1; height: 50px; background: rgba(255,255,255,0.04); border-radius: 6px; border: 1px solid rgba(255,255,255,0.05); }

/* ===== Hero Floating Iframe Previews ===== */
.floating-browser { text-decoration: none; display: block; cursor: pointer; position: relative; }
.floating-iframe {
    width: 300%;
    height: 540px;
    border: none;
    transform: scale(0.333);
    transform-origin: top left;
    background: #fff;
    pointer-events: none; /* Parent <a> handles click */
    display: block;
}
.floating-browser:has(.floating-iframe) { height: 220px; overflow: hidden; }
.floating-browser:hover { transform: translateY(-8px); transition: transform 0.3s; }
.browser-1:hover, .browser-3:hover { transform: translateY(-8px) rotate(0deg) !important; }
.browser-2:hover { transform: translateY(-8px) scale(1.05) !important; }

/* ===== Floating Preview Mini-Sites (Hero Section) ===== */
.browser-content { height: 180px; overflow: hidden; font-family: -apple-system, sans-serif; }

.fp-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 10px; font-size: 7px;
}
.fp-cta { font-size: 5.5px; font-weight: 700; padding: 3px 8px; border-radius: 3px; }

.fp-hero {
    padding: 12px 10px 10px; position: relative; overflow: hidden; min-height: 90px;
}
/* Grid overlay */
.fp-hero::after {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 16px 16px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 20%, transparent 100%);
}
.fp-hero > * { position: relative; z-index: 1; }

.fp-orb { position: absolute; border-radius: 50%; filter: blur(20px); z-index: 0; }

.fp-eyebrow { font-size: 4.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 5px; }
.fp-title { font-size: 12px; font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 6px; }
.fp-btn { font-size: 5px; font-weight: 700; padding: 4px 10px; border-radius: 4px; display: inline-block; }

.fp-stats {
    display: flex; justify-content: space-around; padding: 6px 10px;
    font-size: 4.5px; text-align: center;
}
.fp-stat-num { display: block; font-size: 9px; font-weight: 800; letter-spacing: -0.02em; }
.fp-stat-lbl { color: rgba(255,255,255,.35); text-transform: uppercase; letter-spacing: 0.3px; }

.fp-menu { padding: 6px 10px; }
.fp-menu-row {
    display: flex; justify-content: space-between; padding: 3px 0;
    font-size: 6px; border-bottom: 1px solid rgba(255,255,255,.06);
}

.fp-chips { padding: 6px 8px; display: flex; gap: 3px; flex-wrap: wrap; }
.fp-chip {
    font-size: 5px; font-weight: 600; padding: 2px 6px; border-radius: 10px;
    border: 1px solid; color: #374151; background: #fff;
}

/* ===== Section Shared ===== */
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
    display: inline-block; padding: 4px 14px; background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2); border-radius: 50px;
    font-size: 13px; color: var(--primary-light); font-weight: 500; margin-bottom: 16px;
}
.section-header h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--text-muted); max-width: 520px; margin: 0 auto; }

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

.service-card {
    padding: 32px; background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); transition: all 0.3s ease;
}
.service-card:hover { background: var(--bg-card-hover); border-color: var(--border); transform: translateY(-4px); box-shadow: 0 10px 40px rgba(0,0,0,0.3); }

.service-card.featured {
    grid-row: span 2; border-color: rgba(99,102,241,0.2);
    background: linear-gradient(135deg, rgba(99,102,241,0.05), var(--bg-card));
}

.service-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; background: rgba(99,102,241,0.12); color: var(--primary-light); }
.service-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }

.service-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.service-list li { font-size: 14px; color: var(--text-muted); padding-left: 20px; position: relative; }
.service-list li::before { content: ''; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); opacity: 0.6; }

.service-price { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border-subtle); }
.price-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(0,212,255,0.08) 0%, rgba(0,102,255,0.06) 100%);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 50px;
    font-size: 12px; font-weight: 600;
    color: #00d4ff;
    letter-spacing: 0.01em;
}
.price-badge::first-letter { font-size: 10px; opacity: 0.8; }

/* ===== AI Solutions ===== */
.ai-solutions {
    padding: 120px 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(0,212,255,0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(0,102,255,0.04) 0%, transparent 60%),
        var(--bg-subtle);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}
.ai-solutions::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    opacity: 0.6;
}
.ai-solutions .container { position: relative; z-index: 1; }

.ai-tag {
    background: linear-gradient(135deg, rgba(0,212,255,0.12), rgba(0,102,255,0.10)) !important;
    border: 1px solid rgba(0,212,255,0.3);
    color: #00d4ff !important;
    box-shadow: 0 0 20px rgba(0,212,255,0.1);
}

.ai-grid { grid-template-columns: repeat(3, 1fr); }

.ai-card {
    background: linear-gradient(180deg, rgba(0,212,255,0.02), var(--bg-card));
    border-color: rgba(0,212,255,0.10);
    transition: all 0.3s ease;
}
.ai-card:hover {
    border-color: rgba(0,212,255,0.35);
    background: linear-gradient(180deg, rgba(0,212,255,0.05), var(--bg-card-hover));
    box-shadow: 0 10px 40px rgba(0,212,255,0.08), 0 0 0 1px rgba(0,212,255,0.15) inset;
    transform: translateY(-4px);
}

.ai-card.featured {
    grid-row: span 2;
    border-color: rgba(0,212,255,0.25);
    background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(0,102,255,0.03), var(--bg-card));
}

.ai-icon {
    background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(0,102,255,0.10)) !important;
    color: #00d4ff !important;
    box-shadow: 0 0 24px rgba(0,212,255,0.12);
}

.ai-badge {
    background: linear-gradient(135deg, rgba(0,212,255,0.15) 0%, rgba(0,102,255,0.10) 100%) !important;
    border-color: rgba(0,212,255,0.35) !important;
    color: #00d4ff !important;
    box-shadow: 0 0 12px rgba(0,212,255,0.10);
}

.ai-card.ai-rd {
    background: linear-gradient(180deg, rgba(0,212,255,0.04), var(--bg-card));
    border: 1px dashed rgba(0,212,255,0.25);
}
.ai-card.ai-rd p em {
    color: #00d4ff;
    font-style: normal;
    font-weight: 500;
}

@media (max-width: 1024px) {
    .ai-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-card.featured { grid-row: span 1; }
}
@media (max-width: 640px) {
    .ai-grid { grid-template-columns: 1fr; }
}

/* ===== Portfolio ===== */
.portfolio { padding: 120px 0; background: var(--bg-subtle); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }

.portfolio-filter { display: flex; justify-content: center; gap: 8px; margin-bottom: 48px; flex-wrap: wrap; }
.filter-btn {
    padding: 8px 18px; border-radius: 50px; font-size: 13px; font-weight: 500;
    background: transparent; border: 1px solid var(--border); color: var(--text-muted);
    cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.filter-btn:hover { border-color: var(--text-subtle); color: var(--text); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: white; }

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

.portfolio-item {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl); overflow: hidden; transition: all 0.3s ease;
}
.portfolio-item:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.portfolio-item.hidden { display: none; }

.portfolio-preview { padding: 20px 20px 0; }
.preview-browser { border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; border: 1px solid var(--border-subtle); border-bottom: none; }

/* Portfolio mockup innards */
.portfolio-mockup { height: 220px; overflow: hidden; background: var(--bg); }
.m-nav { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.05); }
.m-logo { width: 40px; height: 10px; background: rgba(255,255,255,0.2); border-radius: 3px; }
.m-links { display: flex; gap: 8px; }
.m-links span { width: 30px; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; }
.m-phone-btn { width: 60px; height: 16px; background: var(--green); border-radius: 4px; opacity: 0.7; }

.m-hero { padding: 20px 14px; position: relative; }
.m-hero-text { position: relative; z-index: 1; }
.m-h1 { height: 10px; width: 70%; background: rgba(255,255,255,0.4); border-radius: 4px; margin-bottom: 8px; }
.m-p { height: 6px; width: 50%; background: rgba(255,255,255,0.15); border-radius: 3px; margin-bottom: 10px; }
.m-btn { width: 60px; height: 16px; background: var(--primary); border-radius: 4px; }
.m-btn-group { display: flex; gap: 6px; }

.m-cards { display: flex; gap: 8px; padding: 10px 14px; }
.m-card { flex: 1; padding: 10px; background: rgba(255,255,255,0.03); border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }
.m-card-icon { width: 20px; height: 20px; border-radius: 6px; margin-bottom: 8px; }
.m-card-lines div { height: 4px; background: rgba(255,255,255,0.08); border-radius: 3px; margin-bottom: 4px; }
.m-card-lines div:last-child { width: 60%; }

.m-features { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px; }
.m-feature { display: flex; align-items: center; gap: 10px; }
.m-circle { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; }
.m-line { height: 5px; flex: 1; background: rgba(255,255,255,0.06); border-radius: 3px; }

.m-menu-grid { display: flex; gap: 8px; padding: 10px 14px; }
.m-menu-item { flex: 1; }
.m-food-img { height: 40px; background: rgba(255,255,255,0.06); border-radius: 6px; margin-bottom: 6px; }
.m-price { height: 5px; width: 30px; background: var(--orange); border-radius: 3px; opacity: 0.5; }

.m-trust-bar { display: flex; gap: 8px; padding: 10px 14px; }
.m-trust-item { flex: 1; height: 24px; background: rgba(255,255,255,0.04); border-radius: 6px; border: 1px solid rgba(255,255,255,0.05); }

.m-services-list { padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; }
.m-service-row { height: 18px; background: rgba(255,255,255,0.04); border-radius: 6px; border: 1px solid rgba(255,255,255,0.05); }

.portfolio-info { padding: 24px; }
.portfolio-tag { display: inline-block; padding: 3px 10px; background: rgba(99,102,241,0.1); border-radius: 50px; font-size: 11px; color: var(--primary-light); font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.portfolio-info h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.portfolio-info p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }

.portfolio-stats { display: flex; gap: 24px; }
.p-stat strong { display: block; font-size: 18px; font-family: 'Space Grotesk', sans-serif; color: var(--green); }
.p-stat span { font-size: 12px; color: var(--text-subtle); }

/* ===== Industries ===== */
.industries { padding: 120px 0; }
.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.industry-card {
    padding: 24px; background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); text-align: center; transition: all 0.3s ease;
}
.industry-card:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }

.industry-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.industry-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.industry-card p { font-size: 13px; color: var(--text-subtle); }

/* ===== Process ===== */
.process { padding: 120px 0; background: var(--bg-subtle); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }

.process-timeline { max-width: 700px; margin: 0 auto; }
.process-step { display: flex; gap: 24px; margin-bottom: 16px; }

.step-marker { display: flex; flex-direction: column; align-items: center; }
.step-number {
    width: 40px; height: 40px; border-radius: 50%; background: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-family: 'Space Grotesk', sans-serif; font-size: 16px; flex-shrink: 0;
}
.step-line { width: 2px; flex: 1; background: var(--border); margin: 8px 0; min-height: 40px; }
.process-step:last-child .step-line { display: none; }

.step-content {
    padding: 0 0 32px; flex: 1;
}
.step-duration { font-size: 12px; color: var(--primary-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; }
.step-content h3 { font-size: 20px; font-weight: 600; margin: 4px 0 8px; }
.step-content p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ===== Testimonials ===== */
.testimonials { padding: 120px 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.testimonial-card {
    padding: 32px; background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg); transition: all 0.3s ease;
}
.testimonial-card:hover { border-color: var(--border); transform: translateY(-4px); box-shadow: 0 10px 40px rgba(0,0,0,0.3); }

.testimonial-stars { display: flex; gap: 3px; margin-bottom: 16px; }
.testimonial-card > p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; font-style: italic; }

.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: white; flex-shrink: 0; }
.testimonial-author strong { display: block; font-size: 14px; }
.testimonial-author span { font-size: 12px; color: var(--text-subtle); }

/* ===== CTA ===== */
.cta-section { padding: 120px 0; position: relative; overflow: hidden; background: linear-gradient(135deg, #4338ca, var(--accent)); }
.cta-bg { position: absolute; inset: 0; }
.orb-cta-1 { width: 400px; height: 400px; background: rgba(255,255,255,0.08); top: -100px; right: -100px; border-radius: 50%; position: absolute; filter: blur(60px); }
.orb-cta-2 { width: 300px; height: 300px; background: rgba(6,182,212,0.15); bottom: -100px; left: -100px; border-radius: 50%; position: absolute; filter: blur(60px); }

.cta-content { position: relative; text-align: center; z-index: 2; }
.cta-content h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; margin-bottom: 16px; color: white; }
.cta-content > p { font-size: 17px; color: rgba(255,255,255,0.8); max-width: 480px; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.cta-note { font-size: 13px; color: rgba(255,255,255,0.5); }

/* ===== Footer ===== */
.footer { padding: 80px 0 40px; background: var(--bg); border-top: 1px solid var(--border-subtle); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; margin: 16px 0; max-width: 300px; line-height: 1.7; }
.footer-links h4 { font-size: 14px; font-weight: 600; margin-bottom: 20px; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid var(--border-subtle); }
.footer-bottom p { font-size: 13px; color: var(--text-subtle); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 13px; color: var(--text-subtle); transition: color 0.2s; }
.footer-legal a:hover { color: var(--text); }

/* ===== Rich Portfolio Mockups ===== */
.browser-url {
    flex: 1; margin-left: 10px; padding: 3px 10px;
    background: rgba(255,255,255,0.05); border-radius: 4px;
    font-size: 9px; color: var(--text-subtle); font-family: 'SF Mono', monospace;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.portfolio-mockup { height: 320px; overflow: hidden; font-family: -apple-system, BlinkMacSystemFont, sans-serif; position: relative; }

/* Live iframe demo previews — scrollable mini-site inside browser chrome */
.portfolio-iframe {
    width: 200%;
    height: 800px;
    border: none;
    transform: scale(0.5);
    transform-origin: top left;
    display: block;
    background: #fff;
    pointer-events: auto;
}
.preview-browser:has(.portfolio-iframe) {
    height: 400px;
    overflow: hidden;
    position: relative;
}
.portfolio-preview:hover .portfolio-iframe {
    /* subtle cursor hint that iframe is interactive */
}

/* Nav bar */
.m-nav-real {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 14px; font-size: 8px; position: relative; z-index: 2;
}
.m-brand { font-weight: 700; font-size: 10px; letter-spacing: 0.5px; }
.m-nav-links { display: flex; gap: 8px; font-size: 7px; color: rgba(255,255,255,.6); align-items: center; }
.m-nav-links span { white-space: nowrap; }
.m-nav-cta { padding: 4px 10px; border-radius: 4px; font-weight: 700; font-size: 6.5px; white-space: nowrap; box-shadow: 0 1px 4px rgba(0,0,0,.15); }

/* Glassmorphism nav variant */
.mockup-restaurant .m-nav-real {
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    background: rgba(0,0,0,.6) !important;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

/* Rich Hero — NexaFlow-style */
.m-hero-rich { padding: 0; min-height: 160px; position: relative; overflow: hidden; }
.m-hero-fullbleed { min-height: 180px; }
.m-hero-inner { position: relative; z-index: 2; padding: 18px 16px 12px; }

/* Grid overlay on every hero (like NexaFlow) */
.m-hero-rich::after {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
}

.m-eyebrow { font-size: 5.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.m-headline { font-size: 16px; font-weight: 800; line-height: 1.15; margin-bottom: 6px; letter-spacing: -0.03em; }
.m-desc { font-size: 7px; line-height: 1.6; margin-bottom: 10px; max-width: 220px; }

.m-cta-row { display: flex; gap: 5px; flex-wrap: wrap; }
.m-cta-pill {
    font-size: 6px; font-weight: 700; padding: 5px 12px;
    border-radius: 5px; white-space: nowrap; letter-spacing: 0.02em;
}
.m-cta-ghost { background: transparent; border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.8); }

/* CTA glow effects per industry */
.mockup-law .m-cta-pill:first-child { box-shadow: 0 2px 12px rgba(201,168,78,.3); }
.mockup-dental .m-cta-pill:first-child { box-shadow: 0 2px 12px rgba(255,255,255,.2); }
.mockup-restaurant .m-cta-pill:first-child { box-shadow: 0 2px 12px rgba(251,191,36,.3); }
.mockup-trade .m-cta-pill:first-child { box-shadow: 0 2px 12px rgba(255,255,255,.15); }
.mockup-trade .m-cta-pill:nth-child(2) { box-shadow: 0 2px 12px rgba(239,68,68,.3); }
.mockup-accounting .m-cta-pill:first-child { box-shadow: 0 2px 12px rgba(16,185,129,.3); }
.mockup-auto .m-cta-pill:first-child { box-shadow: 0 2px 12px rgba(251,191,36,.3); }

/* Hero decorative elements */
.m-hero-decor { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* Gradient orbs — NexaFlow style per industry */
.law-decor {
    background:
        radial-gradient(ellipse 120px 120px at 85% 25%, rgba(201,168,78,.25) 0%, transparent 70%),
        radial-gradient(ellipse 80px 80px at 95% 85%, rgba(99,102,241,.15) 0%, transparent 70%),
        radial-gradient(ellipse 60px 60px at 15% 70%, rgba(201,168,78,.08) 0%, transparent 70%);
}

.dental-decor {
    background:
        radial-gradient(ellipse 130px 130px at 88% 15%, rgba(255,255,255,.18) 0%, transparent 70%),
        radial-gradient(ellipse 100px 100px at 75% 95%, rgba(6,182,212,.15) 0%, transparent 70%),
        radial-gradient(ellipse 70px 70px at 10% 50%, rgba(255,255,255,.08) 0%, transparent 70%);
}

.restaurant-decor {
    background:
        radial-gradient(ellipse 140px 140px at 80% 20%, rgba(251,191,36,.18) 0%, transparent 70%),
        radial-gradient(ellipse 100px 100px at 20% 80%, rgba(220,38,38,.08) 0%, transparent 70%),
        radial-gradient(ellipse 60px 60px at 50% 50%, rgba(251,191,36,.06) 0%, transparent 70%);
}

.trade-decor {
    background:
        radial-gradient(ellipse 120px 120px at 90% 30%, rgba(96,165,250,.2) 0%, transparent 70%),
        radial-gradient(ellipse 90px 90px at 10% 80%, rgba(37,99,235,.12) 0%, transparent 70%),
        radial-gradient(ellipse 70px 70px at 50% 10%, rgba(239,68,68,.06) 0%, transparent 70%);
}

.accounting-decor {
    background:
        radial-gradient(ellipse 130px 130px at 85% 20%, rgba(110,231,183,.18) 0%, transparent 70%),
        radial-gradient(ellipse 90px 90px at 15% 75%, rgba(16,185,129,.1) 0%, transparent 70%),
        radial-gradient(ellipse 60px 60px at 60% 90%, rgba(5,150,105,.06) 0%, transparent 70%);
}

.auto-decor {
    background:
        radial-gradient(ellipse 120px 120px at 85% 30%, rgba(251,191,36,.18) 0%, transparent 70%),
        radial-gradient(ellipse 100px 100px at 15% 75%, rgba(220,38,38,.15) 0%, transparent 70%),
        radial-gradient(ellipse 70px 70px at 50% 10%, rgba(251,191,36,.05) 0%, transparent 70%);
}

/* Stat bar (law firm) */
.m-hero-stat-bar {
    display: flex; justify-content: space-around; padding: 8px 16px;
    position: relative; z-index: 2;
}
.m-stat-item { text-align: center; }
.m-stat-num { font-size: 11px; font-weight: 800; letter-spacing: -0.02em; }
.m-stat-lbl { font-size: 5.5px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 1px; }

/* Cards section */
.m-cards-section { padding: 10px 14px; position: relative; }

/* Glass-style rich cards */
.mockup-law .m-rich-card,
.mockup-accounting .m-rich-card {
    background: rgba(255,255,255,.8);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.m-section-label { font-size: 5.5px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }

/* Rich cards (law, accounting) */
.m-card-row { display: flex; gap: 6px; }
.m-rich-card {
    flex: 1; display: flex; align-items: flex-start; gap: 6px;
    padding: 8px; border-radius: 6px; border: 1px solid rgba(0,0,0,.06);
    background: rgba(255,255,255,.6);
}
.m-rc-icon {
    width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; color: #fff; text-align: center; line-height: 22px;
}
.m-rc-title { font-size: 7px; font-weight: 700; color: #1a1a2e; margin-bottom: 1px; }
.m-rc-desc { font-size: 5.5px; color: #6b7280; line-height: 1.4; }

/* Service chips (dental) */
.m-service-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 8px; border-radius: 20px; border: 1px solid;
    font-size: 6.5px; font-weight: 600; color: #374151;
    background: #fff; margin: 2px;
}
.m-sc-dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

/* Menu (restaurant) */
.m-menu-rich { display: flex; flex-direction: column; gap: 0; }
.m-menu-entry {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.m-menu-entry:last-child { border-bottom: none; }
.m-dish { font-size: 7.5px; font-weight: 600; color: #fff; display: block; }
.m-dish-desc { font-size: 5.5px; color: rgba(255,255,255,.35); display: block; margin-top: 1px; }
.m-price { font-size: 8px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }

/* Trust row (HVAC) */
.m-trust-row { display: flex; gap: 6px; }
.m-trust-card {
    flex: 1; text-align: center; padding: 8px 4px;
    background: #f8fafc; border-radius: 6px; border: 1px solid #e5e7eb;
}
.m-tc-num { font-size: 12px; font-weight: 800; letter-spacing: -0.02em; }
.m-tc-stars { font-size: 7px; color: #f59e0b; letter-spacing: 1px; }
.m-tc-lbl { font-size: 5.5px; color: #6b7280; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.3px; }

/* Auto services grid */
.m-service-grid-auto { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.m-auto-svc {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 8px; background: rgba(255,255,255,.04); border-radius: 5px;
    border: 1px solid rgba(255,255,255,.06);
}
.m-auto-icon { font-size: 10px; color: rgba(255,255,255,.3); flex-shrink: 0; width: 16px; text-align: center; }
.m-auto-name { font-size: 6.5px; font-weight: 600; color: rgba(255,255,255,.8); flex: 1; }
.m-auto-price { font-size: 6px; font-weight: 700; white-space: nowrap; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .service-card.featured { grid-row: span 1; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .industries-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero-browsers { gap: 16px; }
    .floating-browser { width: 220px; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-toggle { display: flex; }
    .nav-links.active {
        display: flex; flex-direction: column; position: absolute;
        top: 100%; left: 0; right: 0; background: rgba(7,7,10,0.95);
        backdrop-filter: blur(20px); padding: 20px 24px;
        border-bottom: 1px solid var(--border-subtle); gap: 16px;
    }

    .hero { padding: 120px 0 40px; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .stat-divider { width: 40px; height: 1px; }
    .hero-browsers { flex-direction: column; align-items: center; gap: 20px; }
    .floating-browser { width: 280px; transform: none !important; }
    .browser-2 { transform: none !important; }

    .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .industries-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .cta-section { padding: 80px 0; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { justify-content: center; }
    .industries-grid { grid-template-columns: 1fr; }
}
