@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    /* Theme - Light (Default) */
    --bg-darker: #FFFFFF;
    --bg-dark: #F8FAFC;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --accent-blue: #2563EB;
    --accent-blue-bright: #3B82F6;
    --silver-primary: #E2E8F0;
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.08);
    --hero-gradient: linear-gradient(135deg, #F1F5F9 0%, #FFFFFF 100%);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.05);
}

body.dark-mode {
    /* Theme - Dark */
    --bg-darker: #050810;
    --bg-dark: #0A0F1E;
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --accent-blue: #3B82F6;
    --accent-blue-bright: #60A5FA;
    --silver-primary: #1E293B;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --hero-gradient: radial-gradient(circle at 50% 10%, rgba(59, 130, 246, 0.08) 0%, transparent 50%);
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.4);
}

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

body {
    background-color: var(--bg-darker);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
}

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

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    backdrop-filter: blur(12px);
    background: var(--bg-darker);
    opacity: 0.95;
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Theme Toggle */
.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    color: var(--text-primary);
}

.theme-toggle:hover {
    transform: rotate(15deg) scale(1.1);
}

.btn-telegram {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-bright));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    transition: var(--transition-smooth);
    border: none;
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

/* Hero Section - Split Layout */
.hero {
    padding: 10rem 0 6rem;
    background: var(--hero-gradient);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
    text-align: left;
    margin-bottom: 5rem;
}

.hero-content {
    flex: 1.2;
}

.hero-image {
    flex: 0.8;
    position: relative;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 30px;
    filter: drop-shadow(0 20px 50px rgba(0,0,0,0.15));
    animation: float 6s ease-in-out infinite;
}

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

.hero-tag {
    background: var(--accent-blue);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

h1.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* Chat Simulator - Refined */
.hero-chat-row {
    display: flex;
    justify-content: center;
    width: 100%;
}

.chat-simulator {
    width: 100%;
    max-width: 500px; /* Um pouco mais largo para a posição central */
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    z-index: 2;
}

.chat-header {
    background: var(--glass-bg);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.chat-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.chat-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    height: 380px; /* Altura fixa para evitar saltos no layout */
    overflow-y: auto;
}

.msg {
    max-width: 85%;
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.msg-user {
    align-self: flex-end;
    background: var(--silver-primary);
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
}

.msg-bot {
    align-self: flex-start;
    background: var(--accent-blue);
    color: white;
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

/* Features Section */
.features {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
}

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

.feature-card {
    background: var(--bg-darker);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 32px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
}

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Steps Section */
.steps {
    padding: 8rem 0;
    background: var(--bg-dark);
}

.step-item {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.step-item:nth-child(even) {
    flex-direction: row-reverse;
}

.step-content {
    flex: 1;
}

.step-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    display: block;
    letter-spacing: 0.1em;
}

.step-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.step-img-placeholder {
    flex: 1;
    min-height: 350px;
    background: var(--bg-darker);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Notification Tip Section */
.notification-tip {
    margin-top: 2rem;
}

.tip-card {
    background: var(--bg-dark);
    border: 1px solid var(--accent-blue);
    padding: 3rem;
    border-radius: 32px;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
}

.tip-icon {
    font-size: 3rem;
    line-height: 1;
}

.tip-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.tip-content p {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.tip-content .tip-detail {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.tip-link {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.tip-link:hover {
    color: var(--accent-blue-bright);
    letter-spacing: 0.05em;
}

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

/* Footer */
footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-darker);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1.5rem;
}

.footer-copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .hero-desc {
        margin: 0 auto 3rem;
    }
    .hero-image img {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .step-item, .step-item:nth-child(even) {
        flex-direction: column;
        gap: 2rem;
    }
    .section-header h2 {
        font-size: 2.2rem;
    }
}
