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

:root {
    --bg: #070b12;
    --bg-2: #0b1220;
    --bg-3: #0f1828;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.07);
    --border-h: rgba(64, 57, 110, 0.6);
    --text: #f0eef8;
    --text-sub: rgba(240, 238, 248, 0.6);
    --text-muted: rgba(240, 238, 248, 0.35);
    --purple: #40396e;
    --purple-2: #6b62a8;
    --purple-3: #a89fd8;
    --purple-glow: rgba(64, 57, 110, 0.22);
    --purple-dark: rgba(64, 57, 110, 0.1);
    --orange: #d47f56;
    --orange-2: #e09070;
    --gold: #f9b84f;
    --navy: #0b1727;
    --radius: 12px;
    --font: 'Inter', system-ui, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Noise ── */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.022;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

/* ━━━━━━━━━━━━━━━━━━ NAVBAR ━━━━━━━━━━━━━━━━━━ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(5, 5, 10, 0.82);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom-color: var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.nav-logo img {
    height: 26px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.nav-links {
    display: none;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 450;
    letter-spacing: 0.005em;
    transition: color 0.2s;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.15rem;
    border-radius: 8px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.22s;
    white-space: nowrap;
    line-height: 1;
}

.btn-ghost {
    background: transparent;
    color: var(--text-sub);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

.btn-purple {
    background: var(--orange);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 0 0 0 rgba(212, 127, 86, 0.2);
}

.btn-purple:hover {
    background: #c0714b;
    transform: translateY(-1px);
    box-shadow: 0 8px 28px rgba(212, 127, 86, 0.35);
}

.btn-lg {
    padding: 0.78rem 1.8rem;
    font-size: 0.95rem;
    border-radius: 10px;
}

.btn-outline-purple {
    background: transparent;
    color: var(--purple-3);
    border: 1px solid rgba(64, 57, 110, 0.45);
}

.btn-outline-purple:hover {
    border-color: rgba(64, 57, 110, 0.8);
    background: var(--purple-dark);
    color: var(--purple-2);
}

/* hamburger */
.nav-burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--text-sub);
    border-radius: 2px;
    transition: 0.25s;
}

.nav-burger:hover span {
    background: var(--text);
}

/* drawer */
.nav-drawer {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 10, 0.97);
    backdrop-filter: blur(28px);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-drawer.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-drawer a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.35rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-drawer a:hover {
    color: var(--purple-3);
}

.nav-drawer-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-sub);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .nav-burger {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .nav-right .btn {
        display: none;
    }
}

/* ━━━━━━━━━━━━━━━━━━ HERO ━━━━━━━━━━━━━━━━━━ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7rem 0 4rem;
    position: relative;
    overflow: hidden;
}

/* Canvas partículas */
#particles-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Glow radial */
.hero-glow {
    position: absolute;
    top: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%,
            rgba(64, 57, 110, 0.18) 0%,
            rgba(212, 127, 86, 0.04) 45%,
            transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-code-wrap {
        display: none;
    }
}

/* Left */
.hero-left {}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(249, 184, 79, 0.25);
    background: rgba(249, 184, 79, 0.06);
    color: var(--gold);
    padding: 0.32rem 0.85rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.8rem;
}

.hero-badge i {
    font-size: 0.63rem;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: #f9b84f;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(249, 184, 79, 0.8);
    animation: dot-pulse 2.2s ease-in-out infinite;
}

@keyframes dot-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: var(--text);
    margin-bottom: 1.4rem;
}

.hero h1 .grad {
    background: linear-gradient(135deg, #f9b84f 0%, #d47f56 60%, #c0714b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.05rem;
    line-height: 1.72;
    color: var(--text-sub);
    max-width: 480px;
    margin-bottom: 2.2rem;
    font-weight: 400;
}

@media (max-width: 900px) {
    .hero-sub {
        max-width: 100%;
    }
}

.hero-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

@media (max-width: 900px) {
    .hero-actions {
        justify-content: center;
    }
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
}

@media (max-width: 900px) {
    .hero-stats {
        justify-content: center;
    }
}

.hero-stat {}

.hero-stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.hero-stat-num span {
    color: var(--orange);
}

.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Right: Code block */
.hero-code-wrap {
    position: relative;
}

.code-window {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(64, 57, 110, 0.1),
        0 32px 80px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(64, 57, 110, 0.08);
}

.code-titlebar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-3);
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.code-dot.r {
    background: #ff5f57;
}

.code-dot.y {
    background: #ffbd2e;
}

.code-dot.g {
    background: #27c93f;
}

.code-title {
    flex: 1;
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--mono);
    letter-spacing: 0.03em;
}

.code-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    background: var(--bg-2);
    overflow-x: auto;
}

.code-tab {
    padding: 0.6rem 1.1rem;
    font-size: 0.72rem;
    font-family: var(--mono);
    color: var(--text-muted);
    cursor: pointer;
    border-right: 1px solid var(--border);
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}

.code-tab.active {
    color: var(--orange-2);
    background: rgba(212, 127, 86, 0.07);
    border-bottom: 2px solid var(--orange);
}

.code-tab:hover:not(.active) {
    color: var(--text-sub);
}

.code-body {
    padding: 1.4rem 1.5rem;
    overflow-x: auto;
}

pre {
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 1.72;
    color: #a89fd8;
    margin: 0;
}

.t-comment {
    color: rgba(168, 159, 216, 0.35);
    font-style: italic;
}

.t-keyword {
    color: #a89fd8;
}

.t-func {
    color: #d47f56;
}

.t-string {
    color: #86efac;
}

.t-num {
    color: #f9b84f;
}

.t-key {
    color: #7dd3fc;
}

.t-op {
    color: rgba(168, 159, 216, 0.6);
}

.t-bracket {
    color: rgba(168, 159, 216, 0.45);
}

.t-var {
    color: #e09070;
}

.code-response {
    margin: 0 1.5rem 1.4rem;
    background: rgba(64, 57, 110, 0.08);
    border: 1px solid rgba(64, 57, 110, 0.2);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
}

.code-response-label {
    font-size: 0.65rem;
    font-family: var(--mono);
    color: var(--purple-3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.code-response-dot {
    width: 5px;
    height: 5px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 6px #4ade80;
}

.code-response-text {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--text-sub);
    line-height: 1.55;
}

/* Floating badge on code block */
.code-badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background: var(--orange);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 16px rgba(212, 127, 86, 0.45);
}

/* ━━━━━━━━━━━━━━━━━━ FLOATING DEMO WINDOW ━━━━━━━━━━━━━━━━━━ */
.float-demo {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 500;
    width: 380px;
    max-width: calc(100vw - 2rem);
    display: flex;
    flex-direction: column;
    gap: 0;
    filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.7));
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(.16, 1, .3, 1), opacity 0.45s ease;
    pointer-events: none;
}

.float-demo.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.float-demo.minimized .float-demo-body {
    display: none;
}

.float-demo-titlebar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 14px 14px 0 0;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.float-demo-titlebar:hover {
    background: rgba(255, 255, 255, 0.06);
}

.float-demo-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--purple-dark);
    border: 1px solid rgba(64, 57, 110, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    color: var(--purple-3);
    flex-shrink: 0;
}

.float-demo-info {
    flex: 1;
}

.float-demo-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.float-demo-status {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.float-status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 5px #4ade80;
    animation: dot-pulse 2s ease-in-out infinite;
}

.float-demo-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.float-btn {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.float-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-sub);
}

.float-demo-body {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 14px 14px;
    overflow: hidden;
}

.float-demo-content {
    padding: 1rem 1.1rem;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.float-demo-content::-webkit-scrollbar {
    width: 4px;
}

.float-demo-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

/* Markdown rendered inside float */
.float-md h1,
.float-md h2,
.float-md h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin: 0.7rem 0 0.35rem;
    letter-spacing: -0.01em;
}

.float-md p {
    font-size: 0.8rem;
    color: var(--text-sub);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.float-md ul,
.float-md ol {
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
}

.float-md li {
    font-size: 0.8rem;
    color: var(--text-sub);
    line-height: 1.55;
    margin-bottom: 0.2rem;
}

.float-md strong {
    color: var(--text);
    font-weight: 600;
}

.float-md code {
    font-family: var(--mono);
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    color: var(--orange-2);
}

.float-md a {
    color: var(--purple-3);
    text-decoration: underline;
}

.float-md table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0.5rem;
    font-size: 0.74rem;
}

.float-md th {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.04em;
}

.float-md td {
    padding: 0.3rem 0.6rem;
    color: var(--text-sub);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.float-loading {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.2rem 1.1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.float-loading-dots {
    display: flex;
    gap: 4px;
}

.float-loading-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--orange);
    animation: ldot 1.2s ease-in-out infinite;
}

.float-loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.float-loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes ldot {

    0%,
    80%,
    100% {
        transform: scale(0.7);
        opacity: 0.4;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.float-demo-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1rem;
    border-top: 1px solid var(--border);
    background: var(--bg-3);
}

.float-demo-footer-label {
    font-size: 0.62rem;
    color: var(--text-muted);
    font-family: var(--mono);
}

.float-demo-footer a {
    font-size: 0.7rem;
    color: var(--orange-2);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.float-demo-footer a:hover {
    color: var(--orange);
}

/* Chart inside float */
.float-chart-wrap {
    margin-top: 0.6rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.6rem;
}

.float-chart-wrap canvas {
    max-height: 130px;
}

/* scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-muted);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fade-up 1s 1.8s both;
    z-index: 2;
}

.scroll-hint-line {
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 0.6;
    }

    50% {
        transform: scaleY(0.6);
        opacity: 0.2;
    }
}

/* ━━━━━━━━━━━━━━━━━━ SECTION BASE ━━━━━━━━━━━━━━━━━━ */
section {
    position: relative;
    z-index: 2;
}

.section {
    padding: 6rem 0;
}

hr.sep {
    border: none;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 0.85rem;
}

.section-title {
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
    color: var(--text);
    margin-bottom: 0.9rem;
}

.section-desc {
    font-size: 1rem;
    color: var(--text-sub);
    line-height: 1.68;
    max-width: 540px;
}

/* ━━━━━━━━━━━━━━━━━━ FEATURES BENTO ━━━━━━━━━━━━━━━━━━ */
.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 220px;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    margin-top: 3.5rem;
}

.bento-card {
    background: var(--bg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.25s;
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    background: var(--bg-3);
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 127, 86, 0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.bento-card:hover::before {
    opacity: 1;
}

/* Grid spans */
.bc-1 {
    grid-column: span 4;
}

.bc-2 {
    grid-column: span 4;
}

.bc-3 {
    grid-column: span 4;
}

.bc-4 {
    grid-column: span 6;
}

.bc-5 {
    grid-column: span 6;
}

@media (max-width: 768px) {
    .bento {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bc-1,
    .bc-2,
    .bc-3,
    .bc-4,
    .bc-5 {
        grid-column: span 1;
        min-height: 180px;
    }
}

.bento-icon {
    position: absolute;
    top: 1.8rem;
    left: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--bg-3);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--orange-2);
}

.bento-card h3 {
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: -0.015em;
    color: var(--text);
    margin-bottom: 0.45rem;
    position: relative;
    z-index: 1;
}

.bento-card p {
    font-size: 0.82rem;
    color: var(--text-sub);
    line-height: 1.55;
    position: relative;
    z-index: 1;
}

/* ━━━━━━━━━━━━━━━━━━ HOW IT WORKS ━━━━━━━━━━━━━━━━━━ */
.steps-section {
    background: var(--bg-2);
}

.steps-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    margin-top: 3.5rem;
}

@media (max-width: 768px) {
    .steps-inner {
        grid-template-columns: 1fr;
    }
}

.step-card {
    padding: 2.5rem 2rem;
    border-right: 1px solid var(--border);
    position: relative;
    transition: background 0.25s;
}

.step-card:last-child {
    border-right: none;
}

.step-card:hover {
    background: rgba(139, 92, 246, 0.04);
}

@media (max-width: 768px) {
    .step-card {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .step-card:last-child {
        border-bottom: none;
    }
}

.step-num {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--orange);
    text-transform: uppercase;
    margin-bottom: 1.4rem;
    font-family: var(--mono);
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 0.7rem;
}

.step-card p {
    font-size: 0.875rem;
    color: var(--text-sub);
    line-height: 1.62;
}

.step-arrow {
    position: absolute;
    top: 2.5rem;
    right: -12px;
    width: 24px;
    height: 24px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--text-muted);
    z-index: 1;
}

@media (max-width: 768px) {
    .step-arrow {
        display: none;
    }
}

.step-card:last-child .step-arrow {
    display: none;
}

/* ━━━━━━━━━━━━━━━━━━ BENEFITS ━━━━━━━━━━━━━━━━━━ */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 3.5rem;
}

@media (max-width: 640px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

.benefit-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.7rem;
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    transition: border-color 0.25s, background 0.25s;
}

.benefit-card:hover {
    border-color: rgba(212, 127, 86, 0.3);
    background: rgba(212, 127, 86, 0.04);
}

.benefit-num {
    font-size: 0.65rem;
    font-weight: 700;
    font-family: var(--mono);
    color: var(--orange);
    letter-spacing: 0.06em;
    padding-top: 0.15rem;
    min-width: 28px;
}

.benefit-card h4 {
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.benefit-card p {
    font-size: 0.82rem;
    color: var(--text-sub);
    line-height: 1.58;
}

/* ━━━━━━━━━━━━━━━━━━ SQL DIFERENCIAL ━━━━━━━━━━━━━━━━━━ */
.sql-section {
    background: var(--bg-2);
}

.sql-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3.5rem;
}

@media (max-width: 900px) {
    .sql-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.sql-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(249, 184, 79, 0.08);
    border: 1px solid rgba(249, 184, 79, 0.2);
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    margin-bottom: 1.2rem;
}

.sql-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.6rem;
}

.sql-points li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.sql-point-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: rgba(212, 127, 86, 0.1);
    border: 1px solid rgba(212, 127, 86, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--orange-2);
    margin-top: 2px;
}

.sql-points li h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.2rem;
    letter-spacing: -0.01em;
}

.sql-points li p {
    font-size: 0.82rem;
    color: var(--text-sub);
    line-height: 1.55;
}

.sql-window {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 50px rgba(64, 57, 110, 0.06);
}

.sql-window-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-3);
}

.sql-window-title {
    font-size: 0.72rem;
    font-family: var(--mono);
    color: var(--text-muted);
    margin: 0 auto;
}

.sql-code {
    padding: 1.4rem 1.5rem;
    overflow-x: auto;
}

.sql-code pre {
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1.75;
    color: #a89fd8;
    margin: 0;
}

.sql-result {
    margin: 0 1.5rem 1.4rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.sql-result-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: var(--bg-3);
    border-bottom: 1px solid var(--border);
    font-size: 0.65rem;
    font-family: var(--mono);
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sql-result-dot {
    width: 5px;
    height: 5px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 5px #4ade80;
}

.sql-result-rows {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--mono);
    font-size: 0.72rem;
}

.sql-result-rows th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.5rem 0.9rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.sql-result-rows td {
    padding: 0.45rem 0.9rem;
    color: var(--text-sub);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.sql-result-rows tr:last-child td {
    border-bottom: none;
}

.sql-result-rows td.val-orange {
    color: var(--orange-2);
}

.sql-result-rows td.val-green {
    color: #4ade80;
}

.sql-ia-bubble {
    margin: 0 1.5rem 1.4rem;
    background: rgba(64, 57, 110, 0.1);
    border: 1px solid rgba(64, 57, 110, 0.2);
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    font-size: 0.82rem;
    color: var(--text-sub);
    line-height: 1.6;
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.sql-ia-bubble i {
    color: var(--purple-3);
    font-size: 0.85rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* ━━━━━━━━━━━━━━━━━━ DEMO / CHAT ━━━━━━━━━━━━━━━━━━ */
.demo-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3.5rem;
}

@media (max-width: 768px) {
    .demo-wrap {
        grid-template-columns: 1fr;
    }
}

.demo-left {}

.demo-left .section-desc {
    margin-bottom: 1.5rem;
}

.demo-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.demo-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.875rem;
    color: var(--text-sub);
}

.demo-feature-list li::before {
    content: '';
    width: 16px;
    height: 16px;
    min-width: 16px;
    background: rgba(212, 127, 86, 0.1);
    border: 1px solid rgba(212, 127, 86, 0.3);
    border-radius: 50%;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg width='8' height='6' viewBox='0 0 8 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3L3 5L7 1' stroke='%23d47f56' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.chat-window {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 60px rgba(139, 92, 246, 0.05);
}

.chat-titlebar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-3);
}

.chat-titlebar-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
    margin-right: auto;
}

.chat-online {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    color: #4ade80;
    font-weight: 500;
}

.chat-online-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 6px #4ade80;
}

.chat-body {
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 260px;
}

.chat-msg {
    display: flex;
    gap: 0.6rem;
    align-items: flex-end;
}

.chat-msg.right {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    flex-shrink: 0;
    background: var(--bg-3);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: var(--text-muted);
}

.chat-avatar.ai {
    background: var(--purple-dark);
    border-color: rgba(64, 57, 110, 0.35);
    color: var(--purple-3);
}

.chat-bubble {
    max-width: 75%;
    padding: 0.6rem 0.9rem;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.55;
}

.chat-msg.left .chat-bubble {
    background: var(--bg-3);
    border: 1px solid var(--border);
    color: var(--text-sub);
}

.chat-msg.right .chat-bubble {
    background: rgba(212, 127, 86, 0.1);
    border: 1px solid rgba(212, 127, 86, 0.22);
    color: var(--text);
}

.chat-input-bar {
    margin: 0 1.2rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-3);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
}

.chat-input-bar input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chat-send-btn {
    width: 28px;
    height: 28px;
    background: var(--orange);
    border: none;
    border-radius: 7px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.65rem;
    flex-shrink: 0;
    transition: background 0.2s;
}

.chat-send-btn:hover {
    background: #c0714b;
}

/* ━━━━━━━━━━━━━━━━━━ CTA ━━━━━━━━━━━━━━━━━━ */
.cta-section {
    padding: 8rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow-top {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(60%);
    width: 700px;
    height: 500px;
    background: radial-gradient(circle, rgba(64, 57, 110, 0.14) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.cta-glow-bottom {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-60%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 127, 86, 0.06) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.cta-inner {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin-bottom: 1.2rem;
}

.cta-section h2 .grad {
    background: linear-gradient(135deg, #f9b84f 0%, #d47f56 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-section p {
    font-size: 1rem;
    color: var(--text-sub);
    max-width: 420px;
    margin: 0 auto 2.5rem;
    line-height: 1.68;
}

.cta-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ━━━━━━━━━━━━━━━━━━ FOOTER ━━━━━━━━━━━━━━━━━━ */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

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

.footer-copy {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-copy a {
    color: var(--text-sub);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-copy a:hover {
    color: var(--purple-3);
}

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

.footer-links a {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ━━━━━━━━━━━━━━━━━━ ANIMATIONS ━━━━━━━━━━━━━━━━━━ */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim {
    opacity: 0;
    transform: translateY(16px);
}

.anim.in {
    animation: fade-up 0.72s cubic-bezier(.16, 1, .3, 1) forwards;
}

.ad1 {
    animation-delay: 0.05s;
}

.ad2 {
    animation-delay: 0.12s;
}

.ad3 {
    animation-delay: 0.2s;
}

.ad4 {
    animation-delay: 0.28s;
}

.ad5 {
    animation-delay: 0.36s;
}

.ad6 {
    animation-delay: 0.44s;
}

/* Hero animates immediately */
.hero .anim {
    animation: fade-up 0.8s cubic-bezier(.16, 1, .3, 1) both;
}

.hero .anim.ad1 {
    animation-delay: 0.1s;
}

.hero .anim.ad2 {
    animation-delay: 0.25s;
}

.hero .anim.ad3 {
    animation-delay: 0.42s;
}

.hero .anim.ad4 {
    animation-delay: 0.58s;
}

.hero .anim.ad5 {
    animation-delay: 0.72s;
}

/* ━━━━━━━━━━━━━━━━━━ MOBILE OPTIMIZATIONS ━━━━━━━━━━━━━━━━━━ */

@media (max-width: 640px) {
    /* Footer: empilha e centraliza em telas médias */
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem 1.25rem;
    }

    .footer-links a,
    .footer-copy {
        word-break: break-all;
        overflow-wrap: break-word;
    }
}

@media (max-width: 768px) {
    /* Hero: reduz padding para dar mais espaço ao conteúdo */
    .hero {
        padding: 5.5rem 0 3rem;
    }

    /* Título: adapta para não transbordar em telas médias */
    .hero h1 {
        font-size: clamp(1.75rem, 7.5vw, 2.6rem);
    }

    /* Seções: menos padding vertical */
    .section {
        padding: 4rem 0;
    }

    .cta-section {
        padding: 5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    /* Hero: padding mínimo em telas pequenas */
    .hero {
        padding: 5rem 0 2.5rem;
    }

    /* Título: garante que cabe na tela sem transbordar */
    .hero h1 {
        font-size: clamp(1.6rem, 6.5vw, 1.95rem);
        letter-spacing: -0.025em;
    }

    /* Badges: permite quebra de linha */
    .hero-badge {
        margin-bottom: 0.5rem;
    }

    /* Stats: reduz gap para caber em telas estreitas */
    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    /* Botões de ação: empilha se necessário */
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        text-align: center;
        justify-content: center;
    }

    /* Steps: padding menor */
    .step-card {
        padding: 1.75rem 1.25rem;
    }

    /* Bento: padding menor nos cards */
    .bento-card {
        padding: 1.4rem;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 1.55rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* Footer: empilha e centraliza */
    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem 1.25rem;
    }
}
