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

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-elevated: #1a1a28;
    --surface: #22223a;
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --accent-glow: rgba(124, 58, 237, 0.3);
    --cyan: #06d6a0;
    --cyan-glow: rgba(6, 214, 160, 0.3);
    --pink: #f72585;
    --pink-glow: rgba(247, 37, 133, 0.25);
    --orange: #fb8500;
    --white: #f0f0f5;
    --gray-100: #e0e0e8;
    --gray-300: #a0a0b5;
    --gray-400: #8080a0;
    --gray-500: #6b6b82;
    --gray-700: #3a3a50;
    --radius: 16px;
    --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Rubik', sans-serif;
    color: var(--gray-300);
    background: var(--bg);
    overflow-x: hidden;
    line-height: 1.7;
    cursor: none;
}

::selection { background: var(--accent); color: var(--white); }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; cursor: none; }
button { border: none; cursor: none; font-family: inherit; background: none; }
ul { list-style: none; }

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-light);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}
.cursor.hover {
    width: 60px;
    height: 60px;
    background: rgba(167, 139, 250, 0.1);
    border-color: var(--cyan);
}
.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-light);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.08s;
}

@media (hover: none) {
    .cursor, .cursor-dot { display: none; }
    body, a, button { cursor: auto; }
}

/* ============================================
   NOISE OVERLAY
   ============================================ */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ============================================
   GRADIENT ORB BACKGROUNDS
   ============================================ */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    opacity: 0.4;
}

/* ============================================
   NAV
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 100;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.4s, padding 0.3s, backdrop-filter 0.4s;
}
.nav.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    padding: 14px 40px;
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
}

.nav-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -1px;
    position: relative;
}
.nav-logo span {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}
.nav-links a {
    color: var(--gray-300);
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    transition: width 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 101;
}
.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
    display: block;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(40px);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--accent-light); }

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 40px 80px;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(124, 58, 237, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 30%, transparent 70%);
}

.hero .orb-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; left: -100px; }
.hero .orb-2 { width: 400px; height: 400px; background: var(--cyan); bottom: -100px; right: -50px; opacity: 0.2; }
.hero .orb-3 { width: 300px; height: 300px; background: var(--pink); top: 40%; left: 60%; opacity: 0.15; }

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.2);
    color: var(--accent-light);
    font-weight: 600;
    font-size: 0.82rem;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 24px;
    width: fit-content;
}
.hero-tag-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.hero h1 {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -2px;
}
.hero h1 .gradient-text {
    background: linear-gradient(135deg, var(--accent-light), var(--cyan), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--gray-300);
    line-height: 1.9;
    max-width: 520px;
    margin-bottom: 44px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 38px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
    background: linear-gradient(135deg, var(--accent), #5b21b6);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cyan), var(--accent));
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: inherit;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary span { position: relative; z-index: 1; }
.btn-primary svg { position: relative; z-index: 1; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px var(--accent-glow); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 38px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    color: var(--gray-300);
    border: 1px solid var(--gray-700);
}
.btn-ghost:hover { color: var(--white); border-color: var(--accent); background: rgba(124, 58, 237, 0.08); transform: translateY(-3px); }

/* Hero right: floating showcase */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-float-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
    padding: 20px;
    position: absolute;
    backdrop-filter: blur(20px);
    transition: transform 0.4s ease;
}

.hero-phone {
    width: 220px;
    height: 420px;
    background: var(--bg-card);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px var(--accent-glow);
}
.hero-phone-notch {
    width: 100px;
    height: 24px;
    background: var(--bg);
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}
.hero-phone-screen {
    background: linear-gradient(180deg, #1a1040 0%, #0d0d1a 100%);
    height: calc(100% - 24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
}
.phone-line {
    width: 80%;
    height: 8px;
    background: rgba(124, 58, 237, 0.3);
    border-radius: 4px;
}
.phone-line:nth-child(2) { width: 60%; background: rgba(6, 214, 160, 0.3); }
.phone-line:nth-child(3) { width: 70%; background: rgba(247, 37, 133, 0.2); }
.phone-block {
    width: 85%;
    height: 60px;
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    margin-top: 8px;
}
.phone-btn-mock {
    width: 60%;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    border-radius: 16px;
    margin-top: 12px;
}

.float-speed {
    bottom: 60px;
    left: -80px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float-y 5s ease-in-out infinite 1s;
}
.float-speed-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.float-speed-icon svg { width: 18px; height: 18px; stroke: white; fill: none; }
.float-speed-text .speed-val { font-weight: 700; color: var(--white); font-size: 0.95rem; }
.float-speed-text .speed-label { font-size: 0.72rem; color: var(--gray-500); }

.float-code {
    top: 35%;
    right: -50px;
    transform: translateY(-50%);
    padding: 16px 20px;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.72rem;
    color: var(--gray-500);
    animation: float-y 7s ease-in-out infinite 2s;
}
.float-code .code-accent { color: var(--accent-light); }
.float-code .code-cyan { color: var(--cyan); }

.float-satisfaction {
    bottom: 15%;
    right: -40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    animation: float-y 6s ease-in-out infinite 1s;
}
.float-satisfaction-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.float-satisfaction-icon svg { width: 18px; height: 18px; stroke: #fff; }
.float-satisfaction-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-300);
}

.float-mobile {
    top: 15%;
    left: -40px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    animation: float-y 5s ease-in-out infinite 0.5s;
}
.float-mobile-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.float-mobile-icon svg { width: 18px; height: 18px; stroke: #fff; }
.float-mobile-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-300);
}

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

/* ============================================
   SECTION COMMON
   ============================================ */
.section { padding: 120px 40px; position: relative; }
.section-wrap { max-width: 1400px; margin: 0 auto; }

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
}

.section-title {
    font-family: 'Rubik', sans-serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--gray-500);
    max-width: 500px;
    line-height: 1.8;
}

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

.svc-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.svc-card:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px var(--accent-glow);
}

.svc-card-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.svc-card:hover .svc-card-glow { opacity: 0.15; }
.svc-card:nth-child(1) .svc-card-glow { background: var(--accent); top: -50px; right: -50px; }
.svc-card:nth-child(2) .svc-card-glow { background: var(--cyan); top: -50px; right: -50px; }
.svc-card:nth-child(3) .svc-card-glow { background: var(--pink); top: -50px; right: -50px; }

.svc-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    position: relative;
}
.svc-card:nth-child(1) .svc-icon { background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(124,58,237,0.05)); }
.svc-card:nth-child(2) .svc-icon { background: linear-gradient(135deg, rgba(6,214,160,0.2), rgba(6,214,160,0.05)); }
.svc-card:nth-child(3) .svc-icon { background: linear-gradient(135deg, rgba(247,37,133,0.2), rgba(247,37,133,0.05)); }
.svc-icon svg { width: 26px; height: 26px; stroke-width: 1.5; fill: none; }
.svc-card:nth-child(1) .svc-icon svg { stroke: var(--accent-light); }
.svc-card:nth-child(2) .svc-icon svg { stroke: var(--cyan); }
.svc-card:nth-child(3) .svc-icon svg { stroke: var(--pink); }

.svc-card h3 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 12px;
}

.svc-card > p {
    color: var(--gray-500);
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.svc-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}
.svc-features li {
    background: rgba(255,255,255,0.04);
    color: var(--gray-300);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.06);
}

.svc-card-num {
    position: absolute;
    top: 28px;
    left: 28px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.02);
    line-height: 1;
}

/* ============================================
   PORTFOLIO — Horizontal Scroll
   ============================================ */
.portfolio {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}
.portfolio .section-wrap { padding: 0 40px; }

.portfolio-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 40px;
}

.portfolio-scroll {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    padding: 20px 40px 40px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.portfolio-scroll::-webkit-scrollbar { display: none; }

.p-card {
    min-width: 380px;
    flex-shrink: 0;
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.4s, box-shadow 0.4s, border-color 0.4s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
.p-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
    border-color: rgba(124, 58, 237, 0.2);
}

.p-card-preview {
    position: relative;
    height: 260px;
    overflow: hidden;
    background: var(--surface);
}
.p-card-preview iframe {
    position: absolute;
    top: 0; right: 0;
    width: 200%; height: 200%;
    transform: scale(0.5);
    transform-origin: top right;
    border: none;
    pointer-events: none;
}

.p-card-info {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.p-card-info h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); }
.p-card-info p { font-size: 0.8rem; color: var(--gray-500); margin-top: 2px; }

.portfolio-nav {
    display: flex;
    gap: 12px;
}
.portfolio-nav button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
    transition: all 0.3s;
}
.portfolio-nav button:hover { border-color: var(--accent); color: var(--white); background: rgba(124,58,237,0.1); }
.portfolio-nav button svg { width: 20px; height: 20px; }

/* ============================================
   PORTFOLIO MODAL
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,10,15,0.85);
    backdrop-filter: blur(12px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal-container {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transition: max-width 0.4s ease;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.modal-container.desktop-view { max-width: 1100px; }
.modal-container.mobile-view { max-width: 375px; border: 3px solid var(--gray-700); border-radius: 28px; }

.modal-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: var(--bg-elevated);
}
.modal-title { font-weight: 700; color: var(--white); font-size: 1rem; }

.modal-controls { display: flex; align-items: center; gap: 12px; }

.modal-toggle {
    display: flex;
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}
.modal-toggle-btn {
    padding: 8px 16px;
    color: var(--gray-500);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
    font-family: inherit;
}
.modal-toggle-btn svg { width: 16px; height: 16px; }
.modal-toggle-btn.active { background: var(--accent); color: var(--white); }

.modal-close {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.modal-visit-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}
.modal-visit-btn svg { width: 18px; height: 18px; }
.modal-visit-btn:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.modal-close svg { width: 18px; height: 18px; }

.modal-body { flex: 1; overflow: hidden; background: var(--bg); }
.modal-body iframe { width: 100%; height: 70vh; border: none; }

/* ============================================
   PROCESS
   ============================================ */
.process {
    background: var(--bg-card);
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.process-header { text-align: center; margin-bottom: 72px; }
.process-header .section-desc { margin: 0 auto; }

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    right: 12.5%;
    left: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--cyan), var(--pink), var(--orange));
    opacity: 0.2;
}

.proc-step {
    text-align: center;
    position: relative;
    padding: 0 16px;
}

.proc-num {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    position: relative;
    z-index: 1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    transition: transform 0.3s, box-shadow 0.3s;
}
.proc-step:nth-child(1) .proc-num { background: linear-gradient(135deg, var(--accent), #5b21b6); }
.proc-step:nth-child(2) .proc-num { background: linear-gradient(135deg, var(--cyan), #059669); }
.proc-step:nth-child(3) .proc-num { background: linear-gradient(135deg, var(--pink), #be185d); }
.proc-step:nth-child(4) .proc-num { background: linear-gradient(135deg, var(--orange), #d97706); }

.proc-step:hover .proc-num { transform: scale(1.1); }
.proc-step:nth-child(1):hover .proc-num { box-shadow: 0 0 40px var(--accent-glow); }
.proc-step:nth-child(2):hover .proc-num { box-shadow: 0 0 40px var(--cyan-glow); }
.proc-step:nth-child(3):hover .proc-num { box-shadow: 0 0 40px var(--pink-glow); }
.proc-step:nth-child(4):hover .proc-num { box-shadow: 0 0 40px rgba(251,133,0,0.3); }

.proc-step h3 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}
.proc-step p { font-size: 0.88rem; color: var(--gray-500); }

.proc-step.expanded .proc-num {
    transform: scale(1.25);
}
.proc-step:nth-child(1).expanded .proc-num { box-shadow: 0 0 40px var(--accent-glow), 0 0 0 8px rgba(124,58,237,0.15); }
.proc-step:nth-child(2).expanded .proc-num { box-shadow: 0 0 40px var(--cyan-glow), 0 0 0 8px rgba(6,214,160,0.15); }
.proc-step:nth-child(3).expanded .proc-num { box-shadow: 0 0 40px var(--pink-glow), 0 0 0 8px rgba(247,37,133,0.15); }
.proc-step:nth-child(4).expanded .proc-num { box-shadow: 0 0 40px rgba(251,133,0,0.3), 0 0 0 8px rgba(251,133,0,0.15); }

.proc-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.4s ease;
    opacity: 0;
}
.proc-step.expanded .proc-details {
    max-height: 300px;
    opacity: 1;
    margin-top: 16px;
}
.proc-details p {
    font-size: 0.95rem;
    color: var(--gray-400);
    line-height: 1.8;
    text-align: center;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-sm);
}
.proc-step { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* ============================================
   PRICING
   ============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 64px;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 44px 36px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.price-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.price-card.featured {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(124,58,237,0.08) 0%, var(--bg-card) 100%);
}
.price-card.featured:hover { box-shadow: 0 20px 60px var(--accent-glow); }

.price-badge {
    position: absolute;
    top: 0;
    right: 32px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    letter-spacing: 0.5px;
}

.price-name {
    font-family: 'Rubik', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.price-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
    line-height: 1.1;
}
.price-amount .cur { font-size: 1.2rem; color: var(--gray-500); }

.price-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.price-name-row .price-name { margin-bottom: 0; }

.price-was {
    display: inline-block;
    position: relative;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fca5a5;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
    text-decoration: line-through;
    text-decoration-color: #ef4444;
    text-decoration-thickness: 2px;
    animation: priceWasFloat 2.8s ease-in-out infinite;
    transform-origin: center;
}
.price-was::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    animation: priceWasPulse 2.8s ease-in-out infinite;
    pointer-events: none;
}
@keyframes priceWasFloat {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-3px) rotate(2deg); }
}
@keyframes priceWasPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.price-desc {
    font-size: 0.88rem;
    color: var(--gray-500);
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.price-list { margin-bottom: 20px; }
.price-footnotes {
    margin-bottom: 24px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-800, rgba(255,255,255,0.06));
    font-size: 0.78rem;
    color: var(--gray-400, #94a3b8);
    line-height: 1.7;
}
.price-footnotes p { margin: 2px 0; }
.price-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: var(--gray-300);
    font-size: 0.9rem;
}
.price-list li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: var(--cyan);
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.price-btn {
    display: block;
    text-align: center;
    padding: 14px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s;
}
.price-btn--outline {
    color: var(--gray-300);
    border: 1px solid var(--gray-700);
}
.price-btn--outline:hover {
    border-color: var(--accent);
    color: var(--white);
    background: rgba(124,58,237,0.08);
}
.price-btn--primary {
    background: linear-gradient(135deg, var(--accent), #5b21b6);
    color: var(--white);
}
.price-btn--primary:hover {
    box-shadow: 0 8px 30px var(--accent-glow);
    transform: translateY(-2px);
}

.pricing-note {
    text-align: center;
    margin-top: 32px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Soon card */
.price-card--soon {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    border: 1px solid rgba(124,58,237,0.2);
    background: linear-gradient(160deg, rgba(124,58,237,0.05) 0%, var(--bg-elevated) 50%, rgba(34,211,238,0.03) 100%);
}
.soon-glow {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 70%);
    animation: glowFloat 6s ease-in-out infinite;
    filter: blur(40px);
    z-index: 0;
}
@keyframes glowFloat {
    0%, 100% { transform: translate(-30px, -20px) scale(1); opacity: 0.6; }
    33% { transform: translate(40px, 30px) scale(1.3); opacity: 1; }
    66% { transform: translate(-20px, 40px) scale(0.9); opacity: 0.5; }
}
.price-card--soon .code-rain-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}
.code-rain {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
    animation: codeScroll 20s linear infinite;
    will-change: transform;
}
.code-rain span {
    font-family: 'Space Grotesk', monospace;
    font-size: 0.78rem;
    color: rgba(124,58,237,0.22);
    white-space: nowrap;
    line-height: 2.2;
    display: block;
}
.code-rain span em {
    color: rgba(34,211,238,0.4);
    font-style: normal;
}
@keyframes codeScroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.soon-content {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.soon-name {
    font-family: 'Rubik', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-light), #22d3ee, var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}
.soon-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gray-400);
    letter-spacing: 3px;
}
.soon-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-light);
    margin-top: 8px;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(124,58,237,0.6);
}
@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

/* ============================================
   FAQ
   ============================================ */
.faq-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item.active { border-color: rgba(124,58,237,0.2); }

.faq-question {
    width: 100%;
    text-align: right;
    padding: 22px 28px;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.3s;
    font-family: inherit;
}
.faq-question:hover { color: var(--accent-light); }

.faq-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: background 0.3s, transform 0.3s;
}
.faq-toggle::before, .faq-toggle::after {
    content: '';
    position: absolute;
    background: var(--gray-300);
    border-radius: 2px;
    transition: transform 0.3s;
}
.faq-toggle::before { width: 12px; height: 2px; }
.faq-toggle::after { width: 2px; height: 12px; }
.faq-item.active .faq-toggle { background: var(--accent); }
.faq-item.active .faq-toggle::before { background: var(--white); }
.faq-item.active .faq-toggle::after { transform: rotate(90deg); background: var(--white); opacity: 0; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}
.faq-answer-inner {
    padding: 0 28px 22px;
    color: var(--gray-500);
    font-size: 0.92rem;
    line-height: 1.8;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: var(--bg-card);
    border-top: 1px solid rgba(255,255,255,0.04);
}

.contact-center {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}
.contact-channels { display: flex; flex-direction: column; gap: 16px; }

.contact-channel {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--gray-300);
    transition: all 0.3s;
}
.contact-channel:hover {
    border-color: rgba(124,58,237,0.2);
    background: rgba(124,58,237,0.05);
    color: var(--white);
}

.contact-channel-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(124,58,237,0.15);
}
.contact-channel-icon svg { width: 20px; height: 20px; stroke: var(--accent-light); fill: none; stroke-width: 2; }
.contact-channel-icon--wa { background: rgba(37, 211, 102, 0.15); }
.contact-channel-icon--wa svg { fill: #25D366; stroke: none; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    border-top: 1px solid rgba(255,255,255,0.04);
    padding: 60px 40px 30px;
}
.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .nav-logo { margin-bottom: 16px; display: inline-block; }
.footer-brand > p { color: var(--gray-500); font-size: 0.88rem; line-height: 1.8; max-width: 300px; }

.footer h4 {
    font-family: 'Rubik', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: var(--gray-500);
    font-size: 0.88rem;
    transition: color 0.3s;
}
.footer-links a:hover { color: var(--accent-light); }

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-500);
    font-size: 0.88rem;
    margin-bottom: 12px;
    transition: color 0.3s;
}
.footer-contact a:hover { color: var(--accent-light); }
.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; stroke: var(--gray-500); fill: none; stroke-width: 2; }

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray-700);
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: var(--gray-700); transition: color 0.3s; }
.footer-bottom-links a:hover { color: var(--gray-500); }

/* ============================================
   FLOATING BUTTONS
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    color: var(--gray-300);
}
.back-to-top.visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.back-to-top svg { width: 20px; height: 20px; }

/* ============================================
   REVEAL ANIMATION
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
    padding-top: 120px;
}
.legal-content {
    max-width: 800px;
    margin: 0 auto;
}
.legal-content h1 {
    font-family: 'Rubik', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}
.legal-updated {
    color: var(--gray-600);
    font-size: 0.85rem;
    margin-bottom: 48px;
}
.legal-content h2 {
    font-family: 'Rubik', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-top: 36px;
    margin-bottom: 12px;
}
.legal-content p {
    color: var(--gray-400);
    line-height: 1.9;
    margin-bottom: 16px;
}
.legal-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}
.legal-content ul li {
    color: var(--gray-400);
    line-height: 1.9;
    padding-right: 20px;
    position: relative;
}
.legal-content ul li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-light);
    position: absolute;
    right: 0;
    top: 12px;
}
.legal-content a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.3s;
}
.legal-content a:hover {
    color: var(--white);
}
.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--white) !important;
    border-radius: 50px;
    font-weight: 600;
    transition: background 0.3s;
}
.legal-back:hover {
    background: var(--accent-light);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { display: none; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .process-steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .process-steps::before { display: none; }
    .pricing-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid .price-card:last-child { grid-column: 1 / -1; max-width: 500px; margin: 0 auto; width: 100%; }
    .faq-layout { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav { padding: 16px 20px; }
    .nav.scrolled { padding: 12px 20px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }

    .section { padding: 80px 20px; }
    .hero { padding: 100px 20px 60px; }
    .hero h1 { letter-spacing: -1px; }

    .services-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-grid .price-card:last-child { max-width: none; }
    .portfolio-header { flex-direction: column; align-items: flex-start; gap: 20px; padding: 0 20px; }
    .portfolio-scroll { padding: 20px 20px 40px; }
    .p-card { min-width: 300px; }

    .modal-toggle { display: none; }
    .modal-container.desktop-view { width: 95vw; }
    .modal-container.desktop-view .modal-body iframe { width: 100%; }

    .footer { padding: 40px 20px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-btns { flex-direction: column; }
    .hero-btns a { text-align: center; justify-content: center; }
    .process-steps { grid-template-columns: 1fr; }
    .p-card { min-width: 280px; }
}
