/* ==========================================================================
   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) header {
  border-bottom-color: transparent;
}

body:has(.feature-theme-page) 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;
  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-grid {
  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%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1e6ef;
  box-shadow: 0 14px 30px rgba(17, 17, 17, 0.09);
}

.ftp-item-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f4f6fa;
  border-bottom: 1px solid #e6eaf2;
}

.ftp-item-frame-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d8dce5;
}

.ftp-item-frame-bar span:first-child {
  background: var(--orange);
  opacity: 0.55;
}

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

.ftp-zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}

.ftp-zoom img {
  display: block;
  width: 100%;
  max-height: 300px;
  height: auto;
  object-fit: contain;
  background: #fff;
  transition: filter 0.2s ease;
}

.ftp-zoom:hover img {
  filter: brightness(0.92);
}

.ftp-zoom:focus-visible {
  outline: 2px solid #002f6c;
  outline-offset: -2px;
}

.ftp-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: rgba(11, 11, 11, 0.72);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ftp-zoom-icon svg {
  width: 24px;
  height: 24px;
}

.ftp-zoom:hover .ftp-zoom-icon,
.ftp-zoom:focus-visible .ftp-zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

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

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

.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 grid) */

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

.ftp-grid-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #fafbfc;
  border: 1px solid #eceef2;
  border-radius: 14px;
  padding: 24px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.ftp-grid-card:hover {
  background: #fff;
  border-color: #d7dbe3;
}

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

.ftp-grid-card-heading h3 {
  font-size: 16.5px;
  line-height: 1.3;
  margin: 0;
}

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

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

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

/* Related areas */

.ftp-related {
  margin-top: 40px;
}

.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-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .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-grid {
    grid-template-columns: 1fr;
  }

  .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;
  }
}
