/* ========================================
   DESIGN TOKENS
   ======================================== */
:root {
    --bg-primary: #f8f7f4;
    --bg-secondary: #f0eeeb;
    --bg-dark: #1b2a4a;
    --text-primary: #1b2a4a;
    --text-secondary: #5a6578;
    --accent: #c4713b;
    --accent-hover: #a85d2f;
    --accent-secondary: #2d6a8a;
    --success: #3d7a5f;
    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "Inter", -apple-system, sans-serif;
    --font-mono: "JetBrains Mono", "Fira Code", monospace;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 8rem;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

/* ========================================
   RESET
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}
body {
    font-family: var(--font-body);
    font-size: clamp(0.9375rem, 0.875rem + 0.25vw, 1.0625rem);
    line-height: 1.7;
    color: var(--text-secondary);
    background: var(--bg-primary);
}
img,
svg {
    display: block;
    max-width: 100%;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
}
ul {
    list-style: none;
}
input {
    font: inherit;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1,
h2,
h3 {
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1.2;
    font-weight: 600;
}
h1 {
    font-size: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
    letter-spacing: -0.02em;
}
h2 {
    font-size: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
    letter-spacing: -0.01em;
}
h3 {
    font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
}

/* ========================================
   LAYOUT
   ======================================== */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}
.section {
    padding: var(--space-xl) 0;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    white-space: nowrap;
}
.btn--primary {
    background: var(--accent);
    color: #fff;
}
.btn--primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(196, 113, 59, 0.3);
}
.btn--primary:active {
    transform: translateY(0);
}
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ========================================
   TAILORING: STITCH EFFECTS
   ======================================== */
.stitch-divider {
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--accent) 0,
        var(--accent) 8px,
        transparent 8px,
        transparent 16px
    );
    opacity: 0.25;
}
.stitch-card {
    position: relative;
    background: var(--bg-primary);
}
.stitch-card::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 1.5px dashed rgba(196, 113, 59, 0.3);
    border-radius: 2px;
    pointer-events: none;
    transition: border-color var(--transition);
}
.stitch-card:hover::after {
    border-color: rgba(196, 113, 59, 0.5);
}

/* ========================================
   TAILORING: FABRIC TEXTURE
   ======================================== */
.fabric-texture {
    position: relative;
    background: var(--bg-secondary);
}
.fabric-texture::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 1px,
            rgba(27, 42, 74, 0.012) 1px,
            rgba(27, 42, 74, 0.012) 2px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 1px,
            rgba(27, 42, 74, 0.012) 1px,
            rgba(27, 42, 74, 0.012) 2px
        );
    pointer-events: none;
}

/* ========================================
   TAILORING: THREAD DRAW-IN
   ======================================== */
.thread-path {
    stroke-dasharray: 10 6;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease-out;
}
.thread-path.draw {
    stroke-dashoffset: 0;
}

/* ========================================
   TOOL NODES (hero illustration)
   ======================================== */
.tool-node {
    opacity: 0;
    transform: scale(0.8);
    animation: nodeAppear 0.5s ease-out forwards;
    animation-delay: calc(0.6s + var(--node-delay, 0s));
}
@keyframes nodeAppear {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   MCP BADGE
   ======================================== */
.mcp-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.75rem;
    border: 1.5px solid var(--accent);
    border-radius: 20px;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

/* ========================================
   NAV
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-sm) 0;
    transition: all var(--transition);
}
.nav.scrolled {
    background: rgba(248, 247, 244, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(27, 42, 74, 0.06);
}
.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}
.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}
.nav__logo-icon {
    color: var(--accent);
    flex-shrink: 0;
}
.nav__links {
    display: flex;
    gap: var(--space-md);
}
.nav__links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}
.nav__links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    transition: width var(--transition);
}
.nav__links a:hover {
    color: var(--text-primary);
}
.nav__links a:hover::after {
    width: 100%;
}
.nav__cta {
    font-size: 0.8125rem;
    padding: 0.625rem 1.25rem;
}
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
}
.nav__hamburger span {
    display: block;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all var(--transition);
    transform-origin: center;
}
.nav__hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.active span:nth-child(2) {
    opacity: 0;
}
.nav__hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   HERO
   ======================================== */
.first-screen {
    min-height: 100dvh;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.hero {
    flex: 1;
    padding-top: calc(80px + var(--space-lg));
    padding-bottom: var(--space-md);
    display: flex;
    align-items: center;
}
.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}
.hero__content {
    animation: fadeUp 0.8s ease-out;
}
.hero__title {
    margin-bottom: var(--space-sm);
}
.hero__subtitle {
    font-size: clamp(1rem, 0.9rem + 0.4vw, 1.1875rem);
    margin-bottom: var(--space-md);
    max-width: 540px;
}
.hero__illustration {
    animation: fadeUp 0.8s ease-out 0.2s both;
}
.hero__svg {
    width: 100%;
    height: auto;
    max-width: 500px;
    margin: 0 auto;
}

/* ========================================
   EMAIL FORM
   ======================================== */
.email-form__row {
    display: flex;
    gap: 0.75rem;
}
.email-form__input {
    flex: 1;
    min-width: 0;
    padding: 0.875rem 1.25rem;
    border: 1.5px solid rgba(27, 42, 74, 0.12);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 0.9375rem;
    transition: border-color var(--transition);
}
.email-form__input:focus {
    outline: none;
    border-color: var(--accent);
}
.email-form__input.error {
    border-color: #c0392b;
    animation: shake 0.35s ease;
}
.email-form__input:disabled {
    opacity: 0.5;
}
.email-form__hint {
    margin-top: 0.625rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    opacity: 0.7;
}
.email-form__success {
    margin-top: 0.625rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--success);
}
.email-form__error {
    margin-top: 0.625rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #c0392b;
    cursor: pointer;
}
.email-form [hidden] {
    display: none !important;
}
.email-form--centered {
    max-width: 540px;
    margin: 0 auto;
}

/* ========================================
   TRUST BAR
   ======================================== */
.trust-bar {
    flex-shrink: 0;
    padding: 0;
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.trust-bar .stitch-divider {
    margin: 0;
}
.trust-bar__track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
    padding: 0.625rem 0;
}
.trust-bar__items {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}
.trust-bar__item {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    opacity: 0.5;
    padding: 0 clamp(0.75rem, 1vw, 1.5rem);
    white-space: nowrap;
}
.trust-bar__item--soon {
    opacity: 0.25;
    font-style: italic;
}
.trust-bar__sep {
    color: var(--accent);
    opacity: 0.3;
    font-size: 0.5rem;
}

/* ========================================
   SECTION TITLES
   ======================================== */
.section__title {
    text-align: center;
    margin-bottom: var(--space-xs);
}
.section__title--light {
    color: #fff;
}
.section__subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    font-size: clamp(0.9375rem, 0.875rem + 0.25vw, 1.0625rem);
}
.section__subtitle--light {
    color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   PROBLEM
   ======================================== */
.problem__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}
.problem__label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #b85450;
    margin-bottom: var(--space-xs);
}
.problem__label--solution {
    color: var(--success);
}
.problem__title {
    margin-bottom: var(--space-md);
}
.problem__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.problem__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9375rem;
    line-height: 1.6;
}
.problem__icon {
    flex-shrink: 0;
    margin-top: 3px;
}

/* ========================================
   USE CASES GRID
   ======================================== */
.use-cases__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}
.use-case-card {
    padding: var(--space-md);
    transition: transform var(--transition);
}
.use-case-card:hover {
    transform: translateY(-4px);
}
.use-case-card__icon {
    margin-bottom: var(--space-sm);
}
.use-case-card h3 {
    margin-bottom: 0.5rem;
}
.use-case-card p {
    font-size: 0.9rem;
}

/* ========================================
   HOW IT WORKS (STEPS)
   ======================================== */
.steps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    position: relative;
}
.steps__thread {
    position: absolute;
    top: 50%;
    left: 8%;
    right: 8%;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--accent) 0,
        var(--accent) 8px,
        transparent 8px,
        transparent 16px
    );
    opacity: 0.2;
    transform: translateY(-50%);
}
.step {
    padding: var(--space-md);
    text-align: center;
    z-index: 1;
}
.step__number {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}
.step__title {
    margin-bottom: 0.75rem;
}
.step__text {
    font-size: 0.9375rem;
}

/* ========================================
   FEATURES
   ======================================== */
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}
.feature-card {
    padding: var(--space-md);
    transition: transform var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
}
.feature-card__icon {
    margin-bottom: var(--space-sm);
}
.feature-card h3 {
    margin-bottom: 0.5rem;
}
.feature-card p {
    font-size: 0.9rem;
}

/* ========================================
   SECURITY
   ======================================== */
.security {
    background: var(--bg-dark);
}
.security__points {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}
.security__point {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}
.security__point svg {
    flex-shrink: 0;
}
.security__badges {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}
.security__badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
}
.security__badge svg {
    flex-shrink: 0;
}
.security__badge-title {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
}
.security__badge-desc {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.55);
}
.security__diagram {
    max-width: 700px;
    margin: 0 auto;
}
.security__svg {
    width: 100%;
    height: auto;
}

/* ========================================
   PRICING
   ======================================== */
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
}
.pricing-card {
    padding: var(--space-md);
    text-align: center;
    transition: transform var(--transition);
}
.pricing-card:hover {
    transform: translateY(-4px);
}
.pricing-card__label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
}
.pricing-card__price {
    font-family: var(--font-display);
    font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.5rem 0 0.25rem;
}
.pricing-card__term {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: var(--space-sm);
}
.pricing-card .stitch-divider {
    margin-bottom: var(--space-sm);
}
.pricing-card__features {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.pricing-card__features li {
    font-size: 0.9rem;
    padding-left: 1.25rem;
    position: relative;
}
.pricing-card__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
}

/* ========================================
   FAQ
   ======================================== */
.faq__list {
    max-width: 720px;
    margin: 0 auto;
}
.faq__item {
    border-bottom: 1px solid rgba(27, 42, 74, 0.08);
}
.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    font-family: var(--font-display);
    font-size: clamp(1rem, 0.9rem + 0.3vw, 1.125rem);
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    transition: color var(--transition);
}
.faq__question:hover {
    color: var(--accent);
}
.faq__icon {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform var(--transition);
    flex-shrink: 0;
    margin-left: var(--space-sm);
}
.faq__item.active .faq__icon {
    transform: rotate(45deg);
}
.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.4s ease,
        padding 0.4s ease;
}
.faq__item.active .faq__answer {
    max-height: 200px;
}
.faq__answer p {
    padding-bottom: var(--space-sm);
    font-size: 0.9375rem;
    line-height: 1.7;
}

/* ========================================
   FINAL CTA
   ======================================== */
.cta-section {
    text-align: center;
    background: var(--bg-secondary);
    position: relative;
}
.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        var(--accent) 0,
        var(--accent) 8px,
        transparent 8px,
        transparent 16px
    );
    opacity: 0.2;
}
.cta-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}
.cta-section__subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    font-size: clamp(0.9375rem, 0.875rem + 0.25vw, 1.0625rem);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-dark);
    padding: var(--space-md) 0;
}
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}
.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}
.footer__email {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--accent);
    transition: color var(--transition);
}
.footer__email:hover {
    color: var(--accent-hover);
}
.footer__copy {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ========================================
   CHAT MOCKUP
   ======================================== */
.chat-mockup {
    background: var(--bg-dark);
}
.chat-mockup__conversation {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.chat-mockup__exchange {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.chat-mockup__query {
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 0.875rem 1.25rem;
    background: rgba(196, 113, 59, 0.1);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.chat-mockup__prompt {
    color: var(--accent);
    margin-right: 0.5rem;
    font-weight: 500;
}
.chat-mockup__response {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-left: 1.5rem;
}
.chat-mockup__response strong {
    color: rgba(255, 255, 255, 0.9);
}
.chat-mockup__response p {
    margin-bottom: 0.5rem;
}
.chat-mockup__response p:last-child {
    margin-bottom: 0;
}
.chat-mockup__response ul {
    padding-left: 1.25rem;
    list-style: disc;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.chat-mockup__label {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    background: rgba(196, 113, 59, 0.15);
    color: var(--accent);
    margin-bottom: 0.625rem;
}

/* ========================================
   COMPARISON
   ======================================== */
.comparison__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}
.comparison__col {
    padding: var(--space-md);
}
.comparison__col--highlight {
    border: 2px solid var(--accent);
    position: relative;
}
.comparison__col--highlight::after {
    border-color: rgba(196, 113, 59, 0.5);
}
.comparison__heading {
    text-align: center;
    margin-bottom: var(--space-sm);
}
.comparison__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.comparison__item {
    font-size: 0.9rem;
    line-height: 1.5;
    padding-left: 1.5rem;
    position: relative;
}
.comparison__item::before {
    position: absolute;
    left: 0;
    top: 0.15em;
    font-size: 0.875rem;
}
.comparison__item--positive::before {
    content: "\2713";
    color: var(--success);
}
.comparison__item--negative::before {
    content: "\2717";
    color: #B85450;
}
.comparison__item--neutral::before {
    content: "\2014";
    color: var(--text-secondary);
    opacity: 0.5;
}

/* (Customization section removed — merged into Features) */

/* ========================================
   OPERATOR
   ======================================== */
.operator {
    padding: var(--space-lg) 0;
}
.operator__inner {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}
.operator__title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.operator__text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}
.operator__link {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--accent);
    transition: color var(--transition);
}
.operator__link:hover {
    color: var(--accent-hover);
}

/* ========================================
   PRICING EXTRAS
   ======================================== */
.pricing-card__note {
    margin-top: var(--space-sm);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    opacity: 0.7;
    text-align: center;
    font-style: italic;
}
.pricing__risk-reversal {
    text-align: center;
    margin-top: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    color: var(--success);
    font-weight: 500;
}
.pricing__roi {
    text-align: center;
    margin-top: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    padding: var(--space-sm) var(--space-md);
    background: rgba(27, 42, 74, 0.04);
    border-radius: var(--radius-sm);
}

/* ========================================
   CTA CAPACITY
   ======================================== */
.cta-section__capacity {
    text-align: center;
    margin-top: var(--space-md);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    opacity: 0.7;
    font-style: italic;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    20%,
    60% {
        transform: translateX(-5px);
    }
    40%,
    80% {
        transform: translateX(5px);
    }
}
@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger reveal for adjacent siblings */
.reveal.revealed + .reveal.revealed {
    transition-delay: 0.08s;
}

/* ========================================
   RESPONSIVE: TABLET (768px)
   ======================================== */
@media (max-width: 1023px) {
    .use-cases__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .security__points {
        gap: var(--space-md);
    }
    .comparison__grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

/* ========================================
   RESPONSIVE: MOBILE (< 768px)
   ======================================== */
@media (max-width: 767px) {
    .section {
        padding: var(--space-lg) 0;
    }

    /* Nav mobile */
    .nav__links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: var(--bg-primary);
        padding: 5rem var(--space-md) var(--space-md);
        transform: translateX(100%);
        transition: transform var(--transition);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.08);
        gap: 0;
    }
    .nav__links.active {
        transform: translateX(0);
    }
    .nav__links a {
        font-size: 1rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(27, 42, 74, 0.06);
    }
    .nav__cta {
        display: none;
    }
    .nav__hamburger {
        display: flex;
    }

    /* Hero mobile */
    .first-screen {
        min-height: auto;
    }
    .hero {
        padding-top: calc(70px + var(--space-lg));
        padding-bottom: var(--space-lg);
    }
    .hero__inner {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    .hero__illustration {
        order: -1;
        max-width: 320px;
        margin: 0 auto;
    }

    /* Form mobile */
    .email-form__row {
        flex-direction: column;
    }
    .email-form__btn {
        width: 100%;
    }

    /* Problem mobile */
    .problem__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    /* Steps mobile */
    .steps__grid {
        grid-template-columns: 1fr;
    }
    .steps__thread {
        top: 8%;
        bottom: 8%;
        left: 50%;
        right: auto;
        width: 2px;
        height: auto;
        background: repeating-linear-gradient(
            0deg,
            var(--accent) 0,
            var(--accent) 8px,
            transparent 8px,
            transparent 16px
        );
        transform: translateX(-50%);
    }

    /* Use cases mobile */
    .use-cases__grid {
        grid-template-columns: 1fr;
    }

    /* Features mobile */
    .features__grid {
        grid-template-columns: 1fr;
    }

    /* Security mobile */
    .security__points {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-sm);
        padding: 0 var(--space-sm);
    }
    .security__badges {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
    }
    .security__diagram {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Pricing mobile */
    .pricing__grid {
        grid-template-columns: 1fr;
    }

    /* Chat mockup mobile */
    .chat-mockup__response {
        margin-left: 0;
    }

    /* Footer mobile */
    .footer__inner {
        flex-direction: column;
        text-align: center;
    }
}
