/* ============================================
   POUPADIM - Landing Page CSS (Refatorado)
   
   Melhorias aplicadas:
   - Font: Plus Jakarta Sans (substituiu Inter)
   - Inline styles extraídos para classes
   - will-change em elementos animados
   - Variáveis CSS organizadas
   - Sem estilos orphanados
   ============================================ */

/* ========== VARIABLES ========== */
:root {
    /* Cores Primárias - Poupadim Blue */
    --primary-50:  #f0f9ff;
    --primary-100: #e0f5fe;
    --primary-200: #bae9fd;
    --primary-300: #7cd5fd;
    --primary-400: #36beff;
    --primary-500: #00a0e3;
    --primary-600: #0080b8;
    --primary-700: #00638f;
    --primary-800: #0f1c3f;
    --primary-900: #080e21;
    
    /* Neutros */
    --gray-50:  #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Accent */
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --amber-500: #f59e0b;
    --purple-500: #8b5cf6;
    --purple-600: #7c3aed;
    --rose-500: #f43f5e;
    --teal-500: #14b8a6;
    
    /* Semânticas */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 90px;
    
    /* Typography — Plus Jakarta Sans */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

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

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2rem; }
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--teal-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hide-mobile {
    display: none;
}

@media (min-width: 1024px) {
    .hide-mobile { display: inline-flex; }
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
}

.btn svg {
    width: 1.25rem;
    height: 1.25rem;
}

.btn-primary {
    background: var(--primary-600);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(0, 128, 184, 0.35);
}

.btn-primary:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(0, 128, 184, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-outline:hover {
    border-color: var(--primary-600);
    color: var(--primary-600);
    background: var(--primary-50);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn-ghost:hover {
    color: var(--primary-600);
    background: var(--primary-50);
}

.btn-white {
    background: #fff;
    color: var(--gray-900);
}

.btn-white:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* ========== HEADER ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0);
    backdrop-filter: blur(0);
    transition: all var(--transition-slow);
}

.header.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
}

.logo-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 62px;
}

.logo-image img {
    height: 100%;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

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

@media (min-width: 1024px) {
    .nav { display: flex; }
}

.nav a {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-500);
    transition: width var(--transition-slow);
}

.nav a:hover {
    color: var(--primary-600);
}

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

.header-actions {
    display: none;
    align-items: center;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .header-actions { display: flex; }
}

.mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--gray-700);
}

.mobile-menu-btn svg {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-menu-btn .icon-close {
    display: none;
}

@media (min-width: 1024px) {
    .mobile-menu-btn { display: none; }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--gray-100);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu nav a {
    padding: 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.mobile-menu nav a:hover {
    color: var(--primary-600);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* ========== HERO ========== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--header-height) + 2rem) 0 4rem;
    background: linear-gradient(135deg, var(--gray-50) 0%, #fff 50%, var(--primary-50) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50%;
    height: 60%;
    background: radial-gradient(circle, var(--primary-200) 0%, transparent 70%);
    opacity: 0.5;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -10%;
    width: 40%;
    height: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

.hero-grid {
    position: relative;
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr 420px; gap: 4rem; }
}

@media (min-width: 1280px) {
    .hero-grid { grid-template-columns: 1fr 460px; }
}

.hero-content {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-content { text-align: left; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.hero-badge span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-700);
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-title { font-size: 2.75rem; }
}

@media (min-width: 1024px) {
    .hero-title { font-size: 3.25rem; }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 540px;
}

@media (min-width: 1024px) {
    .hero-subtitle { margin-left: 0; margin-right: 0; }
}

.hero-benefits {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    text-align: left;
}

@media (min-width: 1024px) {
    .hero-benefits { margin-bottom: 0; }
}

.hero-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--gray-700);
}

.hero-benefits li svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary-500);
    flex-shrink: 0;
    margin-top: 2px;
}

.hero-benefits strong {
    color: var(--gray-900);
}

/* Hero Stats Mobile */
.hero-stats-mobile {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

@media (min-width: 640px) {
    .hero-stats-mobile { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
    .hero-stats-mobile { display: none; }
}

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

.stat-item strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
}

.stat-item span {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Hero Form */
.hero-form-card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--gray-100);
}

@media (min-width: 640px) {
    .hero-form-card { padding: 2.5rem; }
}

.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.form-header p {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--gray-900);
    background: var(--gray-50);
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px var(--primary-100);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Checkbox (extracted from inline styles) */
.checkbox-group {
    margin-top: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--primary-600);
}

.checkbox-label span {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.4;
}

.checkbox-label a {
    color: var(--primary-600);
    text-decoration: underline;
}

.form-error {
    font-size: 0.75rem;
    color: var(--error);
    margin-top: 0.25rem;
}

.form-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 1rem;
}

.form-disclaimer a {
    color: var(--primary-600);
    text-decoration: underline;
}

.form-trust {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-100);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--gray-500);
}

.trust-item svg {
    width: 1rem;
    height: 1rem;
    color: var(--primary-500);
}

/* ========== SOCIAL PROOF ========== */
.social-proof {
    background: var(--gray-900);
    padding: 1.5rem 0;
}

.social-proof-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 640px) {
    .social-proof-grid { grid-template-columns: repeat(4, 1fr); }
}

.proof-item {
    color: #fff;
}

.proof-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-400);
}

@media (min-width: 640px) {
    .proof-value { font-size: 1.75rem; }
}

.proof-label {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* ========== SECTIONS COMMON ========== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-50);
    color: var(--primary-700);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .section-title { font-size: 2.5rem; }
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========== BENEFITS ========== */
.benefits {
    padding: 5rem 0;
    background: #fff;
}

.benefits-grid {
    display: grid;
    gap: 1.5rem;
}

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

@media (min-width: 1024px) {
    .benefits-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

.benefit-card {
    padding: 2rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    transition: all var(--transition-slow);
}

.benefit-card:hover {
    background: #fff;
    border-color: var(--gray-200);
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.benefit-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.benefit-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.benefit-icon.green  { background: var(--primary-100); color: var(--primary-600); }
.benefit-icon.blue   { background: #dbeafe; color: var(--blue-600); }
.benefit-icon.amber  { background: #fef3c7; color: var(--amber-500); }
.benefit-icon.purple { background: #ede9fe; color: var(--purple-600); }
.benefit-icon.rose   { background: #ffe4e6; color: var(--rose-500); }
.benefit-icon.teal   { background: #ccfbf1; color: var(--teal-500); }

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.benefit-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ========== PHONE DEMO ========== */
.phone-demo-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.phone-demo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .phone-demo-grid { grid-template-columns: 1fr 1fr; }
}

.phone-demo-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .phone-demo-content h2 { font-size: 2.5rem; }
}

.phone-demo-content p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.phone-demo-features {
    margin-bottom: 2rem;
}

.phone-demo-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--gray-700);
}

.phone-demo-features li svg {
    width: 20px;
    height: 20px;
    color: var(--success);
    flex-shrink: 0;
}

.phone-demo-visual {
    display: flex;
    justify-content: center;
}

/* Phone Mockup */
.phone-wrapper {
    position: relative;
    width: 280px;
    height: 560px;
    margin: 0 auto;
}

.phone-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--gray-900);
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 0 0 2px var(--gray-800),
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.1);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    will-change: transform;
}

.phone-wrapper:hover .phone-frame {
    transform: rotateY(0) rotateX(0);
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: var(--gray-900);
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-500) 0%, var(--primary-800) 100%);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.whatsapp-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    gap: 12px;
    padding-top: 40px;
}

.whatsapp-avatar {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.whatsapp-avatar img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.whatsapp-info h4 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.whatsapp-info span {
    color: var(--primary-100);
    font-size: 0.75rem;
}

.whatsapp-chat {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.chat-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.875rem;
    animation: messageIn 0.4s ease forwards;
    opacity: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.chat-message.sent {
    align-self: flex-end;
    background: var(--primary-100);
    color: var(--primary-900);
    border-bottom-right-radius: 4px;
}

.chat-message.received {
    align-self: flex-start;
    background: white;
    color: var(--gray-800);
    border-bottom-left-radius: 4px;
}

.chat-message p { margin: 0 0 4px 0; }
.chat-message .highlight { color: var(--primary-600); font-weight: 700; }
.chat-message .success { color: var(--success); font-weight: 600; font-size: 0.75rem; }
.chat-message .time { display: block; text-align: right; font-size: 0.65rem; color: var(--gray-500); margin-top: 4px; }
.chat-message.sent .time { color: var(--primary-700); opacity: 0.7; }
.chat-message strong { font-weight: 600; }

/* Chat Summary (extracted from inline styles) */
.chat-summary {
    padding: 8px 0;
}

.chat-summary p {
    margin: 4px 0;
    font-size: 0.85rem;
}

.chat-summary .summary-highlight {
    font-weight: 600;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Floating Stats */
.floating-stat {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
    z-index: 20;
    border: 1px solid var(--gray-100);
    will-change: transform;
}

.floating-stat-1 {
    top: 60px;
    right: -50px;
    animation-delay: 0s;
}

.floating-stat-2 {
    bottom: 100px;
    left: -70px;
    animation-delay: 1.5s;
}

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

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.emerald { 
    background: var(--primary-100);
    color: var(--primary-600);
}

.stat-icon svg { width: 20px; height: 20px; }
.stat-content p { font-size: 0.75rem; color: var(--gray-500); margin: 0; }
.stat-content strong { font-size: 1rem; color: var(--gray-900); display: block; }

.stat-avatars { display: flex; }
.stat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
    margin-left: -8px;
    border: 2px solid white;
}
.stat-avatar:first-child { margin-left: 0; }
.stat-avatar.green { background: var(--primary-500); }
.stat-avatar.blue  { background: var(--blue-500); }
.stat-avatar.amber { background: var(--warning); }

@media (max-width: 768px) {
    .phone-wrapper { width: 240px; height: 480px; }
    .floating-stat { display: none; }
}

@media (max-width: 480px) {
    .phone-wrapper { width: 200px; height: 400px; }
    .phone-frame { padding: 8px; }
    .phone-screen { border-radius: 28px; }
    .phone-notch { width: 100px; height: 24px; }
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
    padding: 5rem 0;
    background: linear-gradient(to bottom, var(--gray-50), #fff);
}

.steps-grid {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 1024px) {
    .steps-grid { grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1.5rem; }
}

.step-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-100);
}

.step-number {
    position: absolute;
    top: -1rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-600);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0, 128, 184, 0.35);
}

.step-icon {
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 1.5rem;
}

.step-icon svg { width: 2rem; height: 2rem; }
.step-icon.green  { background: var(--primary-100); color: var(--primary-600); }
.step-icon.blue   { background: #dbeafe; color: var(--blue-600); }
.step-icon.purple { background: #ede9fe; color: var(--purple-600); }

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.step-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

.step-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--gray-300);
}

@media (min-width: 1024px) {
    .step-arrow { display: flex; }
}

.step-arrow svg { width: 1.5rem; height: 1.5rem; }

/* ========== TESTIMONIALS ========== */
.testimonials {
    padding: 5rem 0;
    background: #fff;
}

.testimonials-grid {
    display: grid;
    gap: 1.5rem;
}

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

.testimonial-card {
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition-slow);
}

.testimonial-card:hover {
    background: #fff;
    box-shadow: var(--shadow-xl);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.testimonial-rating svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: #fbbf24;
    color: #fbbf24;
}

.testimonial-text {
    font-size: 1.125rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.testimonial-result {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: var(--primary-50);
    color: var(--primary-700);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.testimonial-result svg { width: 1rem; height: 1rem; }

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.author-avatar.green  { background: var(--primary-100); color: var(--primary-700); }
.author-avatar.blue   { background: #dbeafe; color: var(--blue-600); }
.author-avatar.amber  { background: #fef3c7; color: var(--amber-500); }
.author-avatar.purple { background: #ede9fe; color: var(--purple-600); }

.author-info { flex: 1; }
.author-info strong { display: block; font-weight: 600; color: var(--gray-900); }
.author-info span { font-size: 0.875rem; color: var(--gray-500); }

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--success);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
}

.verified-badge svg { width: 0.75rem; height: 0.75rem; }

/* ========== PRICING ========== */
.pricing {
    padding: 5rem 0;
    background: linear-gradient(to bottom, #fff, var(--gray-50));
}

.pricing-grid {
    display: grid;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card {
    position: relative;
    background: #fff;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all var(--transition-slow);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.featured {
    background: var(--gray-900);
    border-color: var(--gray-900);
    color: #fff;
    transform: scale(1.02);
}

@media (min-width: 1024px) {
    .pricing-card.featured { transform: scale(1.05); }
}

.pricing-card.featured:hover { transform: scale(1.05); }

@media (min-width: 1024px) {
    .pricing-card.featured:hover { transform: scale(1.08); }
}

.pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.375rem 1rem;
    background: var(--primary-500);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.pricing-card.featured .pricing-name { color: #fff; }

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
}

.price-value { font-size: 2.5rem; font-weight: 700; }
.pricing-card.featured .price-value { color: #fff; }

.price-period { font-size: 0.875rem; color: var(--gray-500); }
.pricing-card.featured .price-period { color: var(--gray-400); }

.pricing-desc { font-size: 0.875rem; color: var(--gray-500); margin-top: 0.5rem; }
.pricing-card.featured .pricing-desc { color: var(--gray-400); }

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

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0;
    font-size: 0.9rem;
}

.pricing-features li svg { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
.pricing-features li.included svg { color: var(--primary-500); }
.pricing-card.featured .pricing-features li.included svg { color: var(--primary-400); }
.pricing-features li.excluded { color: var(--gray-400); }
.pricing-features li.excluded svg { color: var(--gray-400); }
.pricing-card.featured .pricing-features li.excluded { color: var(--gray-500); }

.pricing-cta { display: flex; }

/* ========== FAQ ========== */
.faq {
    padding: 5rem 0;
    background: #fff;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    text-align: left;
    cursor: pointer;
    list-style: none;
}

.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--primary-600); }

.faq-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--gray-400);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item[open] .faq-icon {
    transform: rotate(180deg);
    color: var(--primary-500);
}

.faq-answer { padding-bottom: 1.5rem; }
.faq-answer p { color: var(--gray-600); line-height: 1.7; }

/* ========== CTA ========== */
.cta {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-900) 60%, var(--primary-900) 100%);
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.cta-bg::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 160, 227, 0.15), transparent 60%);
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .cta-title { font-size: 2.5rem; }
}

.cta-title span {
    display: block;
    background: linear-gradient(135deg, var(--primary-400), var(--teal-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-text {
    font-size: 1.125rem;
    color: var(--gray-300);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .cta-buttons { flex-direction: row; }
}

.cta-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 1rem 0;
    line-height: 1.6;
}

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

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.footer-social svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gray-600);
}

.footer-nav h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.footer-nav a {
    display: block;
    padding: 0.375rem 0;
    font-size: 0.9rem;
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.footer-nav a:hover { color: var(--primary-600); }

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
}

@media (min-width: 640px) {
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-bottom .heart { width: 1rem; height: 1rem; fill: var(--error); }

/* ========== MOBILE CTA ========== */
.mobile-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform var(--transition-slow);
}

.mobile-cta.visible { transform: translateY(0); }

@media (min-width: 1024px) {
    .mobile-cta { display: none; }
}

.mobile-cta .btn { width: 100%; }

/* ========== MODAL ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 1rem;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-2xl);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-600);
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

.modal-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.modal-body {
    padding: 1.5rem;
}

@media (max-width: 640px) {
    .modal {
        max-width: 100%;
        border-radius: 12px 12px 0 0;
        position: fixed;
        bottom: 0;
        transform: translateY(100%);
    }
    .modal-overlay.active .modal { transform: translateY(0); }
}

/* ========== ANIMATIONS ========== */
.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
}

.animate-fade-in.animated {
    opacity: 1;
    animation: none;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

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

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

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