/* =========================================================
   AdaTech — Paleta: azul #0284c7 · teal #008b8b · slate #334155
   ========================================================= */

:root {
    --blue: #0284c7;
    --blue-dark: #075985;
    --blue-light: #38bdf8;
    --teal: #008b8b;
    --teal-light: #14b8a6;
    --dark-bg: #0b1120;
    --dark-bg-2: #0f172a;
    --text-dark: #1e293b;
    --text-muted: #334155;
    --text-soft: #64748b;
    --bg-soft: #f1f5f9;
    --white: #ffffff;
    --radius: 14px;
    --shadow-soft: 0 10px 30px -12px rgba(2, 132, 199, 0.25);
    --shadow-strong: 0 20px 45px -15px rgba(2, 132, 199, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-muted);
    background: var(--bg-soft);
    line-height: 1.6;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================= NAVBAR ================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(2, 132, 199, 0.12);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.logo span {
    background: linear-gradient(120deg, var(--blue), var(--teal));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 15px;
    position: relative;
    transition: color 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--teal));
    transition: width 0.25s ease;
}

.main-nav a:hover { color: var(--blue); }
.main-nav a:hover::after { width: 100%; }

.nav-cta {
    color: var(--blue) !important;
    font-weight: 700 !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-greeting {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 14px;
}

.btn-chip {
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.2s ease;
}

.btn-chip-blue {
    background: linear-gradient(120deg, var(--blue), var(--teal));
    color: white;
    box-shadow: var(--shadow-soft);
}
.btn-chip-blue:hover { transform: translateY(-2px); box-shadow: var(--shadow-strong); }

.btn-chip-red {
    background: #ef4444;
    color: white;
}
.btn-chip-red:hover { background: #dc2626; }

.btn-chip-ghost {
    color: var(--blue);
    background: transparent;
    padding: 8px 12px;
}
.btn-chip-ghost:hover { background: rgba(2,132,199,0.08); }

/* ================= HERO / BANNER ================= */
.hero {
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(11,17,32,0.92) 0%, rgba(11,17,32,0.75) 35%, rgba(11,17,32,0.35) 65%, rgba(11,17,32,0.15) 100%),
        linear-gradient(0deg, rgba(11,17,32,0.55) 0%, rgba(11,17,32,0) 40%);
}

/* Orbs decorativos flutuantes no hero, para dar mais vida ao banner */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 320px;
    height: 320px;
    top: -60px;
    right: 8%;
    background: radial-gradient(circle, var(--blue-light), transparent 70%);
}

.hero-orb-2 {
    width: 240px;
    height: 240px;
    bottom: -40px;
    right: 22%;
    background: radial-gradient(circle, var(--teal-light), transparent 70%);
    animation-delay: 2.5s;
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-25px) scale(1.06); }
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue-light);
    margin-right: 8px;
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
    animation: pulseDot 1.8s infinite;
    vertical-align: middle;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.6); }
    70% { box-shadow: 0 0 0 9px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.btn-glow { animation: btnGlow 2.4s ease-in-out infinite; }

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 12px 30px -8px rgba(2, 132, 199, 0.6); }
    50% { box-shadow: 0 14px 40px -6px rgba(56, 189, 248, 0.85); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    padding-top: 90px;
    padding-bottom: 90px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--blue-light);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.text-gradient {
    background: linear-gradient(120deg, var(--blue-light), var(--teal-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 17px;
    color: #cbd5e1;
    margin-bottom: 32px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(120deg, var(--blue), var(--teal));
    color: white;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 12px 30px -8px rgba(2, 132, 199, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px -8px rgba(2, 132, 199, 0.75);
}

.btn-outline {
    display: inline-block;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    color: white;
    border: 2px solid rgba(255,255,255,0.5);
    transition: all 0.2s ease;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: white;
    transform: translateY(-3px);
}

.btn-block { display: block; width: 100%; text-align: center; }

/* ================= SECTIONS ================= */
.section-padding { padding: 90px 0; }

.section-bg { background: linear-gradient(180deg, #ffffff 0%, #eef4fa 100%); }

.eyebrow {
    display: block;
    text-align: center;
    color: var(--teal);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title {
    text-align: center;
    font-size: 34px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-soft);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto 50px;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 20px;
}

.card {
    background: white;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 6px 20px -10px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(2, 132, 199, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.product-card, .client-card { position: relative; }

.product-badge, .client-badge {
    display: inline-block;
    background: linear-gradient(120deg, var(--blue), var(--teal));
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.product-card h3, .service-card h3, .client-card h3 {
    color: var(--text-dark);
    font-size: 20px;
    margin-bottom: 10px;
}

.product-card p, .service-card p, .client-card p {
    color: var(--text-soft);
    font-size: 14.5px;
    margin-bottom: 20px;
}

/* ================= CLIENT CARDS (depoimentos) ================= */
.client-card {
    display: flex;
    flex-direction: column;
    padding-top: 26px;
}

.client-quote-mark {
    position: absolute;
    top: 14px;
    right: 24px;
    font-size: 64px;
    line-height: 1;
    font-family: Georgia, serif;
    color: rgba(2, 132, 199, 0.15);
    font-weight: 800;
}

.client-stars {
    color: #f59e0b;
    letter-spacing: 3px;
    font-size: 15px;
    margin-bottom: 14px;
}

.client-card p { font-style: italic; }

.client-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--bg-soft);
}

.client-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(2, 132, 199, 0.25);
}

.client-info h3 { margin-bottom: 2px; font-size: 16px; }

.client-role {
    color: var(--text-soft);
    font-size: 13px;
}

.service-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.btn-secondary {
    display: inline-block;
    text-decoration: none;
    color: var(--blue);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 999px;
    border: 2px solid var(--blue);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--blue);
    color: white;
}

/* ================= FORM ================= */
.form-container { max-width: 620px; }

.form-subtitle {
    text-align: center;
    color: var(--text-soft);
    margin-bottom: 36px;
    font-size: 15px;
}

.form-container .card { padding: 40px; }

.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14.5px;
    color: var(--text-dark);
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
    background: white;
}

.feedback-msg {
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
}

.feedback-msg.hidden { display: none; }

/* ================= FOOTER ================= */
.footer {
    background: var(--dark-bg-2);
    color: #94a3b8;
    padding: 30px 0;
    text-align: center;
    font-size: 13.5px;
}

/* ================= SCROLL REVEAL ================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal .card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.25s ease;
}

.reveal.visible .card {
    opacity: 1;
    transform: translateY(0);
}

.reveal.visible .card:nth-child(1) { transition-delay: 0.05s; }
.reveal.visible .card:nth-child(2) { transition-delay: 0.18s; }
.reveal.visible .card:nth-child(3) { transition-delay: 0.31s; }
.reveal.visible .card:nth-child(4) { transition-delay: 0.44s; }

/* Navbar ganha mais destaque assim que a página é rolada */
.navbar.scrolled {
    box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.25);
}

/* =========================================================
   PÁGINAS DE AUTENTICAÇÃO (login.php / cadastro.php)
   ========================================================= */

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: var(--bg-soft);
}

.auth-brand-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 56px;
    color: white;
    background: linear-gradient(150deg, var(--dark-bg) 0%, var(--blue-dark) 55%, var(--teal) 140%);
}

.auth-brand-panel .hero-orb {
    opacity: 0.4;
}

.auth-brand-logo {
    position: relative;
    z-index: 1;
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    color: white;
    margin-bottom: 48px;
    display: inline-block;
    width: fit-content;
}

.auth-brand-logo span {
    background: linear-gradient(120deg, var(--blue-light), var(--teal-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.auth-brand-panel h1 {
    position: relative;
    z-index: 1;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 18px;
    max-width: 420px;
}

.auth-brand-panel p {
    position: relative;
    z-index: 1;
    color: #cbd5e1;
    font-size: 15.5px;
    max-width: 380px;
    margin-bottom: 32px;
}

.auth-brand-list {
    position: relative;
    z-index: 1;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-brand-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    color: #e2e8f0;
}

.auth-brand-list li::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.2);
    color: var(--blue-light);
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 6px 20px -10px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(2, 132, 199, 0.08);
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-soft);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 22px;
    transition: color 0.2s ease;
}

.auth-back-link:hover { color: var(--blue); }

.auth-card h2 {
    color: var(--text-dark);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
}

.auth-card .auth-subtitle {
    color: var(--text-soft);
    font-size: 14px;
    margin-bottom: 26px;
}

.auth-msg {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.auth-msg-success {
    background: rgba(20, 184, 166, 0.12);
    color: #0f766e;
    border: 1px solid rgba(20, 184, 166, 0.25);
}

.auth-msg-error {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-weight: 700;
    font-size: 13.5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #dbe3ec;
    border-radius: 10px;
    font-size: 14.5px;
    color: var(--text-dark);
    background: #fbfdff;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.form-forgot {
    text-align: right;
    margin-top: 6px;
}

.form-forgot a {
    color: var(--blue);
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}

.form-forgot a:hover { text-decoration: underline; }

.auth-submit-btn {
    background: linear-gradient(120deg, var(--blue), var(--teal));
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    margin-top: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.auth-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-soft);
}

.auth-switch a {
    color: var(--blue);
    font-weight: 700;
    text-decoration: none;
}

.auth-switch a:hover { text-decoration: underline; }

@media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
    .auth-card { padding: 28px 22px; }
}


/* ================= RESPONSIVE ================= */
@media (max-width: 860px) {
    .main-nav { display: none; }
    .hero h1 { font-size: 34px; }
    .hero-content { padding-top: 70px; padding-bottom: 70px; }
    .section-title { font-size: 26px; }

    .auth-wrapper { grid-template-columns: 1fr; }
    .auth-brand-panel { display: none; }
}
