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

:root {
    --orange: #F28220;
    --orange-dark: #d96f10;
    --orange-light: #ffb067;
    --navy: #030E24;
    --navy-soft: #0b1a3a;
    --navy-softer: #112352;
    --white: #ffffff;
    --off-white: #f6f7fb;
    --gray: #8792ab;
    --gray-light: #e5e8f0;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 20px 50px -20px rgba(3, 14, 36, 0.35);
    --shadow-soft: 0 10px 30px -10px rgba(3, 14, 36, 0.2);
    --max-width: 1200px;
    --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    /* Tokens de tema. --gray, --gray-light e --off-white já trocam de valor
       no modo escuro abaixo, então qualquer regra que os use (bordas, texto
       secundário, fundos neutros) se adapta sozinha. --navy e --white
       continuam fixos de propósito: seções de marca (hero, rodapé, sidebar)
       ficam escuras nos dois temas. */
    --text: var(--navy);
    --surface: var(--white);
    --header-bg: rgba(255, 255, 255, 0.9);
}

:root[data-theme="dark"] {
    --off-white: #111a30;
    --gray-light: #253252;
    --gray: #8d99ba;
    --text: #eef1f8;
    --surface: #141f38;
    --header-bg: rgba(11, 18, 33, 0.85);
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--surface);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.2s ease, color 0.2s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
section { padding: 96px 0; }
@media (max-width: 768px) {
    section { padding: 64px 0; }
}

h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 22px; }
p { margin: 0; color: var(--gray); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--orange);
    background: rgba(242, 130, 32, 0.1);
    padding: 7px 14px;
    border-radius: 999px;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { margin-top: 14px; font-size: 17px; }
.section-head.center { margin-inline: auto; text-align: center; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: var(--white); box-shadow: 0 12px 30px -10px rgba(242, 130, 32, 0.6); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-soft); }
.btn-outline { background: transparent; border-color: var(--gray-light); color: var(--text); }
.btn-outline:hover { border-color: var(--orange); color: var(--orange); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.3); color: var(--white); }
.btn-outline-light:hover { border-color: var(--orange); background: rgba(242,130,32,0.12); }
.btn-ghost { background: transparent; color: var(--text); padding: 10px 6px; }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 34px; font-size: 16px; }

/* ===== Header ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-light);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--text); }
.logo span { color: var(--orange); }
.logo-mark {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(145deg, var(--orange), var(--orange-dark));
    display: flex; align-items: center; justify-content: center;
    color: white; font-weight: 800; font-size: 16px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-weight: 600;
    font-size: 14.5px;
    color: var(--text);
}
.nav-links a { opacity: 0.75; transition: opacity 0.15s ease, color 0.15s ease; }
.nav-links a:hover { opacity: 1; color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; }

@media (max-width: 960px) {
    .nav-links { display: none; }
    .nav-toggle { display: block; }
}

/* ===== Hero ===== */
.hero {
    background: radial-gradient(circle at 15% 20%, rgba(242,130,32,0.12), transparent 45%), var(--navy);
    color: var(--white);
    padding: 96px 0 0;
    overflow: hidden;
    position: relative;
}
.hero .container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
    padding-bottom: 80px;
}
@media (max-width: 960px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-stats { justify-content: center; }
    .hero-actions { justify-content: center; }
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); color: var(--white); }
.hero h1 .accent { color: var(--orange); }
.hero p.lead { color: rgba(255,255,255,0.72); font-size: 18px; margin-top: 18px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 28px; color: var(--white); font-weight: 800; }
.hero-stats .stat span { font-size: 13px; color: rgba(255,255,255,0.55); }

.hero-visual {
    position: relative;
    display: grid;
    gap: 16px;
}
.tv-mock {
    background: linear-gradient(160deg, var(--navy-softer), #0a1d49);
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255,255,255,0.08);
}
.tv-mock .screen {
    aspect-ratio: 16/9;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--orange), #ffae5c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    font-weight: 800;
    font-size: 15px;
    position: relative;
    overflow: hidden;
}
.tv-mock .screen small { position:absolute; bottom:10px; left:12px; font-weight:600; font-size:11px; background:rgba(3,14,36,0.25); padding:4px 8px; border-radius:6px;}
.floating-card {
    position: absolute;
    background: var(--white);
    color: var(--navy);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    box-shadow: var(--shadow-soft);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.floating-card .dot { width: 10px; height: 10px; border-radius: 50%; background: #28c76f; flex-shrink:0; }
.floating-card.c1 { top: -18px; right: -10px; }
.floating-card.c2 { bottom: -18px; left: -10px; }
@media (max-width: 960px) { .floating-card { display: none; } }

.logo-strip { border-top: 1px solid rgba(255,255,255,0.1); padding: 28px 0; }
.logo-strip .container { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: space-between; }
.logo-strip span.label { color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 600; white-space: nowrap; }
.logo-strip .marks { display: flex; gap: 28px; flex-wrap: wrap; color: rgba(255,255,255,0.55); font-weight: 700; font-size: 14px; }

/* ===== How it works ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } }
.step-card {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 28px 24px;
    position: relative;
    border: 1px solid var(--gray-light);
}
.step-card .num {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--navy);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; margin-bottom: 18px;
}
.step-card h3 { margin-bottom: 8px; font-size: 18px; }
.step-card p { font-size: 14.5px; }

/* ===== Feature grid ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: transparent; }
.feature-card .icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(242,130,32,0.12);
    color: var(--orange);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px; font-size: 20px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; }

/* ===== Stats band ===== */
.stats-band { background: var(--navy); color: var(--white); padding: 64px 0; }
.stats-band .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
@media (max-width: 768px) { .stats-band .grid { grid-template-columns: repeat(2, 1fr); } }
.stats-band b { font-size: 38px; font-weight: 800; color: var(--orange); display: block; }
.stats-band span { color: rgba(255,255,255,0.65); font-size: 14px; }

/* ===== Locations / map ===== */
.locations-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .locations-wrap { grid-template-columns: 1fr; } }
.location-list { display: grid; gap: 14px; }
.location-item {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius-sm);
}
.location-item .icon { color: var(--orange); font-size: 20px; }
.location-item b { display:block; font-size: 15px; }
.location-item span { font-size: 13px; }
.map-visual {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--gray-light);
    aspect-ratio: 4/3.2;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.map-visual .pin {
    position: absolute;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 6px rgba(242,130,32,0.2);
}

/* ===== Testimonials ===== */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .testimonials { grid-template-columns: 1fr; } }
.testimonial-card {
    background: var(--off-white);
    border-radius: var(--radius);
    padding: 28px;
    border: 1px solid var(--gray-light);
}
.testimonial-card .stars { color: var(--orange); margin-bottom: 14px; font-size: 14px; }
.testimonial-card p.quote { color: var(--text); font-size: 15px; font-style: italic; }
.testimonial-card .author { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.testimonial-card .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.testimonial-card .author b { font-size: 14px; }
.testimonial-card .author span { font-size: 12.5px; }

/* ===== Partner / recruit band ===== */
.partner-band {
    background: linear-gradient(135deg, var(--navy), var(--navy-softer));
    border-radius: 28px;
    color: var(--white);
    padding: 56px;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: center;
}
@media (max-width: 900px) { .partner-band { grid-template-columns: 1fr; padding: 36px; } }
.partner-band h2 { color: var(--white); }
.partner-band p { color: rgba(255,255,255,0.7); margin-top: 14px; }
.partner-perks { margin-top: 20px; display: grid; gap: 10px; }
.partner-perks li { display: flex; gap: 10px; font-size: 14.5px; color: rgba(255,255,255,0.85); list-style: none; }
.partner-perks li::before { content: "✓"; color: var(--orange); font-weight: 800; }

/* ===== Contact / lead form ===== */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; }
@media (max-width: 960px) { .contact-wrap { grid-template-columns: 1fr; } }
.contact-info-card {
    background: var(--navy);
    color: var(--white);
    border-radius: var(--radius);
    padding: 36px;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 14px; }
.contact-info-card .row { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 14.5px; color: rgba(255,255,255,0.75); }
.contact-info-card .row b { color: var(--white); display: block; font-size: 14.5px; }

.form-card {
    background: var(--off-white);
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 36px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.field input, .field textarea, .field select {
    width: 100%;
    padding: 13px 15px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gray-light);
    font-family: var(--font);
    font-size: 14.5px;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--orange); }
.field textarea { resize: vertical; min-height: 100px; }

.alert { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.alert-success { background: rgba(40, 199, 111, 0.12); color: #1a9c53; border: 1px solid rgba(40,199,111,0.3); }
.alert-error { background: rgba(234, 84, 85, 0.1); color: #c53030; border: 1px solid rgba(234,84,85,0.3); }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 14px; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-grid ul { display: grid; gap: 10px; font-size: 14px; }
.footer-grid ul a { opacity: 0.75; transition: opacity 0.15s ease; }
.footer-grid ul a:hover { opacity: 1; color: var(--orange); }
.footer-bottom {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-size: 13px;
}
.footer-cta-box {
    background: rgba(242,130,32,0.1);
    border: 1px solid rgba(242,130,32,0.3);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 8px;
}
.footer-cta-box b { color: var(--white); display: block; margin-bottom: 10px; font-size: 14px; }

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 60;
    background: #25D366;
    color: white;
    width: 58px; height: 58px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 12px 30px -8px rgba(37,211,102,0.6);
    font-size: 26px;
}

.reveal { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.pre { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; }

/* ===== Auth pages (login / cadastro) ===== */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--surface);
}
@media (max-width: 900px) {
    .auth-page { grid-template-columns: 1fr; }
    .auth-side { display: none; }
}
.auth-side {
    background: radial-gradient(circle at 20% 20%, rgba(242,130,32,0.18), transparent 50%), var(--navy);
    color: var(--white);
    padding: 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-side .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.auth-side .brand span { color: var(--orange); }
.auth-side .pitch h2 { color: var(--white); font-size: 30px; margin-bottom: 14px; }
.auth-side .pitch p { color: rgba(255,255,255,0.7); font-size: 15px; max-width: 420px; }
.auth-side .perks { margin-top: 28px; display: grid; gap: 14px; }
.auth-side .perks li { list-style: none; display: flex; gap: 10px; font-size: 14.5px; color: rgba(255,255,255,0.85); }
.auth-side .perks li::before { content: "✓"; color: var(--orange); font-weight: 800; }
.auth-side .foot { font-size: 13px; color: rgba(255,255,255,0.45); }

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}
.auth-card { width: 100%; max-width: 420px; }
.auth-card .back-link { font-size: 13.5px; font-weight: 700; color: var(--gray); margin-bottom: 24px; display: inline-flex; align-items: center; gap: 6px; }
.auth-card .back-link:hover { color: var(--orange); }
.auth-card h1 { font-size: 26px; margin-bottom: 8px; }
.auth-card .subtitle { margin-bottom: 28px; font-size: 14.5px; }
.auth-card .field { margin-bottom: 18px; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 44px; }
.password-toggle {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: var(--gray); font-size: 13px; font-weight: 700;
}
.auth-switch { margin-top: 24px; text-align: center; font-size: 14px; color: var(--gray); }
.auth-switch a { color: var(--orange); font-weight: 700; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--gray); margin-bottom: 20px; }
.checkbox-row input { margin-top: 3px; }
.checkbox-row a { color: var(--orange); font-weight: 600; }

/* ===== Minimal placeholder dashboard (Fase 1 stub) ===== */
.app-shell { min-height: 100vh; background: var(--off-white); }
.app-topbar {
    background: var(--navy); color: var(--white);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px; height: 72px;
}
.app-topbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.app-topbar .brand span { color: var(--orange); }
.app-main { max-width: 840px; margin: 64px auto; padding: 0 24px; text-align: center; }
.app-main .badge-wip {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(242,130,32,0.12); color: var(--orange);
    padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; margin-bottom: 24px;
}
.app-main h1 { font-size: 30px; margin-bottom: 14px; }
.app-main p { font-size: 15.5px; max-width: 520px; margin: 0 auto; }

/* ===== Alternância de tema claro/escuro ===== */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1.5px solid var(--gray-light);
    background: var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: inline-flex; }
