/* ======== THEMES ======== */
:root[data-theme="dark"] {
    --bg: #0a0a0a;
    --bg-elev: #111111;
    --bg-card: #141414;
    --border: #1f1f1f;
    --border-strong: #2a2a2a;
    --text: #f5f5f2;
    --text-dim: #a3a3a0;
    --text-mute: #6b6b68;
    --accent: #008b55;
    --accent-dim: rgba(0, 139, 85, 0.14);
    --accent-glow: rgba(0, 139, 85, 0.28);
    --accent-bg: rgba(0, 139, 85, 0.06);
    --green: #4ade80;
    --blue: #60a5fa;
    --yellow: #facc15;
    --term-bg: #0d0d0d;
    --term-bar: #151515;
    --card-shadow:
        0 50px 100px rgba(0, 0, 0, 0.5), 0 0 80px var(--accent-glow);
    --grid-line: rgba(255, 255, 255, 0.015);
    --code-bg: #141414;
}

:root[data-theme="light"] {
    --bg: #faf9f6;
    --bg-elev: #f0ede6;
    --bg-card: #ffffff;
    --border: #e8e4db;
    --border-strong: #d4cfc2;
    --text: #1a1a1a;
    --text-dim: #555550;
    --text-mute: #8a8680;
    --accent: #007447;
    --accent-dim: rgba(0, 116, 71, 0.1);
    --accent-glow: rgba(0, 116, 71, 0.16);
    --accent-bg: rgba(0, 116, 71, 0.04);
    --green: #16a34a;
    --blue: #2563eb;
    --yellow: #ca8a04;
    --term-bg: #1a1a1a;
    --term-bar: #262626;
    --card-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 0 60px rgba(0, 116, 71, 0.12);
    --grid-line: rgba(0, 0, 0, 0.025);
    --code-bg: #f5f2ec;
}

/* Terminal always dark, even in light mode, so the code is readable */
:root[data-theme="light"] .term-text {
    color: #f5f5f2;
}
:root[data-theme="light"] .term-dim {
    color: #8a8680;
}

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

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

body {
    font-family: "Ubuntu", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition:
        background 0.3s ease,
        color 0.3s ease;
}

/* Grid background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(
            90deg,
            var(--grid-line) 1px,
            transparent 1px
        );
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: "";
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: min(900px, 100vw);
    height: min(900px, 100vw);
    background: radial-gradient(
        circle,
        var(--accent-glow) 0%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
}

.mono {
    font-family: "Ubuntu Mono", Monaco, "Courier New", monospace;
}

/* ======== NAV ======== */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: color-mix(in srgb, var(--bg) 75%, transparent);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-family: "Ubuntu Mono", Monaco, monospace;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-family: "Ubuntu Mono", monospace;
    font-size: 14px;
}

.nav-links a {
    color: var(--text-dim);
    transition: color 0.2s;
}

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

.nav-links a.btn-primary {
    color: #ffffff;
}

/* Nav dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    color: var(--text-dim);
    font-family: "Ubuntu Mono", monospace;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger {
    color: var(--text);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    padding: 6px 0;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    min-width: 140px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(-4px);
    transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
    z-index: 20;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-dim);
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* Theme toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 3px;
    cursor: pointer;
    gap: 2px;
}

.theme-toggle button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 100px;
    color: var(--text-mute);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-family: inherit;
}

.theme-toggle button.active {
    background: var(--bg-card);
    color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.theme-toggle svg {
    width: 14px;
    height: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: "Ubuntu Mono", monospace;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s;
    border: 1px solid transparent;
    cursor: pointer;
    background: none;
    color: inherit;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
}

.btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-ghost {
    border-color: var(--border-strong);
    color: var(--text-dim);
}

.btn-ghost:hover {
    border-color: var(--text-dim);
    color: var(--text);
}

/* ======== HERO ======== */
.hero {
    padding: 96px 0 80px;
    position: relative;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 100%;
    padding: 6px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    font-family: "Ubuntu Mono", monospace;
    font-size: 12px;
    color: var(--text-dim);
    background: var(--bg-elev);
    margin-bottom: 32px;
    overflow-wrap: anywhere;
}

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

h1 {
    font-family: "Ubuntu", sans-serif;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
    max-width: 14ch;
    overflow-wrap: anywhere;
}

h1 .highlight {
    color: var(--accent);
    font-style: italic;
    font-weight: 400;
}

.hero-title-line {
    white-space: nowrap;
}

.product-rotator {
    display: inline-block;
    color: var(--accent);
    font-style: italic;
    font-weight: 400;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
    vertical-align: baseline;
    white-space: nowrap;
}

.hero-rotator {
    min-width: 7.8ch;
}

.agent-product-rotator {
    min-width: 0;
}

.product-rotator.is-switching {
    opacity: 0;
    transform: translateY(-0.18em);
}

@media (prefers-reduced-motion: reduce) {
    .product-rotator {
        transition: none;
    }
}

.hero-sub {
    font-size: 19px;
    color: var(--text-dim);
    max-width: 56ch;
    margin-bottom: 40px;
    line-height: 1.5;
}

.hero-sub code {
    font-family: "Ubuntu Mono", Monaco, monospace;
    font-size: 15px;
    padding: 2px 6px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    overflow-wrap: anywhere;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 72px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 14px 22px;
    font-size: 14px;
}

/* ======== TERMINAL ======== */
.terminal {
    background: var(--term-bg);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    width: 100%;
    max-width: 860px;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--term-bar);
    border-bottom: 1px solid #000;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.terminal-dot.red {
    background: #008b55;
}
.terminal-dot.yellow {
    background: #febc2e;
}
.terminal-dot.green {
    background: #28c840;
}

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: "Ubuntu Mono", monospace;
    font-size: 12px;
    color: #6b6b68;
}

.terminal-body {
    padding: 24px;
    font-family: "Ubuntu Mono", Monaco, monospace;
    font-size: 14px;
    line-height: 1.7;
    min-height: 280px;
    color: #f5f5f2;
    overflow-x: auto;
    overflow-wrap: anywhere;
}

.prompt {
    color: var(--accent);
}
.cmd {
    color: #f5f5f2;
}
.out-dim {
    color: #6b6b68;
}
.out-green {
    color: #4ade80;
}
.out-blue {
    color: #60a5fa;
}
.out-yellow {
    color: #facc15;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent);
    vertical-align: text-bottom;
    animation: blink 1s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%,
    50% {
        opacity: 1;
    }
    51%,
    100% {
        opacity: 0;
    }
}

/* ======== SECTION ======== */
section {
    padding: 96px 0;
    position: relative;
}

.section-label {
    font-family: "Ubuntu Mono", monospace;
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

h2 {
    font-family: "Ubuntu", sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 20px;
    max-width: 20ch;
    overflow-wrap: anywhere;
}

h2 .highlight {
    color: var(--accent);
    font-style: italic;
    font-weight: 400;
}

.section-sub {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 56ch;
    margin-bottom: 56px;
}

/* ======== CODE TABS ======== */
.code-tabs {
    background: var(--code-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--bg-elev);
    flex-wrap: wrap;
}

.tab {
    padding: 14px 20px;
    font-family: "Ubuntu Mono", monospace;
    font-size: 14px;
    color: var(--text-mute);
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
}

.tab:hover {
    color: var(--text-dim);
}

.tab.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.tab-copy {
    margin-left: auto;
    padding: 14px 20px;
    font-family: "Ubuntu Mono", monospace;
    font-size: 12px;
    color: var(--text-mute);
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s;
}

.tab-copy:hover {
    color: var(--text);
}

.code-panel {
    padding: 28px 24px;
    font-family: "Ubuntu Mono", Monaco, monospace;
    font-size: 14.5px;
    line-height: 1.75;
    white-space: pre;
    overflow-x: auto;
    display: none;
    color: var(--text);
    max-width: 100%;
}

.code-panel.active {
    display: block;
}

:root[data-theme="dark"] .tok-key {
    color: #c084fc;
}
:root[data-theme="dark"] .tok-str {
    color: #86efac;
}
:root[data-theme="dark"] .tok-fn {
    color: #60a5fa;
}
:root[data-theme="dark"] .tok-com {
    color: #6b6b68;
    font-style: italic;
}
:root[data-theme="dark"] .tok-var {
    color: #fbbf24;
}
:root[data-theme="dark"] .tok-op {
    color: var(--text-dim);
}

:root[data-theme="light"] .tok-key {
    color: #7c3aed;
}
:root[data-theme="light"] .tok-str {
    color: #16a34a;
}
:root[data-theme="light"] .tok-fn {
    color: #2563eb;
}
:root[data-theme="light"] .tok-com {
    color: #8a8680;
    font-style: italic;
}
:root[data-theme="light"] .tok-var {
    color: #b45309;
}
:root[data-theme="light"] .tok-op {
    color: var(--text-dim);
}

/* ======== FEATURE BUCKETS ======== */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin-top: 48px;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
}

.feature {
    padding: 36px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    transition: background 0.2s;
}

.feature:hover {
    background: var(--accent-bg);
}

.feature:nth-child(2n) {
    border-right: none;
}
.feature:nth-last-child(-n + 2) {
    border-bottom: none;
}

.feature-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.feature-num {
    font-family: "Ubuntu Mono", monospace;
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.05em;
    font-weight: 700;
}

.feature-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-mute);
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

.feature h3 {
    font-family: "Ubuntu", sans-serif;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature p {
    font-size: 14.5px;
    color: var(--text-dim);
    line-height: 1.6;
}

.feature code {
    font-family: "Ubuntu Mono", monospace;
    font-size: 12.5px;
    padding: 1px 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--accent);
}

/* ======== IS / ISN'T ======== */
.contrast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 40px;
}

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

.contrast-card.is {
    border-left: 3px solid var(--accent);
}
.contrast-card.isnt {
    border-left: 3px solid var(--border-strong);
}

.contrast-header {
    font-family: "Ubuntu Mono", monospace;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.contrast-card.is .contrast-header {
    color: var(--accent);
}
.contrast-card.isnt .contrast-header {
    color: var(--text-mute);
}

.contrast-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contrast-list li {
    display: flex;
    gap: 12px;
    font-size: 15px;
    color: var(--text);
    line-height: 1.5;
}

.contrast-card.isnt .contrast-list li {
    color: var(--text-dim);
}

.tick {
    font-family: "Ubuntu Mono", monospace;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
    font-weight: 700;
}

.contrast-card.is .tick {
    color: var(--accent);
}
.contrast-card.isnt .tick {
    color: var(--text-mute);
}

/* ======== AGENT WORKFLOW ======== */
.workflow {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    min-width: 0;
}

.workflow-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-num {
    font-family: "Ubuntu Mono", monospace;
    font-size: 12px;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
}

.step-content h4 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    font-family: "Ubuntu", sans-serif;
}

.step-content p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.5;
}

.step-content code {
    font-family: "Ubuntu Mono", monospace;
    font-size: 12.5px;
    color: var(--accent);
    background: var(--bg);
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid var(--border);
}

.chat-demo {
    background: var(--term-bg);
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    padding: 20px;
    font-family: "Ubuntu Mono", Monaco, monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #f5f5f2;
    min-width: 0;
    overflow-wrap: anywhere;
}

.chat-msg {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.chat-msg.user {
    background: #1f1f1f;
    border: 1px solid #2a2a2a;
    color: #f5f5f2;
}

.chat-msg.agent {
    background: transparent;
    color: #a3a3a0;
}

.chat-msg .who {
    font-size: 11px;
    color: #6b6b68;
    margin-bottom: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ======== AI AGENT MCP QUICKSTART ======== */
.agent-mcp-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 32px;
    align-items: stretch;
}

.agent-mcp-steps {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.agent-mcp-tabs {
    min-width: 0;
}

.agent-mcp-tabs .code-panel {
    min-height: 340px;
}

/* ======== PRICING ======== */
.price-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 32px 0 8px;
    font-family: "Ubuntu Mono", monospace;
    font-size: 12px;
    color: var(--text-mute);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track {
    position: absolute;
    inset: 0;
    background: var(--bg-elev);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    transition:
        background 0.2s,
        border-color 0.2s;
}

.toggle-switch input:checked + .toggle-track {
    background: var(--accent);
    border-color: var(--accent);
}

.toggle-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle-switch input:checked ~ .toggle-knob {
    transform: translateX(20px);
}

.save-badge {
    color: var(--accent);
    font-weight: 700;
}

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

.price-card.featured {
    border-color: var(--accent);
    background:
        linear-gradient(180deg, var(--accent-bg), transparent 50%),
        var(--bg-card);
}

.price-badge {
    position: absolute;
    top: -11px;
    left: 32px;
    background: var(--accent);
    color: #fff;
    font-family: "Ubuntu Mono", monospace;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.price-tier {
    font-family: "Ubuntu Mono", monospace;
    font-size: 12px;
    color: var(--text-mute);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.price-name {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 16px;
    font-family: "Ubuntu", sans-serif;
}

.price-amount {
    font-family: "Ubuntu", sans-serif;
    font-size: 44px;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.price-amount .cur {
    color: var(--text-mute);
    font-weight: 400;
}

.price-period {
    font-family: "Ubuntu Mono", monospace;
    font-size: 12px;
    color: var(--text-mute);
    margin-bottom: 28px;
}

.price-desc {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 24px;
    min-height: 42px;
}

.price-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
    flex: 1;
}

.price-features li {
    font-size: 14.5px;
    color: var(--text-dim);
    display: flex;
    justify-content: space-between;
    font-family: "Ubuntu Mono", monospace;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border);
    gap: 12px;
    min-width: 0;
}

.price-features li:last-child {
    border-bottom: none;
}
.price-features .label {
    color: var(--text-mute);
}
.price-features .val {
    color: var(--text);
    min-width: 0;
    overflow-wrap: anywhere;
    text-align: right;
}
.price-features li.multiline {
    align-items: flex-start;
}

.row-value-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    text-align: right;
    max-width: 62%;
    min-width: 0;
}

.row-subtext {
    color: var(--text-mute);
    font-size: 12px;
    line-height: 1.35;
}

.row-subtext[hidden] {
    display: none;
}

.price-card .btn {
    width: 100%;
    justify-content: center;
}

/* ======== FAQ ======== */
.faq-list {
    max-width: 800px;
    border-top: 1px solid var(--border);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-q {
    width: 100%;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text);
    font-size: 17px;
    font-family: "Ubuntu", sans-serif;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: color 0.2s;
}

.faq-q:hover {
    color: var(--accent);
}

.faq-icon {
    font-family: "Ubuntu Mono", monospace;
    color: var(--text-mute);
    font-size: 16px;
    transition: transform 0.2s;
    flex-shrink: 0;
    font-weight: 400;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.65;
}

.faq-a-inner {
    padding-bottom: 24px;
    padding-right: 40px;
    max-width: 100%;
    overflow-x: auto;
}

.faq-a-inner p + p {
    margin-top: 12px;
}

.faq-a-inner a {
    color: var(--accent);
    text-decoration: none;
}

.faq-a-inner a:hover {
    text-decoration: underline;
}

.faq-a code {
    font-family: "Ubuntu Mono", monospace;
    font-size: 14px;
    background: var(--bg-elev);
    padding: 1px 6px;
    border-radius: 3px;
    color: var(--text);
}

.ext-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-family: "Ubuntu Mono", monospace;
    font-size: 14px;
}

.ext-table th {
    text-align: left;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-mute);
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 11px;
}

.ext-table td {
    padding: 9px 12px;
    border-bottom: 1px dashed var(--border);
    vertical-align: top;
}

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

.ext-table td:first-child {
    white-space: nowrap;
}

.ext-optional {
    display: inline-block;
    margin-top: 16px;
    padding: 10px 14px;
    background: var(--accent-bg);
    border: 1px solid var(--border-strong);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-dim);
}

.ext-optional strong {
    color: var(--accent);
}

/* ======== CTA STRIP ======== */
.cta-strip {
    padding: 88px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.cta-strip::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        var(--accent-glow) 0%,
        transparent 60%
    );
    opacity: 0.5;
    pointer-events: none;
}

.cta-strip h2 {
    margin: 0 auto 24px;
}

.cta-strip .hero-ctas {
    justify-content: center;
    margin-bottom: 0;
}

/* ======== FROM INDIA TAG ======== */
.made-in {
    padding: 56px 0;
    text-align: center;
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
}

.made-in-inner {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Ubuntu Mono", monospace;
    font-size: 14px;
    color: var(--text-dim);
    letter-spacing: 0.02em;
}

.flag-stripes {
    display: inline-flex;
    flex-direction: column;
    width: 24px;
    height: 16px;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--border-strong);
}

.flag-stripes span {
    flex: 1;
    display: block;
}
.flag-stripes span:nth-child(1) {
    background: #ff9933;
}
.flag-stripes span:nth-child(2) {
    background: #ffffff;
    position: relative;
}
.flag-stripes span:nth-child(2)::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 6px;
    height: 6px;
    border: 1.2px solid #000080;
    border-radius: 50%;
}
.flag-stripes span:nth-child(3) {
    background: #138808;
}

.made-in-text strong {
    color: var(--text);
    font-weight: 700;
}

/* ======== FOOTER ======== */
footer {
    padding: 56px 0 32px;
}

.foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.foot-brand {
    font-family: "Ubuntu Mono", monospace;
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
    max-width: 36ch;
}

.foot-col h5 {
    font-family: "Ubuntu Mono", monospace;
    font-size: 11px;
    color: var(--text-mute);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.foot-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.foot-col a {
    font-size: 14px;
    color: var(--text-dim);
    transition: color 0.2s;
}
.foot-col a:hover {
    color: var(--text);
}

.foot-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Ubuntu Mono", monospace;
    font-size: 12px;
    color: var(--text-mute);
    flex-wrap: wrap;
    gap: 12px;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 900px) {
    .container {
        padding: 0 20px;
    }
    .nav-links > a:not(.btn) {
        display: none;
    }
    .nav-links {
        gap: 10px;
    }
    .nav-dropdown-menu {
        display: none;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        transition: none;
        z-index: 20;
    }
    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        display: flex;
        transform: none;
    }
    .hero {
        padding: 48px 0 40px;
    }
    section {
        padding: 64px 0;
    }
    .features {
        grid-template-columns: 1fr;
    }
    .feature {
        border-right: none;
    }
    .feature:nth-last-child(2) {
        border-bottom: 1px solid var(--border);
    }
    .contrast-grid {
        grid-template-columns: 1fr;
    }
    .workflow {
        grid-template-columns: 1fr;
        padding: 28px;
        gap: 32px;
    }
    .agent-mcp-grid {
        grid-template-columns: 1fr;
    }
    .agent-mcp-steps {
        padding: 28px;
    }
    .agent-mcp-tabs .code-panel {
        min-height: 0;
    }
    .price-grid {
        grid-template-columns: 1fr;
    }
    .foot-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .terminal-body {
        padding: 16px;
        font-size: 12px;
    }
    h1 {
        font-size: 40px;
    }
}

/* ======== PRODUCTS ======== */
.product-links {
    display: flex;
    flex-direction: column;
    max-width: 860px;
    border-top: 1px solid var(--border);
}

.product-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 4px;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    transition: color 0.15s;
}

.product-link:hover {
    color: var(--accent);
}

.product-link:hover .product-link-arrow {
    transform: translateX(4px);
}

.product-link-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-link-name {
    font-size: 17px;
    font-weight: 500;
}

.product-link-desc {
    font-size: 14px;
    color: var(--text-dim);
}

.product-link:hover .product-link-desc {
    color: var(--text-dim);
}

.product-link-arrow {
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.15s;
    color: var(--accent);
}

/* ======== PRODUCT PAGES (database.html / storage.html) ======== */

.product-page-body {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 860px;
    margin-top: 48px;
    padding-bottom: 80px;
}

.product-page-block h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
}

.product-page-block p {
    font-size: 15px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-feature-list li {
    font-size: 15px;
    color: var(--text-dim);
    padding-left: 20px;
    position: relative;
}

.product-feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 13px;
}

.product-page-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

/* CLI block */
.cli-panel.code-panel {
    padding: 0;
    white-space: normal;
}

.cli-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.cli-row:last-child {
    border-bottom: none;
}

.cli-label {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.cli-cmd {
    font-family: "Ubuntu Mono", monospace;
    font-size: 14px;
    color: var(--accent);
}

.cli-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 6px 14px;
    font-family: "Ubuntu Mono", monospace;
    font-size: 12px;
    color: var(--text-dim);
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.cli-copy:hover {
    color: var(--text);
    border-color: var(--text-dim);
}
