/* ==========================================================================
   1. System Architecture Styles & Global Reset Tokens
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #0d0d0d;
    --secondary-dark: #141414;
    --brand-red: #b3002d;
    --brand-green: #27ae60;
    --text-main: #2b2b2b;
    --text-muted: #707070;
    --light-bg: #f4f5f6;
    --white: #ffffff;
    --font-stack: 'Inter', sans-serif;
    --font-display: 'Oswald', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

/* --- Typography Helpers & Global Layouts --- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-stack);
    font-weight: 800;
    color: var(--primary-black);
}

.section-title {
    font-size: 2.4rem;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px auto;
}

.text-white { color: var(--white); }
.text-gray { color: #b0b0b0; }
.brand-red { color: var(--brand-red); }
.brand-green { color: var(--brand-green); }
.txt-right { text-align: right; }

/* --- Buttons --- */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: transform 0.2s, background-color 0.2s;
}

.btn-primary {
    background-color: var(--brand-red);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #910024;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--primary-black);
    color: var(--white);
    border: 1px solid #222;
}

.btn-secondary:hover {
    background-color: #000;
    transform: translateY(-2px);
}

/* ==========================================================================
   2. Layout Header Framework
   ========================================================================== */
header {
    background-color: var(--white);
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

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

.logo h1 {
    font-size: 1.4rem;
}

.sub-brand {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
}

.logo-box {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, var(--primary-black) 50%, var(--brand-red) 50%);
    display: inline-block;
    border-radius: 4px;
}

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

nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
}

nav a:hover {
    color: var(--brand-red);
}

/* ==========================================================================
   3. Hero Section & Upgraded Digital Lounge Menu Preview
   ========================================================================== */
.hero {
    background: linear-gradient(180deg, #ffffff 0%, #ededed 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    padding: 70px 0;
}

.hero-text h2 {
    font-size: 3.6rem;
    line-height: 1.05;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.tagline {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--brand-red);
    text-transform: lowercase;
    margin-bottom: 25px;
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-cta {
    display: flex;
    gap: 15px;
}

/* Lounge / Tattoo Specialized Menu Theme Layout */
.hero-image-placeholder {
    background-color: #1a1a1a;
    border: 14px solid #0a0a0a;
    border-radius: 6px;
    aspect-ratio: 16 / 9;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    padding: 25px;
}

.menu-lounge-theme {
    height: 100%;
    background-color: #111111;
    border: 1px solid #262626;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-header-row {
    text-align: center;
    border-bottom: 2px solid var(--brand-red);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.menu-header-row h3 {
    font-family: var(--font-display);
    color: var(--white);
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.menu-tag {
    color: #a8a8a8;
    font-size: 0.75rem;
    letter-spacing: 4px;
    font-weight: 600;
}

.menu-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    flex-grow: 1;
}

.menu-category {
    font-family: var(--font-display);
    color: var(--brand-red);
    font-size: 0.95rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
    border-bottom: 1px dashed #333;
    padding-bottom: 4px;
}

.mock-menu-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: 500;
}

.mock-menu-item span:last-child {
    color: #f1c40f;
    font-weight: 700;
}

.live-ad-ticker {
    background-color: #000;
    border: 1px solid #222;
    padding: 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    color: #00ff66;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   4. Features Component Area
   ========================================================================== */
.features {
    background-color: var(--white);
}

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

.feature-card {
    background-color: var(--light-bg);
    padding: 45px 35px;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

/* ==========================================================================
   5. Sales Packages Component Matrix
   ========================================================================== */
.pricing {
    background-color: var(--light-bg);
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.price-card {
    background-color: var(--white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 45px 35px;
    width: 100%;
    max-width: 420px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.price-card.premium {
    border-color: var(--brand-red);
    box-shadow: 0 15px 35px rgba(179, 0, 45, 0.08);
}

.price-card.selected-highlight {
    border: 3px solid var(--brand-green) !important;
    transform: scale(1.02);
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-black);
    color: var(--white);
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.gold {
    background-color: #f1c40f;
    color: #000;
}

.price-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.price {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--primary-black);
    line-height: 1.1;
    margin-bottom: 30px;
}

.price span {
    display: block;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.price-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.price-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

/* ==========================================================================
   6. Yield Dashboard & Metric Calculation Modules
   ========================================================================== */
.earnings-breakdown {
    background-color: var(--primary-black);
}

.calc-toggle-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 35px;
}

.calc-toggle-btn {
    background-color: var(--secondary-dark);
    color: var(--white);
    border: 1px solid #2d2d2d;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.calc-toggle-btn.active, .calc-toggle-btn:hover {
    background-color: var(--brand-red);
    border-color: var(--brand-red);
}

.earnings-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

.math-card {
    background-color: var(--secondary-dark);
    border-radius: 6px;
    padding: 40px;
    color: var(--white);
    border: 1px solid #1f1f1f;
    transition: opacity 0.15s ease;
}

.math-card h4 {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 25px;
    border-left: 4px solid var(--brand-red);
    padding-left: 15px;
}

.profit-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.profit-table td {
    padding: 14px 0;
    border-bottom: 1px solid #262626;
    font-size: 1rem;
}

.highlight-row {
    color: #f1c40f;
}

.total-row td {
    font-size: 1.4rem;
    font-weight: 800;
    border-bottom: none;
    padding-top: 20px;
}

.multiplier-box {
    background-color: #0d0d0d;
    padding: 18px;
    border-radius: 4px;
    text-align: center;
    font-size: 1.1rem;
    border: 1px solid #222;
}

.model-desc {
    color: #a0a0a0;
    margin-bottom: 25px;
}

.model-box {
    background-color: #0d0d0d;
    padding: 22px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 1px solid #222;
}

.model-box h5 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.model-box .formula {
    font-family: monospace;
    color: #666;
    font-size: 0.95rem;
}

.model-box .grand-total {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-green);
    margin-top: 8px;
}

.model-box .grand-total .lbl {
    font-size: 0.85rem;
    color: #888;
    font-weight: 400;
}

/* ==========================================================================
   7. Onboarding Lead Forms & Global Footer Area
   ========================================================================== */
.contact-section {
    background-color: var(--light-bg);
}

.form-container {
    max-width: 650px;
    background: var(--white);
    padding: 50px 40px;
    border-radius: 6px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.03);
    margin: 0 auto;
}

.form-group {
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-black);
}

.form-group input, .form-group select {
    padding: 14px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    background-color: #fafafa;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--brand-red);
    background-color: var(--white);
}

.form-submit-btn {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.form-feedback {
    margin-top: 20px;
    padding: 14px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
}

.form-feedback.success {
    background-color: #d4edda;
    color: #155724;
}

.form-feedback.hidden {
    display: none;
}

footer {
    background-color: #050505;
    border-top: 1px solid #111;
    text-align: center;
    color: #555;
    font-size: 0.85rem;
}

footer .container {
    padding: 35px 0;
}

/* ==========================================================================
   8. Virtual Hardware Showroom & Modal Component Styles
   ========================================================================== */
.showroom-section {
    background-color: var(--white);
    border-top: 1px solid #e5e5e5;
}

.showroom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.product-card {
    background-color: var(--light-bg);
    border: 1px solid #eef0f2;
    border-radius: 6px;
    padding: 35px 25px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-black);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.product-icon {
    font-size: 3rem;
    margin: 20px 0 15px 0;
}

.product-card h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.product-brief {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    flex-grow: 1;
}

.product-card .btn-secondary {
    width: 100%;
    padding: 10px 20px;
    font-size: 0.8rem;
}

/* --- Interactive Details Modal Setup --- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 13, 13, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.modal.hidden {
    display: none;
    opacity: 0;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-top: 4px solid var(--brand-red);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
}

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

/* Modal Content Formatting Layout */
.modal-product-header {
    margin-bottom: 20px;
}

.modal-product-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.modal-lbl {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--brand-red);
    font-weight: 700;
    letter-spacing: 1px;
}

.modal-desc-text {
    font-size: 0.95rem;
    color: #4a4a4a;
    line-height: 1.6;
    margin-bottom: 25px;
}

.spec-list {
    list-style: none;
    background-color: var(--light-bg);
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 25px;
}

.spec-list li {
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
}

.spec-list li:last-child {
    border-bottom: none;
}

.spec-list strong {
    color: var(--primary-black);
}

/* Responsive Structural Breakpoints */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text h2 {
        font-size: 2.8rem;
    }
    .hero-cta {
        justify-content: center;
    }
    .header-flex {
        flex-direction: column;
        gap: 20px;
    }
}