/* ========================================
   LABRIE APPS - Apple-Inspired Design
   ======================================== */

/* CSS Variables */
:root {
    /* Colors - Purple Palette */
    --purple-deep: #7C3AED;
    --purple-vivid: #A855F7;
    --purple-glow: #C084FC;
    --purple-subtle: rgba(124, 58, 237, 0.1);
    --purple-gradient: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-vivid) 50%, var(--purple-glow) 100%);

    /* Backgrounds - Dark Theme */
    --bg-black: #000000;
    --bg-dark: #0A0A0A;
    --bg-card: #171717;
    --bg-elevated: #1F1F1F;

    /* Backgrounds - Light Theme */
    --bg-light: #FFFFFF;
    --bg-light-subtle: #F5F5F7;
    --bg-light-card: #FFFFFF;

    /* Neutrals */
    --gray-800: #262626;
    --gray-700: #404040;
    --gray-600: #525252;
    --gray-500: #737373;
    --gray-400: #A1A1AA;
    --gray-300: #D4D4D8;
    --gray-200: #E5E5E5;
    --gray-100: #F5F5F5;
    --white: #FFFFFF;
    --white-muted: rgba(255, 255, 255, 0.7);
    --white-subtle: rgba(255, 255, 255, 0.5);

    /* Text colors for light sections */
    --text-dark: #1D1D1F;
    --text-dark-muted: #6E6E73;

    /* Typography */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Layout */
    --container-max: 1200px;
    --container-padding: 1.5rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* Effects */
    --blur-sm: 8px;
    --blur-md: 16px;
    --blur-lg: 24px;
    --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.3);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--white);
    background-color: var(--bg-black);
    overflow-x: hidden;
}

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

ul, ol {
    list-style: none;
}

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

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-base);
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(var(--blur-md));
    -webkit-backdrop-filter: blur(var(--blur-md));
    opacity: 0;
    transition: var(--transition-base);
}

.header.scrolled::before {
    opacity: 1;
}

.header.scrolled {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Logo */
.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 100;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--purple-gradient);
    border-radius: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--white);
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

/* Nav Menu */
.nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--white-muted);
    transition: var(--transition-fast);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--purple-gradient);
    transition: var(--transition-base);
}

.nav__link:hover {
    color: var(--white);
}

.nav__link:hover::after {
    width: 100%;
}

/* Nav CTA */
.nav__cta {
    padding: 0.625rem 1.25rem;
    background: var(--purple-gradient);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
    transition: var(--transition-base);
}

.nav__cta:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

/* Language Selector */
.lang-selector {
    display: flex;
    gap: 0.25rem;
    margin-left: 1rem;
}

.lang-btn {
    padding: 0.375rem 0.625rem;
    background: transparent;
    border: 1px solid var(--gray-700);
    border-radius: 6px;
    color: var(--white-muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.lang-btn:hover {
    border-color: var(--purple-vivid);
    color: var(--white);
}

.lang-btn.active {
    background: var(--purple-deep);
    border-color: var(--purple-deep);
    color: var(--white);
}

/* Mobile Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition-base);
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition-base);
}

.btn--primary {
    background: var(--purple-gradient);
    color: var(--white);
}

.btn--primary:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow);
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray-700);
}

.btn--ghost:hover {
    border-color: var(--purple-vivid);
    color: var(--purple-glow);
}

.btn--full {
    width: 100%;
}

.btn svg {
    width: 20px;
    height: 20px;
    transition: var(--transition-fast);
}

.btn:hover svg {
    transform: translateX(4px);
}

/* ========================================
   SECTION HEADERS
   ======================================== */

.section-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--purple-vivid);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--white-muted);
    max-width: 600px;
}

.section-header--center {
    text-align: center;
}

.section-header--center .section-subtitle {
    margin: 0 auto;
}

/* Gradient Text */
.gradient-text {
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-black);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 58, 237, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(168, 85, 247, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 80%, rgba(192, 132, 252, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero__content {
    position: relative;
    text-align: center;
    max-width: 1100px;
    padding: var(--space-4xl) var(--container-padding);
}

.hero__eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--purple-vivid);
    margin-bottom: var(--space-lg);
}

.hero__title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--white);
    margin-bottom: var(--space-lg);
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--white-muted);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.hero__scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.5;
    animation: float 2s ease-in-out infinite;
}

.hero__scroll span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--white-subtle);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--purple-vivid), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* ========================================
   VALORES SECTION (Light Theme)
   ======================================== */

.valores {
    padding: var(--space-4xl) 0;
    background: var(--bg-light-subtle);
}

.valores .section-header {
    margin-bottom: var(--space-3xl);
}

.valores .section-eyebrow {
    color: var(--purple-deep);
}

.valores .section-title {
    color: var(--text-dark);
}

.valores__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

/* Valor Card */
.valor-card {
    position: relative;
    padding: var(--space-xl);
    background: var(--bg-light-card);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    transition: var(--transition-smooth);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.valor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--purple-gradient);
    opacity: 0;
    transition: var(--transition-base);
}

.valor-card:hover {
    transform: translateY(-8px);
    border-color: var(--purple-vivid);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
}

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

.valor-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(124, 58, 237, 0.08);
    border-radius: 16px;
    margin-bottom: var(--space-md);
    transition: var(--transition-base);
}

.valor-card__icon svg {
    width: 28px;
    height: 28px;
    color: var(--purple-deep);
}

.valor-card:hover .valor-card__icon {
    background: var(--purple-gradient);
}

.valor-card:hover .valor-card__icon svg {
    color: var(--white);
}

.valor-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
}

.valor-card__desc {
    color: var(--text-dark-muted);
    line-height: 1.7;
}

/* ========================================
   PRODUTOS SECTION
   ======================================== */

.produtos {
    padding: var(--space-4xl) 0;
    background: var(--bg-black);
}

.produtos .section-header {
    margin-bottom: var(--space-3xl);
}

.produtos__showcase {
    display: flex;
    flex-direction: column;
    gap: var(--space-4xl);
}

/* Produto Card */
.produto-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.produto-card--reverse {
    direction: rtl;
}

.produto-card--reverse > * {
    direction: ltr;
}

/* Phone Mockup */
.produto-card__visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.produto-card__mockup {
    position: relative;
    z-index: 2;
}

/* App Logo Container (inside phone) */
.app-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    padding: 40px;
}

.app-logo-container img {
    width: 100%;
    height: 100%;
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
    border-radius: 32px;
}

.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    font-size: 4.5rem;
    font-weight: 800;
    background: var(--purple-gradient);
    border-radius: 32px;
    color: var(--white);
    box-shadow:
        0 20px 40px rgba(124, 58, 237, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.phone-frame {
    position: relative;
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 44px;
    padding: 12px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5),
        inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #000;
    border-radius: 20px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 36px;
    overflow: hidden;
}

/* App Placeholder */
.app-placeholder {
    height: 100%;
    padding: 60px 16px 16px;
}

.app-placeholder__header {
    height: 60px;
    background: linear-gradient(135deg, var(--purple-deep), var(--purple-vivid));
    border-radius: 16px;
    margin-bottom: 16px;
}

.app-placeholder__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-placeholder__card {
    height: 80px;
    background: var(--bg-elevated);
    border-radius: 12px;
}

.app-placeholder__list {
    flex: 1;
    background: var(--bg-elevated);
    border-radius: 12px;
    min-height: 120px;
}

.app-placeholder--alt .app-placeholder__header {
    background: linear-gradient(135deg, var(--purple-vivid), var(--purple-glow));
}

.app-placeholder__chart {
    height: 140px;
    background: var(--bg-elevated);
    border-radius: 12px;
}

.app-placeholder__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    flex: 1;
}

.app-placeholder__stats::before,
.app-placeholder__stats::after {
    content: '';
    height: 80px;
    background: var(--bg-elevated);
    border-radius: 12px;
}

/* Glow Effect */
.produto-card__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.25) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 1;
}

/* Produto Info */
.produto-card__info {
    padding: var(--space-lg) 0;
}

.produto-card__badge {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--purple-subtle);
    color: var(--purple-vivid);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
}

.produto-card__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-sm);
}

.produto-card__desc {
    font-size: 1.125rem;
    color: var(--white-muted);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.produto-card__features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: var(--space-lg);
}

.produto-card__features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white-muted);
}

.produto-card__features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--purple-vivid);
    border-radius: 50%;
}

/* Rating */
.produto-card__rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--space-lg);
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    width: 16px;
    height: 16px;
    background: var(--gray-700);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star.filled {
    background: #FFD700;
}

.star.half {
    background: linear-gradient(90deg, #FFD700 50%, var(--gray-700) 50%);
}

.rating-text {
    font-size: 0.875rem;
    color: var(--white-muted);
}

/* Store Buttons */
.produto-card__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--gray-800);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition-base);
}

.store-btn svg {
    width: 20px;
    height: 20px;
}

.store-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--purple-deep);
    transform: translateY(-2px);
}

/* ========================================
   IMPACTO SECTION (Light Theme)
   ======================================== */

.impacto {
    padding: var(--space-4xl) 0;
    background: var(--bg-light-subtle);
}

.impacto .section-header {
    margin-bottom: var(--space-3xl);
}

.impacto .section-eyebrow {
    color: var(--purple-deep);
}

.impacto .section-title {
    color: var(--text-dark);
}

.impacto__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

/* Metrica */
.metrica {
    text-align: center;
    padding: var(--space-xl);
}

.metrica__value {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
}

.metrica__number {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metrica__suffix {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--purple-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metrica__label {
    font-size: 1rem;
    color: var(--text-dark-muted);
    margin-top: var(--space-xs);
}

/* ========================================
   CONTATO SECTION
   ======================================== */

.contato {
    padding: var(--space-4xl) 0;
    background: var(--bg-black);
    position: relative;
}

.contato::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.contato__wrapper {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

/* Contato Info */
.contato__info {
    padding-right: var(--space-xl);
}

.contato__info .section-title {
    margin-bottom: var(--space-md);
}

.contato__desc {
    font-size: 1.125rem;
    color: var(--white-muted);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.contato__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contato__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.contato__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--purple-subtle);
    border-radius: 12px;
    flex-shrink: 0;
}

.contato__icon svg {
    width: 24px;
    height: 24px;
    color: var(--purple-vivid);
}

.contato__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white-subtle);
    margin-bottom: 0.25rem;
}

.contato__value {
    font-size: 1rem;
    color: var(--white);
    transition: var(--transition-fast);
}

a.contato__value:hover {
    color: var(--purple-vivid);
}

/* Contact Form */
.contato__form {
    background: var(--bg-card);
    border: 1px solid var(--gray-800);
    border-radius: 24px;
    padding: var(--space-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid var(--gray-800);
    border-radius: 12px;
    color: var(--white);
    transition: var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-500);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple-deep);
    box-shadow: 0 0 0 3px var(--purple-subtle);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

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

.contato__form .btn {
    margin-top: var(--space-sm);
}

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

.footer {
    padding: var(--space-3xl) 0 var(--space-lg);
    background: var(--bg-dark);
    border-top: 1px solid var(--gray-800);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

/* Footer Brand */
.footer__brand {
    padding-right: var(--space-xl);
}

.footer__brand .nav__logo {
    margin-bottom: var(--space-md);
}

.footer__desc {
    color: var(--white-muted);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.footer__social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--gray-800);
    border-radius: 10px;
    transition: var(--transition-base);
}

.social-link svg {
    width: 18px;
    height: 18px;
    color: var(--white-muted);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--purple-deep);
    border-color: var(--purple-deep);
}

.social-link:hover svg {
    color: var(--white);
}

/* Footer Links */
.footer__links h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
    margin-bottom: var(--space-md);
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__links a {
    font-size: 0.875rem;
    color: var(--white-muted);
    transition: var(--transition-fast);
}

.footer__links a:hover {
    color: var(--purple-vivid);
}

/* Footer Bottom */
.footer__bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-800);
    text-align: center;
}

.footer__bottom p {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ========================================
   ANIMATIONS
   ======================================== */

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

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

/* Tablet */
@media (max-width: 1024px) {
    .valores__grid {
        gap: var(--space-md);
    }

    .produto-card {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .produto-card--reverse {
        direction: ltr;
    }

    .produto-card__visual {
        order: 1;
    }

    .produto-card__info {
        order: 2;
        text-align: center;
    }

    .produto-card__features {
        align-items: center;
    }

    .produto-card__rating {
        justify-content: center;
    }

    .produto-card__actions {
        justify-content: center;
    }

    .impacto__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contato__wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .contato__info {
        padding-right: 0;
        text-align: center;
    }

    .contato__details {
        align-items: center;
    }

    .contato__item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    .footer__brand {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
    }

    .footer__social {
        justify-content: center;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --container-padding: 1.25rem;
    }

    /* Mobile Navigation */
    .nav__menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        background: var(--bg-black);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
    }

    .nav__menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav__link {
        font-size: 1.5rem;
        font-weight: 600;
    }

    .nav__cta {
        display: none;
    }

    .lang-selector {
        margin-left: auto;
        margin-right: 1rem;
    }

    .nav__toggle {
        display: flex;
    }

    /* Hero Mobile */
    .hero__content {
        padding: var(--space-3xl) var(--container-padding);
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .hero__scroll {
        display: none;
    }

    /* Valores Mobile */
    .valores__grid {
        grid-template-columns: 1fr;
    }

    /* Produtos Mobile */
    .phone-frame {
        width: 240px;
        height: 500px;
    }

    /* Impacto Mobile */
    .impacto__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .metrica {
        padding: var(--space-md);
    }

    /* Contact Form Mobile */
    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer Mobile */
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__links {
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .impacto__grid {
        grid-template-columns: 1fr;
    }

    .phone-frame {
        width: 200px;
        height: 420px;
    }

    .produto-card__actions {
        flex-direction: column;
    }

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

/* ========================================
   LEGAL PAGES (Terms & Privacy)
   ======================================== */

.legal-page {
    background: var(--bg-dark);
    min-height: 100vh;
}

/* Legal Header */
.legal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-800);
    padding: var(--space-sm) 0;
}

.legal-header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.legal-header__app-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--purple-vivid);
    padding: 0.25rem 0.75rem;
    background: var(--purple-subtle);
    border-radius: 8px;
}

/* Legal Content */
.legal-content {
    padding-top: 100px;
    padding-bottom: var(--space-4xl);
}

.legal-hero {
    text-align: center;
    padding: var(--space-3xl) 0;
    border-bottom: 1px solid var(--gray-800);
    margin-bottom: var(--space-2xl);
}

.legal-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-sm);
}

.legal-subtitle {
    font-size: 1.25rem;
    color: var(--purple-vivid);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.legal-update {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Table of Contents */
.legal-toc {
    background: var(--bg-card);
    border-radius: 16px;
    padding: var(--space-lg);
    margin-bottom: var(--space-2xl);
    border: 1px solid var(--gray-800);
}

.legal-toc h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-toc ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.legal-toc a {
    color: var(--gray-400);
    text-decoration: none;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
    background: var(--bg-elevated);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.legal-toc a:hover {
    color: var(--white);
    background: var(--purple-subtle);
}

/* Legal Sections */
.legal-section {
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--gray-800);
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--purple-deep);
    display: inline-block;
}

.legal-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.legal-section p {
    color: var(--gray-300);
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

/* Legal Lists */
.legal-list {
    list-style: none;
    margin: var(--space-md) 0;
}

.legal-list li {
    color: var(--gray-300);
    padding: var(--space-sm) 0;
    padding-left: var(--space-lg);
    position: relative;
    line-height: 1.6;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.1rem;
    width: 6px;
    height: 6px;
    background: var(--purple-vivid);
    border-radius: 50%;
}

.legal-list li strong {
    color: var(--white);
}

/* Contact Info */
.legal-contact-info {
    background: var(--bg-card);
    border-radius: 12px;
    padding: var(--space-lg);
    border: 1px solid var(--gray-800);
    margin-top: var(--space-md);
}

.legal-contact-info p {
    margin-bottom: var(--space-sm);
}

.legal-contact-info p:last-child {
    margin-bottom: 0;
}

.legal-contact-info strong {
    color: var(--white);
}

/* Legal Footer Info */
.legal-footer-info {
    text-align: center;
    padding-top: var(--space-2xl);
}

.legal-footer-info h2 {
    display: block;
    border-bottom: none;
    padding-bottom: 0;
}

.legal-copyright {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: var(--space-lg);
}

/* Legal Table */
.legal-table-wrapper {
    margin: var(--space-lg) 0;
    overflow-x: auto;
    border-radius: 12px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 12px;
    overflow: hidden;
}

.legal-table th,
.legal-table td {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.legal-table th {
    background: rgba(139, 92, 246, 0.2);
    color: var(--purple-400);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.legal-table td {
    color: var(--gray-300);
    font-size: 0.95rem;
    line-height: 1.6;
}

.legal-table td:first-child {
    color: var(--white);
    font-weight: 500;
    white-space: nowrap;
}

.legal-table tbody tr:hover {
    background: rgba(139, 92, 246, 0.15);
}

.legal-table tbody tr:last-child td {
    border-bottom: none;
}

/* Back Button */
.legal-back {
    text-align: center;
    margin-top: var(--space-2xl);
}

/* Legal Page Responsive */
@media (max-width: 768px) {
    .legal-header__content {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-sm);
    }

    .legal-header__app-name {
        order: -1;
        width: 100%;
        text-align: center;
    }

    .legal-toc ul {
        flex-direction: column;
    }

    .legal-toc a {
        display: block;
    }

    .legal-title {
        font-size: 1.75rem;
    }
}
