/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* ── Tokens ── */
:root {
    --bg-base: #111110;
    --bg-raised: #1a1a1a;
    --bg-surface: #2c2c2a;
    --border: #2c2c2a;
    --border-mid: #444441;
    --text-primary: #f1efe8;
    --text-secondary: #888780;
    --text-dim: #5f5e5a;
    --text-muted: #444441;
    --red-deep: #7a0a0a;
    --red-main: #a32d2d;
    --red-vivid: #e24b4a;
    --red-light: #f7c1c1;
    --red-pale: #f09595;
    --green-ok: #5dcaa5;
    --font-sans: "Inter", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", "Fira Code", monospace;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
}

/* ── Utility ── */
.mono {
    font-family: var(--font-mono);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Nav ── */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-base);
    border-bottom: 0.5px solid var(--border);
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.nav-logo .red {
    color: var(--red-main);
}

.nav-logo .cursor {
    color: var(--red-deep);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

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

.btn-nav {
    background: var(--red-deep);
    color: var(--red-light);
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-family: var(--font-mono);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-nav:hover {
    background: var(--red-main);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bg-raised);
    border-bottom: 0.5px solid var(--border);
    padding: 1rem 2rem;
    gap: 1rem;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red-deep);
    color: var(--red-light);
    border: none;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: var(--font-mono);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.btn-primary:hover {
    background: var(--red-main);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-secondary);
    border: 0.5px solid var(--border-mid);
    padding: 13px 26px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: var(--font-mono);
    cursor: pointer;
    text-decoration: none;
    transition:
        border-color 0.15s,
        color 0.15s;
}

.btn-outline:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* ── Hero ── */
.hero {
    padding: 6rem 2.5rem 5rem;
    text-align: center;
    /* border-bottom: 0.5px solid var(--border); */
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-raised);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 5px 14px;
    margin-bottom: 2.5rem;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
}

.hero-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red-main);
}

.hero h1 {
    font-size: clamp(32px, 6vw, 52px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
}

.hero h1 .red {
    color: var(--red-main);
}

.hero-sub {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

/* ── Terminal ── */
.terminal {
    background: var(--bg-raised);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
    overflow: hidden;
}

.terminal-bar {
    background: var(--bg-surface);
    padding: 9px 14px;
    display: flex;
    gap: 7px;
    align-items: center;
}

.tdot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.terminal-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 8px;
}

.terminal-body {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tl {
    font-family: var(--font-mono);
    font-size: 12.5px;
    line-height: 1.6;
}

.tl.dim {
    color: var(--text-muted);
}

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

.tl.out {
    color: #d3d1c7;
}

.tl.success {
    color: var(--green-ok);
}

.tl.err {
    color: var(--red-vivid);
}

.tl.cursor::after {
    content: "▋";
    animation: blink 1s step-end infinite;
    color: var(--red-main);
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ── Stats ── */
.stats {
    /* background: var(--bg-raised); */
    /* border-bottom: 0.5px solid var(--border); */
}

.stat {
    background: var(--bg-raised);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.2s;
}

.stat:hover {
    border-color: var(--border-mid);
}

.stat-num {
    font-family: var(--font-mono);
    font-size: 32px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1;
}

.stat-num .accent {
    color: var(--red-main);
}

.stat-label {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 6px;
}

/* ── Sections ── */
section {
    padding: 5rem 2.5rem;
    /* border-bottom: 0.5px solid var(--border); */
}

.section-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--red-main);
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 500;
    letter-spacing: -0.75px;
    margin-bottom: 0.75rem;
}

.section-sub {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 520px;
}

/* ── Features ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 3rem;
}

.feat-card {
    background: var(--bg-raised);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: border-color 0.2s;
}

.feat-card:hover {
    border-color: var(--border-mid);
}

.feat-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--red-main);
    font-size: 18px;
}

.feat-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.feat-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── How it works + Demo ── */
.how-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 2.5rem;
}

.step {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0;
    border-top: 0.5px solid var(--border);
}

.step:last-child {
    border-bottom: 0.5px solid var(--border);
}

.step-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--red-main);
    min-width: 36px;
    padding-top: 2px;
}

.step-content {}

.step-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.step-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ── Chat ── */
.chat-wrap {
    margin-top: 2.5rem;
}

.chat-frame {
    background: var(--bg-raised);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    max-width: 380px;
}

.chat-header {
    background: var(--bg-surface);
    padding: 11px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--red-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--red-light);
    font-weight: 500;
}

.chat-name {
    font-size: 13px;
    font-weight: 500;
}

.chat-status {
    font-size: 11px;
    color: var(--green-ok);
    font-family: var(--font-mono);
}

.chat-msgs {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msg {
    padding: 9px 13px;
    font-size: 12.5px;
    font-family: var(--font-mono);
    line-height: 1.55;
    max-width: 88%;
}

.msg.bot {
    background: var(--bg-surface);
    color: #d3d1c7;
    border-radius: 2px 8px 8px 8px;
    align-self: flex-start;
}

.msg.user {
    background: var(--red-deep);
    color: var(--red-light);
    border-radius: 8px 2px 8px 8px;
    align-self: flex-end;
}

.msg-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 3px;
    font-family: var(--font-mono);
}

.msg-time.right {
    text-align: right;
}

.msg-opt {
    color: var(--red-vivid);
}

/* ── Cases / Carrossel ── */
#cases {
    overflow: hidden;
}

.carousel-wrap {
    position: relative;
    margin-top: 3rem;
}

.carousel-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.case-card {
    flex: 0 0 calc(50% - 8px);
    min-width: 280px;
    scroll-snap-align: start;
    background: var(--bg-raised);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s;
}

.case-card:hover {
    border-color: var(--border-mid);
}

.case-tag {
    display: inline-block;
    width: fit-content;
    background: var(--bg-surface);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.case-title {
    font-size: 16px;
    font-weight: 500;
}

.case-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
}

.case-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 0.5rem;
}

.case-tech span {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--red-main);
    background: color-mix(in srgb, var(--red-deep) 30%, transparent);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 0.5px solid var(--border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    z-index: 2;
}

.carousel-btn:hover {
    border-color: var(--border-mid);
    color: var(--text-primary);
}

.carousel-prev {
    left: -18px;
}

.carousel-next {
    right: -18px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

.carousel-dot.active {
    background: var(--red-main);
}

@media (max-width: 768px) {
    .case-card {
        flex: 0 0 calc(100% - 20px);
    }

    .carousel-prev {
        left: 4px;
    }

    .carousel-next {
        right: 4px;
    }

    .carousel-btn {
        width: 32px;
        height: 32px;
    }
}

/* ── Pricing ── */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 3rem;
}

.plan {
    background: var(--bg-raised);
    border: 0.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s;
}

.plan:hover {
    border-color: var(--border-mid);
}

.plan.featured {
    border: 1.5px solid var(--red-deep);
}

.plan-badge {
    display: inline-block;
    background: var(--red-deep);
    color: var(--red-light);
    font-size: 10px;
    font-family: var(--font-mono);
    padding: 3px 10px;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    width: fit-content;
}

.plan-name {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-family: var(--font-mono);
    font-size: 30px;
    font-weight: 500;
    margin: 0.75rem 0;
    line-height: 1;
}

.plan-price-note {
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 400;
    margin-top: 4px;
}

.plan-divider {
    border: none;
    border-top: 0.5px solid var(--border);
    margin: 1.25rem 0;
}

.plan-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.plan-items li {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    gap: 8px;
    align-items: flex-start;
    line-height: 1.5;
}

.plan-items li .check {
    color: var(--red-main);
    flex-shrink: 0;
    margin-top: 1px;
}

.plan-btn-wrap {
    margin-top: 1.5rem;
}

.plan-btn {
    display: block;
    width: 100%;
    background: var(--red-deep);
    color: var(--red-light);
    border: none;
    padding: 11px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-family: var(--font-mono);
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.15s;
}

.plan-btn:hover {
    background: var(--red-main);
}

.plan-btn.ghost {
    background: transparent;
    border: 0.5px solid var(--border-mid);
    color: var(--text-secondary);
}

.plan-btn.ghost:hover {
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

/* ── CTA Final ── */
.cta-final {
    background: var(--red-deep);
    padding: 5rem 2.5rem;
    text-align: center;
    border-bottom: none;
}

.cta-final h2 {
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 500;
    letter-spacing: -0.75px;
    margin-bottom: 0.75rem;
}

.cta-final p {
    font-size: 14px;
    color: var(--red-pale);
    margin-bottom: 2.5rem;
}

.cta-form {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 440px;
    margin: 0 auto;
}

.cta-input {
    flex: 1;
    min-width: 220px;
    background: #1a1a1a;
    border: 0.5px solid #501313;
    color: var(--text-primary);
    padding: 11px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: var(--font-mono);
    outline: none;
    transition: border-color 0.15s;
}

.cta-input:focus {
    border-color: var(--red-main);
}

.cta-input::placeholder {
    color: var(--text-muted);
}

.cta-submit {
    background: #1a1a1a;
    color: var(--red-light);
    border: none;
    padding: 11px 22px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-family: var(--font-mono);
    cursor: pointer;
    transition: background 0.15s;
}

.cta-submit:hover {
    background: var(--bg-surface);
}

/* ── Footer ── */
footer {
    background: var(--bg-base);
    border-top: 0.5px solid var(--border);
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
}

.footer-logo .red {
    color: var(--red-main);
}

.footer-email {
    font-size: 11px;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

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

.footer-links a {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--text-secondary);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: var(--bg-raised);
    border: 0.5px solid var(--border);
    color: var(--text-dim);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s;
}

.social-link:hover {
    border-color: var(--border-mid);
    color: var(--text-primary);
}

.footer-copy {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* ── CTA Feedback ── */
.cta-feedback {
    margin-top: 1.5rem;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--green-ok);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .hero {
        padding: 4rem 1.25rem 3rem;
    }

    .stats .container {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .stat:nth-child(2) {
        border-right: none;
    }

    .stat:nth-child(3) {
        border-top: 0.5px solid var(--border);
    }

    .stat:nth-child(4) {
        border-top: 0.5px solid var(--border);
    }

    section {
        padding: 3.5rem 1.25rem;
    }

    .how-section {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .chat-frame {
        max-width: 100%;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .cta-final {
        padding: 3.5rem 1.25rem;
    }

    footer {
        padding: 1.5rem 0;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .tl.cursor::after {
        animation: none;
    }
}