/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0d0d0d;
    --bg2: #141414;
    --bg3: #1e1e1e;
    --accent: #d4af37;
    --accent-dark: #b8922a;
    --accent-glow: rgba(212,175,55,0.3);
    --orange: #d4af37;
    --orange-dark: #b8922a;
    --orange-glow: rgba(212,175,55,0.3);
    --text: #f0f0f0;
    --text-muted: #999999;
    --border: #3a3a3a;
    --font: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body.modern-landing {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== NAVBAR ========== */
.m-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(26,26,26,0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: background 0.3s;
}

.m-nav.scrolled { background: rgba(26,26,26,0.98); }

.m-nav-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.m-nav-logo span { color: var(--orange); }

.m-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.m-nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
}

.m-nav-links a:hover { color: var(--orange); }

.m-nav-support {
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--text) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600 !important;
    font-size: 0.875rem;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.m-nav-support:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    background: rgba(212,175,55,0.06);
}

.m-nav-cta {
    background: var(--accent);
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    font-weight: 600 !important;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.m-nav-cta:hover {
    background: var(--accent-dark) !important;
    transform: translateY(-1px);
}

.m-nav-burger { display: none; cursor: pointer; color: var(--text); font-size: 1.4rem; }

/* ========== HERO ========== */
.m-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 6rem 2rem 4rem;
}

.m-hero-video {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: 0;
    will-change: transform;
    transform: translateZ(0);
}

.m-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 60%, var(--bg) 100%);
    z-index: 1;
}

.m-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.m-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(26,79,160,0.15);
    border: 1px solid rgba(26,79,160,0.4);
    color: #ffffff;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.m-hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: #fff;
}

.m-hero h1 span { color: var(--accent); }

.m-hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

.m-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.m-btn-primary {
    background: var(--accent);
    color: #fff;
}

.m-btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.m-btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.m-btn-outline:hover {
    border-color: var(--text-muted);
    transform: translateY(-2px);
}

.m-hero-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ========== STATS BAR ========== */
.m-stats {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 2rem;
}

.m-stats-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.m-stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.04em;
    line-height: 1;
}

.m-stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

/* ========== SECTION BASE ========== */
.m-section {
    padding: 6rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.m-section-full {
    padding: 6rem 2rem;
    background: var(--bg2);
}

.m-section-full .m-section { padding: 0; }

.m-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.m-section h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #fff;
}

.m-section p.m-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 540px;
    margin-bottom: 3rem;
}

/* ========== FEATURES GRID ========== */
.m-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.m-feature-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: border-color 0.2s, transform 0.2s;
}

.m-feature-card:hover {
    border-color: rgba(212,175,55,0.4);
    transform: translateY(-4px);
}

.m-feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(212,175,55,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: var(--accent);
    font-size: 1.2rem;
}

.m-feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.m-feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ========== APP SECTION ========== */
.m-app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.m-app-card {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.2s;
}

.m-app-card:hover {
    border-color: rgba(212,175,55,0.4);
    transform: translateY(-3px);
}

.m-app-card-icon {
    font-size: 2.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

.m-app-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

.m-app-card p { font-size: 0.8rem; color: var(--text-muted); }

/* ========== NOTICE BANNER ========== */
.m-notice {
    background: rgba(212,175,55,0.06);
    border: 1px solid rgba(212,175,55,0.2);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 3rem 0;
}

.m-notice-icon { color: var(--accent); font-size: 1.2rem; flex-shrink: 0; margin-top: 2px; }

.m-notice h4 { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }

.m-notice p { font-size: 0.875rem; color: var(--text-muted); }

.m-notice a { color: var(--accent); text-decoration: none; font-weight: 600; }
.m-notice a:hover { text-decoration: underline; }

/* ========== PORTFOLIO GRID ========== */
.m-portfolio {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 3rem;
}

.m-portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--bg3);
    border: 1px solid var(--border);
}

.m-portfolio-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    display: block;
}

.m-portfolio-item:hover img { transform: scale(1.05); }

.m-portfolio-caption {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.85) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.m-portfolio-item:hover .m-portfolio-caption { opacity: 1; }

.m-portfolio-caption h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.m-portfolio-caption h4 span { color: var(--accent); display: block; font-weight: 400; font-size: 0.8rem; }

/* ========== PRICING ========== */
.m-pricing-card {
    background: var(--bg3);
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 16px;
    padding: 3rem;
    max-width: 500px;
    margin: 3rem auto 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.m-pricing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #e0f2fe);
}

.m-pricing-badge {
    display: inline-block;
    background: rgba(212,175,55,0.1);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
}

.m-pricing-price {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.m-pricing-price sup { font-size: 1.5rem; vertical-align: top; margin-top: 0.75rem; color: var(--text-muted); }
.m-pricing-price sub { font-size: 1rem; color: var(--text-muted); font-weight: 400; }

.m-pricing-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }

.m-pricing-features { list-style: none; text-align: left; margin-bottom: 2.5rem; }

.m-pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.m-pricing-features li:last-child { border-bottom: none; }
.m-pricing-features li i { color: var(--accent); font-size: 0.85rem; flex-shrink: 0; }

/* ========== FOOTER ========== */
.m-footer {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 4rem 2rem 2rem;
}

.m-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.m-footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.m-footer-brand h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.m-footer-brand h3 span { color: var(--accent); }

.m-footer-brand p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.m-footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

.m-footer-col li { margin-bottom: 0.6rem; }

.m-footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.m-footer-col a:hover { color: var(--accent); }

.m-footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========== PAGE HERO (inner pages) ========== */
.m-page-hero {
    padding: 7rem 2rem 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.m-page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 0.75rem;
}

.m-page-hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ========== AUTH (login / registration) ========== */
.m-auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg);
}

.m-auth-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
}

.m-auth-logo {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    margin-bottom: 1.5rem;
}

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

.m-auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 0.35rem;
}

.m-auth-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.m-auth-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    color: #f87171;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.m-auth-form { display: flex; flex-direction: column; gap: 1rem; }

.m-field { display: flex; flex-direction: column; gap: 0.4rem; }

.m-label-field {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.m-input {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    width: 100%;
}

.m-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}

.m-input-error { border-color: #ef4444 !important; }

.m-btn-full { width: 100%; justify-content: center; margin-top: 0.5rem; }

.m-auth-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.m-auth-footer a { color: var(--accent); text-decoration: none; font-weight: 600; }
.m-auth-footer a:hover { text-decoration: underline; }

/* ========== FAQ ========== */
.m-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 760px;
}

.m-faq-item {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.m-faq-item.open { border-color: rgba(212,175,55,0.35); }

.m-faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
    gap: 1rem;
}

.m-faq-q span { font-size: 0.95rem; font-weight: 600; color: #fff; }

.m-faq-q i {
    color: var(--text-muted);
    transition: transform 0.25s;
    flex-shrink: 0;
}

.m-faq-item.open .m-faq-q i { transform: rotate(180deg); color: var(--accent); }

.m-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding: 0 1.5rem;
}

.m-faq-item.open .m-faq-a {
    max-height: 400px;
    padding: 0 1.5rem 1.25rem;
}

.m-faq-contact {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.m-faq-contact p { color: var(--text-muted); font-size: 1rem; }

/* ========== PLANS / CARACTERISTICAS ========== */
.m-plans-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.m-plan-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.m-plan-featured {
    border-color: rgba(212,175,55,0.35);
}

.m-plan-featured::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #e0f2fe);
}

.m-plan-badge {
    display: inline-block;
    background: rgba(212,175,55,0.1);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.m-plan-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.m-plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.m-plan-price sup { font-size: 1.2rem; vertical-align: top; margin-top: 0.5rem; }
.m-plan-price sub { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }

.m-plan-desc { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1.5rem; }

.m-plan-features {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.m-plan-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.m-plan-features li i { color: var(--accent); flex-shrink: 0; font-size: 0.8rem; }

.m-plan-extra { opacity: 0.7; }

.m-plan-tag {
    margin-left: auto;
    font-size: 0.7rem;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .m-features { grid-template-columns: 1fr 1fr; }
    .m-footer-top { grid-template-columns: 1fr 1fr; }
    .m-stats-inner { grid-template-columns: repeat(3, 1fr); }
    .m-plans-grid { grid-template-columns: 1fr; }
}

/* ===== NAV RESPONSIVE (tablet + mobile) ===== */
@media (max-width: 768px) {
    .m-nav-burger { display: block; }

    .m-nav-links {
        /* collapsed: zero height, no visibility */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        /* layout when open */
        flex-direction: column;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: rgba(26,26,26,0.98);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        gap: 0;
        padding: 0;
        transition: max-height 0.3s ease, opacity 0.25s ease;
    }

    .m-nav-links.open {
        max-height: 560px;
        opacity: 1;
        pointer-events: auto;
    }

    .m-nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    .m-nav-links li:last-child { border-bottom: none; }

    .m-nav-links a {
        display: block;
        padding: 0.95rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }

    .m-nav-support {
        border: none !important;
        border-radius: 0 !important;
        padding: 0.95rem 1.5rem !important;
        width: 100%;
        display: block !important;
        justify-content: flex-start;
    }

    .m-nav-cta {
        border-radius: 0;
        padding: 0.95rem 1.5rem;
        width: 100%;
        display: block;
        text-align: left;
    }
}

@media (max-width: 640px) {
    .m-features { grid-template-columns: 1fr; }
    .m-app-grid { grid-template-columns: 1fr; }
    .m-portfolio { grid-template-columns: 1fr; }
    .m-stats-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .m-footer-top { grid-template-columns: 1fr; gap: 2rem; }
    .m-footer-bottom { flex-direction: column; text-align: center; }
}

/* ========== ORANGE CTA OVERRIDES ========== */
.m-nav-cta,
.m-nav-cta:hover,
#pricing .m-btn-primary {
    background: var(--orange) !important;
}
.m-nav-cta:hover,
#pricing .m-btn-primary:hover {
    background: var(--orange-dark) !important;
    box-shadow: 0 8px 24px var(--orange-glow) !important;
}
