/* assets/css/style.css */

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #4f46e5;
    --accent-bright: #6366f1;
    --cyan: #06b6d4;
    --gold: #d97706;
    --gold-bg: #fef3c7;
    --success: #059669;
    --success-bg: #d1fae5;
    --warning: #b45309;
    --warning-bg: #fef3c7;
    --danger: #dc2626;
    --danger-bg: #fee2e2;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius: 14px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(79, 70, 229, 0.12), 0 8px 10px -6px rgba(79, 70, 229, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
}

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

/* Status Banner (Retorno Checkout Pro) */
.status-banner {
    padding: 14px 0;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    position: relative;
    z-index: 120;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}

.status-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.status-sucesso {
    background-color: var(--success-bg);
    color: #065f46;
}

.status-pendente {
    background-color: var(--warning-bg);
    color: #92400e;
}

.status-erro {
    background-color: var(--danger-bg);
    color: #991b1b;
}

.status-banner-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.status-banner-close:hover {
    opacity: 1;
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 74px;
    position: relative;
}

.logo {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
}

.logo span {
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 28px;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

nav a:not(.btn-nav):hover {
    color: var(--accent);
}

nav a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: linear-gradient(90deg, var(--accent), var(--cyan));
    transition: width 0.25s ease;
}

nav a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    background-color: var(--primary);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.btn-nav:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(79, 70, 229, 0.4);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #090d16 85%);
    color: #ffffff;
    padding: 96px 0 88px;
    text-align: center;
    overflow: hidden;
}

.techCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
}

.hero-content {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.hero-content * {
    pointer-events: auto;
}

.badge-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(99, 102, 241, 0.35);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #a5b4fc;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #38bdf8;
    border-radius: 50%;
    box-shadow: 0 0 8px #38bdf8;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 900;
    max-width: 900px;
    margin: 0 auto 20px;
    line-height: 1.12;
    letter-spacing: -0.03em;
    color: #ffffff;
    filter: drop-shadow(0 2px 25px rgba(255, 255, 255, 0.15));
}

.hero p {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 660px;
    margin: 0 auto 40px;
}

/* Search Box */
.search-container {
    max-width: 740px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    padding: 8px;
    border-radius: 16px;
    display: flex;
    gap: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.search-container:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.45), 0 0 0 2px var(--accent-bright);
}

.search-container input {
    flex: 1;
    border: none;
    padding: 14px 18px;
    font-size: 1rem;
    outline: none;
    color: var(--text-main);
    border-radius: 10px;
    background: transparent;
}

.search-container select {
    border: none;
    border-left: 1px solid var(--border);
    padding: 0 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    outline: none;
    background: transparent;
    cursor: pointer;
}

.btn-search {
    background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 11px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.5);
}

/* Trust Bar */
.trust-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    text-align: center;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
}

.trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    font-weight: bold;
    font-size: 0.8rem;
}

/* Sections */
section {
    padding: 68px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 34px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title h2 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 4px;
}

/* Domain Grid */
.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(79, 70, 229, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.45);
}

.card.premium {
    border-top: 4px solid var(--gold);
}

.card.fast {
    border-top: 4px solid var(--accent);
}

.card.card-sold {
    opacity: 0.78;
    border-top-color: #94a3b8;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tag-niche {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: #f1f5f9;
    padding: 5px 10px;
    border-radius: 6px;
}

.tag-type {
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 6px;
}

.tag-premium {
    background: var(--gold-bg);
    color: var(--gold);
}

.tag-fast {
    background: #e0e7ff;
    color: var(--accent);
}

.tag-sold {
    background: #e2e8f0;
    color: #475569;
}

.domain-name {
    font-size: 1.48rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 10px;
    word-break: break-all;
    letter-spacing: -0.02em;
    transition: color 0.2s;
}

.card:hover .domain-name {
    color: var(--accent);
}

.domain-name span {
    color: var(--accent);
}

.domain-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 22px;
}

.indicate-link-wrapper {
    margin-top: 10px;
    margin-bottom: -4px;
}

.indicate-link {
    font-size: 0.74rem;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0.85;
    transition: all 0.2s;
}

.indicate-link:hover {
    color: var(--accent);
    opacity: 1;
}

/* Card Footer */
.card-footer {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-box {
    width: 100%;
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.price-header small {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
}

.discount-tag {
    background: var(--success-bg);
    color: var(--success);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: nowrap;
}

.price-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--success);
    white-space: nowrap;
}

.price-original {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    white-space: nowrap;
}

.btn-group {
    display: flex;
    gap: 8px;
    width: 100%;
}

.btn-group .btn,
.btn {
    flex: 1;
    padding: 10px 8px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.btn-buy {
    background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 100%);
    color: #fff;
}

.btn-buy:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -3px rgba(79, 70, 229, 0.45);
}

.btn-offer {
    background: #f8fafc;
    color: var(--primary);
    border: 1px solid #cbd5e1;
}

.btn-offer:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: var(--accent);
    color: var(--accent);
}

/* Central de Permuta */
.permuta-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 28px;
    box-shadow: var(--shadow);
}

.permuta-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    font-size: 0.85rem;
}

.permuta-rule-item {
    background: var(--bg-body);
    padding: 12px 14px;
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.permuta-rule-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 3px;
}

.permuta-rule-item span {
    color: var(--text-muted);
}

.permuta-grid-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}

.permuta-grid-bottom {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 12px;
    margin-bottom: 12px;
}

.permuta-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 3px;
    color: var(--primary);
}

.permuta-input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 0.88rem;
    background: var(--bg-body);
    outline: none;
    transition: border-color 0.2s;
}

.permuta-input:focus {
    border-color: var(--accent);
}

.permuta-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.permuta-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* How it works */
.steps-bg {
    background: #ffffff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 36px;
}

.step-card {
    padding: 28px;
    background: var(--bg-body);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.4);
}

.step-num {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    color: #fff;
    font-weight: 800;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 6px 12px -3px rgba(79, 70, 229, 0.35);
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: #cbd5e1;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 18px 22px;
    background: none;
    border: none;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 22px 18px;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25d366;
    color: #ffffff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 34px;
    height: 34px;
    fill: #ffffff;
}

/* Footer */
footer {
    position: relative;
    background: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #090d16 85%);
    color: #94a3b8;
    padding: 52px 0 24px;
    font-size: 0.9rem;
    overflow: hidden;
}

footer .techCanvas {
    opacity: 0.85;
}

footer .container {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 36px;
}

.footer-col h4 {
    color: #ffffff;
    margin-bottom: 14px;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 13, 22, 0.75);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}

.modal-box {
    background: #ffffff;
    max-width: 480px;
    width: 100%;
    border-radius: 16px;
    padding: 28px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    animation: modalPop 0.22s ease-out;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-box h3 {
    font-size: 1.35rem;
    margin-bottom: 6px;
}

.modal-domain {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 16px;
    display: block;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15);
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.payment-option {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 6px;
    text-align: center;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-body);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.payment-option input {
    display: none;
}

.payment-option.active {
    border-color: var(--accent);
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    box-shadow: 0 0 0 1px var(--accent);
}

.modalidade-tab {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-body);
    transition: all 0.2s ease;
}

.modalidade-tab.active {
    border-color: var(--accent);
    background: rgba(79, 70, 229, 0.08);
    color: var(--primary);
    box-shadow: 0 0 0 1px var(--accent);
}

.btn-prazo {
    padding: 6px;
    font-size: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-prazo.active {
    border-color: var(--accent);
    background: rgba(79, 70, 229, 0.1);
    color: var(--accent);
    font-weight: 700;
}

.price-summary-box {
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.1rem; }
    .search-container { flex-direction: column; }
    .search-container select { border-left: none; border-top: 1px solid var(--border); padding: 12px; }
    .permuta-grid-bottom { grid-template-columns: 1fr; }
    
    .menu-toggle { display: flex; }

    nav {
        position: absolute;
        top: 74px;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    nav.active { max-height: 400px; }

    nav ul {
        flex-direction: column;
        gap: 0;
        padding: 10px 20px 20px 20px;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }

    nav ul li:last-child { border-bottom: none; padding-top: 10px; }

    nav a { display: block; padding: 12px 0; font-size: 1rem; }

    .btn-nav { display: inline-block; width: 100%; text-align: center; }
}
