:root {
    --bg-canvas: #0b0e0c;
    --bg-surface: #121714;
    --bg-card: #161c18;
    --border-subtle: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.18);
    --text-primary: #f4f6f4;
    --text-secondary: #a1aca5;
    --text-muted: #707b74;
    --brand-yellow: #fff200;
    --brand-yellow-ink: #111512;
    --success: #22c55e;
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-canvas);
    color: var(--text-primary);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

code, .mono-kicker, .terminal-title {
    font-family: 'IBM Plex Mono', monospace;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.025em;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(11, 14, 12, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-subtle);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.badge-partner {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 242, 0, 0.14);
    color: var(--brand-yellow);
    border: 1px solid rgba(255, 242, 0, 0.3);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.nav-login {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    transition: transform 0.15s, opacity 0.15s, border-color 0.15s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--brand-yellow);
    color: var(--brand-yellow-ink);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-strong);
}

.btn-lg {
    padding: 0.9rem 1.5rem;
    font-size: 0.96rem;
}

.btn-block {
    width: 100%;
}

/* Hero */
.hero {
    padding: 4.5rem 0 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 2.5rem;
    align-items: center;
}

.kicker, .mono-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--brand-yellow);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.1rem, 4.1vw, 3.3rem);
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.highlight {
    color: var(--brand-yellow);
}

.hero-lead {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
}

.hero-lead code, .step-card code, .faq-item code {
    background: rgba(255, 255, 255, 0.07);
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
    font-size: 0.88em;
    color: var(--brand-yellow);
}

.hero-ctas {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 2.2rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.hero-stats strong {
    display: block;
    font-size: 1.35rem;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-stats span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.hero-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.terminal-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-subtle);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.terminal-title {
    margin-left: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.preview-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.84rem;
    padding: 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.pill-ok {
    color: var(--success);
    font-weight: 700;
    white-space: nowrap;
}

.preview-box {
    margin-top: 0.4rem;
    padding: 1rem;
    border-radius: 10px;
    background: rgba(255, 242, 0, 0.06);
    border: 1px solid rgba(255, 242, 0, 0.25);
}

.preview-box-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-yellow);
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.preview-math {
    display: flex;
    justify-content: space-between;
    font-size: 0.86rem;
    margin-bottom: 0.3rem;
}

.preview-math.total {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
    border-top: 1px solid rgba(255, 242, 0, 0.25);
    color: var(--brand-yellow);
    font-size: 0.96rem;
}

/* Sections */
.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.section-head {
    max-width: 680px;
    margin-bottom: 2.5rem;
}

.section-head h2 {
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.15;
}

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

.step-card, .feat-card, .plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.step-num {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--brand-yellow);
    margin-bottom: 0.75rem;
}

.step-card h3 {
    margin-bottom: 0.55rem;
}

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

/* Simulator */
.simulator-box {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.sim-controls {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.sim-mode-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    background: var(--bg-canvas);
    padding: 0.35rem;
    border-radius: 10px;
}

.mode-btn {
    padding: 0.65rem;
    border-radius: 7px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
}

.mode-btn.active {
    background: var(--brand-yellow);
    color: var(--brand-yellow-ink);
}

.sim-label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.sim-controls input[type="range"] {
    width: 100%;
    accent-color: var(--brand-yellow);
}

.sim-select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 8px;
    background: var(--bg-canvas);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    font-size: 0.88rem;
}

.sim-results {
    background: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.sim-result-main span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: block;
}

.sim-result-main strong {
    display: block;
    font-size: 2.3rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--brand-yellow);
    line-height: 1.15;
    margin: 0.25rem 0;
}

.sim-result-main small {
    color: var(--success);
    font-weight: 600;
}

.sim-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 0.9rem;
}

.sim-breakdown > div {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
}

/* Pricing */
.pricing-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.plan-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.plan-card.featured {
    border: 1.5px solid var(--brand-yellow);
    box-shadow: 0 20px 50px rgba(255, 242, 0, 0.08);
}

.plan-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.plan-tag.accent {
    color: var(--brand-yellow);
}

.plan-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.plan-price strong {
    font-size: 2.2rem;
    font-family: 'Space Grotesk', sans-serif;
}

.plan-price span {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.plan-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.plan-list i {
    color: var(--success);
    margin-right: 0.45rem;
}

.plan-card .btn {
    margin-top: auto;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
}

.feat-card i {
    font-size: 1.25rem;
    color: var(--brand-yellow);
    margin-bottom: 0.75rem;
}

.feat-card h4 {
    margin-bottom: 0.4rem;
}

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

/* FAQ */
.faq-wrap {
    max-width: 820px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
}

.faq-item p {
    margin-top: 0.65rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: 1.75rem 0;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-inner a {
    color: var(--brand-yellow);
    text-decoration: none;
    font-weight: 600;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-dialog {
    width: 100%;
    max-width: 520px;
    background: var(--bg-surface);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: 1.75rem;
    position: relative;
    overflow-x: hidden;
    max-height: 92vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    cursor: pointer;
}

.modal-sub {
    font-size: 0.86rem;
    color: var(--text-secondary);
    margin: 0.25rem 0 1.2rem;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-field {
    margin-bottom: 0.9rem;
}

.form-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.form-field input, .form-field select {
    width: 100%;
    padding: 0.68rem 0.85rem;
    background: var(--bg-canvas);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 0.88rem;
    outline: none;
}

.form-field input:focus, .form-field select:focus {
    border-color: var(--brand-yellow);
}

.field-hint {
    display: block;
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.form-error {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.82rem;
    margin-bottom: 0.9rem;
}

@media (max-width: 900px) {
    .hero-grid, .steps-3, .simulator-box, .pricing-2, .features-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
    }
}

@media (max-width: 580px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}
