/* =========================================================
   Xavier Rosales — Portfolio
   Dark · Responsive · Vanilla
   ========================================================= */

:root {
    --bg: #14151c;
    --bg-2: #181a23;
    --surface: #1f2230;
    --surface-2: #262a3a;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #e6e6e6;
    --text-dim: #8b949e;
    --text-soft: #c9d1d9;
    --accent: #00d4ff;
    --accent-2: #7c3aed;
    --accent-glow: rgba(0, 212, 255, 0.35);

    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);

    --max: 1200px;
    --pad-x: 24px;

    --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;

    --t: 0.3s ease;
}

* { box-sizing: border-box; }

*::selection {
    background: var(--accent);
    color: #001018;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

button { font-family: inherit; cursor: pointer; }

[hidden] { display: none !important; }

.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 18% 12%, rgba(0, 212, 255, 0.10), transparent 45%),
        radial-gradient(circle at 88% 6%, rgba(124, 58, 237, 0.10), transparent 50%),
        radial-gradient(circle at 50% 90%, rgba(0, 212, 255, 0.06), transparent 55%),
        var(--bg);
    animation: bg-shift 18s ease-in-out infinite alternate;
}

@keyframes bg-shift {
    0%   { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
    100% { background-position: 10% 8%, 90% 4%, 60% 95%, 0 0; }
}

/* =========================================================
   NAVBAR
   ========================================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: var(--t);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(20, 21, 28, 0.78);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 16px var(--pad-x);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--t);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--t);
}

.nav-links a:hover::after { width: 100%; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-toggle {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    transition: var(--t);
    font-family: var(--font-mono);
}

.lang-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.10);
}

.nav-burger {
    display: none;
    background: transparent;
    border: 0;
    width: 36px;
    height: 36px;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav-burger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--t);
}

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

/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 100vh;
    min-height: 100svh;
    padding: 96px var(--pad-x) 64px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-grid {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 64px;
}

.hero-greet {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    margin: 0 0 12px;
    letter-spacing: 0.02em;
}

.hero-name {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.4vw, 3.6rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, #ffffff 0%, #c9d1d9 60%, var(--accent) 110%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role {
    margin: 0 0 22px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    color: var(--text-soft);
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    color: var(--accent);
    margin: 0 0 18px;
    min-height: 1.6em;
}

.hero-tagline::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 1.05em;
    background: var(--accent);
    margin-left: 4px;
    vertical-align: -2px;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-bio {
    color: var(--text-dim);
    font-size: 1.02rem;
    margin: 0 0 32px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--t);
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #4f93ff);
    color: #001018;
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 212, 255, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}

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

.hero-social { display: flex; gap: 12px; }

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    transition: var(--t);
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 212, 255, 0.25);
}

/* Hero visual */
.hero-visual {
    position: relative;
    height: 480px;
    perspective: 1200px;
}

.visual-mesh {
    position: absolute;
    inset: 10%;
    background:
        radial-gradient(circle at 30% 30%, rgba(0, 212, 255, 0.35), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(124, 58, 237, 0.35), transparent 60%);
    filter: blur(60px);
    border-radius: 40%;
    animation: morph 12s ease-in-out infinite alternate;
}

@keyframes morph {
    0%   { border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%; transform: rotate(0deg) scale(1); }
    100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: rotate(20deg) scale(1.05); }
}

.mockup {
    position: absolute;
    border-radius: 26px;
    background-size: cover;
    background-position: center top;
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
    transition: transform 0.6s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform;
}

.mockup-1 { top: 4%;   left: 22%; width: 42%; height: 92%; transform: rotate(-6deg); z-index: 3; }
.mockup-2 { top: 10%;  left: -2%; width: 36%; height: 80%; transform: rotate(-12deg); z-index: 2; }
.mockup-3 { top: 14%;  right: 0;  width: 38%; height: 80%; transform: rotate(8deg); z-index: 2; }

.hero-visual:hover .mockup-1 { transform: rotate(-3deg) translateY(-8px); }
.hero-visual:hover .mockup-2 { transform: rotate(-9deg) translateY(-4px); }
.hero-visual:hover .mockup-3 { transform: rotate(5deg) translateY(-4px); }

.visual-tag {
    position: absolute;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-strong);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text);
    z-index: 4;
    animation: float 6s ease-in-out infinite;
}

.tag-1 { top: 4%;    right: 12%; animation-delay: 0s;   color: var(--accent);   border-color: rgba(0,212,255,0.3); }
.tag-2 { bottom: 14%; left: 4%;  animation-delay: 1.2s; }
.tag-3 { bottom: 4%;  right: 18%; animation-delay: 2.4s; color: var(--accent-2); border-color: rgba(124,58,237,0.35); }

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

/* =========================================================
   SECTIONS
   ========================================================= */

.section { padding: 96px var(--pad-x); }

.container {
    max-width: var(--max);
    margin: 0 auto;
}

.section-head { margin-bottom: 48px; text-align: center; }

.section-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    margin: 14px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section-sub {
    color: var(--text-dim);
    margin: 0 auto;
    max-width: 580px;
}


/* =========================================================
   PROJECTS
   ========================================================= */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 36px;
}

.filter {
    background: transparent;
    color: var(--text-dim);
    border: 1px solid var(--border-strong);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--t);
}

.filter:hover { color: var(--text); border-color: var(--text-dim); }

.filter.active {
    background: var(--accent);
    color: #001018;
    border-color: var(--accent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow-md);
}

.project.featured { grid-column: span 2; }

@media (max-width: 760px) {
    .project.featured { grid-column: span 1; }
}

.card-media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-2);
}

.project.featured .card-media { aspect-ratio: 21 / 9; }

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.6s ease;
}

.card:hover .card-media img { transform: scale(1.04); }

.placeholder-mockup {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-display);
    color: #fff;
    text-align: center;
    padding: 24px;
}

.placeholder-mockup .ph-name { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.01em; }
.placeholder-mockup .ph-icon { font-size: 2.4rem; font-family: var(--font-mono); font-weight: 700; }
.placeholder-mockup .ph-meta { font-size: 0.85rem; opacity: 0.85; font-family: var(--font-mono); }

.grad-cyan   { background: linear-gradient(135deg, #003a55 0%, #00d4ff 50%, #4f93ff 100%); }
.grad-violet { background: linear-gradient(135deg, #2a0e5e 0%, #7c3aed 60%, #c084fc 100%); }
.grad-teal   { background: linear-gradient(135deg, #062b2b 0%, #0d9488 60%, #5eead4 100%); }
.grad-dark   { background: linear-gradient(135deg, #0d1117 0%, #1a1a2e 60%, #2d2d4f 100%); }

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(20, 21, 28, 0.65);
    border: 1px solid var(--border-strong);
}

.badge-pro      { color: var(--accent);  border-color: rgba(0, 212, 255, 0.4); }
.badge-personal { color: #c084fc;        border-color: rgba(192, 132, 252, 0.4); }
.badge-auto     { color: #fbbf24;        border-color: rgba(251, 191, 36, 0.4); }

.card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.card-body h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--text);
}

.card-body p {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.93rem;
    line-height: 1.55;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 0;
}

.tags li {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    padding: 4px 9px;
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.06);
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.18);
}

.card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: auto;
    padding-top: 6px;
}

.card-links a {
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: var(--t);
}

.card-links a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* =========================================================
   STACK
   ========================================================= */

.stack-groups { display: grid; gap: 28px; }

.stack-group {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: var(--t);
}

.stack-group:hover { border-color: var(--border-strong); }

.stack-title {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    transition: var(--t);
    text-align: center;
}

.stack-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.05);
}

.stack-item img { width: 36px; height: 36px; }
.stack-item span:last-child { font-size: 0.78rem; color: var(--text-soft); }

.badge-text {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(124, 58, 237, 0.15));
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.25);
}

.badge-text.accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #001018;
    border: 0;
}

/* =========================================================
   ACHIEVEMENTS
   ========================================================= */

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.achievement {
    padding: 26px 22px;
    text-align: left;
}

.achievement .ach-icon {
    font-size: 2rem;
    margin-bottom: 14px;
    display: inline-block;
    line-height: 1;
}

.achievement h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text);
}

.achievement p {
    margin: 0;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* =========================================================
   CERTIFICATIONS
   ========================================================= */

.certs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 14px;
}

.cert {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--t);
}

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

.cert-icon { font-size: 1.4rem; flex-shrink: 0; }

.cert > div { display: flex; flex-direction: column; gap: 2px; }

.cert strong {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

.cert-org {
    color: var(--text-dim);
    font-size: 0.8rem;
    font-family: var(--font-mono);
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    padding: 80px var(--pad-x) 48px;
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent 0%, rgba(0, 212, 255, 0.04) 100%);
}

.footer .container { text-align: center; }

.footer-msg {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    margin: 0 auto 28px;
    color: var(--text);
    max-width: 680px;
}

.footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 36px;
}

.copyright {
    color: var(--text-dim);
    font-size: 0.82rem;
    font-family: var(--font-mono);
    margin: 0;
}

/* =========================================================
   FLOATING UI
   ========================================================= */

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 0.88rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: opacity var(--t), transform var(--t);
    z-index: 200;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: var(--t);
    z-index: 90;
}

.back-top.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-top:hover {
    color: var(--accent);
    border-color: var(--accent);
}

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

@media (min-width: 720px) {
    .stack-groups { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1080px) {
    :root { --pad-x: 48px; }
    .stack-groups { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { height: 360px; max-width: 460px; margin: 0 auto; width: 100%; }
}

@media (max-width: 720px) {
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(20, 21, 28, 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        padding: 20px var(--pad-x) 24px;
        border-bottom: 1px solid var(--border);
        gap: 18px;
        transform: translateY(-120%);
        transition: transform 0.35s ease;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links a { font-size: 1rem; }
    .nav-burger { display: inline-flex; }

    /* ===== Mobile horizontal carousels ===== */
    .projects-grid,
    .stack-groups,
    .achievements-grid,
    .certs-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-padding-inline: var(--pad-x);
        margin-inline: calc(var(--pad-x) * -1);
        padding: 4px var(--pad-x) 18px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .projects-grid::-webkit-scrollbar,
    .stack-groups::-webkit-scrollbar,
    .achievements-grid::-webkit-scrollbar,
    .certs-list::-webkit-scrollbar { display: none; }

    .projects-grid > .project,
    .stack-groups > .stack-group,
    .achievements-grid > .achievement,
    .certs-list > .cert {
        flex: 0 0 86%;
        max-width: 86%;
        scroll-snap-align: start;
    }

    .project.featured { flex-basis: 86%; max-width: 86%; }

    .cert { min-height: 76px; }

    /* Subtle hint that content is swipeable */
    .projects-grid::after,
    .stack-groups::after,
    .achievements-grid::after,
    .certs-list::after {
        content: '';
        flex: 0 0 8px;
    }
}

@media (max-width: 560px) {
    .section { padding: 72px var(--pad-x); }
    .hero { padding-top: 110px; }
    .hero-visual { height: 320px; }
    .mockup-1 { width: 46%; }
    .footer-actions { flex-direction: column; align-items: stretch; }
    .footer-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    html { scroll-behavior: auto; }
}
