/* ============================================================
   TrustMemory Landing Page Styles
   Page-specific styles only — shared foundation in common.css
   ============================================================ */

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

.hero {
    padding: 160px 0 100px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
}

.hero-container {
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-light);
    background: var(--accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-subtitle strong {
    color: var(--text-primary);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}


/* ============================================================
   Problem Section
   ============================================================ */

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.problem-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s;
}

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

.problem-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.problem-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================================
   Features Grid
   ============================================================ */

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s;
}

.feature-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 16px;
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    color: var(--accent-light);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================================
   How It Works (Steps)
   ============================================================ */

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 23px;
    top: 52px;
    bottom: -48px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    opacity: 0.3;
}

.step-number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.step-content {
    flex: 1;
    min-width: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.code-block {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    max-width: 100%;
}

.code-block pre {
    padding: 20px;
    margin: 0;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Trust visual */
.trust-visual {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 8px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.trust-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trust-item-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.trust-item-score {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-light);
}

.trust-item-score.trusted-score {
    color: var(--success);
}

.trust-bar {
    position: relative;
    height: 10px;
    background: var(--bg-code);
    border-radius: 6px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.trust-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.trust-fill.trusted {
    background: linear-gradient(135deg, #10b981, #34d399);
}

/* ============================================================
   Integration Grid
   ============================================================ */

.integration-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.integration-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    position: relative;
    transition: all 0.3s;
}

.integration-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
}

.integration-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    padding: 4px 12px;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
}

.integration-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.integration-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.integration-card code {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-light);
    font-size: 0.85rem;
}

.integration-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.integration-tags span {
    padding: 4px 10px;
    background: var(--accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 100px;
    font-size: 0.75rem;
    color: var(--accent-light);
}

/* ============================================================
   Agent Skills Section
   ============================================================ */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px 28px;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.skill-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.skill-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
}

.skill-card.featured:hover {
    box-shadow: 0 12px 50px rgba(99, 102, 241, 0.25);
}

.skill-badge {
    position: absolute;
    top: -11px;
    right: 20px;
    padding: 5px 14px;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: 100px;
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.skill-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-glow);
    color: var(--accent-light);
}

.skill-card-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.3;
}

.skill-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.skill-card code {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-light);
    font-size: 0.82rem;
}

.skill-code {
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow-x: auto;
    margin-top: auto;
}

.skill-code pre {
    padding: 14px 20px;
    margin: 0;
}

.skill-code code {
    font-size: 0.82rem;
    line-height: 1.8;
    color: #e2e8f0;
}

.skill-code .code-comment {
    color: #5a6070;
    font-style: italic;
}

/* Prompt-style message block (send to your agent) */
.skill-prompt {
    margin-top: auto;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-code);
}

.skill-prompt-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-light);
    background: rgba(99, 102, 241, 0.06);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.skill-prompt-label:hover {
    background: rgba(99, 102, 241, 0.12);
}

.skill-prompt-label svg {
    flex-shrink: 0;
}

.skill-prompt-msg {
    padding: 16px 18px;
    font-size: 0.84rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-style: italic;
    word-break: break-word;
}

/* Alternative install method */
.skill-alt {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.skill-alt-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    white-space: nowrap;
}

.skill-alt code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-code);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    min-width: 0;
}

/* ============================================================
   Trust Badge Showcase
   ============================================================ */

.badge-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.badge-demo,
.badge-code {
    min-width: 0;
    overflow: hidden;
}

.badge-demo h4,
.badge-code h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.badge-examples {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.badge-example-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.badge-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.badge-code .code-block {
    margin-top: 0;
}

/* ============================================================
   Why TrustMemory
   ============================================================ */

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all 0.3s;
}

.why-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 0 30px var(--accent-glow);
}

.why-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.why-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.why-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ============================================================
   Competitor Comparison
   ============================================================ */

.comparison-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.comparison-table-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--bg-primary));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    background: var(--bg-card);
}

.comparison-table th,
.comparison-table td {
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    background: var(--bg-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.comparison-table td:first-child,
.comparison-table th:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table td:first-child {
    color: var(--text-secondary);
}

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

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

.highlight-col {
    background: rgba(99, 102, 241, 0.06) !important;
    border-left: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
}

.comparison-table th.highlight-col {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
}

.cmp-yes {
    color: var(--success);
    font-weight: 700;
    font-size: 1.1rem;
}

.cmp-no {
    color: #ef4444;
    font-weight: 500;
    font-size: 1rem;
    opacity: 0.6;
}

.cmp-partial {
    color: #f59e0b;
    font-size: 0.7rem;
}

.comparison-note {
    text-align: center;
    margin-top: 16px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    position: relative;
    transition: all 0.3s;
}

.pricing-grid-4 .pricing-card {
    padding: 28px 24px;
}

.pricing-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.pricing-card.popular {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--accent-glow);
    z-index: 1;
    margin: -8px -4px;
}

.pricing-card.popular:hover {
    transform: translateY(-4px);
}

.pricing-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 16px;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
    white-space: nowrap;
}

.pricing-tier {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.pricing-price .price-monthly,
.pricing-price .price-annual {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
}

.pricing-grid-4 .pricing-price {
    font-size: 2.5rem;
}

.pricing-grid-4 .pricing-price .price-monthly,
.pricing-grid-4 .pricing-price .price-annual {
    font-size: 2.5rem;
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.pricing-features .check {
    color: var(--success);
    font-weight: 700;
    font-size: 1rem;
}

/* Billing Toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.billing-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
}

.billing-label.active {
    color: var(--text-primary);
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    background: var(--border);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    padding: 3px;
    transition: background 0.3s;
}

.toggle-switch.active {
    background: var(--accent);
}

.toggle-knob {
    display: block;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
    pointer-events: none;
}

.toggle-switch.active .toggle-knob {
    transform: translateX(24px);
}

.billing-save-badge {
    background: var(--accent-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

/* Annual Note */
.pricing-annual-note {
    color: var(--success);
    font-size: 0.82rem;
    margin-bottom: 4px;
    margin-top: -2px;
}

/* Contact Sales Link */
.pricing-contact-link {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ============================================================
   CTA Section
   ============================================================ */

.cta-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
}

.cta-box h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.cta-box > p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.cta-code {
    text-align: left;
    max-width: min(650px, 100%);
    margin: 0 auto 32px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}


/* ============================================================
   Knowledge Domains Grid
   ============================================================ */

.domains-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    overflow: hidden;
}

.domain-tile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s;
}

.domain-tile:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.12);
}

.domain-emoji {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
}

.domain-tile h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.domain-question {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.5;
}

/* ============================================================
   How It Works — Tabbed Interface
   ============================================================ */

.hiw-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
}

.hiw-tab {
    padding: 10px 28px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.hiw-tab:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.hiw-tab.active {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.hiw-panel {
    display: none;
}

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

/* Mock chat visual */
.mock-chat {
    max-width: 500px;
    margin: 40px auto 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-code);
}

.mock-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.mock-chat-header span {
    font-size: 1.1rem;
}

.mock-chat-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-bubble-user,
.chat-bubble-agent {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.6;
}

.chat-bubble-user {
    align-self: flex-end;
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-bubble-agent {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-bottom-left-radius: 4px;
}

.chat-bubble-agent strong {
    color: var(--success);
}

.chat-bubble-agent .chat-source {
    display: block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ============================================================
   CTA Split Layout
   ============================================================ */

.cta-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    overflow: hidden;
}

.cta-box-half {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
    overflow: hidden;
    min-width: 0;
}

.cta-audience-label {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    background: var(--accent-glow);
    color: var(--accent-light);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.cta-box-half h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.cta-box-half > p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ============================================================
   Knowledge Domains — Compact Grid
   ============================================================ */

.domains-group-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
    padding-left: 4px;
}

.domains-group-label span {
    font-size: 1.1rem;
}

.domains-group-dev {
    margin-top: 36px;
    color: var(--accent-light);
}

.domains-grid-compact {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    overflow: hidden;
}

.domain-tile-sm {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s;
}

.domain-tile-sm:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.1);
}

.domain-tile-dev {
    border-color: rgba(99, 102, 241, 0.12);
}

.domain-tile-dev:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.15);
}

.domain-emoji-sm {
    font-size: 1.6rem;
    margin-bottom: 8px;
    display: block;
}

.domain-tile-sm h3 {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
}

.domain-tile-sm .domain-question {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
}

/* ============================================================
   Complete Your Agent Stack
   ============================================================ */

.stack-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 48px;
}

.stack-layer {
    width: 100%;
    max-width: 600px;
    text-align: center;
    padding: 20px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.stack-layer-top {
    border-color: var(--border-hover);
}

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

.stack-layer-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stack-layer-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.stack-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    opacity: 0.6;
}

.stack-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 800px;
}

.stack-service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

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

.stack-service-highlight {
    border-color: var(--accent) !important;
    box-shadow: 0 0 30px var(--accent-glow);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, var(--bg-card) 100%);
}

.stack-service-highlight:hover {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.2);
}

.stack-service-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    background: var(--accent-gradient);
    color: white;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border-radius: 100px;
    white-space: nowrap;
}

.stack-service-emoji {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.stack-service-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.stack-service-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.5;
}

.stack-service-example {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
}

.stack-summary {
    text-align: center;
    margin-bottom: 60px;
    padding: 28px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.stack-summary p {
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.stack-summary-sub {
    font-size: 0.95rem !important;
    color: var(--text-secondary) !important;
    margin-top: 8px;
}

.stack-adds-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stack-add-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s;
}

.stack-add-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.1);
}

.stack-add-icon {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.stack-add-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.stack-add-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .problem-grid,
    .features-grid,
    .integration-grid,
    .pricing-grid,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .domains-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-split {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
    }

    .badge-showcase {
        grid-template-columns: 1fr;
    }

    .pricing-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.popular {
        transform: none;
        margin: 0;
    }

    .pricing-grid-4 .pricing-card {
        padding: 32px;
    }

    .skill-card {
        padding: 28px 24px 24px;
    }

    .skill-alt {
        flex-wrap: wrap;
        gap: 8px;
    }

    .domains-grid-compact {
        grid-template-columns: repeat(3, 1fr);
    }

    .stack-services {
        gap: 12px;
    }

    .stack-service-card {
        padding: 20px 16px;
    }

    .stack-adds-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-title br {
        display: none;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    .hero-stat-divider {
        display: none;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 1.7rem;
    }

    .problem-grid,
    .features-grid,
    .integration-grid,
    .pricing-grid,
    .pricing-grid-4,
    .why-grid,
    .badge-showcase {
        grid-template-columns: 1fr;
    }

    .domains-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-split {
        grid-template-columns: 1fr;
    }

    .hiw-tabs {
        gap: 6px;
    }

    .hiw-tab {
        padding: 8px 20px;
        font-size: 0.88rem;
    }

    .skills-grid {
        max-width: 100%;
    }

    .domains-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .domain-tile-sm {
        padding: 16px 12px;
    }

    .domain-emoji-sm {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }

    .domain-tile-sm h3 {
        font-size: 0.78rem;
    }

    .domain-tile-sm .domain-question {
        font-size: 0.68rem;
    }

    .domains-group-label {
        font-size: 0.78rem;
    }

    .stack-services {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .stack-layer {
        max-width: 100%;
    }

    .stack-adds-grid {
        grid-template-columns: 1fr;
    }

    .stack-summary p {
        font-size: 1rem;
    }

    .step {
        flex-direction: column;
        gap: 16px;
    }

    .step::after {
        display: none;
    }

    .cta-box {
        padding: 32px 20px;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .skill-prompt-msg {
        font-size: 0.8rem;
        padding: 14px 16px;
    }

    .skill-card-header h3 {
        font-size: 0.95rem;
    }

    .skill-label {
        font-size: 0.65rem;
    }

    .comparison-table-wrap::after {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        white-space: normal;
        text-align: center;
    }

    .skill-alt code {
        white-space: normal;
        word-break: break-all;
    }

    .section {
        padding: 48px 0;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .section-header p {
        font-size: 0.88rem;
    }

    .skill-card {
        padding: 24px 18px 20px;
    }

    .skill-card-header {
        gap: 12px;
        margin-bottom: 16px;
    }

    .skill-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        border-radius: 10px;
    }

    .skill-icon svg {
        width: 20px;
        height: 20px;
    }

    .skill-card-header h3 {
        font-size: 0.9rem;
    }

    .skill-card p {
        font-size: 0.82rem;
        margin-bottom: 16px;
    }

    .skill-prompt-msg {
        font-size: 0.78rem;
        padding: 12px 14px;
    }

    .skill-prompt-label {
        font-size: 0.65rem;
        padding: 8px 12px;
    }

    .skill-code pre {
        padding: 12px 14px;
    }

    .skill-code code {
        font-size: 0.75rem;
    }

    .skill-alt code {
        font-size: 0.7rem;
    }

    .badge-example-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .pricing-grid-4 .pricing-card {
        padding: 24px 18px;
    }

    .cta-box {
        padding: 28px 16px;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }

    .comparison-table th:first-child,
    .comparison-table td:first-child {
        min-width: unset;
    }

    .pricing-grid-4 .pricing-price,
    .pricing-grid-4 .pricing-price .price-monthly,
    .pricing-grid-4 .pricing-price .price-annual {
        font-size: 2rem;
    }

    .hero-stat {
        min-width: 80px;
    }

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

    .cta-box-half {
        padding: 28px 20px;
    }

    .cta-box-half h3 {
        font-size: 1.1rem;
    }

    .mock-chat {
        margin: 28px auto 0;
    }

    .chat-bubble-user,
    .chat-bubble-agent {
        max-width: 92%;
        font-size: 0.82rem;
    }

    .domains-grid-compact {
        gap: 8px;
    }

    .domain-tile-sm {
        padding: 14px 10px;
    }

    .domain-emoji-sm {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

    .domain-tile-sm h3 {
        font-size: 0.72rem;
    }

    .domain-tile-sm .domain-question {
        display: none;
    }

    .domains-group-label {
        font-size: 0.72rem;
        margin-bottom: 14px;
    }

    .domains-group-dev {
        margin-top: 24px;
    }

    .stack-layer {
        padding: 16px 18px;
    }

    .stack-layer-label {
        font-size: 0.9rem;
    }

    .stack-layer-desc {
        font-size: 0.75rem;
    }

    .stack-service-card {
        padding: 20px 16px;
    }

    .stack-service-emoji {
        font-size: 1.5rem;
    }

    .stack-service-name {
        font-size: 0.88rem;
    }

    .stack-summary {
        padding: 20px 18px;
    }

    .stack-summary p {
        font-size: 0.92rem;
    }

    .stack-summary-sub {
        font-size: 0.82rem !important;
    }

    .stack-add-card {
        padding: 22px 18px;
    }
}

/* ── Touch feedback for mobile ── */

.feature-card:active,
.why-card:active,
.skill-card:active,
.problem-card:active {
    border-color: var(--accent);
}

/* ── Trust Callout (Why TrustMemory section) ── */

.trust-callout {
    margin-top: 48px;
    text-align: center;
}

.trust-callout-inner {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 32px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
}

.trust-callout-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.trust-callout-stats strong {
    color: var(--accent);
    font-weight: 700;
}

.trust-callout-divider {
    color: rgba(255,255,255,0.15);
}

.trust-callout-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s;
}

.trust-callout-link:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .trust-callout-stats {
        flex-direction: column;
        gap: 4px;
    }
    .trust-callout-divider {
        display: none;
    }
    .trust-callout-inner {
        padding: 16px 20px;
    }
}

