/* --- style.css --- */

/* 1. Definições Padrão (Variáveis) */
:root {
    --primary: #39E09B;
    --primary-dark: #26C281;
    --primary-light: #8bfcd0;
    --dark: #1e1e1e;
    --light: #f9f9f9;
    --text: #4a4a4a;
    --grad-bg: linear-gradient(135deg, #E9FBF2 0%, #FFFFFF 100%);
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);

    /* Legacy vars for dashboard compatibility */
    --bg-color: #f0f2f5;
    --text-color: #333;
    --btn-bg: #fff;
    --btn-text: #000;
    --btn-border: none;
    --btn-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 2. Global Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-color);
    /* Defaults to light gray for dashboard, overriden in landing */
    color: var(--text-color);
    font-family: 'Outfit', 'Poppins', sans-serif;
    /* Modern Font Stack */
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

html {
    scroll-behavior: smooth;
}

/* 3. Helper Classes */
a {
    text-decoration: none;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

.text-center {
    text-align: center;
}

/* 4. Animation Keyframes */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(-5deg);
    }

    50% {
        transform: translateY(-20px) rotate(-5deg);
    }

    100% {
        transform: translateY(0px) rotate(-5deg);
    }
}

.floating-anim {
    animation: float 6s ease-in-out infinite;
}

/* Decorative Circles */
.deco-circle {
    position: absolute;
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    opacity: 0.6;
}

.deco-1 {
    width: 300px;
    height: 300px;
    background: rgba(57, 224, 155, 0.4);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.deco-2 {
    width: 200px;
    height: 200px;
    background: rgba(38, 194, 129, 0.3);
    top: 10%;
    right: 20%;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* 5. Landing Page Specific Styles */
/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary);
}

.nav-btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    margin-left: 10px;
    font-size: 0.95rem;
}

.btn-login {
    color: var(--dark);
    background: transparent;
}

.btn-login:hover {
    color: var(--primary);
}

.btn-signup {
    background: var(--dark);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-signup:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 160px 5% 100px;
    background: var(--grad-bg);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    padding-right: 40px;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    /* Bigger title */
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--dark);
    letter-spacing: -1.5px;
    font-weight: 800;
}

.hero h1 span {
    color: var(--primary);
    background: linear-gradient(135deg, #39E09B 0%, #26C281 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.35rem;
    color: #555;
    margin-bottom: 40px;
    max-width: 90%;
    font-weight: 400;
}

/* Signup Form in Hero */
#signup-form {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: fit-content;
    align-items: center;
    transition: 0.3s;
}

#signup-form:focus-within {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.input-group {
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.domain-prefix {
    font-weight: 700;
    color: #888;
    font-size: 1.1rem;
    margin-right: 2px;
}

#username-input {
    border: none;
    outline: none;
    padding: 10px 5px;
    font-size: 1.1rem;
    width: 160px;
    font-weight: 700;
    color: var(--dark);
    background: transparent;
}

#username-input::placeholder {
    color: #ccc;
    font-weight: 400;
}

.cta-button {
    background: var(--dark);
    color: #fff;
    padding: 15px 35px;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cta-button:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(57, 224, 155, 0.4);
}

/* Hero Image / Phone Mockup */
.hero-img {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.phone-mockup {
    width: 320px;
    height: 640px;
    background: var(--dark);
    border-radius: 50px;
    border: 12px solid #1e1e1e;
    position: relative;
    box-shadow: 30px 40px 80px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: rotate(-5deg);
    /* Default rotation, anim handles movement */
}

.phone-screen {
    background: linear-gradient(135deg, #39E09B 0%, #1e1e1e 100%);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 60px;
}

.screen-avatar {
    width: 90px;
    height: 90px;
    background: white;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.screen-name {
    width: 120px;
    height: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 6px;
    margin-bottom: 35px;
}

.screen-btn {
    width: 80%;
    height: 55px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Sections Common */
.section {
    padding: 120px 5%;
}

.section-title {
    font-size: 3rem;
    color: var(--dark);
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 70px;
}

/* Features */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 50px 40px;
    border-radius: 24px;
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(57, 224, 155, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: 0.3s;
}

.feature-card:hover .icon-box {
    background: var(--primary);
    color: white;
}

.feature-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0;
    /* Override old style */
    transition: 0.3s;
}

.feature-card:hover .feature-icon {
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 700;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

/* How It Works */
.how-bg {
    background: #f8fcfb;
    /* Subtle green tint */
    position: relative;
}

.steps {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.step {
    text-align: center;
    max-width: 280px;
    position: relative;
    padding: 20px;
}

.step-num {
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--dark);
    font-weight: 800;
    font-size: 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 10px 20px rgba(57, 224, 155, 0.3);
    position: relative;
    z-index: 2;
}

.step h3 {
    margin-bottom: 15px;
    color: var(--dark);
    font-size: 1.4rem;
    font-weight: 700;
}

/* Testimonials */
.testi-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    text-align: left;
    border: 1px solid #eee;
    transition: 0.3s;
}

.testi-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.stars {
    color: #FFB800;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.u-img {
    width: 50px;
    height: 50px;
    background: #e0e0e0;
    border-radius: 50%;
    object-fit: cover;
}

/* FAQ */
.faq-item {
    background: #fff;
    margin-bottom: 20px;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #eef2f5;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.faq-question {
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    color: var(--dark);
}

.faq-answer {
    display: none;
    margin-top: 15px;
    color: #666;
    line-height: 1.7;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.faq-item.active .faq-answer {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item.active i {
    transform: rotate(180deg);
    transition: 0.3s;
}

/* Footer */
footer {
    background: #111;
    color: #888;
    padding: 100px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 80px;
}

.f-col h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.f-col ul li {
    margin-bottom: 12px;
}

.f-col ul li a {
    color: #888;
    font-size: 1rem;
    transition: 0.3s;
}

.f-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.f-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 40px;
    font-size: 0.95rem;
}


/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding-bottom: 15px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
        position: fixed;
        /* Fix header on mobile */
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 200px;
        /* Space for fixed header */
    }

    .hero-text {
        max-width: 100%;
        padding: 0;
        margin-bottom: 80px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    #signup-form {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 25px;
        border-radius: 25px;
    }

    .input-group {
        flex-direction: column;
        align-items: center;
        padding: 0;
        width: 100%;
        margin-bottom: 20px;
    }

    #username-input {
        width: 100%;
        text-align: center;
        background: #f4f6f8;
        border-radius: 12px;
        padding: 15px;
        margin-top: 10px;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
    }

    .phone-mockup {
        width: 280px;
        height: 560px;
        transform: rotate(0deg);
        /* Simplificar no mobile */
    }

    .floating-anim {
        animation: none;
        /* Disable complex floating on mobile for performance/layout */
    }
}


/* --- Dashboard / Legacy Styles Support --- */
/* These are kept to ensure the dashboard and profile pages still work */

/* Themes */
.theme-classic {
    --bg-color: linear-gradient(135deg, #39E09B 0%, #000 100%);
    --text-color: #fff;
    --btn-bg: rgba(255, 255, 255, 0.9);
    --btn-text: #000;
}

.theme-ocean {
    --bg-color: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
    --text-color: #fff;
    --btn-bg: rgba(0, 0, 0, 0.3);
    --btn-text: #fff;
    --btn-border: 1px solid rgba(255, 255, 255, 0.5);
}

.theme-sunset {
    --bg-color: linear-gradient(to right, #ff512f, #dd2476);
    --text-color: #fff;
    --btn-bg: #fff;
    --btn-text: #dd2476;
}

.theme-dark {
    --bg-color: #111;
    --text-color: #eee;
    --btn-bg: #222;
    --btn-text: #eee;
    --btn-border: 1px solid #333;
}

.theme-snow {
    --bg-color: #e0eafc;
    --text-color: #333;
    --btn-bg: #fff;
    --btn-text: #2c3e50;
    --btn-border: 2px solid #2c3e50;
}

.link-btn-public {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border-radius: 30px;
    background: var(--btn-bg);
    color: var(--btn-text);
    border: var(--btn-border);
    box-shadow: var(--btn-shadow);
    text-decoration: none;
    font-weight: bold;
    display: block;
    text-align: center;
    transition: transform 0.2s;
}

.link-btn-public:hover {
    transform: scale(1.02);
}

.profile-img {
    width: 90px;
    height: 90px;
    background: #fff;
    color: #333;
    border-radius: 50%;
    margin: 30px auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    text-align: center;
    margin: 0 auto;
}

.user-bg-custom {
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 40px;
    margin-top: 25px;
    min-height: 80vh;
}

@media (max-width: 600px) {
    .user-bg-custom {
        border-radius: 0;
        margin-top: 0;
        min-height: 100vh;
        box-shadow: none;
        width: 100%;
        padding: 20px;
    }
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.delete-btn {
    background: #ff4444;
    color: white;
}

.section-header {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem !important;
    margin-top: 30px !important;
    margin-bottom: 15px !important;
    opacity: 0.8;
}

.btn-mediakit {
    display: inline-block;
    background: rgba(0, 0, 0, 0.05);
    color: inherit;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-mediakit:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.link-card {
    background: #fff;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

input[type="text"],
input[type="file"],
input[type="color"] {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
}

button {
    padding: 10px 20px;
    background: #39E09B;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

/* Animação de Tchau (Wave) */
@keyframes wave-animation {
    0% {
        transform: rotate(0deg) scale(1);
    }

    20% {
        transform: rotate(-15deg) scale(1.1);
    }

    40% {
        transform: rotate(10deg) scale(1.1);
    }

    60% {
        transform: rotate(-15deg) scale(1.1);
    }

    80% {
        transform: rotate(10deg) scale(1.1);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}

.dar-tchau {
    animation: wave-animation 1.5s ease-in-out;
    animation-delay: 0.5s;
    transform-origin: bottom center;
}

/* Beta Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.modal-open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.7);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-open .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
}

.modal-text {
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.modal-btn {
    background: var(--primary);
    color: var(--dark);
    border: none;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 10px 20px rgba(57, 224, 155, 0.3);
}

.modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(57, 224, 155, 0.4);
}