/* ============================================
   SOFEX Technologies — Landing Page Styles
   ============================================ */

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

:root {
    --blue-50: #eef4ff;
    --blue-100: #d9e6ff;
    --blue-200: #bcd4ff;
    --blue-300: #8ebbff;
    --blue-400: #5896ff;
    --blue-500: #3272ff;
    --blue-600: #1a54f5;
    --blue-700: #1340e1;
    --blue-800: #1634b6;
    --blue-900: #18308f;
    --blue-950: #0f1d57;

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --gray-950: #020617;

    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);

    --nav-height: 72px;
}

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

body {
    font-family: var(--font-primary);
    background: var(--gray-950);
    color: var(--gray-300);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* --- Cursor Glow --- */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(50, 114, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover .cursor-glow { opacity: 1; }

/* --- Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: background 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}

.nav--scrolled {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

.nav__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav__logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.3s var(--ease-out-expo);
}

.nav__logo:hover .nav__logo-img {
    transform: scale(1.05);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-400);
    transition: color 0.2s;
    position: relative;
}

.nav__links a:not(.nav__cta):hover { color: var(--gray-100); }

.nav__links a:not(.nav__cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-500);
    transition: width 0.3s var(--ease-out-expo);
}

.nav__links a:not(.nav__cta):hover::after { width: 100%; }

.nav__cta {
    padding: 8px 20px;
    background: var(--blue-600);
    color: white !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s, transform 0.2s;
}

.nav__cta:hover {
    background: var(--blue-500);
    transform: translateY(-1px);
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-300);
    transition: transform 0.3s, opacity 0.3s;
}

.nav__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
    display: none;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
}

.nav__mobile.open { display: block; }

.nav__mobile ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nav__mobile a {
    font-size: 16px;
    color: var(--gray-300);
    font-weight: 500;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    font-family: var(--font-primary);
    cursor: pointer;
    border: none;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--blue-600);
    color: white;
    box-shadow: 0 0 0 0 rgba(50, 114, 255, 0.3);
}

.btn--primary:hover {
    background: var(--blue-500);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(50, 114, 255, 0.3);
}

.btn--ghost {
    background: transparent;
    color: var(--gray-300);
    border: 1px solid var(--gray-700);
}

.btn--ghost:hover {
    border-color: var(--gray-500);
    color: white;
    transform: translateY(-2px);
}

.btn--lg {
    padding: 18px 36px;
    font-size: 17px;
    border-radius: 14px;
}

/* --- Section Common --- */
.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--blue-400);
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(50, 114, 255, 0.1);
    border: 1px solid rgba(50, 114, 255, 0.15);
    border-radius: 100px;
}

.section-tag--ai {
    color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    color: var(--gray-100);
    line-height: 1.15;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 18px;
    color: var(--gray-400);
    max-width: 600px;
    line-height: 1.7;
}

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

.section-header .section-desc { margin: 0 auto; }

.gradient-text {
    background: linear-gradient(135deg, var(--blue-400), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-ai {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: calc(var(--nav-height) + 40px) 0 60px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(50, 114, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 114, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: orbFloat 20s ease-in-out infinite;
}

.hero__orb--1 {
    width: 600px; height: 600px;
    background: rgba(50, 114, 255, 0.12);
    top: -200px; right: -100px;
}

.hero__orb--2 {
    width: 400px; height: 400px;
    background: rgba(139, 92, 246, 0.08);
    bottom: -100px; left: -100px;
    animation-delay: -7s;
}

.hero__orb--3 {
    width: 300px; height: 300px;
    background: rgba(6, 182, 212, 0.06);
    top: 50%; left: 50%;
    animation-delay: -14s;
}

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

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content {
    min-width: 0;
    max-width: 100%;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-purple);
    margin-bottom: 24px;
}

.hero__badge-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-purple);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero__title-line {
    display: block;
    color: var(--gray-100);
}

.hero__title-gradient {
    background: linear-gradient(135deg, var(--blue-400), var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero__subtitle {
    font-size: 18px;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero__actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
    max-width: 100%;
}

.hero__stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.hero__stat {
    display: flex;
    flex-direction: column;
}

.hero__stat-row {
    display: flex;
    align-items: baseline;
    gap: 0;
}

.hero__stat-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--gray-100);
    line-height: 1;
}

.hero__stat-plus {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--blue-400);
    line-height: 1;
}

.hero__stat-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 4px;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--gray-800);
}

/* --- Hero Dashboard Mock --- */
.hero__dashboard {
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,0.5), 0 0 60px rgba(50, 114, 255, 0.05);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.6s var(--ease-out-expo);
}

.hero__dashboard:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

.hero__dashboard-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--gray-800);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.hero__dashboard-dots {
    display: flex;
    gap: 6px;
}

.hero__dashboard-dots span {
    width: 10px; height: 10px;
    border-radius: 50%;
}

.hero__dashboard-dots span:nth-child(1) { background: #ff5f57; }
.hero__dashboard-dots span:nth-child(2) { background: #ffbd2e; }
.hero__dashboard-dots span:nth-child(3) { background: #28ca41; }

.hero__dashboard-title {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
}

.hero__dashboard-body {
    display: grid;
    grid-template-columns: 140px 1fr;
    min-height: 300px;
}

.hero__dashboard-sidebar {
    border-right: 1px solid var(--gray-800);
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero__dash-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 11px;
    color: var(--gray-500);
    cursor: default;
    transition: all 0.2s;
}

.hero__dash-nav-item.active {
    background: rgba(50, 114, 255, 0.1);
    color: var(--blue-400);
}

.hero__dashboard-main {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.hero__dash-card {
    background: var(--gray-800);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.03);
}

.hero__dash-card-label {
    font-size: 10px;
    color: var(--gray-500);
    display: block;
    margin-bottom: 4px;
}

.hero__dash-card-value {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-100);
    display: block;
}

.hero__dash-card-change {
    font-size: 10px;
    font-weight: 600;
    display: inline-block;
    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 4px;
}

.hero__dash-card-change.positive {
    color: var(--accent-emerald);
    background: rgba(16, 185, 129, 0.1);
}

.ai-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.hero__dash-chart {
    background: var(--gray-800);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.03);
}

.hero__dash-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 11px;
    color: var(--gray-400);
    font-weight: 500;
}

.hero__dash-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
}

.hero__dash-bar {
    flex: 1;
    height: var(--h);
    background: linear-gradient(to top, var(--blue-700), var(--blue-500));
    border-radius: 4px 4px 0 0;
    position: relative;
    animation: barGrow 1.2s var(--ease-out-expo) forwards;
    transform-origin: bottom;
    opacity: 0;
}

.hero__dash-bar.forecast {
    background: linear-gradient(to top, rgba(139, 92, 246, 0.4), rgba(139, 92, 246, 0.7));
    border: 1px dashed rgba(139, 92, 246, 0.5);
}

.hero__dash-bar span {
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: var(--gray-600);
}

@keyframes barGrow {
    from { transform: scaleY(0); opacity: 0; }
    to { transform: scaleY(1); opacity: 1; }
}

.hero__dash-ai-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 10px;
}

.hero__dash-ai-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-purple);
}

.hero__dash-ai-text {
    font-size: 11px;
    color: var(--gray-400);
    overflow: hidden;
}

.typing-text {
    display: inline-block;
    border-right: 2px solid var(--accent-purple);
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typing 4s steps(70) 1s forwards, blink 0.8s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* --- Marquee --- */
.marquee {
    padding: 24px 0;
    border-top: 1px solid var(--gray-800);
    border-bottom: 1px solid var(--gray-800);
    background: rgba(15, 23, 42, 0.5);
    overflow: hidden;
}

.marquee__track {
    display: flex;
    width: max-content;
}

.marquee__content {
    display: flex;
    align-items: center;
    gap: 32px;
    animation: marqueeScroll 30s linear infinite;
    padding-right: 32px;
}

.marquee__content span {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-600);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee__highlight {
    color: var(--gray-200) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, var(--blue-400), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.marquee__dot {
    width: 6px !important;
    height: 6px;
    border-radius: 50%;
    background: var(--blue-500);
    flex-shrink: 0;
    display: inline-block;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- Services --- */
.services {
    padding: 120px 0;
    position: relative;
}

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

.service-card {
    position: relative;
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.4s var(--ease-out-expo);
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--gray-700);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.service-card__glow {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue-500), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

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

.service-card--featured {
    grid-column: span 1;
    grid-row: span 2;
    background: linear-gradient(145deg, var(--gray-900), rgba(50, 114, 255, 0.03));
    border-color: rgba(50, 114, 255, 0.15);
}

.service-card--featured .service-card__glow {
    background: linear-gradient(90deg, transparent, var(--blue-400), transparent);
}

.service-card--ai {
    grid-column: span 1;
    grid-row: span 2;
    background: linear-gradient(145deg, var(--gray-900), rgba(139, 92, 246, 0.03));
    border-color: rgba(139, 92, 246, 0.15);
}

.service-card--ai .service-card__glow {
    background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
}

.service-card__icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: rgba(50, 114, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-400);
    margin-bottom: 20px;
    transition: transform 0.3s var(--ease-out-expo);
}

.service-card--ai .service-card__icon {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
}

.service-card:hover .service-card__icon { transform: scale(1.1); }

.service-card__badge {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(50, 114, 255, 0.1);
    color: var(--blue-400);
    border: 1px solid rgba(50, 114, 255, 0.2);
}

.service-card__badge--ai {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    border-color: rgba(139, 92, 246, 0.2);
}

.service-card__title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-100);
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-card__features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-card__features li {
    font-size: 13px;
    color: var(--gray-300);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-card__features li::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--blue-500);
    flex-shrink: 0;
}

.service-card--ai .service-card__features li::before {
    background: var(--accent-purple);
}

/* --- AI Section --- */
.ai-section {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--gray-950) 0%, rgba(15, 23, 42, 1) 50%, var(--gray-950) 100%);
}

.ai-section__bg {
    position: absolute;
    inset: 0;
}

.ai-section__particles {
    position: absolute;
    inset: 0;
}

.ai-particle {
    position: absolute;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: var(--accent-purple);
    opacity: 0;
    animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0) scale(0); }
    20% { opacity: 0.6; transform: translateY(-20px) scale(1); }
    80% { opacity: 0.3; transform: translateY(-80px) scale(0.5); }
    100% { opacity: 0; transform: translateY(-100px) scale(0); }
}

.ai-section__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-title--light { color: white; }

.ai-section__desc {
    font-size: 18px;
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 40px;
}

.ai-section__features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ai-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.ai-feature__icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    flex-shrink: 0;
}

.ai-feature h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-100);
    margin-bottom: 4px;
}

.ai-feature p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
}

/* AI Visual - Orbital (spinning) */
.ai-visual {
    width: 400px;
    height: 400px;
    position: relative;
    margin: 0 auto;
}

.ai-visual__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.1);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: ringRotate 20s linear infinite;
}

.ai-visual__ring--1 {
    width: 200px; height: 200px;
    border-color: rgba(139, 92, 246, 0.15);
}

.ai-visual__ring--2 {
    width: 300px; height: 300px;
    animation-direction: reverse;
    animation-duration: 30s;
}

.ai-visual__ring--3 {
    width: 380px; height: 380px;
    animation-duration: 40s;
}

@keyframes ringRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.ai-visual__core {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    animation: coreGlow 3s ease-in-out infinite;
}

@keyframes coreGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.1); }
    50% { box-shadow: 0 0 40px rgba(139, 92, 246, 0.25); }
}

.ai-visual__nodes {
    position: absolute;
    inset: 0;
    animation: nodesOrbit 25s linear infinite;
}

@keyframes nodesOrbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.ai-visual__node {
    position: absolute;
    top: 50%; left: 50%;
    width: 52px; height: 52px;
    margin: -26px 0 0 -26px;
    opacity: 0;
    animation: nodeAppear 0.6s var(--ease-out-expo) forwards;
    animation-delay: var(--delay);
}

.ai-visual__node span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; height: 100%;
    border-radius: 12px;
    background: var(--gray-900);
    border: 1px solid var(--gray-700);
    font-size: 11px;
    font-weight: 700;
    color: var(--gray-300);
    letter-spacing: 1px;
    transition: all 0.3s;
    /* Counter-rotate to keep text upright */
    animation: nodeCounterRotate 25s linear infinite;
}

@keyframes nodeCounterRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

.ai-visual__node:hover span {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.08);
}

@keyframes nodeAppear {
    from { opacity: 0; transform: translate(80px, 0) scale(0.5); }
    to { opacity: 1; transform: translate(var(--tx), var(--ty)) scale(1); }
}

/* --- Industries (clean grid) --- */
.industries {
    padding: 120px 0;
}

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

.industry-card {
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: 16px;
    padding: 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all 0.4s var(--ease-out-expo);
    cursor: default;
}

.industry-card:hover {
    border-color: var(--blue-500);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 30px rgba(50, 114, 255, 0.05);
}

.industry-card__icon-wrap {
    width: 60px; height: 60px;
    border-radius: 14px;
    background: rgba(50, 114, 255, 0.08);
    border: 1px solid rgba(50, 114, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-400);
    flex-shrink: 0;
    transition: all 0.3s var(--ease-out-expo);
}

.industry-card:hover .industry-card__icon-wrap {
    background: rgba(50, 114, 255, 0.12);
    transform: scale(1.05);
}

.industry-card__content h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-100);
    margin-bottom: 8px;
}

.industry-card__content p {
    font-size: 14px;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 14px;
}

.industry-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.industry-card__tags span {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    background: var(--gray-800);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.2s;
}

.industry-card:hover .industry-card__tags span {
    color: var(--blue-300);
    border-color: rgba(50, 114, 255, 0.15);
}

/* --- Industries: first card (Construcción) spans 2 cols --- */
.industries__grid .industry-card:first-child {
    grid-column: span 2;
}

/* --- Projects --- */
.projects {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--gray-950), rgba(50, 114, 255, 0.02), var(--gray-950));
}

.projects__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.projects__counters {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.projects__counter-number {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 800;
    color: var(--gray-100);
    line-height: 1;
}

.projects__counter-number::after {
    content: '+';
    color: var(--blue-400);
}

.projects__counter-label {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 8px;
    line-height: 1.4;
}

.projects__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    perspective: 800px;
}

.project-tag {
    padding: 10px 18px;
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-400);
    transition: all 0.3s var(--ease-out-expo);
    cursor: default;
    animation: tagFloat 3s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.2s);
}

.project-tag:hover {
    border-color: var(--blue-500);
    color: var(--blue-400);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 30px rgba(50, 114, 255, 0.1);
}

.project-tag--ai {
    border-color: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
}

.project-tag--ai:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.1);
}

@keyframes tagFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* --- Process --- */
.process {
    padding: 120px 0;
}

.process__steps {
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
}

.process__step {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 32px 20px;
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    border-radius: 16px;
    transition: all 0.4s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(30px);
}

.process__step.step-visible {
    opacity: 1;
    transform: translateY(0);
}

.process__step:hover {
    border-color: var(--blue-600);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 30px rgba(50, 114, 255, 0.06);
}

.process__step-number {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue-500), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 16px;
}

.process__step h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-100);
    margin-bottom: 8px;
}

.process__step p {
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.6;
    flex: 1;
}

.process__connector {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-600), var(--accent-purple));
    flex-shrink: 0;
    align-self: center;
    opacity: 0;
    transition: opacity 0.4s 0.2s;
}

.process__connector.step-visible {
    opacity: 0.3;
}

/* --- CTA --- */
.cta {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.cta__bg {
    position: absolute;
    inset: 0;
}

.cta__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
}

.cta__orb--1 {
    width: 500px; height: 500px;
    background: rgba(50, 114, 255, 0.1);
    top: -200px; left: 50%;
    transform: translateX(-50%);
}

.cta__orb--2 {
    width: 400px; height: 400px;
    background: rgba(139, 92, 246, 0.08);
    bottom: -200px; left: 50%;
    transform: translateX(-50%);
}

.cta__content {
    position: relative;
    z-index: 1;
}

.cta__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    color: var(--gray-100);
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta__desc {
    font-size: 18px;
    color: var(--gray-400);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.cta__logo {
    height: 64px;
    width: auto;
    margin: 0 auto 32px;
    opacity: 0.9;
}

.cta__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.cta__socials {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.cta__social {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: var(--gray-900);
    border: 1px solid var(--gray-800);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all 0.3s var(--ease-out-expo);
}

.cta__social:hover {
    border-color: var(--blue-500);
    color: var(--blue-400);
    transform: translateY(-2px);
}

/* --- Footer --- */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--gray-800);
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer__logo {
    height: 36px;
    width: auto;
    margin-bottom: 12px;
}

.footer__brand p {
    font-size: 14px;
    color: var(--gray-500);
    font-style: italic;
}

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

.footer__col h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer__col a {
    display: block;
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer__col a:hover { color: var(--gray-200); }

.footer__bottom {
    padding-top: 24px;
    border-top: 1px solid var(--gray-800);
}

.footer__bottom p {
    font-size: 13px;
    color: var(--gray-600);
    text-align: center;
}

/* ============================================
   RESPONSIVE — TURBO MOBILE
   ============================================ */

/* --- Tablet landscape & small desktops --- */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero__dashboard {
        transform: none;
        max-width: 600px;
        margin: 0 auto;
    }

    .hero__dashboard:hover { transform: none; }

    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-card--featured,
    .service-card--ai {
        grid-column: span 1;
        grid-row: span 1;
    }

    .ai-section { padding: 100px 0; }

    .ai-section__layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .industries__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries__grid .industry-card:first-child {
        grid-column: span 2;
    }

    .projects__layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .process__steps {
        flex-direction: column;
        gap: 16px;
    }

    .process__connector {
        width: 2px;
        height: 24px;
        align-self: center;
    }
}

/* --- Tablet portrait & large phones --- */
@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }

    .nav__links { display: none; }
    .nav__burger { display: flex; }
    .nav__logo-img { height: 40px; }

    .nav__container { padding: 0 16px; }

    .nav__mobile {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        padding: 32px 24px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav__mobile ul { gap: 24px; }

    .nav__mobile a {
        font-size: 18px;
        padding: 8px 0;
        display: block;
    }

    /* Hero */
    .hero {
        padding-top: calc(var(--nav-height) + 20px);
        padding-bottom: 40px;
        min-height: auto;
    }

    .hero__container {
        padding: 0 16px;
        overflow: hidden;
    }

    .hero__content {
        max-width: 100%;
        overflow: hidden;
    }

    .hero__visual {
        max-width: 100%;
        overflow: hidden;
    }

    .hero__title {
        font-size: clamp(28px, 8vw, 48px);
        margin-bottom: 16px;
    }

    .hero__badge {
        font-size: 12px;
        margin-bottom: 16px;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero__subtitle {
        font-size: 16px;
        margin-bottom: 28px;
        max-width: 100%;
    }

    .hero__actions {
        margin-bottom: 32px;
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero__stats {
        flex-direction: column;
        gap: 0;
        align-items: stretch;
    }

    .hero__stat {
        padding: 12px 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px solid var(--gray-800);
    }

    .hero__stat:last-child { border-bottom: none; }

    .hero__stat-row { order: 2; }

    .hero__stat-label {
        font-size: 13px;
        margin-top: 0;
        order: 1;
    }

    .hero__stat-number { font-size: 28px; }
    .hero__stat-plus { font-size: 28px; }
    .hero__stat-divider { display: none; }

    /* Dashboard */
    .hero__dashboard {
        max-width: 100%;
        border-radius: 12px;
    }

    .hero__dashboard-body { grid-template-columns: 1fr; }
    .hero__dashboard-sidebar { display: none; }
    .hero__dash-cards { grid-template-columns: repeat(2, 1fr); }
    .hero__dash-card { padding: 10px; }
    .hero__dash-card-value { font-size: 16px; }
    .hero__dash-chart-bars { height: 60px; }

    /* Marquee */
    .marquee__content span { font-size: 14px; }
    .marquee__highlight { font-size: 15px !important; }

    /* Sections general */
    .services { padding: 80px 0; }
    .ai-section { padding: 80px 0; }
    .industries { padding: 80px 0; }
    .projects { padding: 80px 0; }
    .process { padding: 80px 0; }
    .cta { padding: 80px 0; }

    .section-header { margin-bottom: 40px; }
    .section-desc { font-size: 16px; }
    .section-tag { font-size: 11px; letter-spacing: 1.5px; padding: 5px 12px; }

    /* Services */
    .services__grid { grid-template-columns: 1fr; }
    .service-card { padding: 24px; }
    .service-card__icon { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px; }
    .service-card__title { font-size: 19px; }
    .service-card__desc { font-size: 13px; }

    /* AI section */
    .ai-section__desc { font-size: 16px; margin-bottom: 28px; }

    .ai-visual { width: 240px; height: 240px; margin-top: 20px; }
    .ai-visual__ring--3 { width: 230px; height: 230px; }
    .ai-visual__ring--2 { width: 175px; height: 175px; }
    .ai-visual__ring--1 { width: 115px; height: 115px; }
    .ai-visual__core { width: 56px; height: 56px; }
    .ai-visual__node { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
    .ai-visual__node span { font-size: 8px; border-radius: 10px; }

    /* Industries */
    .industries__grid { grid-template-columns: 1fr; }
    .industries__grid .industry-card:first-child { grid-column: span 1; }
    .industry-card { padding: 24px; gap: 16px; }
    .industry-card__icon-wrap { width: 50px; height: 50px; border-radius: 12px; }
    .industry-card__content h3 { font-size: 18px; }
    .industry-card__content p { font-size: 13px; }

    /* Projects */
    .projects__counters {
        flex-wrap: wrap;
        gap: 24px;
    }
    .projects__counter-number { font-size: 40px; }
    .projects__counter-label { font-size: 13px; }
    .project-tag { padding: 8px 14px; font-size: 12px; }

    /* Process */
    .process__step { padding: 24px 16px; }
    .process__step-number { font-size: 32px; }
    .process__step h3 { font-size: 16px; }
    .process__step p { font-size: 12px; }

    /* CTA */
    .cta__title { font-size: clamp(26px, 6vw, 42px); }
    .cta__desc { font-size: 15px; margin-bottom: 28px; }
    .cta__logo { height: 48px; margin-bottom: 24px; }

    .cta__actions {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .cta__actions .btn--lg {
        width: 100%;
        max-width: 340px;
        padding: 16px 24px;
        font-size: 15px;
        justify-content: center;
    }

    .cta__socials { gap: 12px; }
    .cta__social { width: 44px; height: 44px; }

    /* Footer */
    .footer { padding: 48px 0 24px; }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer__links {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer__bottom p { font-size: 11px; }

    /* Reduce heavy animations on mobile for performance */
    .cursor-glow { display: none; }

    .hero__orb--1 { width: 300px; height: 300px; }
    .hero__orb--2 { width: 200px; height: 200px; }
    .hero__orb--3 { width: 150px; height: 150px; }
}

/* --- Small phones --- */
@media (max-width: 480px) {
    .container { padding: 0 14px; }

    .hero__container { padding: 0 14px; }

    .hero__title { font-size: clamp(24px, 7.5vw, 36px); }

    .hero__subtitle { font-size: 15px; line-height: 1.6; }

    .hero__actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        justify-content: center;
        width: 100%;
        font-size: 14px;
        padding: 14px 20px;
    }

    .btn--lg {
        padding: 16px 20px;
        font-size: 15px;
        border-radius: 12px;
    }

    .hero__stats { gap: 16px; }
    .hero__stat-number { font-size: 24px; }
    .hero__stat-plus { font-size: 24px; }

    .hero__dash-cards { grid-template-columns: 1fr; }
    .hero__dash-card-value { font-size: 15px; }

    .marquee__content span { font-size: 12px; gap: 20px; }

    .section-title { font-size: clamp(24px, 6vw, 36px); }

    /* Service cards */
    .service-card { padding: 20px; border-radius: 12px; }
    .service-card__badge { top: 14px; right: 14px; font-size: 9px; }
    .service-card__title { font-size: 17px; }

    /* AI visual even smaller */
    .ai-visual { width: 200px; height: 200px; margin-top: 16px; }
    .ai-visual__ring--3 { width: 190px; height: 190px; }
    .ai-visual__ring--2 { width: 145px; height: 145px; }
    .ai-visual__ring--1 { width: 90px; height: 90px; }
    .ai-visual__core { width: 46px; height: 46px; }
    .ai-visual__node { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
    .ai-visual__node span { font-size: 7px; padding: 3px; }

    .ai-feature { gap: 12px; }
    .ai-feature__icon { width: 38px; height: 38px; border-radius: 10px; }
    .ai-feature h4 { font-size: 15px; }
    .ai-feature p { font-size: 13px; }

    /* Industries */
    .industry-card {
        flex-direction: column;
        padding: 20px;
        border-radius: 12px;
    }
    .industry-card__icon-wrap { width: 44px; height: 44px; }
    .industry-card__tags span { font-size: 10px; padding: 3px 8px; }

    /* Projects */
    .projects__counters { gap: 20px; }
    .projects__counter-number { font-size: 32px; }
    .project-tag { padding: 6px 12px; font-size: 11px; border-radius: 8px; }

    /* Process */
    .process__step { padding: 20px 14px; border-radius: 12px; }
    .process__step-number { font-size: 28px; margin-bottom: 12px; }

    /* CTA */
    .cta { padding: 60px 0; }
    .cta__title { font-size: clamp(22px, 6vw, 34px); }
    .cta__desc { font-size: 14px; }
    .cta__logo { height: 40px; }

    .cta__actions .btn--lg {
        max-width: 100%;
        font-size: 14px;
        padding: 14px 20px;
    }

    /* Footer */
    .footer__links { grid-template-columns: 1fr; }
    .footer__logo { height: 30px; }
    .footer__brand p { font-size: 13px; }
    .footer__col h4 { font-size: 12px; margin-bottom: 12px; }
    .footer__col a { font-size: 13px; margin-bottom: 8px; }
    .footer__bottom p { font-size: 10px; }
}

/* --- Extra small phones (iPhone SE, etc.) --- */
@media (max-width: 360px) {
    .container { padding: 0 12px; }
    .hero__container { padding: 0 12px; }

    .hero__title { font-size: clamp(22px, 7vw, 30px); }
    .hero__subtitle { font-size: 14px; }

    .hero__badge { font-size: 11px; padding: 6px 12px; }

    .section-title { font-size: clamp(22px, 6vw, 30px); }
    .section-desc { font-size: 14px; }

    .service-card { padding: 16px; }
    .service-card__title { font-size: 16px; }
    .service-card__desc { font-size: 12px; }

    .industry-card { padding: 16px; }
    .industry-card__content h3 { font-size: 16px; }

    .cta__title { font-size: clamp(20px, 6vw, 28px); }

    .ai-visual { width: 160px; height: 160px; margin-top: 12px; }
    .ai-visual__ring--3 { width: 150px; height: 150px; }
    .ai-visual__ring--2 { width: 115px; height: 115px; }
    .ai-visual__ring--1 { width: 70px; height: 70px; }
    .ai-visual__core { width: 38px; height: 38px; }
    .ai-visual__node { width: 28px; height: 28px; margin: -14px 0 0 -14px; }
    .ai-visual__node span { font-size: 6px; }
}

/* --- Touch device optimizations --- */
@media (hover: none) and (pointer: coarse) {
    /* Bigger touch targets */
    .nav__burger { padding: 8px; min-width: 44px; min-height: 44px; justify-content: center; }
    .nav__mobile a { min-height: 44px; display: flex; align-items: center; }

    /* Disable hover-only effects on touch */
    .service-card:hover { transform: none; box-shadow: none; }
    .industry-card:hover { transform: none; box-shadow: none; }
    .process__step:hover { transform: none; box-shadow: none; }
    .project-tag:hover { transform: none; }
    .btn--primary:hover { transform: none; }
    .btn--ghost:hover { transform: none; }

    /* Active states for touch instead */
    .service-card:active { transform: scale(0.98); }
    .industry-card:active { transform: scale(0.98); }
    .btn--primary:active { transform: scale(0.97); background: var(--blue-700); }
    .btn--ghost:active { transform: scale(0.97); }
    .cta__social:active { transform: scale(0.95); }
    .project-tag:active { transform: scale(0.95); }

    /* Disable cursor glow on touch */
    .cursor-glow { display: none !important; }

    /* Disable floating animations for performance */
    .project-tag { animation: none; }
}

/* --- Landscape phones --- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(var(--nav-height) + 16px) 0 32px;
    }

    .hero__title { font-size: clamp(24px, 4vw, 36px); }

    .services, .ai-section, .industries, .projects, .process, .cta {
        padding: 60px 0;
    }
}

/* --- Prefer reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal { opacity: 1; transform: none; }
    .hero__dashboard { transform: none; }
    .cursor-glow { display: none; }
}
