/* ============================================================
   FLOWBRAIN — styles.css
   Global styles | Design tokens | Layout | Components
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Outfit:wght@300;400;500;600&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
    --bg: #ffffff;
    --bg-dark: #07080d;
    --bg-section: #f5f5f7;
    --primary: #0a0a0f;
    --accent: #00e87a;
    --accent-2: #00bfff;
    --accent-glow: rgba(0, 232, 122, 0.12);
    --muted: #6b7280;
    --border: rgba(10, 10, 15, 0.09);
    --border-subtle: rgba(10, 10, 15, 0.05);
    --white: #ffffff;

    --font-head: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --radius-sm: 6px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 40px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.12);
    --shadow-accent: 0 8px 32px rgba(0, 232, 122, 0.28);

    --transition: all 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    --nav-h: 72px;
    --container: 1200px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: var(--font-body);
}

ul,
ol {
    list-style: none;
}

/* ---------- Layout Utilities ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1rem, 5vw, 2.5rem);
}

.section {
    padding-block: clamp(4rem, 8vw, 7rem);
}

.section-alt {
    background: var(--bg-section);
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--muted);
}

.accent-text {
    color: var(--accent);
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ---------- Section Header ---------- */
.section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid rgba(0, 232, 122, 0.28);
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--primary);
    margin-bottom: 0.9rem;
}

.section-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--muted);
    max-width: 560px;
    margin-inline: auto;
    line-height: 1.75;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.btn-sm {
    padding: 0.55rem 1.2rem;
    font-size: 0.85rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: #1a1a2e;
    border-color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: var(--accent);
    color: var(--primary);
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-accent);
    font-weight: 700;
}

.btn-accent:hover {
    background: #00ff8a;
    border-color: #00ff8a;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 232, 122, 0.42);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.07);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    border: 2px solid #25D366;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.32);
    font-weight: 700;
}

.btn-whatsapp:hover {
    background: #1ebe5a;
    border-color: #1ebe5a;
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(37, 211, 102, 0.48);
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-h);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.03em;
    color: var(--primary);
    transition: var(--transition);
}

.nav-logo:hover {
    opacity: 0.8;
}

/* On dark sections, force white logo */
.navbar-dark .nav-logo {
    color: var(--white);
}

.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.65);
}

.navbar-dark .nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
}

.navbar-dark .nav-hamburger span {
    background: var(--white);
}

.navbar-dark .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-dark .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.navbar-dark .logo-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.nav-link {
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--bg-section);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.45rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.nav-hamburger span {
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-mobile {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0 1rem;
    z-index: 999;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.nav-mobile.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.nav-mobile-links {
    display: flex;
    flex-direction: column;
    padding-inline: 1.5rem;
    gap: 0.15rem;
}

.nav-mobile-link {
    padding: 0.8rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-mobile-link:hover {
    background: var(--bg-section);
    border-left-color: var(--accent);
    padding-left: 1.25rem;
}

.nav-mobile-cta {
    padding: 1rem 1.5rem 0;
    margin-top: 0.75rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* ---------- HERO ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-dark);
    padding-top: var(--nav-h);
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.hero-bg-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 0%, rgba(0, 232, 122, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 100% 80%, rgba(0, 191, 255, 0.05) 0%, transparent 60%);
}

.hero-circuit-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: calc(100vh - var(--nav-h));
    padding-block: 4rem;
}

.hero-text {
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 232, 122, 0.1);
    color: var(--accent);
    border: 1px solid rgba(0, 232, 122, 0.28);
    padding: 0.38rem 1rem;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(2.6rem, 5.5vw, 5rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.hero-title .highlight {
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.hero-title .highlight::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: underline-reveal 0.8s 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero-desc {
    font-size: clamp(0.95rem, 1.4vw, 1.12rem);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.78;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-num {
    font-family: var(--font-head);
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.04em;
    display: block;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-num span {
    color: var(--accent);
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-card-main {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 3;
}

.card-win-bar {
    display: flex;
    gap: 5px;
    margin-bottom: 1.25rem;
}

.win-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.win-dot.r {
    background: #ff5f57;
}

.win-dot.y {
    background: #febc2e;
}

.win-dot.g {
    background: #28c840;
}

.card-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 1rem;
}

.card-metric-main {
    font-family: var(--font-head);
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.card-metric-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 232, 122, 0.15);
    color: var(--accent);
    border: 1px solid rgba(0, 232, 122, 0.25);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.card-bars {
    display: flex;
    gap: 5px;
    align-items: flex-end;
    height: 64px;
    margin-bottom: 1rem;
}

.card-bar {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: rgba(255, 255, 255, 0.07);
    position: relative;
    overflow: hidden;
}

.card-bar .fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(to top, var(--accent), rgba(0, 232, 122, 0.3));
    transition: height 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin-bottom: 1rem;
}

.card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-row-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
}

.card-row-val {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.card-row-val.green {
    color: var(--accent);
}

/* Floating mini cards */
.float-card {
    position: absolute;
    background: rgba(15, 16, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem;
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    white-space: nowrap;
    z-index: 4;
}

.float-card.fc-top {
    top: -1.2rem;
    right: -2rem;
    animation: float-a 4s ease-in-out infinite;
}

.float-card.fc-bot {
    bottom: -1.2rem;
    left: -2rem;
    animation: float-b 5s ease-in-out infinite;
}

.fc-ico {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.fc-ico.g {
    background: rgba(0, 232, 122, 0.15);
}

.fc-ico.b {
    background: rgba(0, 191, 255, 0.15);
}

.fc-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.fc-lbl {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

.fc-val {
    font-size: 0.82rem;
    color: var(--white);
    font-weight: 700;
}

/* ---------- Services Cards ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    border-color: rgba(0, 232, 122, 0.2);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: var(--bg-section);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--accent-glow);
    border-color: rgba(0, 232, 122, 0.28);
}

.service-title {
    font-family: var(--font-head);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.6rem;
}

.service-desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.65;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.25rem;
}

.service-tag {
    background: var(--bg-section);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.7rem;
    padding: 0.18rem 0.6rem;
    border-radius: 100px;
    font-weight: 500;
}

/* ---------- Benefits Section ---------- */
.benefits-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.benefits-visual {
    position: relative;
    border-radius: var(--radius-xl);
    background: var(--bg-dark);
    aspect-ratio: 4 / 5;
    max-height: 560px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.bv-noise {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 232, 122, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 232, 122, 0.035) 1px, transparent 1px);
    background-size: 40px 40px;
}

.bv-glow {
    position: absolute;
    top: -80px;
    left: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 232, 122, 0.14) 0%, transparent 65%);
}

.bv-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    z-index: 2;
}

.bv-stat-row {
    display: flex;
    gap: 0.75rem;
}

.bv-stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem 1.1rem;
    backdrop-filter: blur(10px);
}

.bv-stat-label {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.38);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.35rem;
}

.bv-stat-num {
    font-family: var(--font-head);
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.04em;
    line-height: 1;
}

.bv-stat-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 0.2rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.benefit-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: var(--radius-md);
    background: var(--bg-section);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: var(--transition);
}

.benefit-item:hover .benefit-icon {
    background: var(--accent-glow);
    border-color: rgba(0, 232, 122, 0.3);
}

.benefit-title {
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.benefit-desc {
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ---------- How It Works ---------- */
.steps-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
    gap: 0;
    margin-top: 3rem;
}

.steps-connector {
    position: absolute;
    top: 36px;
    left: calc(100% / 6);
    right: calc(100% / 6);
    height: 1px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 50%, var(--accent) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.75rem;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.step-item:hover .step-num {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary);
    box-shadow: var(--shadow-accent);
}

.step-title {
    font-family: var(--font-head);
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.step-desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.65;
}

/* ---------- Portfolio ---------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.portfolio-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
    transition: var(--transition);
    position: relative;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 232, 122, 0.2);
}

.portfolio-thumb {
    aspect-ratio: 16/10;
    background: var(--bg-section);
    overflow: hidden;
    position: relative;
}

.portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-thumb img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 8, 13, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    padding: 1.2rem 1.5rem;
}

.portfolio-title {
    font-family: var(--font-head);
    font-size: 0.975rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.22rem;
}

.portfolio-category {
    font-size: 0.74rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.portfolio-category span {
    color: var(--accent);
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.testi-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition);
    position: relative;
}

.testi-card::before {
    content: '"';
    position: absolute;
    top: 0.8rem;
    right: 1.25rem;
    font-family: var(--font-head);
    font-size: 5rem;
    font-weight: 800;
    color: rgba(0, 232, 122, 0.1);
    line-height: 1;
}

.testi-card:hover {
    border-color: rgba(0, 232, 122, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.testi-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 0.9rem;
}

.star {
    color: #f59e0b;
    font-size: 0.88rem;
}

.testi-text {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.78;
    margin-bottom: 1.4rem;
    position: relative;
    z-index: 1;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testi-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.9rem;
}

.testi-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 1px;
}

.testi-role {
    font-size: 0.76rem;
    color: var(--muted);
}

/* ---------- CTA Banner ---------- */
.cta-section {
    background: var(--bg-dark);
    padding-block: clamp(4.5rem, 8vw, 7rem);
    position: relative;
    overflow: hidden;
}

.cta-section .hero-bg-glow {
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 680px;
    margin-inline: auto;
}

.cta-title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.cta-desc {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.cta-note {
    margin-top: 1.25rem;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.28);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: clamp(3rem, 5vw, 5rem);
    padding-bottom: 1.75rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 100px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.18rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.86rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    max-width: 260px;
}

.footer-social {
    display: flex;
    gap: 0.65rem;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.45);
    transition: var(--transition);
    font-size: 1rem;
}

.social-link:hover {
    background: var(--accent-glow);
    border-color: rgba(0, 232, 122, 0.3);
    color: var(--accent);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-family: var(--font-head);
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 1.1rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.45);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-copy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.28);
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-legal a {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.28);
    transition: var(--transition);
}

.footer-legal a:hover {
    color: rgba(255, 255, 255, 0.65);
}

/* ---------- WhatsApp Float ---------- */
.wap-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 8000;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.45);
    transition: var(--transition);
    animation: wap-pulse 3s ease-in-out infinite;
}

.wap-float:hover {
    background: #1ebe5a;
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 10px 38px rgba(37, 211, 102, 0.6);
    animation: none;
}

.wap-float svg {
    width: 28px;
    height: 28px;
}

.wap-tip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-dark);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.wap-tip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right: none;
    border-left-color: var(--bg-dark);
}

.wap-float:hover .wap-tip {
    opacity: 1;
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.45rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.94rem;
    color: var(--primary);
    transition: var(--transition);
    outline: none;
    appearance: none;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 232, 122, 0.1);
}

.form-control::placeholder {
    color: #9ca3af;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    font-size: 0.76rem;
    color: #ef4444;
    margin-top: 0.3rem;
    display: none;
}

.form-group.has-error .form-control {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.form-group.has-error .form-error {
    display: block;
}

.form-consent {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.form-consent input[type="checkbox"] {
    width: 17px;
    height: 17px;
    min-width: 17px;
    margin-top: 2px;
    accent-color: var(--accent);
    cursor: pointer;
}

.form-consent label {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.55;
}

.form-consent a {
    color: var(--primary);
    text-decoration: underline;
}

/* ---------- Page Header (non-index pages) ---------- */
.page-header {
    background: var(--bg-dark);
    padding-top: calc(var(--nav-h) + 3.5rem);
    padding-bottom: 3.5rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 50px 50px;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-family: var(--font-head);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.52);
    font-size: 1.05rem;
    max-width: 560px;
    line-height: 1.72;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 1rem;
}

.page-breadcrumb a {
    transition: var(--transition);
}

.page-breadcrumb a:hover {
    color: var(--accent);
}

.page-breadcrumb .sep {
    color: rgba(255, 255, 255, 0.22);
}

/* ---------- Legal Pages ---------- */
.legal-content {
    max-width: 780px;
    margin-inline: auto;
    padding-block: 3rem;
}

.legal-content h2 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 2.5rem;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-section);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    font-size: 0.935rem;
    color: var(--muted);
    line-height: 1.85;
    margin-bottom: 0.9rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.legal-content ul li {
    font-size: 0.935rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 0.3rem;
}

.legal-content strong {
    color: var(--primary);
}

.legal-content a {
    color: var(--accent);
}

/* ---------- Contacto Page ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.contact-lead-title {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.65rem;
}

.contact-lead-desc {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.78;
    margin-bottom: 2rem;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem;
    transition: var(--transition);
}

.contact-card:hover {
    border-color: rgba(0, 232, 122, 0.3);
    background: var(--accent-glow);
    transform: translateX(4px);
}

.cc-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.cc-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 1px;
}

.cc-val {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.contact-form-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.cf-title {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.cf-subtitle {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Portfolio full */
.portfolio-full-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.pf-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg);
    transition: var(--transition);
}

.pf-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 232, 122, 0.2);
}

.pf-img {
    aspect-ratio: 16/9;
    background: var(--bg-section);
    overflow: hidden;
}

.pf-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s ease;
}

.pf-card:hover .pf-img img {
    transform: scale(1.04);
}

.pf-body {
    padding: 1.75rem;
}

.pf-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.pf-tag {
    background: var(--bg-section);
    border: 1px solid var(--border);
    color: var(--accent);
    font-size: 0.68rem;
    padding: 0.18rem 0.65rem;
    border-radius: 100px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.pf-title {
    font-family: var(--font-head);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.45rem;
}

.pf-desc {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.pf-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.pf-tech {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.pf-tech span {
    font-size: 0.7rem;
    color: var(--muted);
    background: var(--bg-section);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

/* Servicios full page */
.scf-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 3rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    transition: var(--transition);
    background: var(--bg);
}

.scf-card.reverse {
    direction: rtl;
}

.scf-card.reverse>* {
    direction: ltr;
}

.scf-card:hover {
    border-color: rgba(0, 232, 122, 0.22);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.scf-big-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.scf-title {
    font-family: var(--font-head);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.scf-desc {
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.78;
    margin-bottom: 1.5rem;
}

.scf-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.scf-li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--muted);
}

.scf-li::before {
    content: '';
    width: 6px;
    height: 6px;
    min-width: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.scf-visual {
    background: var(--bg-section);
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    border: 1px solid var(--border);
}

/* ---------- Responsive ---------- */

/* ── 1280px: Large tablets / small desktops ── */
@media (max-width: 1280px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 2rem;
    }

    .hero-inner {
        gap: 2.5rem;
    }

    .benefits-wrap {
        gap: 3rem;
    }

    .scf-card {
        padding: 2.25rem;
        gap: 2rem;
    }
}

/* ── 1024px: Tablets landscape / small laptops ── */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .scf-card {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 2rem;
    }

    .scf-card.reverse {
        direction: ltr;
    }

    .scf-visual {
        max-height: 180px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-full-grid {
        grid-template-columns: 1fr;
    }

    .benefits-wrap {
        gap: 3rem;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .hero-card-main {
        max-width: 340px;
    }
}

/* ── 900px: Tablets portrait / large phones ── */
@media (max-width: 900px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-mobile {
        display: block;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding-block: 3rem;
        min-height: unset;
    }

    .hero-visual {
        order: -1;
        max-width: 360px;
        margin-inline: auto;
    }

    .hero-text {
        text-align: center;
    }

    .hero-badge {
        margin-inline: auto;
    }

    .hero-desc {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }

    .services-grid,
    .portfolio-grid,
    .testimonials-grid,
    .steps-wrap,
    .benefits-wrap,
    .portfolio-full-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .steps-connector {
        display: none;
    }

    .step-item {
        flex-direction: row;
        text-align: left;
        gap: 1.25rem;
        align-items: flex-start;
    }

    .step-num {
        margin-bottom: 0;
        min-width: 64px;
        width: 64px;
        height: 64px;
        font-size: 1.1rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .benefits-visual {
        max-height: 280px;
        aspect-ratio: 16/7;
    }

    .bv-content {
        padding: 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .float-card {
        display: none;
    }

    .hero-card-main {
        max-width: 100%;
    }
}

/* ── 768px: Tablets portrait ── */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .pf-body {
        padding: 1.25rem;
    }

    .scf-card {
        padding: 1.5rem;
    }

    .scf-title {
        font-size: 1.3rem;
    }

    .page-header {
        padding-top: calc(var(--nav-h) + 2rem);
        padding-bottom: 2.5rem;
    }
}

/* ── 640px: Large phones ── */
@media (max-width: 640px) {
    :root {
        --nav-h: 62px;
    }

    .hero {
        min-height: auto;
        padding-bottom: 3rem;
    }

    .hero-inner {
        gap: 2rem;
        padding-block: 2rem;
    }

    .hero-visual {
        max-width: 100%;
    }

    .hero-card-main {
        padding: 1.25rem;
    }

    .card-metric-main {
        font-size: 2.4rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.2rem;
        justify-content: center;
    }

    .hero-stats .stat-item {
        min-width: 120px;
        text-align: center;
    }

    .cta-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 360px;
        margin-inline: auto;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .footer-legal {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.75rem 1.25rem;
    }

    .wap-float {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 52px;
        height: 52px;
    }

    .wap-float svg {
        width: 24px;
        height: 24px;
    }

    .wap-tip {
        display: none;
    }

    .contact-form-box {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
    }

    .bv-stat-row {
        gap: 0.6rem;
    }

    .bv-stat-num {
        font-size: 1.4rem;
    }

    .float-card.fc-top {
        right: -0.5rem;
    }

    .float-card.fc-bot {
        left: -0.5rem;
    }

    .section-title {
        font-size: clamp(1.65rem, 6vw, 2.2rem);
    }

    .scf-card {
        padding: 1.25rem;
        border-radius: var(--radius-lg);
    }

    .scf-title {
        font-size: 1.2rem;
    }

    .scf-big-icon {
        font-size: 2.25rem;
    }

    .scf-visual {
        max-height: 140px;
    }

    .portfolio-full-grid {
        gap: 1.25rem;
        margin-top: 2rem;
    }

    .pf-body {
        padding: 1.1rem;
    }

    .pf-title {
        font-size: 1rem;
    }

    .pf-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .services-grid {
        gap: 1rem;
        margin-top: 2rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .page-header {
        padding-top: calc(var(--nav-h) + 1.5rem);
        padding-bottom: 2rem;
    }

    .page-header h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .step-num {
        min-width: 52px;
        width: 52px;
        height: 52px;
        font-size: 1rem;
    }

    .step-item {
        gap: 1rem;
    }

    .benefits-visual {
        max-height: 220px;
    }

    .bv-stat-row {
        flex-direction: column;
    }

    .bv-stat {
        padding: 0.75rem 1rem;
    }

    .contact-lead-title {
        font-size: 1.25rem;
    }

    .toast {
        bottom: 4.5rem;
        right: 1rem;
        left: 1rem;
        max-width: unset;
    }
}

/* ── 480px: Small phones ── */
@media (max-width: 480px) {
    :root {
        --nav-h: 58px;
    }

    .hero-title {
        font-size: clamp(2rem, 8.5vw, 2.8rem);
    }

    .hero-desc {
        font-size: 0.92rem;
    }

    .hero-badge {
        font-size: 0.66rem;
        padding: 0.32rem 0.85rem;
    }

    .hero-card-main {
        padding: 1rem;
    }

    .card-metric-main {
        font-size: 2rem;
    }

    .card-bars {
        height: 50px;
    }

    .stat-num {
        font-size: 1.5rem;
    }

    .section {
        padding-block: clamp(2.5rem, 7vw, 4.5rem);
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-tag {
        font-size: 0.66rem;
        padding: 0.3rem 0.85rem;
    }

    .btn-lg {
        padding: 0.95rem 1.75rem;
        font-size: 0.95rem;
    }

    .testi-card {
        padding: 1.25rem;
    }

    .testi-card::before {
        font-size: 3.5rem;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
    }

    .footer-desc {
        max-width: 100%;
    }

    .contact-form-box {
        padding: 1.25rem;
    }

    .cf-title {
        font-size: 1.15rem;
    }

    .form-control {
        padding: 0.75rem 0.9rem;
        font-size: 0.9rem;
    }

    .portfolio-grid,
    .testimonials-grid {
        gap: 1rem;
    }

    .cta-section {
        padding-block: clamp(3rem, 7vw, 4.5rem);
    }

    .cta-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .cta-desc {
        font-size: 0.92rem;
    }

    .scf-card {
        padding: 1rem;
    }

    .scf-list {
        gap: 0.35rem;
    }
}

/* ── 360px: Very small phones ── */
@media (max-width: 360px) {
    :root {
        --nav-h: 54px;
    }

    .container {
        padding-inline: 1rem;
    }

    .hero-title {
        font-size: clamp(1.75rem, 9vw, 2.2rem);
    }

    .hero-card-main {
        padding: 0.85rem;
    }

    .card-metric-main {
        font-size: 1.75rem;
    }

    .hero-stats {
        gap: 0.85rem;
    }

    .stat-num {
        font-size: 1.3rem;
    }

    .btn-lg {
        padding: 0.85rem 1.4rem;
        font-size: 0.9rem;
    }

    .nav-logo span:not(.logo-icon) {
        font-size: 1rem;
    }

    .wap-float {
        width: 46px;
        height: 46px;
        bottom: 1rem;
        right: 1rem;
    }

    .wap-float svg {
        width: 22px;
        height: 22px;
    }

    .testi-card {
        padding: 1rem;
    }

    .service-card {
        padding: 1.25rem;
    }

    .contact-form-box {
        padding: 1rem;
        border-radius: var(--radius-md);
    }

    .pf-body {
        padding: 0.9rem;
    }

    .scf-card {
        padding: 0.9rem;
        border-radius: var(--radius-lg);
    }
}