/* Modern Reset & Base Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-main: #0b0f19;
    --bg-card: rgba(24, 34, 44, 0.6);
    --gold: #ffc107;
    --gold-hover: #ff8f00;
    --cyan: #0dcaf0;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --border-color: rgba(255, 255, 255, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
}

h1, h2, h3, h4, .logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

.text-gold { color: var(--gold); }
.text-cyan { color: var(--cyan); }
.text-red { color: #dc3545; }
.text-green { color: #198754; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 1px; }

/* Header Navigation */
.main-header {
    background-color: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: var(--border-color) 1px solid;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.8rem;
    color: var(--gold);
}

.logo-text {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.logo-highlight {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--gold);
}

.nav-secondary {
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
}

.btn-demo-nav {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
    color: #0b0f19 !important;
    font-weight: 700 !important;
    padding: 8px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
}

.btn-demo-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.35);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -10%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.08) 0%, rgba(11, 15, 25, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge-indecopi {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 45px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
    color: #0b0f19;
    text-decoration: none;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 50px;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 193, 7, 0.4);
}

.btn-secondary-hero {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary-hero:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--gold);
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

.stat-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
}

.hero-image-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 8px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.card-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-browser-bar .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.card-browser-bar .red { background-color: #ff5f56; }
.card-browser-bar .yellow { background-color: #ffbd2e; }
.card-browser-bar .green { background-color: #27c93f; }

.browser-title {
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-left: 10px;
    font-family: monospace;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    filter: brightness(0.9);
}

/* Benefits Section */
.benefits-section {
    padding: 100px 0;
    background-color: rgba(15, 22, 36, 0.3);
    border-top: var(--border-color) 1px solid;
    border-bottom: var(--border-color) 1px solid;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.4rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: var(--bg-card);
    border: var(--border-color) 1px solid;
    border-radius: 16px;
    padding: 35px 30px;
    transition: all 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 193, 7, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.benefit-icon {
    font-size: 2.2rem;
    margin-bottom: 20px;
    display: inline-block;
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Features Split */
.features-section {
    padding: 100px 0;
}

.features-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.side-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    filter: grayscale(15%) brightness(0.95);
}

.feature-list-item {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.feature-list-item i {
    font-size: 1.4rem;
    margin-top: 3px;
}

.feature-list-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.feature-list-item p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* Pricing Tiers */
.pricing-section {
    padding: 100px 0;
    background-color: rgba(15, 22, 36, 0.3);
    border-top: var(--border-color) 1px solid;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-card);
    border: var(--border-color) 1px solid;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s;
}

.pricing-card.popular {
    border-color: var(--gold);
    box-shadow: 0 15px 35px rgba(255, 193, 7, 0.1);
}

.popular-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--gold);
    color: #0b0f19;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.card-header {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 25px;
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.price {
    display: flex;
    align-items: baseline;
}

.currency {
    font-size: 1.5rem;
    font-weight: 700;
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
}

.period {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-left: 5px;
}

.card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.plan-features {
    list-style: none;
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
}

.plan-features li i {
    font-size: 1.1rem;
}

.plan-features li .bi-check2 {
    color: var(--gold);
}

.plan-features li.disabled {
    color: rgba(255, 255, 255, 0.3);
    text-decoration: line-through;
}

.plan-features li .bi-x {
    color: #dc3545;
    font-size: 1.3rem;
}

.btn-pricing {
    width: 100%;
    text-align: center;
    display: block;
    text-decoration: none;
    font-weight: 700;
    padding: 14px;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary);
    transition: all 0.3s;
    margin-top: auto;
}

.btn-pricing:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    color: var(--gold);
}

.btn-primary-pricing {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-hover) 100%);
    color: #0b0f19 !important;
    border: none;
}

.btn-primary-pricing:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

/* WHMCS Admin Guide */
.whmcs-guide-section {
    padding: 80px 0;
    border-top: var(--border-color) 1px solid;
}

.guide-box {
    background: rgba(255, 193, 7, 0.03);
    border: 1px dashed rgba(255, 193, 7, 0.2);
    border-radius: 20px;
    padding: 40px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.step-card {
    background-color: rgba(11, 15, 25, 0.6);
    border: var(--border-color) 1px solid;
    border-radius: 12px;
    padding: 24px;
    position: relative;
}

.step-num {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    font-weight: 800;
    color: rgba(255, 193, 7, 0.15);
    line-height: 1;
}

.step-card h5 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Footer */
.landing-footer {
    padding: 40px 0;
    border-top: var(--border-color) 1px solid;
    background-color: #080b12;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Responsive Rules */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-glow {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .badge-indecopi {
        margin: 0 auto 20px auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .features-split {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .features-image {
        order: 2;
    }
    
    .main-nav {
        display: none; /* simple hidden mobile menu for MVP */
    }
}

/* Modal Overlays for Legal Info & Frames */
.legal-modal, .iframe-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(11, 15, 25, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.iframe-modal {
    z-index: 3000; /* Over the first modal */
}

.modal-wrapper {
    background-color: #121824;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.iframe-wrapper {
    max-width: 1100px;
    height: 90vh;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #161e2e;
}

.modal-title {
    font-size: 1.4rem;
    font-family: 'Outfit', sans-serif;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--gold);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.modal-body h2, .modal-body h3 {
    color: #fff;
    margin-top: 25px;
    margin-bottom: 15px;
    font-family: 'Outfit', sans-serif;
}

.modal-body h2 {
    font-size: 1.25rem;
    border-left: 3px solid var(--gold);
    padding-left: 10px;
}

.modal-body h2:first-of-type {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.7;
}

.modal-body ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Citations & Links Styling */
.citation-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background-color: rgba(255, 193, 7, 0.15);
    color: var(--gold);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    margin: 0 2px;
    transition: background-color 0.2s, color 0.2s;
    vertical-align: super;
    cursor: pointer;
}

.citation-link:hover {
    background-color: var(--gold);
    color: #0b0f19;
}

.source-item-link {
    color: var(--cyan);
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.source-item-link:hover {
    text-decoration: underline;
}

.portal-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(13, 202, 240, 0.1);
    color: var(--cyan);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    margin: 10px 0;
    border: 1px solid rgba(13, 202, 240, 0.2);
    cursor: pointer;
    transition: all 0.2s;
}

.portal-button:hover {
    background-color: var(--cyan);
    color: #0b0f19;
}

/* Iframe Modal Specifics */
.iframe-container {
    flex: 1;
    width: 100%;
    position: relative;
    background-color: #fff;
    min-height: 450px;
}

.iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.iframe-fallback-bar {
    background-color: #121824;
    padding: 10px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.iframe-fallback-bar a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.iframe-fallback-bar a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
