/* ============================================
   Sonesse — Clean Stylesheet
   Replaces all WordPress/Salient theme CSS
   ============================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button, input, textarea { font: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; overflow-wrap: break-word; word-wrap: break-word; }
p { overflow-wrap: break-word; word-wrap: break-word; }

/* --- Custom Properties --- */
:root {
  /* Colors */
  --color-primary: #3b0980;
  --color-primary-light: #8C41F5;
  --color-primary-lighter: #873BF1;
  --color-primary-border: #b782ff;
  --color-accent: #6f11f2;
  --color-accent-light: #b38aee;
  --color-accent-bg: #F6F0FF;
  --color-accent-soft: #f5edff;
  --color-dark: #0d0f2c;
  --color-dark-bg: #090310;
  --color-dark-card: #1c0c30;
  --color-text: #323d47;
  --color-text-light: #4E5963;
  --color-text-muted: #d7d7d7;
  --color-text-footer: #c3c3c3;
  --color-border: #B7C1CB;
  --color-border-light: #D9D9D9;
  --color-border-card: #edeef4;
  --color-white: #ffffff;
  --color-black: #000000;

  /* Typography */
  --font-body: 'Open Sans', sans-serif;
  --font-heading: 'Inter Tight', sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --container-wide: 1400px;
  --container-padding: 40px;
  --header-height: 99px;
  --logo-height: 43px;

  /* Breakpoints (for reference — used in media queries below) */
  /* --bp-mobile: 690px; */
  /* --bp-tablet: 999px; */
  /* --bp-wide: 1340px; */
}

/* --- Typography --- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-text);
  background: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-dark);
}

h1 { font-size: clamp(28px, 5vw, 48px); line-height: 1.2; }
h2 { font-size: clamp(26px, 4.5vw, 44px); line-height: 1.2; }
h3 { font-size: clamp(20px, 3vw, 28px); line-height: 1.3; }
h6 { font-size: 15px; font-weight: 400; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* --- Layout --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 1340px) {
  .container { max-width: var(--container-wide); }
}

.section {
  padding: 90px 0;
}

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

.section__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

@media (min-width: 1340px) {
  .section__inner { max-width: var(--container-wide); }
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: 40px;
}

.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2-center { grid-template-columns: 1fr 1fr; align-items: center; }

@media (max-width: 999px) {
  .grid--2, .grid--3, .grid--2-center { grid-template-columns: 1fr; }
}

.grid--150 { gap: 75px; }

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: #05000a;
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: calc(100% - 80px);
  margin: 0 auto;
}

@media (min-width: 1340px) {
  .site-header__inner { max-width: var(--container-wide); }
}

.site-header__logo img {
  height: var(--logo-height);
  width: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.site-header__nav a {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--color-white);
  padding: 10px 20px;
  transition: opacity 0.2s;
}

.site-header__nav a:hover { opacity: 0.8; }

.header-spacer {
  height: var(--header-height);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 10001;
}

.menu-toggle__lines {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  position: relative;
  transition: background 0.3s;
}

.menu-toggle__lines::before,
.menu-toggle__lines::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  position: absolute;
  left: 0;
  transition: transform 0.3s;
}

.menu-toggle__lines::before { top: -7px; }
.menu-toggle__lines::after { top: 7px; }

.menu-toggle.is-active .menu-toggle__lines { background: transparent; }
.menu-toggle.is-active .menu-toggle__lines::before { transform: rotate(45deg); top: 0; }
.menu-toggle.is-active .menu-toggle__lines::after { transform: rotate(-45deg); top: 0; }

@media (max-width: 999px) {
  .site-header__nav { display: none; }
  .menu-toggle { display: block; }
}

/* Mobile overlay menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 0, 10, 0.97);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 30px;
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a {
  font-size: 30px;
  color: var(--color-white);
  text-align: center;
  padding: 10px 20px;
  transition: opacity 0.2s;
}

.mobile-menu a:hover { opacity: 0.8; }

/* --- Footer --- */
.site-footer {
  background: linear-gradient(to bottom, #000000, #1b1125);
  padding: 40px 0;
  color: var(--color-text-footer);
}

.site-footer__inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 1340px) {
  .site-footer__inner { max-width: var(--container-wide); }
}

.site-footer__divider {
  height: 1px;
  background: rgba(255,255,255,0.2);
  margin-bottom: 25px;
}

.site-footer__logo img {
  height: 44px;
  width: auto;
  margin-bottom: 25px;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer__copyright {
  font-size: 14px;
  color: var(--color-text-footer);
}

.site-footer__social a {
  display: inline-block;
  transition: opacity 0.2s;
}

.site-footer__social a:hover { opacity: 0.8; }

.site-footer__social img {
  width: 32px;
  height: 32px;
}

@media (max-width: 690px) {
  .site-footer__bottom { flex-direction: column; gap: 15px; align-items: flex-start; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  padding: 18px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
}

.btn:hover { opacity: 0.9; transform: translateY(-1px); }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border: 1px solid var(--color-primary-light);
  box-shadow: 0 -2px rgba(0,0,0,0.1) inset;
}

.btn--primary .btn__arrow {
  display: inline-block;
  transition: transform 0.2s;
}

.btn--primary:hover .btn__arrow { transform: translateX(4px); }

.btn--link {
  background: none;
  border: none;
  color: var(--color-primary-lighter);
  font-size: 15px;
  font-weight: 600;
  padding: 0;
  box-shadow: none;
}

.btn--link::after {
  content: '';
  width: 24px;
  height: 24px;
  background: url("/assets/2025/08/Div-framer-1xxrrc7.png") no-repeat center center;
  background-size: 100% auto;
  display: inline-block;
  margin-left: 8px;
  position: relative;
  top: 8px;
}

.btn--link:hover { box-shadow: none; opacity: 0.8; }

@media (max-width: 450px) {
  .btn--wide-mobile { width: 80%; margin-left: auto; margin-right: auto; display: flex; justify-content: center; }
}

/* --- Badge/Tag --- */
.badge {
  display: inline-block;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-text);
  border: 1px solid var(--color-primary-lighter);
  border-radius: 35px;
  padding: 8px 15px;
  margin-bottom: 20px;
}

.badge--purple {
  color: var(--color-primary-light);
}

/* --- Forms --- */
.form-group { margin-bottom: 0; }

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: inherit;
}

.form-input,
.form-textarea {
  width: 100%;
  height: 59px;
  padding: 12px 18px;
  border: 1px solid var(--color-border-light);
  border-radius: 15px;
  background: transparent;
  font-size: 16px;
  font-family: var(--font-body);
  margin-top: 14px;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary-light);
}

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

.form-submit {
  width: 100%;
  height: 59px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 15px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 14px;
}

.form-submit:hover { opacity: 0.9; }

/* --- Modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 20000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.is-open { display: flex; }

.modal {
  background: var(--color-white);
  border-radius: 32px;
  padding: 30px;
  max-width: 640px;
  width: 90%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal__close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--color-text);
  line-height: 1;
}

.modal__close:hover { opacity: 0.7; }

/* --- Tabs --- */
.tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 50px;
}

.tabs__nav--center { justify-content: center; }

.tabs__btn {
  display: inline-block;
  padding: 5px 15px;
  border: 1px solid rgba(135, 59, 241, 0.5);
  border-radius: 100px;
  background: transparent;
  color: var(--color-text);
  font-size: 16px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
}

.tabs__btn:hover { border-color: var(--color-primary-lighter); }

.tabs__btn.is-active {
  background: var(--color-accent-bg);
  border-color: var(--color-primary-lighter);
  font-weight: 600;
  font-size: 17px;
}

/* Pill style tabs (use-cases) */
.tabs__nav--pills .tabs__btn {
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.25);
  background: transparent;
  transition: all 0.25s ease;
}

.tabs__nav--pills .tabs__btn:hover {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.06);
}

.tabs__nav--pills .tabs__btn.is-active {
  background: rgba(255,255,255,0.12);
  border-color: var(--color-primary-lighter);
  color: var(--color-white);
  font-weight: 600;
  font-size: 16px;
}

.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; }

/* Tab panel content spacing */
.use-cases-tabs .tabs__panel {
  padding: 20px 0 0;
}

.use-cases-tabs .grid--2-center {
  gap: 60px;
  align-items: start;
}

.use-cases-tabs h2 {
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.2;
  margin-bottom: 20px;
}

.use-cases-tabs p {
  font-size: 17px;
  line-height: 1.7;
}

@media (max-width: 690px) {
  .tabs__nav { margin-bottom: 20px; }
  .tabs__btn { font-size: 14px; padding: 8px 14px; margin-bottom: 8px; }
  .tabs__nav--pills .tabs__btn { padding: 8px 16px; font-size: 14px; }
  .tabs__nav--pills .tabs__btn.is-active { font-size: 14px; }
  .use-cases-tabs .grid--2-center { gap: 30px; }
}

/* --- Video Lightbox --- */
.video-lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 30000;
  justify-content: center;
  align-items: center;
}

.video-lightbox-overlay.is-open { display: flex; }

.video-lightbox__inner {
  max-width: 900px;
  width: 90%;
  position: relative;
}

.video-lightbox__close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 30px;
  cursor: pointer;
}

.video-lightbox__video {
  width: 100%;
  border-radius: 8px;
}

/* --- Video Thumbnail --- */
.video-thumb {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.video-thumb__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.video-thumb:hover .video-thumb__play { transform: translate(-50%, -50%) scale(1.1); }

.video-thumb__play svg {
  width: 20px;
  height: 20px;
  fill: var(--color-white);
  margin-left: 3px;
}

/* --- Toggle / Accordion --- */
.accordion__item {
  border-bottom: 2px solid rgba(0,0,0,0.08);
}

.accordion__trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-dark);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.accordion__trigger:hover { color: var(--color-primary); }

.accordion__icon {
  width: 26px;
  height: 26px;
  position: relative;
  flex-shrink: 0;
}

.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  background: #888;
  transition: transform 0.3s;
}

.accordion__icon::before {
  top: 12px; left: 6px;
  width: 14px; height: 2px;
}

.accordion__icon::after {
  top: 6px; left: 12px;
  width: 2px; height: 14px;
}

.accordion__item.is-open .accordion__icon::after { transform: rotate(90deg); }

.accordion__content {
  display: none;
  padding: 0 0 30px;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.6;
}

.accordion__item.is-open .accordion__content { display: block; }

.light .accordion__item { border-color: rgba(255,255,255,0.2); }
.light .accordion__trigger { color: var(--color-white); }

/* --- Sections: Banner --- */
.banner-section {
  padding: 100px 0 110px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  text-align: center;
}

.banner-section .badge { margin-bottom: 25px; }

.banner-section__title {
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 20px;
}

.banner-section__subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  line-height: 1.5;
  color: var(--color-text);
  max-width: 100%;
  margin: 0 auto 20px;
}

/* Gradient text effect */
.gradient-text {
  background: linear-gradient(to bottom right, #6f11f2, #f2f0f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.gradient-text--reverse {
  background: linear-gradient(to top left, #6f11f2, #f2f0f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.text-dark { color: var(--color-dark); -webkit-text-fill-color: var(--color-dark); }

/* Platform logos row */
.platform-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto 0;
}

.platform-logos img {
  max-height: 99px;
  width: auto;
}

/* --- Section: Features / Left-Right --- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding: 80px 0 0;
}

.feature-block--reverse { direction: rtl; }
.feature-block--reverse > * { direction: ltr; }

.feature-block__image {
  background: var(--color-accent-soft);
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-block__image--stacked {
  padding: 58px 90px 59px;
  flex-direction: column;
  gap: 0;
}

.feature-block__image--stacked img:last-child {
  margin-top: -103px;
}

.feature-block__image--centered {
  padding: 70px 15px;
}

.feature-block__image--padded {
  padding: 40px 35px;
}

.feature-block__content h2 {
  margin-bottom: 15px;
}

.feature-block__content p {
  color: var(--color-text);
  margin-bottom: 15px;
}

@media (max-width: 999px) {
  .feature-block { grid-template-columns: 1fr; gap: 30px; padding: 30px 0 0; }
  .feature-block--reverse { direction: ltr; }
}

@media (max-width: 690px) {
  .feature-block__image--stacked { padding: 15px; }
  .feature-block__image--stacked img:last-child { margin-top: 0; }
}

/* --- Section: Benefits/Features Grid --- */
.benefits-section {
  padding: 70px 0 130px;
  background: linear-gradient(180deg, rgba(0,0,0,0.841) 16%, rgba(56,26,100,0.91) 43%, rgba(56,26,100,0.91) 80%, rgba(0,0,0,0.841) 100%);
  text-align: center;
}

.benefits-section .badge { margin-bottom: 25px; }

.benefits-section h2 {
  color: var(--color-white);
  margin-bottom: 50px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.benefit-card {
  background: rgba(28, 12, 48, 0.95);
  border: 1px solid var(--color-primary-border);
  border-radius: 16px;
  padding: 25px 38px;
  text-align: left;
}

.benefit-card__icon {
  margin-bottom: 10px;
}

.benefit-card__icon img {
  width: auto;
  height: auto;
}

.benefit-card h3 {
  color: var(--color-white);
  font-size: 22px;
  margin-bottom: 10px;
}

.benefit-card p {
  color: var(--color-text-muted);
  font-size: 16px;
}

@media (max-width: 999px) {
  .benefits-grid { grid-template-columns: 1fr; gap: 15px; }
  .benefits-section { padding: 40px 0 50px; }
}

/* --- Section: CTA --- */
.cta-section {
  padding: 30px 0 70px;
  text-align: center;
}

.cta-section h1,
.cta-section h2 {
  max-width: 85%;
  margin: 0 auto 20px;
}

@media (max-width: 690px) {
  .cta-section h1, .cta-section h2 { max-width: 100%; }
  .cta-section .btn { width: 230px; margin: 0 auto; display: flex; justify-content: center; }
}

/* --- Section: Dark with tabs (use-cases, marketplace) --- */
.dark-tabs-section {
  padding: 75px 0;
  border-radius: 20px;
  background: linear-gradient(to bottom, #090310, #391d62);
  color: var(--color-white);
}

.dark-tabs-section h2 { color: var(--color-white); }

.dark-tabs-section p { color: var(--color-text-muted); }

/* Use Cases tabs section */
.use-cases-tabs {
  margin: 0 20px;
  padding: 60px 40px 70px;
}

.use-cases-tabs .section__inner {
  max-width: 1100px;
}

/* Video thumbnail styling */
.video-thumb {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

.video-thumb img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.video-thumb:hover img {
  transform: scale(1.03);
}

.video-thumb__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  transition: all 0.3s ease;
}

.video-thumb:hover .video-thumb__play {
  background: rgba(139, 92, 246, 0.6);
  transform: translate(-50%, -50%) scale(1.1);
}

/* --- Marketplace: Agent Cards --- */
.agent-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.agent-card {
  border: 1px solid var(--color-border);
  border-radius: 13px;
  padding: 30px 20px 30px 30px;
  background: var(--color-white);
  text-align: left;
}

.agent-card__logo {
  max-width: 115px;
  height: auto;
  margin-bottom: 15px;
}

.agent-card__desc {
  color: var(--color-text-light);
  font-size: 15px;
  margin-bottom: 10px;
}

.agent-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 15px;
}

.agent-card__tag {
  display: inline-block;
  border: 1px solid var(--color-border);
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 13px;
  color: var(--color-text-light);
}

@media (max-width: 999px) {
  .agent-cards { grid-template-columns: 1fr; }
}

/* --- On-Premise: Feature cards with borders --- */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.feature-card-bordered {
  border: 2px solid var(--color-primary-border);
  border-radius: 34px;
  padding: 70px 80px;
  text-align: left;
}

.feature-card-bordered h3 { margin-bottom: 15px; }

.feature-card-bordered p {
  color: var(--color-text);
  margin-bottom: 15px;
}

@media (max-width: 999px) {
  .feature-cards { grid-template-columns: 1fr; gap: 15px; }
  .feature-card-bordered { padding: 40px 20px; }
}

/* --- Demo page --- */
.demo-section {
  padding: 80px 0 30px;
  background: #0a0a0a;
}

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

.demo-info h6 { color: var(--color-primary-light); margin-bottom: 10px; }
.demo-info h2 { color: #f5f5f5; margin-bottom: 15px; }
.demo-info p { color: var(--color-text-muted); margin-bottom: 20px; }

.demo-info .checklist {
  list-style: none;
  padding: 0;
}

.demo-info .checklist li {
  color: var(--color-text-muted);
  padding: 8px 0;
  padding-left: 30px;
  position: relative;
  font-size: 17px;
}

.demo-info .checklist li::before {
  content: '\2713';
  color: var(--color-primary-light);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.demo-form-card {
  background: var(--color-white);
  border-radius: 32px;
  padding: 30px;
  color: var(--color-black);
}

@media (max-width: 999px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-info { padding-bottom: 25px; }
}

/* --- Fancy unordered list --- */
.fancy-list { list-style: none; padding: 0; }
.fancy-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
}
.fancy-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-primary-light);
  font-weight: 700;
}

/* --- Bottom boxes list (two columns) --- */
.list-2col {
  column-count: 2;
  column-gap: 100px;
}

.list-2col li { margin-bottom: 12px; text-align: left; }

@media (max-width: 690px) {
  .list-2col { column-count: 1; }
}

/* --- Scroll to top --- */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.2s;
}

.scroll-to-top.is-visible { display: flex; }
.scroll-to-top:hover { opacity: 0.8; }

/* --- Utilities --- */
.sr-only {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: var(--color-white); }
.text-muted { color: var(--color-text-muted); }
.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mt-20 { margin-top: 20px; }

/* --- Responsive --- */
@media (max-width: 999px) {
  /* Centre images on mobile */
  img { margin-left: auto; margin-right: auto; }
  .feature-block__image { justify-content: center; }
  .feature-block__image img { margin-left: auto; margin-right: auto; }
  .grid img { margin-left: auto; margin-right: auto; }
  .use-cases-tabs img { margin-left: auto; margin-right: auto; }
  .text-center img { margin-left: auto; margin-right: auto; }
}

@media (max-width: 690px) {
  .banner-section { padding: 60px 0 50px; }
  .section { padding: 40px 0; }
  .site-header__inner { max-width: calc(100% - 40px); }
  .platform-logos img { max-width: 80%; height: auto; }
  .btn { font-size: 16px; padding: 14px 20px; }
  .cta-section h1, .cta-section h2 { max-width: 100%; }
}

@media (max-width: 420px) {
  .section__inner { padding: 0 16px; }
  .banner-section .section__inner { padding: 0 16px; }
  .use-cases-tabs { margin: 0 10px; padding: 40px 16px 50px; }
  .feature-card-bordered { padding: 30px 16px; }
}

/* Hide forced <br> on small screens so text reflows naturally */
@media (max-width: 690px) {
  h1 br, h2 br, h3 br, p br { display: none; }
}

/* ============================================
   Blog Styles
   ============================================ */

/* --- Blog Index: Filter Bar --- */
.blog-filter {
  padding: 0 0 10px;
}

.blog-filter__nav {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.blog-filter__btn {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  background: transparent;
  color: var(--color-text);
  font-size: 15px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s;
}

.blog-filter__btn:hover {
  border-color: var(--color-primary-lighter);
  color: var(--color-primary);
}

.blog-filter__btn.is-active {
  background: var(--color-accent-bg);
  border-color: var(--color-primary-lighter);
  color: var(--color-primary);
  font-weight: 600;
}

/* --- Blog Index: Post Grid --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 999px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* --- Blog Card --- */
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border-card);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.25s ease;
  background: var(--color-white);
}

.blog-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-3px);
  border-color: var(--color-primary-border);
}

.blog-card__image {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.04);
}

.blog-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.blog-card__category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-primary);
  background: var(--color-accent-bg);
  padding: 3px 10px;
  border-radius: 4px;
}

.blog-card__date {
  font-size: 13px;
  color: var(--color-text-light);
}

.blog-card__title {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.blog-card__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-light);
  flex: 1;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  transition: color 0.2s;
}

.blog-card:hover .blog-card__read-more { color: var(--color-accent); }

/* --- Blog Post: Hero --- */
.blog-hero {
  padding: 50px 0 30px;
}

.blog-hero__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-primary);
  margin-bottom: 25px;
  transition: opacity 0.2s;
}

.blog-hero__back:hover { opacity: 0.7; }

.blog-hero__meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.blog-hero__category {
  font-size: 13px;
  padding: 5px 12px;
}

.blog-hero__date, .blog-hero__read-time {
  font-size: 14px;
  color: var(--color-text-light);
}

.blog-hero__title {
  font-size: 42px;
  line-height: 52px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.blog-hero__excerpt {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.blog-hero__author-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-dark);
}

/* --- Blog Post: Featured Image --- */
.blog-featured-image {
  padding: 0 0 40px;
}

.blog-featured-image__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-featured-image__inner img {
  width: 100%;
  border-radius: 16px;
  background: var(--color-accent-soft);
}

/* --- Blog Post: Two-Column Layout --- */
.blog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

@media (max-width: 999px) {
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* --- Blog Sidebar --- */
.blog-sidebar__sticky {
  position: sticky;
  top: 120px;
}

@media (max-width: 999px) {
  .blog-sidebar { display: none; }
}

.blog-sidebar__section {
  margin-bottom: 30px;
}

.blog-sidebar__heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

/* TOC */
.blog-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.blog-toc__item {
  margin-bottom: 6px;
}

.blog-toc__item--sub {
  padding-left: 14px;
}

.blog-toc__link {
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-light);
  transition: color 0.2s;
  display: block;
  padding: 3px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
}

.blog-toc__link:hover { color: var(--color-primary); }

.blog-toc__link.is-active {
  color: var(--color-primary);
  border-left-color: var(--color-primary);
  font-weight: 600;
}

/* Related */
.blog-sidebar__related-item {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-card);
  transition: color 0.2s;
}

.blog-sidebar__related-item:hover { color: var(--color-primary); }

/* --- Blog Content (Rich Text) --- */
.blog-content {
  max-width: 760px;
}

.blog-content h2 {
  font-size: 28px;
  line-height: 36px;
  margin: 40px 0 16px;
  color: var(--color-dark);
}

.blog-content h3 {
  font-size: 22px;
  line-height: 30px;
  margin: 30px 0 12px;
  color: var(--color-dark);
}

.blog-content p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 20px;
}

.blog-content ul, .blog-content ol {
  margin: 0 0 20px 24px;
  padding: 0;
}

.blog-content ul { list-style: disc; }
.blog-content ol { list-style: decimal; }

.blog-content li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 8px;
}

.blog-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

.blog-content img {
  width: 100%;
  border-radius: 12px;
  margin: 20px 0;
}

.blog-content blockquote {
  border-left: 3px solid var(--color-primary-lighter);
  padding: 12px 20px;
  margin: 20px 0;
  background: var(--color-accent-soft);
  border-radius: 0 8px 8px 0;
}

.blog-content blockquote p {
  font-size: 16px;
  color: var(--color-text);
  margin-bottom: 0;
}

/* Code blocks */
.blog-content pre {
  background: #1a1a2e;
  color: #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.7;
}

.blog-content code {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 14px;
}

.blog-content p code {
  background: var(--color-accent-soft);
  color: var(--color-primary);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 15px;
}

/* --- Blog CTA Section --- */
.blog-cta {
  background: linear-gradient(135deg, #090310 0%, #1a0a2e 40%, #391d62 100%);
  padding: 70px 20px;
  text-align: center;
  border-radius: 20px;
  margin: 0 20px 60px;
}

.blog-cta__inner {
  max-width: 600px;
  margin: 0 auto;
}

.blog-cta h2 {
  color: var(--color-white);
  font-size: 36px;
  margin-bottom: 12px;
}

.blog-cta p {
  color: var(--color-text-muted);
  font-size: 17px;
  margin-bottom: 25px;
}

/* --- Blog Responsive --- */
@media (max-width: 690px) {
  .blog-hero__title { font-size: 30px; line-height: 38px; }
  .blog-hero__excerpt { font-size: 16px; }
  .blog-content h2 { font-size: 24px; line-height: 32px; }
  .blog-content pre { padding: 16px; font-size: 13px; }
  .blog-cta { margin: 0 10px 40px; padding: 50px 20px; }
  .blog-cta h2 { font-size: 28px; }
  .blog-filter__nav { justify-content: flex-start; }
}
