/* ============================================================
   WebsitesBaratos — Custom CSS
   Bootstrap 5.3 + Dark/Light Theme + 3D Effects
   ============================================================ */

/* Bootstrap, Bootstrap Icons e Google Fonts carregados via CDN no layout */

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
    --wb-font-heading: 'Space Grotesk', sans-serif;
    --wb-font-body:    'Inter', sans-serif;

    /* Dark theme (default) */
    --wb-bg:          #030712;
    --wb-bg-2:        #0f172a;
    --wb-bg-card:     #111c2d;
    --wb-border:      rgba(255, 255, 255, 0.07);
    --wb-text:        #f1f5f9;
    --wb-title:       #f1f5f9;
    --wb-text-muted:  #94a3b8;
    --wb-primary:     #8162ff;
    --wb-primary-rgb: 124, 58, 237;
    --wb-secondary:   #3b82f6;
    --wb-accent:      #06b6d4;
    --wb-gradient:    linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    --wb-gradient-2:  linear-gradient(135deg, #06b6d4 0%, #7c3aed 100%);
    --wb-shadow:      0 20px 60px rgba(0, 0, 0, 0.5);
    --wb-shadow-glow: 0 0 40px rgba(124, 58, 237, 0.3);
    --wb-navbar-bg:   rgba(3, 7, 18, 0.95);
    --wb-glass:       rgba(30, 41, 59, 0.6);
}

[data-bs-theme="light"] {
    --wb-bg:          #f8fafc;
    --wb-bg-2:        #f1f5f9;
    --wb-bg-card:     #ffffff;
    --wb-border:      rgba(0, 0, 0, 0.08);
    --wb-text:        #0f172a;
    --wb-title:       #64748b;
    --wb-text-muted:  #64748b;
    --wb-primary:     #6d28d9;
    --wb-primary-rgb: 109, 40, 217;
    --wb-secondary:   #2563eb;
    --wb-accent:      #0891b2;
    --wb-gradient:    linear-gradient(135deg, #6d28d9 0%, #2563eb 100%);
    --wb-gradient-2:  linear-gradient(135deg, #0891b2 0%, #6d28d9 100%);
    --wb-shadow:      0 20px 60px rgba(0, 0, 0, 0.12);
    --wb-shadow-glow: 0 0 40px rgba(109, 40, 217, 0.15);
    --wb-navbar-bg:   rgba(248, 250, 252, 0.95);
    --wb-glass:       rgba(255, 255, 255, 0.8);
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--wb-font-body);
    background: var(--wb-bg) !important;
    color: var(--wb-text);
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--wb-font-heading);
    font-weight: 700;
    color: var(--wb-title);
}

[data-bs-theme="dark"] {
    --bs-body-bg: var(--wb-bg);
    --bs-body-color: var(--wb-text);
}

/* ── Utility ──────────────────────────────────────────────── */
.text-gradient {
    background: var(--wb-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-2 {
    background: var(--wb-gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.btn-gradient {
    background: var(--wb-gradient);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.78rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    isolation: isolate;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3b82f6 0%, #7c3aed 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(var(--wb-primary-rgb), 0.45);
    color: #fff;
}

.btn-gradient:hover::before { opacity: 1; }
.btn-gradient > * { position: relative; z-index: 1; }

.btn-outline-wb {
    border: 2px solid var(--wb-primary);
    color: var(--wb-primary);
    background: transparent;
    font-weight: 600;
    padding: 0.72rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-wb:hover {
    background: var(--wb-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(var(--wb-primary-rgb), 0.35);
}

/* ── Navbar ───────────────────────────────────────────────── */
.wb-navbar {
    background: var(--wb-navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--wb-border);
    transition: all 0.35s ease;
    padding: 1rem 0;
}

.wb-navbar.scrolled {
    padding: 0.6rem 0;
    box-shadow: var(--wb-shadow);
}

.wb-logo {
    font-family: var(--wb-font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    background: var(--wb-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.wb-nav-link {
    color: var(--wb-text-muted) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
}

.wb-nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--wb-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.wb-nav-link:hover, .wb-nav-link.active {
    color: var(--wb-text) !important;
}

.wb-nav-link:hover::after, .wb-nav-link.active::after {
    width: 60%;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--wb-border);
    background: var(--wb-bg-card);
    color: var(--wb-text);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--wb-primary);
    color: #fff;
    border-color: var(--wb-primary);
    transform: rotate(20deg);
}

/* ── Language Switcher ────────────────────────────────────── */
.wb-lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: auto;
    height: 40px;
    padding: 0 0.85rem;
    border-radius: 20px;
    border: 1px solid var(--wb-border);
    background: var(--wb-bg-card);
    color: var(--wb-text);
    font-family: var(--wb-font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}
.wb-lang-btn::after { display: none; }
.wb-lang-btn:hover,
.wb-lang-btn.show {
    border-color: var(--wb-primary);
    color: var(--wb-primary);
    background: rgba(var(--wb-primary-rgb), 0.08);
}
.wb-lang-btn .wb-lang-flag {
    line-height: 1;
}
.wb-lang-btn .wb-lang-flag .fi {
    font-size: 0.65rem;
    border-radius: 2px;
}
.wb-lang-btn .wb-lang-chevron {
    font-size: 0.65rem;
    opacity: 0.6;
    transition: transform 0.25s ease;
    margin-left: -0.1rem;
}
.wb-lang-btn.show .wb-lang-chevron {
    transform: rotate(180deg);
}
/* ── Admin Language Tab Selector ─────────────────────────── */
.admin-lang-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: var(--wb-bg-2);
    border: 1px solid var(--wb-border);
    border-radius: 10px;
    margin-bottom: 1.25rem;
}
.admin-lang-bar .admin-lang-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--wb-text-muted);
    margin-right: 0.15rem;
    white-space: nowrap;
}
.admin-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0.25rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    background: transparent;
    color: var(--wb-text-muted);
    white-space: nowrap;
}
.admin-lang-btn:hover {
    background: var(--wb-bg-card);
    color: var(--wb-text);
}
.admin-lang-btn.active {
    background: var(--wb-gradient);
    color: white;
    border-color: var(--wb-primary);
}

.wb-lang-menu {
    background: var(--wb-bg-card) !important;
    border: 1px solid var(--wb-border) !important;
    border-radius: 16px !important;
    padding: 0.6rem !important;
    min-width: 185px;
    box-shadow: var(--wb-shadow) !important;
    margin-top: 0.4rem !important;
}
.wb-lang-item {
    display: flex !important;
    align-items: center;
    gap: 0.6rem;
    border-radius: 10px !important;
    padding: 0.55rem 0.8rem !important;
    color: var(--wb-text) !important;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.18s ease;
}
.wb-lang-item:hover {
    background: rgba(var(--wb-primary-rgb), 0.08) !important;
    color: var(--wb-primary) !important;
}
.wb-lang-item.active {
    background: rgba(var(--wb-primary-rgb), 0.1) !important;
    color: var(--wb-primary) !important;
    font-weight: 600;
}
.wb-lang-item .wb-lang-flag { line-height: 1; }
.wb-lang-item .wb-lang-flag .fi { font-size: 0.65rem; border-radius: 2px; }
.admin-lang-btn .fi { font-size: 1rem; border-radius: 2px; }
.language-manager-flag .fi { font-size: 1.5rem; border-radius: 3px; }
.wb-lang-item .wb-lang-check {
    margin-left: auto;
    font-size: 0.85rem;
    background: var(--wb-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero-section {
    min-height: 100vh;
    background: var(--wb-bg);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(var(--wb-primary-rgb), 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 10% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--wb-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--wb-border) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    opacity: 0.5;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(var(--wb-primary-rgb), 0.1);
    border: 1px solid rgba(var(--wb-primary-rgb), 0.3);
    color: var(--wb-primary);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.6s ease;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--wb-text-muted);
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 500px;
    animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s ease 0.4s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--wb-text-muted);
    font-weight: 500;
}

.trust-item i { color: #22c55e; font-size: 0.9rem; }

/* ── 3D Browser Mockup ────────────────────────────────────── */
.browser-3d-wrapper {
    perspective: 1200px;
    animation: fadeInRight 0.8s ease 0.3s both;
}

.browser-3d {
    transform: rotateX(8deg) rotateY(-15deg);
    transform-style: preserve-3d;
    animation: float3d 7s ease-in-out infinite;
    filter: drop-shadow(0 30px 60px rgba(var(--wb-primary-rgb), 0.25));
    position: relative;
}

@keyframes float3d {
    0%, 100% { transform: rotateX(8deg) rotateY(-15deg) translateY(0); }
    50%       { transform: rotateX(5deg) rotateY(-12deg) translateY(-18px); }
}

.browser-window {
    background: var(--wb-bg-card);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--wb-border);
}

.browser-bar {
    background: var(--wb-bg-2);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--wb-border);
}

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

.browser-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.browser-dot.red    { background: #ef4444; }
.browser-dot.yellow { background: #f59e0b; }
.browser-dot.green  { background: #22c55e; }

.browser-url {
    flex: 1;
    background: var(--wb-bg);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.72rem;
    color: var(--wb-text-muted);
    font-family: monospace;
    border: 1px solid var(--wb-border);
}

.browser-content {
    background: linear-gradient(160deg, var(--wb-bg-2) 0%, var(--wb-bg) 100%);
    height: 300px;
    padding: 1.25rem;
    overflow: hidden;
}

.mock-hero-bar {
    background: var(--wb-gradient);
    border-radius: 8px;
    height: 100px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.mock-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 1rem;
}

.mock-card-el {
    background: var(--wb-bg-card);
    border-radius: 6px;
    height: 55px;
    border: 1px solid var(--wb-border);
}

.mock-line {
    height: 7px;
    background: var(--wb-border);
    border-radius: 4px;
    margin-bottom: 6px;
}

.mock-line.short  { width: 65%; }
.mock-line.xshort { width: 40%; }

.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-orb-1 {
    width: 70px; height: 70px;
    background: linear-gradient(135deg, var(--wb-primary), var(--wb-secondary));
    top: 5%; right: 5%;
    animation: floatOrb1 5s ease-in-out infinite;
    opacity: 0.65;
    filter: blur(1px);
}

.hero-orb-2 {
    width: 45px; height: 45px;
    background: linear-gradient(135deg, var(--wb-accent), var(--wb-primary));
    bottom: 20%; left: -3%;
    animation: floatOrb2 6s ease-in-out infinite;
    opacity: 0.55;
}

.hero-orb-3 {
    width: 25px; height: 25px;
    background: var(--wb-secondary);
    top: 35%; right: -2%;
    animation: floatOrb1 4s ease-in-out infinite 1s;
    opacity: 0.7;
}

.hero-cube {
    position: absolute;
    border: 2px solid rgba(var(--wb-primary-rgb), 0.4);
    border-radius: 8px;
    pointer-events: none;
    animation: rotateCube linear infinite;
}

.hero-cube-1 { width: 36px; height: 36px; top: 10%; left: 5%; animation-duration: 10s; }
.hero-cube-2 { width: 22px; height: 22px; bottom: 15%; right: 10%; animation-duration: 14s; animation-direction: reverse; }

@keyframes floatOrb1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%       { transform: translateY(-20px) rotate(180deg); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translateY(0) translateX(0); }
    33%       { transform: translateY(-15px) translateX(10px); }
    66%       { transform: translateY(8px) translateX(-8px); }
}

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

/* ── Stats ────────────────────────────────────────────────── */
.stats-section {
    background: var(--wb-bg-2);
    border-top: 1px solid var(--wb-border);
    border-bottom: 1px solid var(--wb-border);
    padding: 3rem 0;
}

.stat-item { text-align: center; }

.stat-number {
    font-family: var(--wb-font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    background: var(--wb-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.stat-label {
    color: var(--wb-text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-sep {
    width: 1px;
    height: 55px;
    background: var(--wb-border);
    margin: 0 auto;
}

/* ── Sections ─────────────────────────────────────────────── */
.wb-section { padding: 6rem 0; }
.wb-section-alt { background: var(--wb-bg-2); }

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(var(--wb-primary-rgb), 0.1);
    border: 1px solid rgba(var(--wb-primary-rgb), 0.25);
    color: var(--wb-primary);
    padding: 0.3rem 0.9rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--wb-text-muted);
    max-width: 540px;
    line-height: 1.75;
    margin: 0 auto 3.5rem;
}

/* ── Service Cards ────────────────────────────────────────── */
.service-card {
    background: var(--wb-bg-card);
    border: 1px solid var(--wb-border);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
    transform-style: preserve-3d;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--wb-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    border-color: rgba(var(--wb-primary-rgb), 0.5);
    box-shadow: var(--wb-shadow-glow);
    transform: translateY(-8px);
}

.service-card:hover::before { opacity: 0.05; }

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(var(--wb-primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    transition: all 0.4s ease;
    color: var(--wb-primary);
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    background: var(--wb-gradient);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
    color: var(--wb-text);
    position: relative;
    z-index: 1;
}

.service-desc {
    font-size: 0.875rem;
    color: var(--wb-text-muted);
    line-height: 1.75;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-link {
    color: var(--wb-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-link:hover { gap: 10px; color: var(--wb-primary); }

/* ── Process ──────────────────────────────────────────────── */
.process-step { text-align: center; position: relative; padding: 1.5rem; }

.process-number {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--wb-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--wb-font-heading);
    font-size: 1.7rem;
    font-weight: 800;
    color: white;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(var(--wb-primary-rgb), 0.4);
    transition: transform 0.6s ease;
}

.process-step:hover .process-number { transform: scale(1.1) rotateY(360deg); }

.process-connector {
    position: absolute;
    top: 55px;
    left: 58%;
    right: -42%;
    height: 2px;
    background: linear-gradient(90deg, var(--wb-primary), rgba(var(--wb-primary-rgb), 0.1));
}

/* ── Portfolio Flip Cards ─────────────────────────────────── */
.flip-card {
    perspective: 1000px;
    height: 290px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
}

.flip-card-front {
    background: var(--wb-bg-card);
    border: 1px solid var(--wb-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.flip-card-back {
    background: var(--wb-gradient);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 16px;
}

.portfolio-img-placeholder {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.portfolio-img-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(3,7,18,0.75) 100%);
    pointer-events: none;
}

.portfolio-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease;
    display: block;
}

.flip-card:hover .portfolio-img-placeholder img {
    transform: scale(1.04);
}

.portfolio-img-placeholder .portfolio-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--wb-primary);
    background: linear-gradient(135deg, var(--wb-bg-2), var(--wb-bg));
}

.portfolio-label {
    flex-shrink: 0;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--wb-text);
    border-top: 1px solid var(--wb-border);
    background: var(--wb-bg-card);
}

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-card {
    background: var(--wb-bg-card);
    border: 1px solid var(--wb-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: rgba(var(--wb-primary-rgb), 0.6);
    background: linear-gradient(160deg, rgba(var(--wb-primary-rgb), 0.08) 0%, var(--wb-bg-card) 100%);
    box-shadow: var(--wb-shadow-glow);
    transform: scale(1.03);
}

.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--wb-shadow); }
.pricing-card.featured:hover { transform: scale(1.03) translateY(-6px); }

.pricing-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--wb-gradient);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.22rem 0.7rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--wb-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-family: var(--wb-font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.pricing-price sup {
    font-size: 1.1rem; margin-right: 5px; margin-top: 0.5rem; font-weight: 600;
    background: var(--wb-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.pricing-period { font-size: 0.82rem; color: var(--wb-text-muted); margin-bottom: 1.75rem; }

.pricing-features { margin-bottom: 2rem; }

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.5rem 0;
    font-size: 0.875rem;
    border-bottom: 1px solid var(--wb-border);
}

.pricing-feature:last-child { border-bottom: none; }
.pricing-feature i { width: 18px; text-align: center; flex-shrink: 0; }
.pricing-feature .bi-check-circle-fill { color: #22c55e; }
.pricing-feature .bi-x-circle { color: var(--wb-text-muted); opacity: 0.35; }

.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    background: var(--wb-bg-card);
    border: 1px solid var(--wb-border);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 3rem;
}

.billing-toggle .form-check-input { width: 2.8rem; height: 1.4rem; cursor: pointer; }
.billing-toggle .form-check-input:checked { background-color: var(--wb-primary); border-color: var(--wb-primary); }
.billing-label { font-weight: 600; font-size: 0.875rem; cursor: pointer; }

.billing-save {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 0.12rem 0.55rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 3px;
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonial-card {
    background: var(--wb-bg-card);
    border: 1px solid var(--wb-border);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--wb-shadow);
    border-color: rgba(var(--wb-primary-rgb), 0.3);
}

.testimonial-quote {
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    font-size: 3rem;
    color: rgba(var(--wb-primary-rgb), 0.12);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-stars { color: #f59e0b; font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 1rem; }
.testimonial-text { font-size: 0.9rem; color: var(--wb-text-muted); line-height: 1.8; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }

.testimonial-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--wb-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.testimonial-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 0; color: var(--wb-text); }
.testimonial-role { font-size: 0.78rem; color: var(--wb-text-muted); }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-accordion .accordion-item {
    background: var(--wb-bg-card);
    border: 1px solid var(--wb-border) !important;
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    background: var(--wb-bg-card);
    color: var(--wb-text);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 1.2rem 1.5rem;
    border-radius: 12px !important;
    box-shadow: none !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: rgba(var(--wb-primary-rgb), 0.07);
    color: var(--wb-primary);
}

.faq-accordion .accordion-body {
    background: var(--wb-bg-card);
    color: var(--wb-text-muted);
    font-size: 0.875rem;
    line-height: 1.8;
    padding: 0 1.5rem 1.25rem;
    border-top: 1px solid var(--wb-border);
}

/* ── CTA ──────────────────────────────────────────────────── */
.cta-section {
    background: var(--wb-gradient);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 35%;
    height: 200%;
    background: rgba(255,255,255,0.06);
    transform: rotate(15deg);
    border-radius: 50%;
}

/* ── Contact ──────────────────────────────────────────────── */
.wb-form-control {
    background: var(--wb-bg-card);
    border: 1px solid var(--wb-border);
    color: var(--wb-text);
    border-radius: 10px;
    padding: 0.82rem 1.1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 100%;
}

.wb-form-control:focus {
    background: var(--wb-bg-card);
    border-color: var(--wb-primary);
    color: var(--wb-text);
    box-shadow: 0 0 0 3px rgba(var(--wb-primary-rgb), 0.15);
    outline: none;
}

.wb-form-control::placeholder { color: var(--wb-text-muted); }
.wb-form-label { font-size: 0.85rem; font-weight: 600; color: var(--wb-text); margin-bottom: 0.4rem; display: block; }

.invalid-feedback { font-size: 0.78rem; }

/* ── Cookie Consent ───────────────────────────────────────── */
#cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(110%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#cookie-consent.show { transform: translateY(0); }

.cookie-bar {
    background: var(--wb-bg-2);
    border-top: 1px solid var(--wb-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.cookie-modal {
    background: var(--wb-bg-card);
    border-radius: 16px;
    border: 1px solid var(--wb-border);
    padding: 1.5rem 1.5rem 1.25rem;
    max-width: 520px;
    width: calc(100% - 1.5rem);
    margin: 0 auto 0.75rem;
    max-height: 75vh;
    overflow-y: auto;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cookie-category {
    background: var(--wb-bg-2);
    border: 1px solid var(--wb-border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.form-switch .form-check-input { width: 2.4em; height: 1.2em; cursor: pointer; }
.form-switch .form-check-input:checked { background-color: var(--wb-primary); border-color: var(--wb-primary); }

/* ── Floating Action Buttons ──────────────────────────────── */
#wb-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.6rem;
    z-index: 1000;
}

.wb-fab {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: 50% !important;
    border: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 1.35rem;
}

#wa-btn {
    background: #22c55e;
    color: white;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.45);
    transition: transform 0.2s, box-shadow 0.2s;
}
#wa-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.6);
}

#backToTop {
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    margin-top: -0.6rem;
    transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.35s ease;
}
#backToTop.show {
    opacity: 1;
    pointer-events: auto;
    max-height: 48px;
    margin-top: 0;
}

/* ── Footer ───────────────────────────────────────────────── */
.wb-footer {
    background: var(--wb-bg-2);
    border-top: 1px solid var(--wb-border);
    padding: 5rem 0 2rem;
}

.footer-brand-desc {
    color: var(--wb-text-muted);
    font-size: 0.875rem;
    line-height: 1.75;
    max-width: 270px;
    margin-bottom: 1.5rem;
}

.footer-social { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--wb-bg-card);
    border: 1px solid var(--wb-border);
    color: var(--wb-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--wb-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--wb-text);
    margin-bottom: 1.2rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.55rem; }

.footer-links a {
    color: var(--wb-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-links a:hover { color: var(--wb-primary); gap: 9px; }

.footer-bottom {
    border-top: 1px solid var(--wb-border);
    padding-top: 1.5rem;
    margin-top: 3rem;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--wb-bg); }
::-webkit-scrollbar-thumb { background: rgba(var(--wb-primary-rgb), 0.5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--wb-primary); }

/* ── Mobile nav panel (slide from right) ─────────────────── */
.wb-main-nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

/* Overlay backdrop */
.wb-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1029;
    backdrop-filter: blur(2px);
}
.wb-nav-overlay.open { display: block; }

@media (max-width: 991.98px) {
    .wb-main-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        background: var(--wb-bg-2);
        border-left: 1px solid var(--wb-border);
        padding: 5rem 1.5rem 2rem;
        overflow-y: auto;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
    }
    .wb-main-nav.open { right: 0; }

    .navbar-nav { flex-direction: column !important; width: 100%; }
    .navbar-nav .nav-item { width: 100%; }
    .wb-main-nav .mt-3 { margin-top: 1.5rem !important; }
    .wb-main-nav .d-flex.align-items-center.gap-2 { flex-wrap: wrap; }

    /* Fix Bootstrap Popper positioning: align lang dropdown to right edge */
    .wb-main-nav .dropdown-menu-end[data-bs-popper] {
        left: 0;
        right: auto;
    }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .hero-section { padding-top: 100px; padding-bottom: 4rem; }
    .hero-title { font-size: 2.1rem; }
    .wb-section { padding: 4rem 0; }
    .process-connector { display: none; }
    .pricing-card.featured { transform: none; }
    .pricing-card.featured:hover { transform: translateY(-6px); }
    .browser-3d { transform: rotateX(4deg) rotateY(-8deg); }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 1.85rem; }
    .stat-number { font-size: 2rem; }
    .billing-toggle { gap: 0.6rem; padding: 0.4rem 1rem; }
    .flip-card { height: 270px; }
}
