:root {
    color-scheme: light;
    --bg: #f4f8ff;
    --bg-2: #eaf2ff;
    --surface: rgba(255, 255, 255, .78);
    --surface-solid: #ffffff;
    --surface-soft: #f8fbff;
    --text: #0f172a;
    --text-2: #334155;
    --muted: #64748b;
    --primary: #1d4ed8;
    --primary-2: #0f3a93;
    --primary-soft: rgba(29, 78, 216, .10);
    --primary-glow: rgba(29, 78, 216, .22);
    --accent: #0f766e;
    --whatsapp: #16a34a;
    --border: rgba(15, 23, 42, .12);
    --border-2: rgba(29, 78, 216, .26);
    --shadow: 0 24px 70px rgba(15, 23, 42, .12);
    --shadow-blue: 0 28px 90px rgba(29, 78, 216, .19);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --header-h: 90px;
}

body.dark-mode {
    color-scheme: dark;
    --bg: #06111f;
    --bg-2: #0b1730;
    --surface: rgba(13, 24, 43, .78);
    --surface-solid: #0d182b;
    --surface-soft: #101f37;
    --text: #f8fafc;
    --text-2: #dbeafe;
    --muted: #9fb0c7;
    --primary: #60a5fa;
    --primary-2: #93c5fd;
    --primary-soft: rgba(96, 165, 250, .12);
    --primary-glow: rgba(96, 165, 250, .26);
    --accent: #2dd4bf;
    --border: rgba(226, 232, 240, .13);
    --border-2: rgba(96, 165, 250, .30);
    --shadow: 0 24px 80px rgba(0, 0, 0, .34);
    --shadow-blue: 0 28px 90px rgba(37, 99, 235, .22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 128px; }
body {
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: "Manrope", system-ui, sans-serif;
    line-height: 1.65;
    transition: background .25s ease, color .25s ease;
    padding-bottom: env(safe-area-inset-bottom);
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -4;
    background:
        radial-gradient(circle at 10% 10%, rgba(37, 99, 235, .12), transparent 26%),
        radial-gradient(circle at 85% 15%, rgba(15, 118, 110, .10), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,.9), rgba(232,240,255,.72)),
        var(--bg);
}
body.dark-mode::before {
    background:
        radial-gradient(circle at 10% 10%, rgba(96, 165, 250, .18), transparent 26%),
        radial-gradient(circle at 85% 15%, rgba(45, 212, 191, .11), transparent 28%),
        linear-gradient(135deg, rgba(6,17,31,.96), rgba(11,23,48,.88)),
        var(--bg);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(29, 78, 216, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(29, 78, 216, .045) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
}
body.dark-mode::after { background-image: linear-gradient(rgba(96, 165, 250, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(96, 165, 250, .055) 1px, transparent 1px); }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .44); outline-offset: 3px; }

h1, h2, h3, h4, .btn, .nav-links, .section-pill, .project-info small, .process-card span, .proof-row strong { font-family: "Sora", system-ui, sans-serif; }
h1, h2 { letter-spacing: -.055em; line-height: .98; }
h1 { font-size: clamp(2.65rem, 8.6vw, 6.25rem); }
h2 { font-size: clamp(2rem, 5.4vw, 4.35rem); }
h3 { line-height: 1.1; letter-spacing: -.025em; }

.skip-link {
    position: fixed; top: 12px; left: 12px; z-index: 4000;
    transform: translateY(-180%); background: var(--primary); color: #fff;
    padding: 10px 14px; border-radius: 999px; font-weight: 800; text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.section { padding: clamp(68px, 9vw, 125px) 0; position: relative; scroll-margin-top: 120px; }
.section-heading { max-width: 840px; margin: 0 auto 42px; text-align: center; }
.section-heading-left { text-align: left; margin: 0; }
.section-heading p { color: var(--muted); font-size: clamp(.98rem, 2vw, 1.12rem); max-width: 720px; margin: 18px auto 0; }
.section-heading-left p { margin-left: 0; }
.section-pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 13px; border: 1px solid var(--border-2); border-radius: 999px;
    color: var(--primary-2); background: var(--primary-soft); font-size: .76rem;
    font-weight: 800; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px;
}
body.dark-mode .section-pill { color: var(--primary); }

/* Intro */
.intro-loader {
    position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center;
    background: linear-gradient(135deg, #f8fbff, #dceaff); overflow: hidden;
    transition: opacity .7s ease, visibility .7s ease, transform .7s ease;
}
body.dark-mode .intro-loader { background: linear-gradient(135deg, #06111f, #0b1730); }
.intro-loader.hide { opacity: 0; visibility: hidden; transform: scale(1.04); pointer-events: none; }
.intro-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(29,78,216,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(29,78,216,.07) 1px, transparent 1px); background-size: 46px 46px; animation: gridMove 4s linear infinite; }
.intro-brand { position: relative; z-index: 2; display: grid; justify-items: center; gap: 14px; animation: introPop 1s cubic-bezier(.16, 1, .3, 1) both; }
.intro-brand img { width: min(230px, 62vw); filter: drop-shadow(0 20px 34px rgba(29,78,216,.22)); }
.intro-brand span { font-weight: 900; color: var(--primary-2); font-family: "Sora"; }
@keyframes introPop { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes gridMove { to { background-position: 46px 46px; } }
.scroll-progress { position: fixed; top: 0; left: 0; width: 0%; height: 4px; z-index: 4500; background: linear-gradient(90deg, var(--primary), #60a5fa, var(--accent)); box-shadow: 0 0 16px var(--primary-glow); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 2000; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.top-ribbon { background: linear-gradient(90deg, var(--primary-2), var(--primary)); color: #fff; text-align: center; font-weight: 700; font-size: .82rem; }
.top-ribbon a { display: block; padding: 8px 14px; text-decoration: none; }
.site-nav {
    width: min(1180px, calc(100% - 32px)); margin: 0 auto; min-height: 74px;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    background: rgba(255,255,255,.70); border-bottom: 1px solid var(--border);
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--border); }
body.dark-mode .site-nav { background: rgba(6,17,31,.70); }
.logo-img { width: 172px; height: 52px; object-fit: contain; object-position: left center; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 20px; font-weight: 800; color: var(--text-2); }
.nav-links a { text-decoration: none; font-size: .9rem; transition: color .2s ease, transform .2s ease; }
.nav-links a:hover { color: var(--primary); transform: translateY(-1px); }
.theme-toggle, .menu-toggle { border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.theme-toggle { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; position: relative; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .25s ease, opacity .2s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 14px; min-height: 52px; padding: 14px 20px; font-weight: 900; text-decoration: none; border: 1px solid transparent; transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, background .24s ease; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 18px 40px var(--primary-glow); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: 0 10px 28px rgba(15,23,42,.06); }
.btn:hover { transform: translateY(-3px); }
.btn-primary:hover { box-shadow: 0 22px 54px var(--primary-glow); }

/* Hero */
.hero { position: relative; min-height: calc(100svh - 112px); display: flex; align-items: center; overflow: hidden; padding: clamp(64px, 8vw, 110px) 0; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .92; }
.hero-light { position: absolute; border-radius: 50%; filter: blur(14px); pointer-events: none; z-index: -2; }
.hero-light-one { width: 580px; height: 580px; background: radial-gradient(circle, rgba(29,78,216,.16), transparent 66%); right: -180px; top: -170px; animation: pulseGlow 8s ease-in-out infinite; }
.hero-light-two { width: 460px; height: 460px; background: radial-gradient(circle, rgba(15,118,110,.12), transparent 66%); left: -170px; bottom: -150px; animation: pulseGlow 9s ease-in-out infinite reverse; }
@keyframes pulseGlow { 50% { transform: scale(1.08) translateY(18px); opacity: .82; } }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); align-items: center; gap: clamp(38px, 6vw, 90px); }
.hero-copy p { color: var(--text-2); max-width: 680px; font-size: clamp(1.03rem, 2vw, 1.22rem); margin-top: 24px; }
.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-tags span { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); padding: 8px 12px; border-radius: 999px; color: var(--text-2); font-weight: 800; font-size: .88rem; }
.hero-tags i { color: var(--primary); }
.hero-visual { position: relative; min-height: 560px; display: grid; place-items: center; perspective: 1200px; }
.phone-shell { position: relative; width: min(330px, 75vw); height: 620px; border-radius: 46px; background: #0a1730; padding: 12px; box-shadow: 0 40px 100px rgba(15,23,42,.24), inset 0 0 0 1px rgba(255,255,255,.14); transform: rotateY(-13deg) rotateX(7deg); transform-style: preserve-3d; }
.phone-speaker { position: absolute; top: 23px; left: 50%; transform: translateX(-50%); width: 70px; height: 7px; background: rgba(255,255,255,.35); border-radius: 999px; z-index: 2; }
.phone-screen { height: 100%; border-radius: 36px; overflow: hidden; padding: 54px 18px 18px; background: linear-gradient(160deg, #f8fbff, #e8f1ff); position: relative; }
body.dark-mode .phone-screen { background: linear-gradient(160deg, #0c1730, #132340); }
.phone-screen::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(29,78,216,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(29,78,216,.08) 1px, transparent 1px); background-size: 26px 26px; opacity: .7; }
.mini-browser, .mini-hero-card, .mini-stats, .mini-list { position: relative; z-index: 1; }
.mini-browser { height: 36px; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid rgba(15,23,42,.08); display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.mini-browser span { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; }
.mini-browser span:nth-child(1) { background: #ef4444; } .mini-browser span:nth-child(2) { background: #f59e0b; } .mini-browser span:nth-child(3) { background: #22c55e; }
.mini-hero-card { margin-top: 22px; padding: 22px; border-radius: 26px; background: rgba(255,255,255,.80); border: 1px solid rgba(29,78,216,.18); box-shadow: 0 20px 50px rgba(15,23,42,.12); }
body.dark-mode .mini-hero-card, body.dark-mode .mini-browser, body.dark-mode .mini-stats div { background: rgba(15,23,42,.75); }
.mini-hero-card small { font-family: Sora; font-weight: 900; color: var(--primary); letter-spacing: .08em; }
.mini-hero-card strong { display: block; margin-top: 8px; font-family: Sora; font-size: 1.45rem; line-height: 1.05; }
.mini-hero-card p { color: var(--muted); margin-top: 10px; font-size: .9rem; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.mini-stats div { background: rgba(255,255,255,.76); border: 1px solid rgba(15,23,42,.08); padding: 16px; border-radius: 20px; }
.mini-stats strong { display: block; color: var(--primary); font-family: Sora; font-size: 1.3rem; }
.mini-stats span { color: var(--muted); font-weight: 800; font-size: .75rem; }
.mini-list { margin-top: 16px; display: grid; gap: 10px; }
.mini-list span { height: 42px; border-radius: 14px; background: rgba(255,255,255,.6); border: 1px solid rgba(15,23,42,.08); }
.floating-device { animation: floatDevice 6.5s ease-in-out infinite; }
@keyframes floatDevice { 0%,100% { transform: rotateY(-13deg) rotateX(7deg) translateY(0); } 50% { transform: rotateY(-7deg) rotateX(4deg) translateY(-18px); } }
.orbit-ring { position: absolute; width: 420px; height: 420px; border: 1px solid rgba(29,78,216,.16); border-radius: 50%; animation: spin 18s linear infinite; }
.orbit-ring::before, .orbit-ring::after { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 20px var(--primary-glow); }
.orbit-ring::before { top: 40px; left: 66px; } .orbit-ring::after { right: 54px; bottom: 80px; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-card { position: absolute; display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,.76); border: 1px solid var(--border); border-radius: 999px; padding: 12px 16px; font-family: Sora; font-weight: 900; box-shadow: var(--shadow); backdrop-filter: blur(14px); }
body.dark-mode .orbit-card { background: rgba(15,23,42,.76); }
.orbit-card i { color: var(--primary); }
.card-top { top: 85px; right: 10px; animation: bob 5.5s ease-in-out infinite; }
.card-bottom { bottom: 110px; left: 0; animation: bob 6s ease-in-out infinite reverse; }
@keyframes bob { 50% { transform: translateY(-16px); } }

/* Proof */
.mobile-proof { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.46); }
body.dark-mode .mobile-proof { background: rgba(6,17,31,.50); }
.proof-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.proof-row div { padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: 0 12px 30px rgba(15,23,42,.06); }
.proof-row strong { display: block; color: var(--primary-2); font-size: 1rem; margin-bottom: 3px; }
body.dark-mode .proof-row strong { color: var(--primary); }
.proof-row span { color: var(--muted); font-size: .9rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service-card, .process-card, .contact-card, .calendar-card, .faq-item, .quote-panel, .stack-card { background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.service-card { border-radius: var(--radius-lg); padding: 24px; min-height: 280px; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; position: relative; overflow: hidden; }
.service-card::after, .contact-card::after, .quote-panel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(29,78,216,.13), transparent 36%); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.service-card:hover::after, .contact-card:hover::after, .quote-panel:hover::after { opacity: 1; }
.service-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-blue); }
.service-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--primary-soft); border: 1px solid var(--border-2); color: var(--primary); font-size: 1.25rem; margin-bottom: 28px; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.service-card p { color: var(--muted); }

/* Wow */
.wow-section { padding-top: 20px; }
.wow-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 34px; }
.wow-copy p { color: var(--muted); margin-top: 18px; max-width: 580px; }
.wow-stack { position: relative; min-height: 340px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; perspective: 1000px; }
.stack-card { border-radius: 22px; padding: 24px; display: flex; align-items: center; gap: 14px; font-family: Sora; font-weight: 900; animation: stackFloat 6s ease-in-out infinite; }
.stack-card:nth-child(2) { transform: translateY(34px); animation-delay: .4s; } .stack-card:nth-child(3) { animation-delay: .8s; } .stack-card:nth-child(4) { transform: translateY(34px); animation-delay: 1.2s; }
.stack-card i { color: var(--primary); font-size: 1.4rem; }
@keyframes stackFloat { 50% { translate: 0 -10px; } }

/* Portfolio carousel */
.carousel-shell { position: relative; min-height: 690px; display: flex; align-items: center; justify-content: center; perspective: 1500px; }
.carousel-shell::before { content: ""; position: absolute; width: min(720px, 92vw); height: min(720px, 92vw); border-radius: 50%; background: radial-gradient(circle, var(--primary-glow), transparent 68%); filter: blur(8px); animation: pulseGlow 8s ease-in-out infinite; }
.carousel-stage { position: relative; width: min(100%, 1080px); height: 640px; transform-style: preserve-3d; }
.carousel-card { position: absolute; top: 50%; left: 50%; width: min(500px, 84vw); min-height: 575px; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none; transition: transform .65s cubic-bezier(.16,1,.3,1), opacity .42s ease, filter .42s ease; }
.project-card { border-radius: 28px; background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
body.dark-mode .project-card { background: var(--surface-solid); }
.carousel-card.active { opacity: 1; z-index: 5; pointer-events: auto; transform: translate(-50%, -50%) translateZ(160px) scale(1); filter: none; }
.carousel-card.prev { opacity: .68; z-index: 4; pointer-events: auto; transform: translate(-50%, -50%) translateX(-360px) translateZ(-120px) scale(.78) rotateY(36deg); filter: saturate(.86) brightness(.94); }
.carousel-card.next { opacity: .68; z-index: 4; pointer-events: auto; transform: translate(-50%, -50%) translateX(360px) translateZ(-120px) scale(.78) rotateY(-36deg); filter: saturate(.86) brightness(.94); }
.carousel-card.far-prev { opacity: .26; z-index: 2; transform: translate(-50%, -50%) translateX(-580px) translateZ(-260px) scale(.62) rotateY(48deg); filter: blur(1px); }
.carousel-card.far-next { opacity: .26; z-index: 2; transform: translate(-50%, -50%) translateX(580px) translateZ(-260px) scale(.62) rotateY(-48deg); filter: blur(1px); }
.carousel-card.hidden { opacity: 0; transform: translate(-50%, -50%) scale(.45); }
.browser-mockup { height: 285px; background: #0f172a; overflow: hidden; position: relative; }
.browser-bar { height: 38px; background: linear-gradient(180deg, #f8fafc, #e2e8f0); display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid rgba(15,23,42,.08); }
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.browser-bar span:nth-child(1) { background: #ef4444; } .browser-bar span:nth-child(2) { background: #f59e0b; } .browser-bar span:nth-child(3) { background: #22c55e; }
.browser-bar small { margin-left: 8px; color: #64748b; font-weight: 900; font-size: .68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-mockup img { width: 100%; height: calc(100% - 38px); object-fit: cover; object-position: top center; transition: transform .7s ease; }
.project-card:hover .browser-mockup img { transform: scale(1.05); }
.project-info { padding: 28px; }
.project-info small { color: var(--primary); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; }
.project-info h3 { font-size: 1.6rem; margin-top: 8px; }
.project-info p { color: var(--muted); margin-top: 12px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tech-tags span, .private-label { font-size: .72rem; font-weight: 900; padding: 7px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-2); border: 1px solid var(--border-2); }
body.dark-mode .tech-tags span, body.dark-mode .private-label { color: var(--primary); }
.project-info a, .inline-link { color: var(--primary-2); font-family: Sora; font-weight: 900; text-decoration: none; }
body.dark-mode .project-info a, body.dark-mode .inline-link { color: var(--primary); }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 20; width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; transition: all .22s ease; }
.carousel-btn:hover { background: var(--primary); color: #fff; transform: translateY(-50%) scale(1.05); }
.carousel-btn.prev { left: 0; } .carousel-btn.next { right: 0; }
.carousel-dots { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: -18px; }
.carousel-dots button { width: 10px; height: 10px; border: 0; border-radius: 999px; background: rgba(100,116,139,.35); cursor: pointer; transition: width .25s ease, background .25s ease; }
.carousel-dots button.active { width: 34px; background: var(--primary); }
.center-actions { display: flex; justify-content: center; margin-top: 30px; }

/* Process */
.process-section { overflow: hidden; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.process-grid::before { content: ""; position: absolute; top: 35px; left: 8%; right: 8%; height: 3px; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity: .32; }
.process-card { position: relative; z-index: 1; border-radius: 24px; padding: 24px; min-height: 240px; }
.process-card span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 16px 34px var(--primary-glow); font-weight: 900; margin-bottom: 26px; }
.process-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.process-card p { color: var(--muted); }

/* Quote */
.quote-section { padding: clamp(70px, 9vw, 120px) 0; }
.quote-panel { position: relative; overflow: hidden; border-radius: 34px; padding: clamp(28px, 6vw, 62px); display: grid; grid-template-columns: 1.1fr .8fr; gap: 26px; align-items: center; transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.quote-panel::before { content: ""; position: absolute; inset: -1px; background: radial-gradient(circle at 80% 20%, rgba(29,78,216,.22), transparent 35%), radial-gradient(circle at 10% 80%, rgba(15,118,110,.12), transparent 34%); pointer-events: none; }
.quote-copy, .quote-actions { position: relative; z-index: 1; }
.quote-copy p { color: var(--muted); margin-top: 16px; font-size: 1.05rem; }
.quote-actions { display: grid; gap: 12px; }

/* FAQ and contact */
.faq-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: 18px; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 20px; list-style: none; font-family: Sora; font-weight: 900; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--muted); padding: 0 20px 20px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; }
.contact-card, .calendar-card { border-radius: 28px; padding: 24px; position: relative; overflow: hidden; }
.contact-card { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.contact-row { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; border: 1px solid var(--border); background: rgba(255,255,255,.42); text-decoration: none; transition: transform .2s ease, border-color .2s ease, background .2s ease; }
body.dark-mode .contact-row { background: rgba(255,255,255,.04); }
.contact-row + .contact-row { margin-top: 12px; }
.contact-row:hover { transform: translateX(5px); border-color: var(--border-2); background: var(--primary-soft); }
.contact-row i { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.contact-row strong { display: block; font-family: Sora; }
.contact-row small { color: var(--muted); }
.calendar-card { min-height: 520px; background: var(--surface-solid); }
.calendar-placeholder { position: absolute; inset: 24px; z-index: 0; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; color: var(--muted); border: 1px dashed var(--border); border-radius: 22px; }
.calendar-placeholder strong { color: var(--text); font-family: Sora; }
.loader-dot { width: 42px; height: 42px; border-radius: 50%; border: 4px solid rgba(29,78,216,.14); border-top-color: var(--primary); animation: spinLoader 1s linear infinite; }
@keyframes spinLoader { to { transform: rotate(360deg); } }
.calendly-inline-widget { position: relative; z-index: 1; width: 100%; height: 520px; min-width: 0 !important; }
.site-footer { padding: 34px 0 100px; color: var(--muted); border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.footer-inner a { font-weight: 900; color: var(--primary); text-decoration: none; }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 1800; width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp); color: #fff; display: grid; place-items: center; font-size: 1.8rem; text-decoration: none; box-shadow: 0 18px 40px rgba(22,163,74,.36); transition: transform .24s ease; }
.whatsapp-float:hover { transform: scale(1.08) rotate(4deg); }
.mobile-action-bar { display: none; }

/* Reveals */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s cubic-bezier(.16,1,.3,1); }
[data-reveal].visible { opacity: 1; transform: none; }
.services-grid [data-reveal]:nth-child(2), .process-grid [data-reveal]:nth-child(2), .proof-row [data-reveal]:nth-child(2) { transition-delay: .08s; }
.services-grid [data-reveal]:nth-child(3), .process-grid [data-reveal]:nth-child(3), .proof-row [data-reveal]:nth-child(3) { transition-delay: .16s; }
.services-grid [data-reveal]:nth-child(4), .process-grid [data-reveal]:nth-child(4) { transition-delay: .24s; }

/* Responsive */
@media (max-width: 1050px) {
    .hero-layout, .wow-grid, .quote-panel, .faq-layout, .contact-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 500px; }
    .services-grid, .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-grid::before { display: none; }
    .quote-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
    html { scroll-padding-top: 90px; }
    .top-ribbon { display: none; }
    .site-nav { width: 100%; min-height: 68px; padding: 0 16px; }
    .logo-img { width: 148px; height: 48px; }
    .menu-toggle { display: block; }
    .nav-links { position: fixed; top: 68px; left: 14px; right: 14px; display: grid; gap: 6px; padding: 14px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface-solid); box-shadow: var(--shadow); transform: translateY(-16px) scale(.98); opacity: 0; visibility: hidden; pointer-events: none; transition: all .22s ease; }
    .nav-links.open { transform: translateY(0) scale(1); opacity: 1; visibility: visible; pointer-events: auto; }
    .nav-links li, .nav-links a, .nav-links button { width: 100%; }
    .nav-links a, .theme-toggle { display: flex; min-height: 46px; align-items: center; justify-content: center; border-radius: 14px; }
    .theme-toggle { margin-top: 4px; }
    .hero { min-height: auto; padding-top: 54px; }
    .hero-layout { gap: 28px; }
    .hero-copy { text-align: center; }
    .hero-copy p { margin-inline: auto; }
    .hero-actions, .hero-tags { justify-content: center; }
    .hero-visual { min-height: 430px; }
    .phone-shell { width: min(285px, 78vw); height: 525px; transform: rotateY(-8deg) rotateX(5deg); }
    .orbit-ring { width: 330px; height: 330px; }
    .card-top { right: 4%; top: 42px; } .card-bottom { left: 3%; bottom: 72px; }
    .proof-row { grid-template-columns: 1fr; }
    .carousel-shell { min-height: 620px; overflow: hidden; }
    .carousel-stage { height: 590px; }
    .carousel-card { width: min(430px, 84vw); min-height: 535px; }
    .carousel-card.prev { transform: translate(-50%, -50%) translateX(-250px) translateZ(-120px) scale(.72) rotateY(36deg); opacity: .38; }
    .carousel-card.next { transform: translate(-50%, -50%) translateX(250px) translateZ(-120px) scale(.72) rotateY(-36deg); opacity: .38; }
    .carousel-card.far-prev, .carousel-card.far-next { opacity: 0; pointer-events: none; }
    .carousel-btn { top: auto; bottom: 12px; width: 48px; height: 48px; }
    .carousel-btn.prev { left: calc(50% - 62px); } .carousel-btn.next { right: calc(50% - 62px); }
    .carousel-dots { margin-top: 0; padding-bottom: 12px; }
    .browser-mockup { height: 235px; }
    .project-info { padding: 22px; }
    .whatsapp-float { display: none; }
    .mobile-action-bar { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 2100; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border: 1px solid var(--border); border-radius: 22px; background: rgba(255,255,255,.86); box-shadow: 0 18px 45px rgba(15,23,42,.18); backdrop-filter: blur(16px); }
    body.dark-mode .mobile-action-bar { background: rgba(6,17,31,.86); }
    .mobile-action-bar a { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 16px; text-decoration: none; font-family: Sora; font-weight: 900; }
    .mobile-action-bar a:first-child { background: var(--whatsapp); color: #fff; }
    .mobile-action-bar a:last-child { background: var(--primary-soft); color: var(--primary-2); }
    .site-footer { padding-bottom: 110px; }
}

@media (max-width: 620px) {
    .container { width: min(100% - 28px, 1180px); }
    .section { padding: 58px 0; }
    .section-heading { text-align: left; margin-bottom: 28px; }
    .section-heading p { margin-left: 0; font-size: .96rem; }
    .hero { padding: 40px 0 54px; }
    h1 { font-size: clamp(2.45rem, 12.5vw, 3.7rem); }
    h2 { font-size: clamp(2rem, 10.5vw, 3rem); }
    .hero-copy { text-align: left; }
    .hero-actions, .hero-tags { justify-content: flex-start; }
    .hero-actions .btn { width: 100%; }
    .phone-shell { width: min(250px, 74vw); height: 465px; border-radius: 38px; }
    .phone-screen { padding: 46px 14px 14px; border-radius: 29px; }
    .mini-hero-card { padding: 18px; border-radius: 22px; }
    .mini-hero-card strong { font-size: 1.18rem; }
    .orbit-card { font-size: .8rem; padding: 9px 12px; }
    .card-top { right: 0; } .card-bottom { left: 0; }
    .services-grid, .process-grid { grid-template-columns: 1fr; }
    .service-card, .process-card { min-height: auto; }
    .wow-stack { min-height: auto; grid-template-columns: 1fr; }
    .stack-card, .stack-card:nth-child(2), .stack-card:nth-child(4) { transform: none; animation: none; }
    .carousel-shell { min-height: 580px; margin-inline: -14px; }
    .carousel-stage { height: 545px; }
    .carousel-card { width: min(355px, 86vw); min-height: 500px; border-radius: 24px; }
    .browser-mockup { height: 195px; }
    .browser-bar small { max-width: 205px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .project-info h3 { font-size: 1.28rem; }
    .project-info p { font-size: .92rem; }
    .quote-panel { border-radius: 26px; padding: 24px; }
    .quote-actions { grid-template-columns: 1fr; }
    .calendar-card { min-height: 430px; padding: 14px; }
    .calendly-inline-widget { height: 430px; }
    .calendar-placeholder { inset: 14px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
    .carousel-card { width: 88vw; }
    .browser-mockup { height: 178px; }
    .project-info { padding: 18px; }
    .tech-tags span { font-size: .66rem; }
    .phone-shell { height: 430px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    .intro-loader { display: none; }
}
/* Portfolio page additions */
.portfolio-hero { min-height: 64svh; }
.portfolio-hero-layout { grid-template-columns: 1fr; text-align: center; }
.portfolio-hero .hero-copy { max-width: 960px; margin: 0 auto; }
.portfolio-hero .hero-copy p, .portfolio-hero .hero-actions { margin-left: auto; margin-right: auto; justify-content: center; }
.portfolio-list-section { padding-top: 30px; }
.portfolio-grid-page { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.portfolio-page-card { border-radius: 28px; overflow: hidden; background: var(--surface-solid); border: 1px solid var(--border); box-shadow: var(--shadow); transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.portfolio-page-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-blue); }
.portfolio-page-card .browser-mockup { height: 300px; }
@media (max-width: 820px) { .portfolio-grid-page { grid-template-columns: 1fr; } .portfolio-page-card .browser-mockup { height: 230px; } .portfolio-hero .hero-copy { text-align: left; } .portfolio-hero .hero-actions { justify-content: flex-start; } }
