/* Design System & Variables */
:root {
    --bg-color: #070e17;
    /* Dark blue/black from design */
    --surface-color: #111a26;
    --primary-color: #34e0a1;
    /* Bright teal/green accent */
    --primary-hover: #2bbd87;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border-color: #1e293b;
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

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

/* Typography */
h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    gap: 10px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 4px 14px rgba(52, 224, 161, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 224, 161, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-link {
    color: var(--text-main);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

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

/* Header */
header {
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 14, 23, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.logo img {
    height: 36px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 32px;
}

nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

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

.header-actions {
    display: flex;
    gap: 16px;
}

/* Phone Mockup */
.phone-mockup {
    width: 260px;
    height: 560px;
    border-radius: 36px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    border: 10px solid #1a2332;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
    background-color: #0b111a;
}

/* Notch do celular */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 26px;
    background: #1a2332;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 2;
}

/* Telas individuais */
.phone-1 {
    background-image: url('assets/Home.jpeg');
}

.phone-2 {
    background-image: url('assets/Login.jpeg');
}

.phone-3 {
    background-image: url('assets/Extrato.jpeg');
}

.phone-4 {
    background-image: url('assets/Categorias.jpeg');
}

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 0%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(52, 224, 161, 0.12) 0%, rgba(0, 0, 0, 0) 65%);
    z-index: -1;
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-text p {
    font-size: 1.125rem;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 32px 0;
}

.store-badges {
    display: flex;
    gap: 16px;
    opacity: 0.8;
}

.store-badge:hover {
    opacity: 1;
}

.store-badge img {
    height: 40px;
}

.hero-images {
    position: relative;
    height: 620px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-images .phone-1 {
    position: absolute;
    left: 5%;
    transform: rotate(-8deg) translateY(20px);
    z-index: 2;
    transition: transform 0.5s ease;
}

.hero-images .phone-2 {
    position: absolute;
    right: 5%;
    transform: rotate(6deg) translateY(-30px);
    z-index: 1;
    transition: transform 0.5s ease;
}

.hero-images:hover .phone-1 {
    transform: rotate(-5deg) translateY(0);
}

.hero-images:hover .phone-2 {
    transform: rotate(3deg) translateY(-10px);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.02), transparent);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 48px 32px;
}

.feature-card {
    text-align: left;
    padding: 24px;
    border-radius: 20px;
    transition: background 0.3s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.03);
}

.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(52, 224, 161, 0.3);
    background: rgba(52, 224, 161, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 24px;
}

/* How it Works Section */
.how-it-works {
    padding: 120px 0;
}

.htw-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.steps {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.step {
    display: flex;
    gap: 24px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(52, 224, 161, 0.4);
}

.step h3 {
    margin-bottom: 8px;
}

.step p {
    margin-bottom: 0;
}

.htw-images {
    position: relative;
    display: flex;
    justify-content: center;
    height: 650px;
    align-items: center;
}

.htw-images .phone-3 {
    position: absolute;
    left: 10%;
    transform: translateY(30px);
    z-index: 1;
}

.htw-images .phone-4 {
    position: absolute;
    right: 10%;
    transform: translateY(-30px);
    z-index: 2;
}

/* CTA & Testimonial Section */
.cta-section {
    padding: 100px 0;
    /* Default dark gradient. Replace URL with an image to match design exactly */
    background: linear-gradient(135deg, rgba(11, 20, 33, 0.95) 0%, rgba(18, 30, 48, 0.8) 100%), url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    position: relative;
    border-radius: 40px 40px 0 0;
    margin-top: 40px;
}

.cta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.subtitle {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cta-main h2 {
    font-size: 3rem;
    margin: 0 0 24px;
    line-height: 1.1;
}

.cta-main p {
    font-size: 1.125rem;
    margin-bottom: 32px;
    max-width: 90%;
}

.cta-main .btn {
    margin-bottom: 8px;
}

.cta-testimonial {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 40px;
    border-radius: 24px;
}

.quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 24px;
    line-height: 1.5;
}

.stars {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.author {
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 4px;
}

.author-title {
    font-size: 0.875rem;
    margin: 0;
}

.trust-badges {
    display: flex;
    gap: 24px;
}

.trust-badge {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.trust-badge i {
    font-size: 1.75rem;
    color: var(--text-muted);
}

.trust-badge h4 {
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 6px;
}

.trust-badge p {
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

/* Footer */
footer {
    padding: 60px 0 40px;
    background: var(--bg-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
}

.footer-left p {
    font-size: 0.875rem;
    margin-top: 12px;
    margin-bottom: 0;
}

.footer-nav ul {
    display: flex;
    gap: 32px;
}

.footer-nav a {
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: color 0.3s;
    font-weight: 500;
}

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

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    color: var(--primary-color);
    background: rgba(52, 224, 161, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {

    .hero-content,
    .htw-content,
    .cta-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-text,
    .htw-text,
    .cta-main {
        order: 1;
    }

    .hero-text p,
    .cta-main p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-images,
    .htw-images,
    .cta-testimonial {
        order: 2;
    }

    .hero-images {
        height: 500px;
    }

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

    .store-badges {
        justify-content: center;
    }

    .htw-images {
        height: auto;
        padding: 40px 0;
        gap: 20px;
    }

    .htw-images .phone-3,
    .htw-images .phone-4 {
        position: static;
        transform: none;
    }

    .steps {
        text-align: left;
        max-width: 600px;
        margin: 48px auto 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    nav {
        display: none;
    }

    /* On a real app, this would be a burger menu */
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-images {
        display: none;
        /* Hide on very small screens for simplicity */
    }

    .htw-images {
        flex-direction: column;
    }

    .trust-badges {
        flex-direction: column;
    }

    .cta-section {
        border-radius: 20px 20px 0 0;
    }
}