/* Color Palette & Variables based on MartialTek Branding */
:root {
    /* Updated background colors to exactly match the logo's #110d3b */
    --primary-bg: #110d3b; 
    --secondary-bg: #1a164a; 
    --card-bg: #221c57; 
    
    --text-light: #ffffff;
    --text-muted: #b0aecf;
    --brand-gold: #f6c166;
    --brand-orange: #e27d37;
    --brand-gradient: linear-gradient(135deg, var(--brand-gold) 0%, var(--brand-orange) 100%);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --success: #2ecc71;
    --danger: #e74c3c;
}

/* Global Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navigation */
.navbar {
    background-color: rgba(17, 13, 59, 0.95); /* Matched to #110d3b */
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(246, 193, 102, 0.1);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    /* Ensures the logo image blends if it has slight transparency edges */
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--brand-gold);
}

/* Buttons */
.btn-primary, .btn-primary-small {
    background: var(--brand-gradient);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(226, 125, 55, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
}

.btn-large {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
    margin-top: 2rem;
}

.btn-primary:hover, .btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(226, 125, 55, 0.6);
    color: #fff;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    /* Gradient uses the new variables for a smoother look */
    background: radial-gradient(circle at center, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(226,125,55,0.15) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem;
}

/* Sections General */
.section {
    padding: 100px 0;
}

.section-dark {
    background-color: var(--secondary-bg);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

.subtitle-max {
    max-width: 600px;
    margin: -3rem auto 4rem auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(246, 193, 102, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Split Layout (Billing) */
.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-text {
    flex: 1;
}

.split-visual {
    flex: 1;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--brand-gold);
    margin-bottom: 2rem;
    font-weight: 600;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 2rem;
}

.feature-list li::before {
    content: '⚡';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--brand-gold);
}

.feature-list strong {
    color: var(--text-light);
}

/* Simple UI Mockup */
.ui-mockup {
    background-color: var(--primary-bg); /* Changed to match brand bg instead of pure black */
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    overflow: hidden;
}

.mockup-header {
    background-color: rgba(0,0,0,0.2);
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.mockup-body {
    padding: 20px;
    font-family: monospace;
    font-size: 0.9rem;
}

.mockup-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mockup-row.header {
    color: var(--text-muted);
    font-weight: bold;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.w-40 { width: 40%; }
.w-20 { width: 20%; }

.status-paid { color: var(--success); }
.status-due { color: var(--danger); }

/* Management Grid */
.management-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mgmt-item {
    text-align: center;
    padding: 2rem;
}

.mgmt-item i {
    font-size: 3rem;
    color: var(--brand-gold);
    margin-bottom: 1.5rem;
}

.mgmt-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    /* FIXED: Changed to use primary-bg variable for seamless transition */
    background-color: var(--primary-bg);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(246, 193, 102, 0.2);
}

.footer-cta {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-bottom {
    margin-top: 60px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .split-layout {
        flex-direction: column;
    }
    .management-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Add hamburger menu logic for mobile if needed */
    }
    .hero {
        padding: 120px 0 60px;
    }
}