/* ==========================================================================
   Feature theme page — dedicated stylesheet
   Loaded only for layout: feature-theme
   Structure inspired by appwrite.io/products pages, adapted to Vertikl's
   light brand palette.
   ========================================================================== */

/* Hero */

.ftp-hero-band {
  position: relative;
  overflow: hidden;
  padding-top: 30px;
  padding-bottom: 56px;
  background: linear-gradient(180deg, #f4f8ff 0%, #eef4fd 55%, #ffffff 100%);
}

.features-page-v2.feature-theme-page {
  padding-top: 0;
}

body:has(.feature-theme-page):not(.header-past-hero) header {
  border-bottom-color: transparent;
}

body:has(.feature-theme-page):not(.header-past-hero) header::before {
  background-color: #f4f8ff;
}

.ftp-hero-band::before,
.ftp-hero-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.ftp-hero-band::before {
  width: 420px;
  height: 420px;
  top: -20px;
  right: 4%;
  background: radial-gradient(circle, rgba(0, 84, 166, 0.16) 0%, rgba(0, 84, 166, 0) 70%);
}

.ftp-hero-band::after {
  width: 320px;
  height: 320px;
  bottom: -20px;
  left: 2%;
  background: radial-gradient(circle, rgba(255, 106, 0, 0.13) 0%, rgba(255, 106, 0, 0) 70%);
}

.ftp-hero-band .container {
  position: relative;
  z-index: 1;
}

.ftp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  text-align: left;
  padding: 12px 0 8px;
}

.ftp-hero--centered {
  grid-template-columns: 1fr;
  text-align: center;
}

.ftp-hero--centered .ftp-hero-content {
  max-width: 720px;
  margin: 0 auto;
  align-items: center;
}

.ftp-hero--centered .ftp-hero-actions,
.ftp-hero--centered .ftp-hero-trust {
  justify-content: center;
}

.ftp-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ftp-hero .features-hero-title {
  text-align: left;
  margin: 16px 0 14px;
}

.ftp-hero-content > p {
  text-align: left;
  margin: 0;
}

.ftp-hero--centered .features-hero-title,
.ftp-hero--centered .ftp-hero-content > p {
  text-align: center;
}

.ftp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.ftp-hero-actions .primary-btn,
.ftp-hero-actions .secondary-btn {
  font-size: 16px;
  padding: 12px 22px;
}

.ftp-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ftp-hero-visual::before {
  content: "";
  position: absolute;
  top: 6%;
  right: -15%;
  bottom: -15%;
  left: -15%;
  background: radial-gradient(
    circle at 55% 45%,
    rgba(0, 84, 166, 0.28) 0%,
    rgba(0, 84, 166, 0.14) 35%,
    rgba(255, 106, 0, 0.16) 55%,
    rgba(255, 255, 255, 0) 75%
  );
  filter: blur(6px);
  z-index: -2;
  pointer-events: none;
}

.ftp-hero-visual::after {
  content: "";
  position: absolute;
  width: 62%;
  height: 55%;
  right: -6%;
  bottom: -10%;
  background: linear-gradient(140deg, #00305e 0%, #0054a6 55%, var(--orange) 145%);
  border-radius: 20px;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 95%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 95%);
  z-index: -1;
  pointer-events: none;
}

.ftp-hero-visual .ftp-item-frame {
  width: 100%;
  max-width: 480px;
  transform: rotate(-1.1deg);
}

/* Trust row under hero */

.ftp-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 24px;
}

.ftp-hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #3f4552;
}

.ftp-hero-trust-item img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Group sections */

.ftp-groups {
  margin-top: 32px;
}

.ftp-group {
  position: relative;
  padding: 52px 0;
  scroll-margin-top: 90px;
}

.ftp-group--tint {
  background: #f7f9fc;
}

.ftp-group + .ftp-group::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(680px, 80%);
  height: 1px;
  background: linear-gradient(90deg, rgba(215, 219, 227, 0) 0%, rgba(215, 219, 227, 0.9) 50%, rgba(215, 219, 227, 0) 100%);
}

.ftp-group-head {
  max-width: 640px;
  margin-bottom: 32px;
}

.ftp-group-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--new-blue);
  margin-bottom: 14px;
}

.ftp-group-tag::before {
  content: "";
  width: 20px;
  height: 2px;
  flex-shrink: 0;
  border-radius: 2px;
  background: var(--orange);
}

.ftp-group-head h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.ftp-group-head p {
  color: #5f6470;
  font-size: 16.5px;
  line-height: 1.5;
  margin: 0;
}

.ftp-new-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #89b4ff;
  color: #0f5fd7;
  background: #edf4ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 4px 8px;
  margin-top: 8px;
}

/* Primary items (showcase, with screenshot) */

.ftp-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ftp-items {
  gap: 72px;
}

.ftp-items + .ftp-table {
  margin-top: 56px;
}

.ftp-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 56px;
}

.ftp-item-media {
  order: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, #eaf1ff 0%, #f4eefc 100%);
  border: 1px solid #e3e9f7;
}

.ftp-item-body {
  order: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

.ftp-item--reverse .ftp-item-media {
  order: 2;
}

.ftp-item--reverse .ftp-item-body {
  order: 1;
}

.ftp-item-frame {
  position: relative;
  width: 100%;
  background: transparent;
}

.ftp-item-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.ftp-item-media .ftp-item-frame img {
  max-height: 300px;
  object-fit: contain;
}

.ftp-item-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ftp-item-heading h3 {
  margin: 0;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.ftp-item-body > p {
  color: #4b5262;
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
  max-width: 46ch;
}

.ftp-item-highlights {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 46ch;
}

.ftp-item-highlights li {
  position: relative;
  padding-left: 26px;
  color: #3f4552;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.ftp-item-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--blue-150);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='7' viewBox='0 0 9 7' fill='none'%3E%3Cpath d='M1 3.5L3.2 5.7L8 1' stroke='%23005CA9' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* Secondary items (compact colored table) */

.ftp-table {
  display: flex;
  flex-direction: column;
  border: 1px solid #e1e6ef;
  border-radius: 16px;
  overflow: hidden;
}

.ftp-table-row {
  display: grid;
  grid-template-columns: 40px 1fr 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  background: #fff;
  border-bottom: 1px solid #eceef2;
  transition: background-color 0.2s ease;
}

.ftp-table-row:last-child {
  border-bottom: none;
}

.ftp-table-row--tint {
  background: var(--blue-150);
}

.ftp-table-row:hover {
  background: #eaf1ff;
}

.ftp-table-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  color: var(--new-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.08);
}

.ftp-table-icon svg,
.ftp-table-icon .feature-icon-mask {
  width: 22px;
  height: 22px;
}

.ftp-table-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ftp-table-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ftp-table-heading h3 {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.ftp-table-text p {
  color: #5f6470;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.ftp-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 4px 8px;
  border: 1px solid transparent;
}

.ftp-tag--new {
  border-color: #89b4ff;
  color: #0f5fd7;
  background: #edf4ff;
}

.ftp-tag--popular {
  border-color: #ffcf86;
  color: #b5690a;
  background: #fff6e8;
}

.ftp-tag--advanced {
  border-color: #cbb9f5;
  color: #6b3fc7;
  background: #f4efff;
}

.ftp-tag--ai {
  border-color: #8fe0d0;
  color: #0d8a72;
  background: #e9fbf6;
}

.ftp-tag--api {
  border-color: #b8c2d1;
  color: #445064;
  background: #f2f4f7;
}

.ftp-tag--portal {
  border-color: #9fd6a9;
  color: #237a3a;
  background: #eafbee;
}

.ftp-table-why {
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid #e1e6ef;
}

.ftp-table-why p {
  font-size: 13px;
  line-height: 1.5;
  color: #4b5262;
  margin: 0;
}

.ftp-table-header {
  display: grid;
  grid-template-columns: 40px 1fr 1fr;
  align-items: center;
  gap: 18px;
  padding: 12px 24px;
  background: #f7f9fc;
  border-bottom: 1px solid #e1e6ef;
}

.ftp-table-header-feature {
  min-width: 0;
}

.ftp-table-header-feature,
.ftp-table-header-why {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #5f6470;
}

.ftp-table-header-why {
  min-width: 0;
  padding-left: 20px;
}

@media (max-width: 990px) {
  .ftp-table-row {
    grid-template-columns: 40px 1fr;
  }

  .ftp-table-why {
    display: none;
  }

  .ftp-table-header {
    display: none;
  }
}

/* CTA spacing (shared end-cta partial content) */

.feature-theme-cta {
  margin: 56px 0;
}

/* Related areas */

.ftp-related {
  margin-top: 0;
}

.ftp-related-panel {
  background: linear-gradient(155deg, var(--blue-150) 0%, #eef4fd 100%);
  border: 1px solid #e1e9f7;
  border-radius: 22px;
  padding: 40px;
}

.ftp-related-heading {
  margin-bottom: 26px;
}

.ftp-related-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--new-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.ftp-related-heading h2 {
  font-size: 28px;
  margin: 0;
}

.ftp-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ftp-related-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  background: #fff;
  border: 1px solid #e4e4e8;
  border-radius: 14px;
  padding: 16px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ftp-related-item:hover {
  transform: translateY(-2px);
  border-color: #cad9f3;
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.08);
}

.ftp-related-item-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #f1f1f1;
  color: #5f6470;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ftp-related-item-icon svg {
  width: 22px;
  height: 22px;
}

.ftp-related-item-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.ftp-related-item-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
}

.ftp-related-item-tagline {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ftp-related-item-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: auto;
  color: var(--gray-500);
  transition: transform 0.2s ease, color 0.2s ease;
}

.ftp-related-item:hover .ftp-related-item-arrow {
  transform: translateX(3px);
  color: var(--new-blue);
}

/* Responsive */

@media (max-width: 1024px) {
  .ftp-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ftp-hero-content {
    align-items: center;
    max-width: 640px;
    margin: 0 auto;
  }

  .ftp-hero .features-hero-title,
  .ftp-hero-content > p {
    text-align: center;
  }

  .ftp-hero-actions,
  .ftp-hero-trust {
    justify-content: center;
  }

  .ftp-hero-visual {
    margin-top: 32px;
  }

  .ftp-item-body {
    padding: 28px;
  }

  .ftp-item-media {
    padding: 24px;
  }

  .ftp-item-heading h3 {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .ftp-group {
    padding: 40px 0;
  }

  .ftp-group-head {
    margin-bottom: 24px;
  }

  .ftp-group-head h2 {
    font-size: 26px;
  }

  .ftp-group-head p {
    font-size: 16px;
  }

  .ftp-related-panel {
    padding: 26px 20px;
  }

  .ftp-related-grid {
    grid-template-columns: 1fr;
  }

  .ftp-table-row {
    padding: 16px 18px;
  }

  .ftp-item,
  .ftp-item--plain {
    grid-template-columns: 1fr;
  }

  .ftp-item-media,
  .ftp-item--reverse .ftp-item-media {
    order: 1;
    padding: 18px;
    border-radius: 18px;
  }

  .ftp-item-body,
  .ftp-item--reverse .ftp-item-body {
    order: 2;
  }

  .ftp-item-body {
    padding: 26px;
  }

  .ftp-item-heading h3 {
    font-size: 24px;
  }

  .ftp-item-body > p {
    font-size: 16px;
  }

  .ftp-item-highlights li {
    font-size: 14px;
  }
}
