/* ============================================
   Quorus Landing Page - CSS
   Migrado de WordPress para Blazor Server
   ============================================ */

/* Google Fonts - Original WordPress */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ============================================
   CSS Variables / Design Tokens
   Restaurado do tema original WordPress
   ============================================ */
:root {
    --primary-color:  #0066FF;
    --secondary-color: #00C9FF;

    --dark-bg:        #0A0E27;
    --dark-bg-alt:    #1A1F3A;
    --dark-bg-card:   #141832;
    --dark-border:    rgba(255, 255, 255, 0.1);

    --text-color:     #FFFFFF;
    --text-secondary: #A0AEC0;
    --text-muted:     rgba(160, 174, 192, 0.6);

    --accent-1:       #0066FF;
    --accent-2:       #00C9FF;
    --accent-gradient: linear-gradient(135deg, #0066FF 0%, #00C9FF 100%);
    --accent-glow:    rgba(0, 102, 255, 0.25);

    --font-display: 'Space Grotesk', sans-serif;
    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm:  8px;
    --radius-md:  16px;
    --radius-lg:  24px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    --shadow-card: 0 4px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.2);
}

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--dark-border);
    transition: padding 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo-img {
    height: 52px;
    width: auto;
    transition: opacity var(--transition-fast);
}

.nav-logo:hover .nav-logo-img {
    opacity: 0.85;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    letter-spacing: 0.02em;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 20px;
    border-radius: 3px;
    overflow: hidden;
    opacity: 0.5;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.lang-flag:hover {
    opacity: 0.85;
    transform: scale(1.1);
}

.lang-flag.active {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(0, 102, 255, 0.4);
}

.lang-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-cta {
    font-size: 0.875rem;
    padding: 0.5rem 1.25rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 102, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--dark-border);
}

.btn-secondary:hover {
    border-color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.05);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

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

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
}

.fade-in-up {
    animation: fadeInUp 0.7s ease both;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 5rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 102, 255, 0.18) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 85% 60%, rgba(0, 201, 255, 0.12) 0%, transparent 60%),
        var(--dark-bg);
    z-index: 0;
}

/* Subtle grid overlay */
.hero-background::after {
    content: '';
    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;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 30%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-image {
    flex-shrink: 0;
    width: 845px;
    max-width: 70%;
}

.hero-image img {
    width: 100%;
    height: auto;
    mix-blend-mode: screen;
    filter: brightness(1.1);
}

@media (max-width: 900px) {
    .hero-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        max-width: 550px;
        width: 100%;
        order: -1;
        margin-bottom: 1rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.gradient-text {
    display: block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 4s ease infinite;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 2.5rem;
    line-height: 1.75;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   Sections Base
   ============================================ */
.section {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ============================================
   Expertise / Serviços Grid
   ============================================ */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.expertise-card {
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.expertise-card:hover {
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.expertise-card:hover::before {
    opacity: 1;
}

.expertise-icon {
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    display: block;
    line-height: 1;
}

.expertise-card h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.expertise-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Sobre Section
   ============================================ */
.sobre-section {
    background: var(--dark-bg-alt);
}

.sobre-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.sobre-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 3.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2rem;
}

.stat-item {
    padding: 2rem 1.5rem;
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateY(-3px);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.75rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.iso-banner {
    margin-top: 3rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(0, 201, 255, 0.08) 100%);
    border: 1px solid rgba(0, 102, 255, 0.25);
    border-left: 4px solid;
    border-image: var(--accent-gradient) 1;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.iso-banner:hover {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.12) 0%, rgba(0, 201, 255, 0.12) 100%);
    border-color: rgba(0, 102, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.15);
}

.iso-banner-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.iso-banner-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.iso-banner-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
}

.iso-banner-title span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.iso-banner-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ============================================
   Security & Data Protection Section
   ============================================ */
.security-block {
    margin-top: 2.5rem;
}

.security-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2rem;
}

.security-intro h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.security-intro h3 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.security-intro p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.security-card {
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.security-card[open],
.security-card:hover {
    border-color: rgba(0, 102, 255, 0.35);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.12);
}

.security-card summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    user-select: none;
}

.security-card summary::-webkit-details-marker {
    display: none;
}

.security-card-icon {
    font-size: 1.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.security-card-head {
    flex: 1;
}

.security-card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.security-card-title::after {
    content: "+";
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-secondary);
    transition: transform 0.25s ease;
    line-height: 1;
}

.security-card[open] .security-card-title::after {
    transform: rotate(45deg);
}

.security-card-summary {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.security-card-body {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--dark-border);
}

.security-card-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.security-card-body li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.security-card-body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gradient);
}

.security-card-body strong {
    color: var(--text-color);
    font-weight: 600;
}

.security-compliance {
    margin-top: 1.5rem;
    padding: 1.5rem 1.75rem;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, rgba(0, 201, 255, 0.05) 100%);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: var(--radius-md);
}

.security-compliance-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: center;
}

.security-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.security-badge {
    padding: 0.4rem 0.85rem;
    background: rgba(0, 102, 255, 0.12);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .security-grid {
        grid-template-columns: 1fr;
    }

    .security-intro h3 {
        font-size: 1.35rem;
    }
}

/* ============================================
   Founder / Profile Section
   ============================================ */
.founder-section {
    background: var(--dark-bg);
}

.founder-card {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2.5rem;
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.founder-card:hover {
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: var(--shadow-glow);
}

.founder-photo-wrapper {
    flex-shrink: 0;
}

.founder-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background-image: var(--accent-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.2);
}

.founder-photo-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, rgba(0, 201, 255, 0.15) 100%);
    border: 3px solid;
    border-image: var(--accent-gradient) 1;
    border-radius: 50%;
    border: 3px solid rgba(0, 102, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(0, 102, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.2);
}

.founder-info {
    flex: 1;
}

.founder-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.founder-role {
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.founder-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.founder-sources {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
    font-style: italic;
}

@media (max-width: 768px) {
    .founder-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.5rem;
    }

    .founder-photo,
    .founder-photo-placeholder {
        width: 140px;
        height: 140px;
    }

    .iso-banner {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    background: var(--dark-bg);
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.75rem 2.5rem;
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 200px;
}

.contact-card:hover {
    border-color: rgba(0, 102, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.contact-card h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--dark-bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--dark-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.15);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.validation-message {
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 0.35rem;
    display: block;
}

.form-feedback {
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-success {
    background: rgba(0, 212, 170, 0.12);
    border: 1px solid rgba(0, 212, 170, 0.3);
    color: #00d4aa;
}

.form-error {
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--dark-bg-alt);
    border-top: 1px solid var(--dark-border);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.footer-section p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-section ul a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.footer-section ul a:hover {
    color: var(--text-color);
}

.footer-bottom {
    border-top: 1px solid var(--dark-border);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ============================================
   Blazor Specific — remover estilos padrão
   ============================================ */
.main-title {
    display: none;
}

#blazor-error-ui {
    background: #2d1b1b;
    border-top: 2px solid #ff6b6b;
    bottom: 0;
    box-shadow: 0 -1px 8px rgba(0,0,0,0.4);
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #ff9999;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-right {
        gap: 0.75rem;
    }

    .nav-cta {
        display: none;
    }

    .lang-flag {
        width: 24px;
        height: 17px;
    }

    .hero-section {
        padding: 7rem 0 4rem;
        min-height: auto;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .section {
        padding: 4rem 0;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    background: var(--dark-bg);
}

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

.testimonial-card {
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all var(--transition-normal);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--primary-color);
    opacity: 0.15;
    line-height: 1;
}

.testimonial-card:hover {
    border-color: rgba(0, 102, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.testimonial-content {
    flex: 1;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-secondary);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.company-badge {
    background: var(--accent-gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-author {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   Card Link (Saiba mais)
   ============================================ */
.card-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

a.expertise-card {
    text-decoration: none;
    display: block;
    cursor: pointer;
}

a.expertise-card:hover .card-link {
    color: var(--secondary-color);
}

/* ============================================
   Service Pages
   ============================================ */
.service-hero {
    position: relative;
    padding: 10rem 0 4rem;
    overflow: hidden;
}

.service-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--primary-color);
}

.service-icon-large {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.service-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.service-hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Service Details */
.service-details {
    background: var(--dark-bg);
}

.service-content-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    align-items: start;
}

.service-main-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.service-main-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.service-main-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background: var(--accent-gradient);
    border-radius: 50%;
}

/* Sidebar Cards */
.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 100px;
}

.tech-card,
.benefits-card {
    background: var(--dark-bg-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-md);
    padding: 1.75rem;
}

.tech-card h3,
.benefits-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-color);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

/* Service CTA */
.service-cta {
    background: var(--dark-bg-alt);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

/* Service Pages Responsive */
@media (max-width: 900px) {
    .service-content-grid {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tech-card,
    .benefits-card {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding: 8rem 0 3rem;
    }

    .service-icon-large {
        font-size: 3rem;
    }

    .service-sidebar {
        flex-direction: column;
    }

    .tech-card,
    .benefits-card {
        min-width: 100%;
    }
}

/* ===== Cookie consent banner ===== */
#qc-root {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
    animation: qc-slide-in 0.35s ease-out;
}

#qc-root.qc-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.qc-banner {
    pointer-events: auto;
    background: #ffffff;
    color: #1a1a2e;
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    max-width: 980px;
    width: 100%;
    overflow: hidden;
}

.qc-inner {
    padding: 1.5rem 1.75rem;
}

.qc-main h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a2e;
}

.qc-main p {
    margin: 0 0 1.1rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #3a3a52;
}

.qc-main p a {
    color: #4f46e5;
    text-decoration: underline;
}

.qc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

.qc-btn {
    border: 0;
    border-radius: 10px;
    padding: 0.65rem 1.1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    font-family: inherit;
}

.qc-btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
}

.qc-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.qc-btn-secondary {
    background: #f1f1f6;
    color: #1a1a2e;
}

.qc-btn-secondary:hover {
    background: #e7e7f0;
}

.qc-prefs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qc-category {
    border: 1px solid #e7e7f0;
    border-radius: 10px;
    padding: 0.9rem 1rem;
}

.qc-cat-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.qc-cat-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.qc-cat-required {
    margin-left: auto;
    font-size: 0.75rem;
    color: #6b6b85;
    background: #f1f1f6;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
}

.qc-cat-desc {
    margin: 0;
    font-size: 0.85rem;
    color: #4a4a63;
    line-height: 1.5;
}

.qc-prefs-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
}

.qc-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    flex-shrink: 0;
}

.qc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.qc-slider {
    position: absolute;
    inset: 0;
    background: #d4d4dc;
    border-radius: 999px;
    transition: background 0.2s ease;
    cursor: pointer;
}

.qc-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.qc-switch input:checked + .qc-slider {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

.qc-switch input:checked + .qc-slider::before {
    transform: translateX(18px);
}

.qc-switch input:focus-visible + .qc-slider {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

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

@media (max-width: 640px) {
    .qc-inner {
        padding: 1.25rem;
    }

    .qc-actions {
        flex-direction: column-reverse;
    }

    .qc-actions .qc-btn,
    .qc-prefs-actions .qc-btn {
        width: 100%;
    }

    .qc-prefs-actions {
        flex-direction: column-reverse;
    }
}

/* ===== Cookie policy page ===== */
.policy-page {
    padding: 10rem 0 5rem;
    background: var(--bg-light, #f7f7fb);
    min-height: 100vh;
}

.policy-container {
    max-width: 880px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    padding: 3rem 3rem 2.5rem;
}

.policy-container h1 {
    font-size: 2.1rem;
    margin: 0 0 0.5rem;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.policy-updated {
    font-size: 0.85rem;
    color: #6b6b85;
    margin-bottom: 2rem;
}

.policy-container h2 {
    font-size: 1.3rem;
    margin: 2rem 0 0.75rem;
    color: #1a1a2e;
}

.policy-container h3 {
    font-size: 1.05rem;
    margin: 1.25rem 0 0.5rem;
    color: #1a1a2e;
}

.policy-container p,
.policy-container li {
    font-size: 0.95rem;
    line-height: 1.65;
    color: #3a3a52;
}

.policy-container ul {
    padding-left: 1.25rem;
    margin: 0 0 1rem;
}

.policy-container a {
    color: #4f46e5;
    text-decoration: underline;
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.88rem;
}

.policy-table th,
.policy-table td {
    text-align: left;
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid #e7e7f0;
    vertical-align: top;
}

.policy-table th {
    background: #f7f7fb;
    font-weight: 600;
    color: #1a1a2e;
}

.policy-back {
    display: inline-block;
    margin-bottom: 1.25rem;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

.policy-back:hover {
    text-decoration: underline;
}

.policy-manage-btn {
    display: inline-block;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 0.7rem 1.2rem;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.5rem;
    font-family: inherit;
}

.policy-manage-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

@media (max-width: 640px) {
    .policy-container {
        padding: 2rem 1.25rem;
    }

    .policy-container h1 {
        font-size: 1.6rem;
    }

    .policy-table {
        font-size: 0.8rem;
    }

    .policy-table th,
    .policy-table td {
        padding: 0.5rem 0.55rem;
    }
}
