/* ============================================================================
   MemPad Website Styles
   ============================================================================ */

/* Base Reset & Variables */
:root {
    --color-bg: #050b16;
    --color-bg-card: rgba(7, 17, 35, 0.76);
    --color-bg-alt: rgba(15, 35, 70, 0.5);
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-text-dim: #64748b;
    --color-primary: #22d3ee;
    --color-primary-dark: #0ea5e9;
    --color-accent: #14b8a6;
    --color-border: rgba(148, 163, 184, 0.18);
    --color-error: #f87171;
    --color-success: #4ade80;
    --gradient-primary: linear-gradient(135deg, #38bdf8 0%, #22d3ee 50%, #14b8a6 100%);
    --font-sans: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "SF Mono", Monaco, "Cascadia Code", monospace;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --shadow-lg: 0 40px 80px rgba(15, 23, 42, 0.45);
}

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

html {
    scroll-behavior: smooth;
    background-color: #010409;
    overscroll-behavior: none;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--color-text);
    background: radial-gradient(circle at 10% 20%, #0b1a2d 0%, var(--color-bg) 55%, #010409 100%);
    min-height: 100vh;
    overscroll-behavior: none;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-accent);
}

code {
    font-family: var(--font-mono);
    background: rgba(148, 163, 184, 0.15);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ============================================================================
   Layout
   ============================================================================ */

main {
    min-height: calc(100vh - 140px);
    padding: clamp(2rem, 5vw, 4rem);
    position: relative;
    overflow: hidden;
}

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

.page__background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.page__glow {
    position: absolute;
    width: 60%;
    aspect-ratio: 1 / 1;
    filter: blur(120px);
    opacity: 0.6;
}

.page__glow--one {
    bottom: -30%;
    left: -20%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.5) 0%, transparent 65%);
}

.page__glow--two {
    top: -25%;
    right: -20%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.4) 0%, transparent 65%);
}

.page__grid {
    position: absolute;
    inset: -50%;
    background-image:
        linear-gradient(transparent 31px, rgba(148, 163, 184, 0.06) 32px),
        linear-gradient(90deg, transparent 31px, rgba(148, 163, 184, 0.06) 32px);
    background-size: 32px 32px;
    opacity: 0.4;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.7) 0%, transparent 70%);
}

/* ============================================================================
   Header / Navigation
   ============================================================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 11, 22, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    text-decoration: none;
}

.nav__logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav__link {
    color: var(--color-text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav__cta {
    padding: 0.5rem 1.25rem;
    background: var(--gradient-primary);
    color: #0f172a;
    font-weight: 600;
    border-radius: 999px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav__cta:hover {
    color: #0f172a;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.3);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav__toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.2s;
}

@media (max-width: 768px) {
    .nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(5, 11, 22, 0.98);
        border-bottom: 1px solid var(--color-border);
        padding: 1rem 0;
    }

    .nav__links--open {
        display: flex;
    }

    .nav__link,
    .nav__cta {
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
    }

    .nav__cta {
        margin: 0.5rem 2rem;
        width: calc(100% - 4rem);
    }

    .nav__toggle {
        display: flex;
    }
}

/* ============================================================================
   Footer
   ============================================================================ */

.site-footer {
    background: rgba(5, 11, 22, 0.9);
    border-top: 1px solid var(--color-border);
    padding: 3rem 2rem 2rem;
}

.footer__content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer__tagline {
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

.footer__links {
    display: flex;
    gap: 4rem;
}

.footer__column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__heading {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.footer__link {
    color: var(--color-text-dim);
    font-size: 0.95rem;
}

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

.footer__bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.footer__copyright {
    color: var(--color-text-dim);
    font-size: 0.875rem;
}

/* ============================================================================
   Buttons
   ============================================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    text-decoration: none;
}

.btn--primary {
    background: var(--gradient-primary);
    color: #0f172a;
}

.btn--primary:hover {
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 211, 238, 0.35);
}

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

.btn--secondary:hover {
    background: rgba(148, 163, 184, 0.1);
    color: var(--color-text);
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn--full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn__text {
    display: inline;
}

.btn__text[hidden] {
    display: none;
}

.btn__loading {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.btn__loading:not([hidden]) {
    display: inline-flex;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.spinner__track {
    stroke: rgba(0, 0, 0, 0.2);
}

.spinner__head {
    stroke: currentColor;
    stroke-dasharray: 60;
    stroke-dashoffset: 45;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================================
   Hero Section
   ============================================================================ */

.hero {
    text-align: center;
    padding: 4rem 0 6rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero__highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__highlight--nowrap {
    white-space: nowrap;
}

.hero__subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================================
   Sections
   ============================================================================ */

.section {
    padding: 5rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.section--alt {
    background: var(--color-bg-alt);
    max-width: none;
    padding-left: 2rem;
    padding-right: 2rem;
}

.section--alt > * {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.section__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
}

.section__subtitle {
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
}

/* Problem Cards */
.problem {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.problem__card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
}

.problem__icon {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.problem__card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.problem__card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Solution Section */
.solution {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

@media (max-width: 800px) {
    .solution {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.solution__heading {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.solution__text {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.solution__features {
    list-style: none;
}

.solution__features li {
    padding: 0.5rem 0;
    color: var(--color-text-muted);
}

.solution__features strong {
    color: var(--color-text);
}

/* Memory Loop Diagram */
.memory-loop {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

@media (max-width: 800px) {
    .memory-loop {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.memory-loop__diagram {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto;
}

.memory-loop__ring {
    position: absolute;
    inset: 0;
}

.memory-loop__arrow {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.memory-loop__track {
    stroke: var(--color-border);
}

.memory-loop__progress {
    stroke: var(--color-primary);
    stroke-linecap: round;
    stroke-dasharray: 502;
    stroke-dashoffset: 0;
    animation: loopRotate 8s linear infinite;
    opacity: 0.6;
}

@keyframes loopRotate {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -502; }
}

.memory-loop__nodes {
    position: absolute;
    inset: 0;
}

.memory-loop__node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    animation: nodeGlow 8s ease-in-out infinite;
}

.memory-loop__node--1 {
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.memory-loop__node--2 {
    top: 50%;
    right: -12px;
    transform: translateY(-50%);
    animation-delay: 2s;
}

.memory-loop__node--3 {
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 4s;
}

.memory-loop__node--4 {
    top: 50%;
    left: -12px;
    transform: translateY(-50%);
    animation-delay: 6s;
}

@keyframes nodeGlow {
    0%, 20%, 100% { opacity: 0.5; }
    10% { opacity: 1; }
}

.memory-loop__node-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-primary);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.memory-loop__node:hover .memory-loop__node-icon {
    border-color: var(--color-primary);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

.memory-loop__node-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.memory-loop__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-card);
    border: 1px solid var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.15);
}

.memory-loop__center-text {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.memory-loop__content {
    max-width: 400px;
}

.memory-loop__features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.memory-loop__features li {
    padding: 0.6rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.memory-loop__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 50%;
}

.memory-loop__features strong {
    color: var(--color-text);
}

.memory-loop__note {
    color: var(--color-text-dim);
    font-size: 0.9rem;
    font-style: italic;
}

/* Terminal Demo */
.terminal {
    background: #0f172a;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.terminal__header {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(148, 163, 184, 0.1);
}

.terminal__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal__dot--red { background: #f87171; }
.terminal__dot--yellow { background: #fbbf24; }
.terminal__dot--green { background: #4ade80; }

.terminal__body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.8;
}

.terminal__line {
    margin-bottom: 0.75rem;
}

.terminal__prompt {
    color: var(--color-primary);
    font-weight: 600;
}

.terminal__line--ai {
    color: var(--color-text-muted);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

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

.step {
    text-align: center;
}

.step__number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: var(--gradient-primary);
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
}

.step__title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step__text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Platforms */
.platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.platform {
    padding: 0.75rem 1.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 999px;
}

.platform__name {
    font-weight: 500;
    color: var(--color-text-muted);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 6rem 2rem;
}

.cta-section__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-section__text {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

/* ============================================================================
   Forms
   ============================================================================ */

.form-section {
    max-width: 540px;
    margin: 2rem auto;
}

.form-section__header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-section__title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.form-section__subtitle {
    color: var(--color-text-muted);
}

.access-form {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-required {
    color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.form-input--error {
    border-color: var(--color-error);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Checkbox group for multi-select */
.form-group--checkboxes {
    border: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.form-group--checkboxes .form-label {
    margin-bottom: 0.75rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem 1rem;
}

@media (max-width: 480px) {
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s;
}

.checkbox-label:hover {
    background: rgba(34, 211, 238, 0.05);
}

.checkbox-input {
    appearance: none;
    width: 1.125rem;
    height: 1.125rem;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.8);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s, background-color 0.15s;
}

.checkbox-input:checked {
    background: var(--color-primary);
    border-color: var(--color-primary);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23050b16' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.checkbox-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.checkbox-text {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

.checkbox-label:hover .checkbox-text {
    color: var(--color-text);
}

.form-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
}

.form-error {
    color: var(--color-error);
    font-size: 0.875rem;
}

.character-counter {
    color: var(--color-text-dim);
    font-size: 0.875rem;
}

.character-counter--warning {
    color: #fbbf24;
}

.character-counter--error {
    color: var(--color-error);
}

.turnstile-wrapper {
    margin: 1.5rem 0;
    text-align: center;
}

.turnstile-caption {
    display: block;
    color: var(--color-text-dim);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.form-section__note {
    text-align: center;
    color: var(--color-text-dim);
    font-size: 0.875rem;
    margin-top: 1.5rem;
}

.form-section__callout {
    margin-top: 2rem;
    padding: 1rem 1.25rem;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.form-section__callout strong {
    color: var(--color-primary);
}

/* ============================================================================
   Thank You Page
   ============================================================================ */

.thanks-section {
    max-width: 540px;
    margin: 4rem auto;
    text-align: center;
}

.thanks__icon {
    color: var(--color-success);
    margin-bottom: 1.5rem;
}

.thanks__title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.thanks__text {
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.thanks__text--secondary {
    color: var(--color-text-dim);
}

.thanks__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* ============================================================================
   Pricing
   ============================================================================ */

.pricing-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.pricing-section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-section__title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.pricing-section__subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.pricing-card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.pricing-card > .btn {
    margin-top: auto;
}

.pricing-card--featured {
    border-color: var(--color-primary);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.15);
}

.pricing-card--coming-soon {
    opacity: 0.7;
}

.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 1rem;
    border-radius: 999px;
}

.pricing-card__name {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-card__price {
    margin-bottom: 1rem;
}

.pricing-card__amount {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-card__period {
    color: var(--color-text-muted);
}

.pricing-card__description {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.pricing-card__features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--color-text-muted);
}

.pricing-card__check {
    color: var(--color-success);
    flex-shrink: 0;
}

.pricing-faq {
    margin-top: 4rem;
}

.pricing-faq__title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-faq__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pricing-faq__item h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.pricing-faq__item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ============================================================================
   Documentation
   ============================================================================ */

.docs-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.docs-section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.docs-section__title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.docs-section__subtitle {
    color: var(--color-text-muted);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.docs-card {
    display: block;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
}

.docs-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.docs-card__icon {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.docs-card__title {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.docs-card__description {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Docs Article */
.docs-article {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 0;
}

.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.docs-breadcrumb__separator {
    color: var(--color-text-dim);
}

.docs-article h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.docs-article__lead {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.docs-article h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.docs-article h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
}

.docs-article p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.docs-article ul,
.docs-article ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--color-text-muted);
}

.docs-article li {
    margin-bottom: 0.5rem;
}

.docs-code {
    background: #0f172a;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.6;
}

.docs-code code {
    background: none;
    padding: 0;
}

.docs-code--conversation .docs-code__you {
    color: var(--color-primary);
    font-weight: 600;
}

.docs-code--conversation .docs-code__ai {
    color: var(--color-accent);
    font-weight: 600;
}

.docs-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 1.5rem 0 1rem;
    border-bottom: 1px solid var(--color-border);
}

.docs-tab {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-family: inherit;
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}

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

.docs-tab--active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.docs-tab-content {
    display: none;
}

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

.docs-commands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.docs-command {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
}

.docs-command__code {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    background: none;
}

.docs-command__description {
    margin-top: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* ============================================================================
   Legal Pages
   ============================================================================ */

.legal-article {
    max-width: 700px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.legal-article h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.legal-article__updated {
    color: var(--color-text-dim);
    margin-bottom: 2rem;
}

.legal-article section {
    margin-bottom: 2rem;
}

.legal-article h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.legal-article h3 {
    font-size: 1rem;
    margin: 1.25rem 0 0.5rem;
    color: var(--color-text);
}

.legal-article p {
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.legal-article ul {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-article li {
    margin-bottom: 0.5rem;
}

/* ============================================================================
   Agent Memory Page
   ============================================================================ */

.agent-hero {
    text-align: center;
    padding: 3rem 0 4rem;
    max-width: 700px;
    margin: 0 auto;
}

.agent-hero__eyebrow {
    display: inline-block;
    background: rgba(34, 211, 238, 0.15);
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.5rem;
}

.agent-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.agent-hero__highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.agent-hero__subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 550px;
    margin: 0 auto;
}

.agent-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.agent-feature {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
}

.agent-feature__icon {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.agent-feature__title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.agent-feature__text {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.agent-demo {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2.5rem;
}

@media (max-width: 800px) {
    .agent-demo {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.agent-demo__text {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.agent-demo__code .terminal__body {
    font-size: 0.8rem;
    line-height: 1.6;
}

.agent-demo__code pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.agent-demo__code code {
    background: none;
    padding: 0;
    font-size: inherit;
}

.code-comment {
    color: var(--color-text-dim);
}

.code-keyword {
    color: #c792ea;
}

.code-string {
    color: #c3e88d;
}

/* Code Tabs */
.code-tabs {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.code-tabs__nav {
    display: flex;
    background: rgba(15, 23, 42, 0.8);
    border-bottom: 1px solid var(--color-border);
}

.code-tabs__tab {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.code-tabs__tab:hover {
    color: var(--color-text);
    background: rgba(148, 163, 184, 0.05);
}

.code-tabs__tab--active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.code-tabs__panels {
    background: #0f172a;
}

.code-tabs__panel {
    display: none;
}

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

.agent-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.agent-comparison__card {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
}

.agent-comparison__card--featured {
    border-color: var(--color-primary);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.12);
}

.agent-comparison__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 1rem;
    border-radius: 999px;
}

.agent-comparison__heading {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

.agent-comparison__desc {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.agent-comparison__list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.agent-comparison__list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-muted);
}

.agent-comparison__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* ============================================================================
   Modal
   ============================================================================ */

.modal {
    position: fixed;
    inset: 0;
    margin: auto;
    max-width: 400px;
    max-height: fit-content;
    padding: 0;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text);
}

.modal::backdrop {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal__content {
    padding: 2rem;
    text-align: center;
}

.modal__title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.modal__message {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.modal__close {
    min-width: 100px;
}

/* ============================================================================
   Responsive
   ============================================================================ */

@media (max-width: 600px) {
    main {
        padding: 1.5rem 1.25rem;
    }

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

    .section {
        padding: 3rem 1.25rem;
    }

    .access-form {
        padding: 1.5rem;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
    }

    .footer__content {
        flex-direction: column;
    }

    .footer__links {
        gap: 2rem;
    }
}
