:root {
    --bg-dark: #070B19;
    --bg-surface: #10162A;
    --surface-glass: rgba(16, 22, 42, 0.6);
    --border-glass: rgba(255, 255, 255, 0.1);

    --primary-color: #E63050;
    --primary-dark: #B81F3A;
    --secondary-color: #1E3A8A;
    --accent-color: #00E4B1;
    --gradient-primary: linear-gradient(135deg, #E63050, #FF6B8A);
    --gradient-secondary: linear-gradient(135deg, #1E3A8A, #2F80ED);
    --gradient-accent: linear-gradient(135deg, #00E4B1, #2F80ED);

    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.glass {
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
}

.glass-border {
    padding: 8px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0));
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Typography */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(230, 48, 80, 0.15);
    color: #FF6B8A;
    border: 1px solid rgba(230, 48, 80, 0.35);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

h2 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 20px rgba(230, 48, 80, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(230, 48, 80, 0.45);
}

.btn-secondary {
    background: #ffffff;
    color: var(--bg-dark);
}

.btn-secondary:hover {
    background: #e2e8f0;
    transform: translateY(-3px);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-glass);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

.nav-links .btn {
    color: white;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.blob {
    position: absolute;
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.45;
    animation: float 20s infinite alternate linear;
}

.blob-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: var(--primary-color);
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--secondary-color);
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 50px) scale(1.1); }
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

/* ==========================================
   PHONE MOCKUP COMPONENTS
   ========================================== */

.phone-scene {
    display: flex;
    gap: 24px;
    align-items: flex-end;
    justify-content: center;
}

.phone-mockup {
    width: 200px;
    border-radius: 32px;
    background: #0D1326;
    border: 2px solid rgba(255,255,255,0.12);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05) inset;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.6s ease;
}

.phone-mockup.main {
    width: 220px;
    transform: rotateY(-8deg) rotateX(4deg);
    box-shadow: 30px 40px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.05) inset;
}

.phone-mockup.secondary {
    width: 180px;
    transform: rotateY(-4deg) rotateX(2deg) translateY(20px);
    opacity: 0.85;
}

.phone-scene:hover .phone-mockup.main {
    transform: rotateY(-4deg) rotateX(2deg) translateY(-12px);
}

.phone-notch {
    width: 60px;
    height: 10px;
    background: #080C1E;
    border-radius: 0 0 10px 10px;
    margin: 0 auto 4px;
}

.phone-screen {
    padding: 0;
    min-height: 340px;
    display: flex;
    flex-direction: column;
}

/* App Screen: Login */
.app-login {
    background: #fff;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 14px;
}

.app-topbar {
    width: 100%;
    background: #1E3A8A;
    color: white;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    padding: 6px;
    border-radius: 4px 4px 0 0;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.app-logo-area {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-logo-dots {
    display: grid;
    grid-template-columns: 8px 8px;
    grid-template-rows: 8px 8px;
    gap: 2px;
}

.dot { border-radius: 50%; }
.dot-blue { background: #1E3A8A; }
.dot-red { background: #E63050; }
.dot-sm { width: 6px; height: 6px; }

.app-logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 13px;
    color: #1E3A8A;
    letter-spacing: -0.5px;
}

.app-subtitle {
    font-size: 7.5px;
    color: #E63050;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.app-input {
    width: 100%;
    background: #F5F7FA;
    border: 1.5px solid #E2E8F0;
    border-radius: 4px;
    height: 22px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    padding: 0 6px;
}

.app-input-label {
    font-size: 6.5px;
    color: #94A3B8;
}

.app-btn-red {
    width: 100%;
    background: #E63050;
    color: white;
    font-size: 7.5px;
    font-weight: 700;
    text-align: center;
    padding: 6px;
    border-radius: 4px;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.app-btn-outline {
    width: 100%;
    border: 1.5px solid #E2E8F0;
    color: #64748B;
    font-size: 6.5px;
    font-weight: 600;
    text-align: center;
    padding: 5px;
    border-radius: 4px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

/* App Screen: Dashboard */
.app-dashboard {
    background: #F8FAFC;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-dash-header {
    background: #1E3A8A;
    padding: 8px 10px;
    color: white;
}

.app-dash-title {
    font-size: 8.5px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-sair {
    font-size: 7px;
    color: rgba(255,255,255,0.7);
}

.app-welcome {
    font-size: 9px;
    font-weight: 700;
    color: #E63050;
    text-align: center;
    margin: 8px 0 4px;
}

.app-welcome-bar {
    height: 2px;
    width: 40px;
    background: #E63050;
    margin: 0 auto 10px;
    border-radius: 2px;
}

.app-cards-row {
    display: flex;
    gap: 6px;
    padding: 0 8px;
}

.app-card {
    flex: 1;
    background: white;
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
    border: 1.5px solid #E2E8F0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.app-card-icon {
    font-size: 14px;
    margin-bottom: 4px;
}

.app-card-label {
    font-size: 6.5px;
    color: #374151;
    font-weight: 600;
    margin-bottom: 3px;
}

.app-card-badge {
    font-size: 6px;
    background: #E63050;
    color: white;
    border-radius: 10px;
    padding: 1px 5px;
    font-weight: 700;
}

.app-card-badge.green {
    background: #10B981;
}

/* App Screen: Contracts */
.app-contracts {
    background: #F8FAFC;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-contract-item {
    background: white;
    border-radius: 6px;
    padding: 7px 8px;
    margin: 4px 8px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.app-contract-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-contract-info { flex: 1; }

.app-contract-label {
    font-size: 6px;
    color: #94A3B8;
    margin-bottom: 1px;
}

.app-contract-value {
    font-size: 7px;
    color: #1E293B;
    font-weight: 600;
}

.app-contract-type {
    font-size: 6px;
    color: #64748B;
    margin-top: 3px;
}

.app-btn-sign {
    background: #1E3A8A;
    color: white;
    font-size: 6.5px;
    font-weight: 700;
    padding: 4px 7px;
    border-radius: 4px;
    text-align: center;
    margin-top: 5px;
    letter-spacing: 0.3px;
}

/* App Screen: Signature */
.app-signature {
    background: white;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-sign-area {
    flex: 1;
    border: 1.5px dashed #CBD5E1;
    border-radius: 6px;
    margin: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #F8FAFC;
    min-height: 90px;
    position: relative;
    overflow: hidden;
}

.app-sign-sample {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    color: #1E293B;
    transform: rotate(-5deg);
    opacity: 0.8;
    font-style: italic;
}

.app-sign-hint {
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-size: 5.5px;
    color: #CBD5E1;
}

.app-sign-actions {
    display: flex;
    gap: 5px;
    padding: 6px 8px;
}

.app-btn-confirm {
    flex: 1;
    background: #E63050;
    color: white;
    font-size: 7px;
    font-weight: 700;
    padding: 5px;
    border-radius: 4px;
    text-align: center;
}

.app-btn-clear {
    flex: 1;
    background: #F1F5F9;
    color: #64748B;
    font-size: 7px;
    font-weight: 600;
    padding: 5px;
    border-radius: 4px;
    text-align: center;
}

/* App Screen: AI Selfie */
.app-selfie {
    background: #0D1326;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 10px;
}

.app-selfie-title {
    font-size: 8px;
    color: #E63050;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}

.app-camera-view {
    width: 100%;
    height: 120px;
    background: #1A2035;
    border-radius: 8px;
    border: 2px solid rgba(230,48,80,0.4);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 8px;
}

.face-outline {
    width: 55px;
    height: 70px;
    border: 2px solid #E63050;
    border-radius: 50%;
    opacity: 0.8;
    position: relative;
}

.face-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border-color: #00E4B1;
    border-style: solid;
}

.fc-tl { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.fc-tr { top: -2px; right: -2px; border-width: 2px 2px 0 0; }
.fc-bl { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; }
.fc-br { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }

.app-ai-label {
    font-size: 6.5px;
    color: #00E4B1;
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.app-ai-dot {
    width: 5px;
    height: 5px;
    background: #00E4B1;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

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

/* App Screen: Check-in */
.app-checkin {
    background: #F8FAFC;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-checkin-item {
    background: white;
    border-radius: 6px;
    padding: 8px 8px;
    margin: 5px 8px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.app-checkin-name {
    font-size: 7px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 2px;
}

.app-checkin-date {
    font-size: 6.5px;
    color: #64748B;
    margin-bottom: 5px;
}

.app-checkin-status {
    font-size: 6px;
    background: #FEF3C7;
    color: #D97706;
    border-radius: 10px;
    padding: 1px 6px;
    display: inline-block;
    font-weight: 700;
}

.app-checkin-status.done {
    background: #D1FAE5;
    color: #059669;
}

.app-success-modal {
    background: rgba(0,0,0,0.5);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
}

.app-success-box {
    background: white;
    border-radius: 8px;
    padding: 8px;
}

.app-success-title {
    font-size: 7.5px;
    font-weight: 700;
    color: #059669;
    margin-bottom: 2px;
}

.app-success-msg {
    font-size: 6.5px;
    color: #64748B;
    margin-bottom: 6px;
}

.app-success-ok {
    text-align: right;
    font-size: 7px;
    font-weight: 700;
    color: #1E3A8A;
}

/* ==========================================
   FEATURES SECTION
   ========================================== */

.features {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 120px;
}

.feature-row.row-reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
    max-width: 500px;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(230, 48, 80, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    border: 1px solid rgba(230, 48, 80, 0.3);
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.check-list {
    list-style: none;
    margin-top: 30px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.check-list i {
    color: var(--accent-color);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Phone in feature sections */
.feature-phone-wrap {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    justify-content: center;
}

.feature-phone {
    width: 190px;
    border-radius: 28px;
    background: #0D1326;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: 20px 30px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
    overflow: hidden;
    flex-shrink: 0;
    transform: rotateY(6deg) rotateX(3deg);
    transition: transform 0.5s ease;
}

.feature-phone:hover {
    transform: rotateY(2deg) rotateX(1deg) translateY(-8px);
}

.feature-phone.offset {
    transform: rotateY(4deg) rotateX(2deg) translateY(20px);
    opacity: 0.8;
    width: 165px;
}

.feature-phone.offset:hover {
    transform: rotateY(2deg) rotateX(1deg) translateY(12px);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

.cta-box {
    text-align: center;
    padding: 80px 40px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--gradient-primary);
    opacity: 0.08;
    z-index: -1;
}

.cta-box h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.cta-box p {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
}

/* Stats bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 60px 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    margin: 0 0 100px 0;
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 4px;
}

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

/* Footer */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-glass);
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up, .slide-in-left, .slide-in-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in-up { transform: translateY(40px); }
.slide-in-left { transform: translateX(-40px); }
.slide-in-right { transform: translateX(40px); }

.in-view {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.35s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 40px;
    }
    .hero-text { max-width: 100%; }
    .badge { margin: 0 auto 24px; }
    h2 { font-size: 2.5rem; }
    .feature-row, .feature-row.row-reverse {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    .feature-text {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .check-list li {
        justify-content: flex-start;
        text-align: left;
    }
    .stats-bar {
        flex-wrap: wrap;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    h2 { font-size: 2rem; }
    .cta-box h2 { font-size: 2rem; }
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
    .phone-scene { transform: scale(0.85); }
}
