:root {
    --bg-main: #0f1216;
    --bg-dark: #161b22;
    --bg-card: #1c222b;
    --border: #2d3542;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --amber: #f59e0b;
    --green: #10b981;
    --radius: 12px;
    --container: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--full { width: 100%; }

.btn--primary {
    background: var(--primary);
    color: #fff;
}
.btn--primary:hover { background: var(--primary-hover); }

.btn--outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text-main);
}
.btn--outline:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}
.badge--amber { background: rgba(245, 158, 11, 0.15); color: var(--amber); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge--blue { background: rgba(37, 99, 235, 0.15); color: #60a5fa; border: 1px solid rgba(37, 99, 235, 0.3); }
.badge--green { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber);
    box-shadow: 0 0 8px var(--amber);
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15, 18, 22, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.header__inner {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 20px;
}

.logo__badge {
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    gap: 24px;
}

.nav__link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav__link:hover { color: var(--text-main); }

.burger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
}

.hero {
    padding: 80px 0;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
}

.hero__title {
    font-size: 42px;
    line-height: 1.18;
    font-weight: 800;
    margin-bottom: 20px;
}

.text-accent { color: #60a5fa; }

.hero__subtitle {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.stat__val {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--amber);
}

.stat__label {
    font-size: 13px;
    color: var(--text-muted);
}

.terminal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.terminal__header {
    background: var(--bg-dark);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

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

.terminal__title {
    margin-left: 8px;
    font-size: 12px;
    font-family: monospace;
    color: var(--text-muted);
}

.terminal__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.flow-step {
    background: var(--bg-dark);
    padding: 12px 14px;
    border-radius: 8px;
    border-left: 3px solid var(--border);
}

.flow-step__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.flow-step__tag--blue { color: #60a5fa; }
.flow-step__tag--amber { color: var(--amber); }
.flow-step__tag--green { color: var(--green); }

.flow-step p { font-size: 14px; }
.flow-step code {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
    color: #93c5fd;
}

.section { padding: 80px 0; }
.section--dark { background: var(--bg-dark); }

.section__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section__title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.section__desc {
    color: var(--text-muted);
    font-size: 16px;
}

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

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 26px;
    border-radius: var(--radius);
}

.step-card__num {
    font-size: 14px;
    font-weight: 800;
    color: var(--amber);
    margin-bottom: 10px;
}

.step-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-muted);
}
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.tab-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.module-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
}

.module-box h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.check-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.check-list li {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
    color: #d1d5db;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 800;
}

.screenshot-placeholder {
    background: var(--bg-dark);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
}
.screenshot-placeholder__icon { font-size: 40px; margin-bottom: 12px; }
.screenshot-placeholder p { font-weight: 600; color: var(--text-main); margin-bottom: 6px; }
.screenshot-placeholder span { font-size: 13px; }

.roles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.role-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: var(--radius);
}

.role-card h3 {
    color: #60a5fa;
    margin-bottom: 10px;
    font-size: 18px;
}

.role-card p {
    font-size: 14px;
    color: var(--text-muted);
}

.case-banner {
    background: linear-gradient(135deg, #1c222b 0%, #172554 100%);
    border: 1px solid #2563eb;
    border-radius: var(--radius);
    padding: 48px;
}

.case-banner h2 {
    font-size: 28px;
    margin-bottom: 16px;
}

.case-banner p {
    max-width: 780px;
    color: #d1d5db;
    margin-bottom: 28px;
    font-size: 16px;
}

.case-banner__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.price-card--featured {
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.2);
}

.price-card__ribbon {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--amber);
    color: #000;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 99px;
}

.price-card__head { margin-bottom: 24px; }
.price-card__head h3 { font-size: 20px; margin-bottom: 6px; }
.price-card__sub { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.price-card__cost { font-size: 28px; font-weight: 800; color: #fff; }
.price-card .check-list { margin-bottom: 28px; }

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.contact-info h2 { font-size: 30px; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); margin-bottom: 24px; }

.contact-note {
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid var(--green);
    padding: 16px;
    border-radius: 8px;
    font-size: 14px;
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 32px;
    border-radius: var(--radius);
}

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #d1d5db;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 15px;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-status {
    margin-top: 12px;
    font-size: 14px;
    text-align: center;
    color: var(--green);
}

.footer {
    border-top: 1px solid var(--border);
    padding: 36px 0;
    background: var(--bg-dark);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__copy { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { color: var(--text-muted); text-decoration: none; font-size: 14px; }
.footer__links a:hover { color: var(--text-main); }

.ai-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 200;
}

.ai-widget__toggle {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.ai-widget__box {
    display: none;
    width: 340px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    margin-bottom: 12px;
}

.ai-widget__box.open { display: block; }

.ai-widget__header {
    background: var(--primary);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
}

.ai-widget__header button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
}

.ai-widget__messages {
    height: 240px;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-msg {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    max-width: 85%;
}
.ai-msg--bot { background: var(--bg-dark); align-self: flex-start; }
.ai-msg--user { background: var(--primary); align-self: flex-end; }

.ai-widget__form {
    display: flex;
    border-top: 1px solid var(--border);
}

.ai-widget__form input {
    flex: 1;
    background: var(--bg-dark);
    border: none;
    padding: 12px;
    color: #fff;
    font-size: 13px;
}

.ai-widget__form button {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 0 16px;
    cursor: pointer;
}

@media (max-width: 960px) {
    .hero__grid, .module-box, .contact-grid { grid-template-columns: 1fr; }
    .steps-grid, .pricing-grid { grid-template-columns: 1fr; }
    .roles-grid { grid-template-columns: repeat(2, 1fr); }
    .hero__title { font-size: 32px; }
}

@media (max-width: 640px) {
    .nav { display: none; }
    .nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        padding: 20px;
        border-bottom: 1px solid var(--border);
    }
    .burger { display: block; }
    .roles-grid { grid-template-columns: 1fr; }
}
