/* site palette */
html:root {
    --bg: #1D0F13;
    --surface: #2F191E;
    --surface-alt: #271519;
    --text: #F2EEEF;
    --text-muted: #BFB0B4;
    --border: #433135;
    --primary: #DC496D;
    --primary-hover: #E36B88;
    --on-primary: #111111;
    --primary-text: #E05B7B;
    --accent: #8FE9C7;
    --on-accent: #111111;
    --accent-text: #8FE9C7;
    --dark-band: #110A0C;
    --on-dark: #FFFFFF;
    --on-dark-muted: #C3B6B9;
    --brand-btn-bg: #111111;
    --brand-btn-text: #DC496D;
    --section-alt-bg: #271519;
    --dark-band-bg: #110A0C;
    --brand-band-bg: #DC496D;
    --hero-bg: #1D0F13;
}

/* /site palette */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Alegreya Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.text-muted {
    color: var(--text-muted) !important;
}

.fsp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    background-color: var(--primary);
    color: var(--on-primary);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.fsp-btn:hover {
    background-color: var(--primary-hover);
}

.fsp-btn:active {
    background-color: var(--button_primary_active, #C63C5F);
}

.fsp-btn-alt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--primary);
    background-color: transparent;
    color: var(--primary-text);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fsp-btn-alt:hover {
    background-color: var(--primary);
    color: var(--on-primary);
}

.fsp-card {
    display: flex;
    flex-direction: column;
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.5rem;
    box-shadow: none;
    transition: transform 0.3s ease-out, border-color 0.3s ease-out;
}

@media (max-width: 640px) {
    .fsp-card {
        padding: 1.125rem;
    }
}

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

.fsp-card .fsp-btn,
.fsp-card .fsp-btn-alt {
    margin-top: auto;
}

.fsp-media {
    aspect-ratio: 16 / 9;
    border-radius: 4px;
    border: 1px solid var(--border);
    overflow: hidden;
    flex-shrink: 0;
}

.fsp-media img,
.fsp-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fsp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary-text);
    line-height: 1;
}

.fsp-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0.5rem 0 1rem 0;
}

@media (min-width: 768px) {
    .fsp-title {
        font-size: 2.5rem;
    }
}

.fsp-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background-color: var(--surface-alt);
    color: var(--accent-text);
    border: 1px solid var(--border);
}

.fsp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 9999px;
    background-color: var(--bg);
    border: 2px solid var(--primary);
    color: var(--primary);
    flex-shrink: 0;
}

.fsp-section {
    background-color: var(--bg);
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.fsp-section-alt {
    background-color: var(--section-alt-bg, var(--surface-alt));
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.fsp-section-dark {
    background-color: var(--dark-band-bg, var(--dark-band));
    color: var(--on-dark);
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

.fsp-section-brand {
    background-color: var(--brand-band-bg, var(--primary));
    color: var(--on-primary);
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
}

@media (min-width: 768px) {

    .fsp-section,
    .fsp-section-alt,
    .fsp-section-dark,
    .fsp-section-brand {
        padding-top: 5rem;
        padding-bottom: 5rem;
    }
}

.fsp-section-brand .fsp-btn {
    background-color: var(--brand-btn-bg, #111111);
    color: var(--brand-btn-text, #DC496D);
}

.fsp-section-brand .fsp-btn:hover {
    background-color: #1D0F13;
}

.fsp-section-brand .fsp-btn-alt {
    border-color: var(--on-primary);
    color: var(--on-primary);
}

.fsp-section-brand .fsp-btn-alt:hover {
    background-color: var(--on-primary);
    color: var(--primary);
}

.fsp-section-dark,
.fsp-on-dark {
    color: var(--on-dark);
}

.fsp-section-dark h1,
.fsp-section-dark h2,
.fsp-section-dark h3,
.fsp-section-dark h4,
.fsp-section-dark a,
.fsp-on-dark h1,
.fsp-on-dark h2,
.fsp-on-dark h3,
.fsp-on-dark h4,
.fsp-on-dark a {
    color: var(--on-dark);
}

.fsp-section-dark p,
.fsp-on-dark p {
    color: var(--on-dark-muted);
}

.fsp-section-dark .fsp-title,
.fsp-on-dark .fsp-title {
    color: var(--on-dark);
}

.fsp-section-dark .fsp-eyebrow,
.fsp-on-dark .fsp-eyebrow {
    color: var(--accent-text);
}

.fsp-section-dark .fsp-btn-alt,
.fsp-on-dark .fsp-btn-alt {
    border-color: var(--on-dark);
    color: var(--on-dark);
}

.fsp-section-dark .fsp-btn-alt:hover,
.fsp-on-dark .fsp-btn-alt:hover {
    background-color: var(--on-dark);
    color: var(--dark-band);
}

.fsp-section-dark .fsp-card,
.fsp-on-dark .fsp-card {
    background-color: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

.fsp-section-dark .fsp-card h1,
.fsp-section-dark .fsp-card h2,
.fsp-section-dark .fsp-card h3,
.fsp-section-dark .fsp-card h4,
.fsp-section-dark .fsp-card a,
.fsp-on-dark .fsp-card h1,
.fsp-on-dark .fsp-card h2,
.fsp-on-dark .fsp-card h3,
.fsp-on-dark .fsp-card h4,
.fsp-on-dark .fsp-card a {
    color: var(--text);
}

.fsp-section-dark .fsp-card p,
.fsp-on-dark .fsp-card p {
    color: var(--text-muted);
}

/* ===== header ===== */
.nimbus-header {
    width: 100%;
    box-sizing: border-box;
}

.nimbus-header a {
    text-decoration: none;
}

.nimbus-header .fsp-btn-alt:hover {
    color: #111111;
}

/* ===== hero_section ===== */
.nimbus-hero {
    position: relative;
    width: 100%;
}

.nimbus-hero .nimbus-hero__video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.nimbus-hero .nimbus-hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nimbus-hero .nimbus-hero__shard-panel {
    background-color: #110A0C;
}

@media (min-width: 768px) {
    .nimbus-hero .nimbus-hero__shard-panel {
        clip-path: polygon(0 0, 92% 0, 80% 100%, 0 100%);
    }
}

@media (max-width: 767px) {
    .nimbus-hero .nimbus-hero__shard-panel {
        width: 100%;
        background-color: rgba(17, 10, 12, 0.94);
        clip-path: none;
    }
}

/* ===== newsletter_subscription ===== */
.nimb-newsletter-section input::placeholder {
    color: #BFB0B4;
    opacity: 0.75;
}

.nimb-newsletter-section input:-ms-input-placeholder {
    color: #BFB0B4;
}

.nimb-newsletter-section input::-ms-input-placeholder {
    color: #BFB0B4;
}

.nimb-newsletter-card {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
}

/* ===== updated_articles ===== */
.updated-articles-block {
    background-color: var(--bg, #1D0F13);
    color: var(--text, #F2EEEF);
}

.updated-articles-block .updated-card {
    min-height: 100%;
}

@media (max-width: 767px) {
    .updated-articles-block .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== latest_publications ===== */
.nimbus-latest-pub {
    box-sizing: border-box;
}

.nimbus-latest-pub * {
    box-sizing: border-box;
}

.nimbus-latest-pub .nimbus-pub-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.nimbus-latest-pub .nimbus-pub-card:hover {
    border-color: var(--border);
    box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.7);
}

@media (max-width: 767px) {
    .nimbus-latest-pub .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ai_agent_reviews ===== */
#ai-agent-reviews-grid {
    background-color: var(--bg, #1D0F13);
    color: var(--text, #F2EEEF);
    overflow-wrap: anywhere
}

#ai-agent-reviews-grid .ai-reviews-card {
    border-color: var(--border, #433135);
    background-color: var(--surface, #2F191E);
    transition: transform .3s ease, border-color .3s ease
}

#ai-agent-reviews-grid .ai-reviews-card:hover {
    border-color: var(--primary, #DC496D)
}

#ai-agent-reviews-grid img {
    object-fit: cover
}

@media(max-width:767px) {
    #ai-agent-reviews-grid .grid {
        grid-template-columns: 1fr
    }
}

/* ===== development_tutorials ===== */
#development-tutorials-section {
    overflow: hidden;
}

#development-tutorials-section .fsp-card {
    height: 100%;
}

#development-tutorials-section .fsp-card h3 a {
    overflow-wrap: anywhere;
}

/* ===== ai_news_and_trends ===== */
.ai-news-trends-section {
    overflow-wrap: anywhere;
}

.ai-news-trends-section .ai-news-card {
    min-width: 0;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
}

@media (max-width: 767px) {
    .ai-news-trends-section .grid {
        grid-template-columns: 1fr;
    }
}

/* ===== footer ===== */
.site-footer .site-footer__pattern {
    background-image: radial-gradient(#433135 1px, transparent 1px);
    background-size: 12px 12px;
}

.site-footer .site-footer__link {
    text-decoration: none;
    outline: none;
}

.site-footer .site-footer__link:focus-visible {
    outline: 2px solid #DC496D;
    outline-offset: 2px;
    border-radius: 2px;
}

@media (max-width: 767px) {
    .site-footer .site-footer__container {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

.nimbus-header {
    width: 100%;
    box-sizing: border-box;
}

.nimbus-header a {
    text-decoration: none;
}

.nimbus-header .fsp-btn-alt:hover {
    color: #111111;
}

.nimbus-category-hero__ambient {
    background-image: radial-gradient(circle at 10% 20%, rgba(220, 73, 109, 0.08) 0%, transparent 60%);
}

.nimbus-news-section .nimbus-filter-chip {
    background-color: #271519;
    border-color: #433135;
    color: #BFB0B4;
    cursor: pointer;
}

.nimbus-news-section .nimbus-filter-chip:hover {
    border-color: #DC496D;
    color: #DC496D;
}

.nimbus-news-section .nimbus-filter-chip--active {
    background-color: #DC496D;
    border-color: #DC496D;
    color: #111111;
}

.nimbus-news-section .nimbus-filter-chip--active:hover {
    background-color: #E36B88;
    border-color: #E36B88;
    color: #111111;
}

.site-footer .site-footer__pattern {
    background-image: radial-gradient(#433135 1px, transparent 1px);
    background-size: 12px 12px;
}

.site-footer .site-footer__link {
    text-decoration: none;
    outline: none;
}

.site-footer .site-footer__link:focus-visible {
    outline: 2px solid #DC496D;
    outline-offset: 2px;
    border-radius: 2px;
}

@media (max-width: 767px) {
    .site-footer .site-footer__container {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}


/* ===== PAGE: about ===== */
.nimbus-about-section {
  position: relative;
  overflow-x: hidden;
}

.nimbus-about-section h2,
.nimbus-about-section h3 {
  overflow-wrap: anywhere;
}

.nimbus-about-section .js-tab-btn.active {
  background-color: #DC496D;
  color: #111111;
  border-color: #DC496D;
}

@media (max-width: 767px) {
  .nimbus-about-section .grid {
    grid-template-columns: 1fr;
  }
}

/* ===== PAGE: privacy ===== */
.privacy-content-block{overflow-wrap:anywhere;}.privacy-content-block .js-filter-btn:focus{outline:none;}.privacy-content-block .js-clause-item{transition:border-color 0.25s ease,opacity 0.25s ease;}.privacy-content-block .js-clause-item:hover{border-color:#DC496D;}

/* ===== PAGE: terms ===== */
.fsp-section { background-color: var(--bg, #1D0F13); }
.fsp-card { background-color: var(--surface, #2F191E); border: 1px solid var(--border, #433135); border-radius: 4px; }
.fsp-badge { font-family: 'Alegreya Sans', sans-serif; }
.js-nav-link.active { background-color: var(--surface-alt, #271519); color: var(--text, #F2EEEF); border-color: var(--primary, #DC496D); }
@media (max-width: 767px) {
  .fsp-section aside { position: static; }
}

/* ===== PAGE: disclaimer ===== */
.disclaimer-page { word-break: break-word; overflow-wrap: anywhere; } .disclaimer-page a { transition: color 150ms ease; }

.comment-item {
    position: relative;
    background-color: #2F191E;
    border: 1px solid #433135;
    border-radius: 4px;
}

.comment-item:hover {
    border-color: #DC496D;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #433135;
    background-color: #110A0C;
    display: block;
}

.comment-body {
    color: #BFB0B4;
    font-size: 0.875rem;
    line-height: 1.6;
    word-break: break-word;
}

.comment-btn {
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
    outline: none;
}

.comment-btn:focus-visible {
    outline: 2px solid #DC496D;
    outline-offset: 2px;
}

.reply-comment {
    background-color: #271519;
    border: 1px solid #433135;
    border-left: 3px solid #DC496D;
}

.reply-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid #433135;
    background-color: #110A0C;
    display: block;
}

.reply-connector-line {
    position: absolute;
    left: -24px;
    top: 22px;
    width: 20px;
    height: 1px;
    background-color: #433135;
}


/* ===== PAGE TEMPLATE: ai-agent-reviews-posts, development-tutorials-posts, ai-news-and-trends-posts ===== */
.nimbus-header {
    width: 100%;
    box-sizing: border-box;
}

.nimbus-header a {
    text-decoration: none;
}

.nimbus-header .fsp-btn-alt:hover {
    color: #111111;
}

.nimbus-hero {
    position: relative;
    width: 100%;
}

.nimbus-hero .nimbus-hero__video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.nimbus-hero .nimbus-hero__shard-panel {
    background-color: #110A0C;
}

@media (min-width: 768px) {
    .nimbus-hero .nimbus-hero__shard-panel {
        clip-path: polygon(0 0, 92% 0, 80% 100%, 0 100%);
    }
}

@media (max-width: 767px) {
    .nimbus-hero .nimbus-hero__shard-panel {
        width: 100%;
        background-color: rgba(17, 10, 12, 0.94);
        clip-path: none;
    }
}

.nimbus-heading-wrap {
    display: inline-block;
    margin-bottom: 0.75rem;
}

.nimbus-heading-accent {
    width: 38px;
    height: 3px;
    background-color: #DC496D;
    margin-top: 6px;
}

.site-footer .site-footer__pattern {
    background-image: radial-gradient(#433135 1px, transparent 1px);
    background-size: 12px 12px;
}

.site-footer .site-footer__link {
    text-decoration: none;
    outline: none;
}

.site-footer .site-footer__link:focus-visible {
    outline: 2px solid #DC496D;
    outline-offset: 2px;
    border-radius: 2px;
}

@media (max-width: 767px) {
    .site-footer .site-footer__container {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

/* mobile-text-guard */
@media (max-width: 767px) {
  h1, h2, h3, h4, h5, h6, p, li, dt, dd, blockquote, figcaption, td, th, label {
    overflow-wrap: anywhere;
  }
  a, button, .btn {
    overflow-wrap: anywhere;
    white-space: normal;
  }
  img, video, iframe {
    max-width: 100%;
  }
}

/* ===== tag strip: single scrollable row ===== */
.nimbus-tag-strip {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.nimbus-tag-strip::-webkit-scrollbar {
    display: none;
}

/* ===== footer: tighter bottom padding ===== */
.site-footer.fsp-section-dark {
    padding-bottom: 0;
}
.site-footer .site-footer__container {
    padding-bottom: 1.75rem;
}
