@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Manrope:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    /* Colors from Brand Guidelines */
    --navy: #0C182C;
    --navy-2: #162541;
    --navy-3: #213358;
    --navy-edge: #3C5488;
    
    --teal: #00C2B8;
    --teal-deep: #004D49;
    --teal-sub: #008F87;
    --teal-hover: #33D1C9;
    --teal-edge: #99F2EC;
    
    --gold: #F8B400;
    --gold-deep: #593600;
    --gold-edge: #FFE8A3;
    
    --ink: #0A0A0A;
    --canvas: #FCFCFC;
    --mute: #8A97AD;
    --border-color: rgba(0, 194, 184, 0.18);
    
    /* Layout Mappings */
    --bg-main: var(--navy);
    --bg-card: rgba(12, 24, 44, 0.55);
    --bg-card-hover: rgba(22, 37, 65, 0.65);
    
    --primary: var(--teal);
    --primary-dark: var(--teal-sub);
    
    --text-primary: var(--canvas);
    --text-secondary: #AEB9CA;
    --text-muted: var(--mute);
    
    --font-main: 'Manrope', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --border-radius: 18px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5 {
    line-height: 1.1;
    font-weight: 700;
    color: var(--text-primary);
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.75rem;
}

h4 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.125rem;
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

p.lead {
    font-size: 19px;
    font-weight: 300;
    color: #C7D0DE;
    max-width: 62ch;
    line-height: 1.55;
}

strong {
    color: var(--canvas);
    font-weight: 600;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--mute);
}

.teal {
    color: var(--teal);
}

.gold {
    color: var(--gold);
}

/* Eyebrow Label */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--teal);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--teal);
}

/* Layout */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 26px;
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-display);
    border-radius: 12px;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--ink);
    box-shadow: 0 0 0 1px var(--gold-edge) inset, 0 8px 24px -8px rgba(248, 180, 0, 0.6);
}

.btn-primary:hover {
    background-color: var(--gold-edge);
    box-shadow: 0 0 0 1px var(--gold-edge) inset, 0 12px 28px -6px rgba(248, 180, 0, 0.8);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--teal);
    box-shadow: 0 0 0 1px rgba(0, 194, 184, 0.4) inset;
}

.btn-secondary:hover {
    background-color: rgba(0, 194, 184, 0.08);
    box-shadow: 0 0 0 1px rgba(0, 194, 184, 0.7) inset;
    transform: translateY(-2px);
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2.5rem;
}

/* Glass Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(153, 242, 236, 0.4), transparent);
    pointer-events: none;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 194, 184, 0.35);
    box-shadow: 0 12px 36px -12px rgba(0, 194, 184, 0.15);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 0 6rem;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(0, 194, 184, 0.12) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(0, 194, 184, 0.08);
    color: var(--teal);
    border: 1px solid rgba(0, 194, 184, 0.22);
    border-radius: 30px;
    font-size: 11px;
    font-family: var(--font-mono);
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

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

/* Features List */
.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--teal);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Rules List */
.rules-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.rules-list li {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

.rules-list li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(153, 242, 236, 0.3), transparent);
}

.rules-list strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
    font-family: var(--font-display);
}

/* Commission Table */
.commission-table-container {
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.commission-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(12, 24, 44, 0.4);
    overflow: hidden;
}

.commission-table th, .commission-table td {
    padding: 1.25rem 1.75rem;
    text-align: left;
}

.commission-table th {
    background: rgba(10, 20, 38, 0.65);
    color: var(--mute);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid rgba(0, 194, 184, 0.22);
}

.commission-table tr {
    border-bottom: 1px solid rgba(0, 194, 184, 0.12);
}

.commission-table tr:last-child {
    border-bottom: none;
}

.commission-table td {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--canvas);
}

/* Interactive Calculator */
.calculator-container {
    background: rgba(12, 24, 44, 0.65);
    border: 1px solid rgba(0, 194, 184, 0.25);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.calc-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.control-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-family: var(--font-display);
}

/* Custom Select */
.plan-selector {
    display: flex;
    gap: 0.5rem;
    background: rgba(10, 20, 38, 0.6);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-btn {
    flex: 1;
    padding: 0.75rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    font-family: var(--font-display);
}

.plan-btn.active {
    background: rgba(0, 194, 184, 0.15);
    color: var(--teal);
    border: 1px solid rgba(0, 194, 184, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Custom Range Slider */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--teal);
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 15px rgba(0, 194, 184, 0.7);
    border: 3px solid var(--navy);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.slider-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--teal);
    margin-top: 0.5rem;
    font-family: var(--font-display);
}

.calc-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(10, 20, 38, 0.55);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    border: 1px solid rgba(0, 194, 184, 0.22);
    position: relative;
    overflow: hidden;
}

.calc-result::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
}

.calc-results-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.calc-results-pair .calc-result {
    padding: 2rem 1.25rem;
}

.calc-results-pair .result-value {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.calc-results-pair .result-label {
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--font-mono);
    color: var(--teal);
}

.calc-results-pair .result-note {
    font-size: 0.8rem;
}

.calc-disclaimer {
    font-size: 0.85rem;
    color: var(--mute);
    line-height: 1.6;
    margin-top: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.result-label {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.result-value {
    font-size: 4rem;
    font-weight: 700;
    color: var(--canvas);
    line-height: 1;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.result-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* FAQ Accordion */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(0, 194, 184, 0.12);
    padding: 1.75rem 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    font-family: var(--font-display);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--teal);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
    color: var(--text-secondary);
    font-weight: 300;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    margin-top: 1rem;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* Dashboard Mockup (Visual) */
.dashboard-mockup {
    background: rgba(10, 20, 38, 0.85);
    border: 1px solid rgba(0, 194, 184, 0.25);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 55px -12px rgba(0, 0, 0, 0.6);
    position: relative;
}

.mockup-header {
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mockup-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #333;
}
.mockup-dot:nth-child(1) { background: #ff5f56; }
.mockup-dot:nth-child(2) { background: #ffbd2e; }
.mockup-dot:nth-child(3) { background: #27c93f; }

.mockup-body {
    padding: 2rem;
}

.mockup-score-card {
    background: rgba(12, 24, 44, 0.45);
    border: 1px solid rgba(0, 194, 184, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.mockup-circle {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 6px solid var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal);
    box-shadow: 0 0 20px rgba(0, 194, 184, 0.2);
    font-family: var(--font-display);
}

.mockup-bar {
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.mockup-bar-inner {
    height: 100%;
    background: var(--teal);
    width: 0%;
    transition: width 1.5s ease-out;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 5rem 0;
    text-align: center;
}

/* Forms (Application Page) */
.form-container {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-family: var(--font-display);
}

.form-control {
    width: 100%;
    background: rgba(10, 20, 38, 0.45);
    border: 1px solid rgba(0, 194, 184, 0.22);
    color: var(--text-primary);
    padding: 0.875rem 1rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 2px rgba(0, 194, 184, 0.25);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300C2B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    accent-color: var(--teal);
    width: 18px;
    height: 18px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.form-actions {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: 1fr; }
    .calc-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .rules-list { grid-template-columns: 1fr; }
    .calc-results-pair { grid-template-columns: 1fr; }
    section { padding: 4.5rem 0; }
    .hero { min-height: 80vh; padding-top: 5rem; }
}
