/* ══════════════════════════════════════════════════════════════
   CUSTOM PLUGIN DEVELOPMENT — SERVICE PAGE
   ══════════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #02060d;
  --bg-soft: #081225;
  --text: #e5edf8;
  --muted: #8a9bb5;
  --primary: #2a7df1;
  --primary-2: #16a8ff;
  --green: #22c55e;
  --purple: #a78bfa;
  --card: rgba(6, 14, 30, 0.75);
  --border: rgba(255, 255, 255, 0.06);
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

/* ── HERO ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 160px 0 80px;
  overflow: hidden;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(2, 6, 13, 0.88) 0%, rgba(2, 6, 13, 0.7) 50%, rgba(2, 6, 13, 0.95) 100%),
    url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.hero-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.15), transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.hero-content {
  max-width: 760px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s, transform 0.6s;
}

.hero-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}

.breadcrumb a { color: var(--muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--primary-2); }
.breadcrumb i { font-size: 10px; opacity: 0.5; }
.breadcrumb span { color: var(--purple); font-weight: 600; }

.hero h1 {
  font-family: "Sora", sans-serif;
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--purple), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 12px;
  max-width: 620px;
}

/* ── EXPANDABLE CONTENT & SEE MORE BUTTONS ───────────────────── */
.expand-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin 0.3s ease;
  margin-top: 0;
}

.expand-content.expanded {
  max-height: 600px;
  opacity: 1;
  margin-top: 8px;
}

.see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.25);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  margin: 8px 0 24px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
}

.see-more-btn:hover {
  background: linear-gradient(135deg, var(--purple), var(--primary));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(167, 139, 250, 0.35);
  transform: translateY(-2px);
}

.see-more-btn i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.see-more-btn.active i {
  transform: rotate(180deg);
}

.see-more-center {
  margin: 14px auto 0;
}

.cta-see-more {
  margin: 14px auto 28px;
}

/* Card Level Inline Expanders */
.card-expand-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.card-expand-content.expanded {
  max-height: 400px;
  opacity: 1;
  margin-top: 6px;
}

.card-see-more {
  background: none;
  border: none;
  color: var(--purple);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0 0 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  transition: color 0.2s ease;
}

.card-see-more:hover {
  color: var(--primary-2);
}

.card-see-more i {
  font-size: 11px;
  transition: transform 0.3s ease;
}

.card-see-more.active i {
  transform: rotate(180deg);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: linear-gradient(135deg, var(--purple), var(--primary));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(167, 139, 250, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(167, 139, 250, 0.08);
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat strong {
  font-family: "Sora", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.hero-stat span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* ── GENERIC SECTION ─────────────────────────────────────────────── */
.sec {
  padding: 80px 0;
  position: relative;
}

.sec-dark {
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(167, 139, 250, 0.05), transparent),
    var(--bg-soft);
}

.sec-head {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 48px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
}

.sec-head.visible {
  opacity: 1;
  transform: translateY(0);
}

.kicker {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--purple);
  margin-bottom: 12px;
  display: block;
}

.sec-head h2 {
  font-family: "Sora", sans-serif;
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
}

.sec-head h2 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--purple), var(--primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sec-head p,
.sec-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
}

.cta-desc {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  text-align: center;
  margin: 0 auto;
  max-width: 680px;
}

/* ── PLATFORMS GRID ────────────────────────────────────────────────── */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.platform-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.platform-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.platform-card:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 0 12px 40px rgba(167, 139, 250, 0.15);
}

.platform-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.15), rgba(42, 125, 241, 0.15));
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  position: relative;
}

.platform-icon::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--purple), var(--primary));
  border-radius: 16px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.platform-card:hover .platform-icon::after {
  opacity: 0.3;
}

.platform-icon i {
  font-size: 32px;
  color: var(--purple);
  transition: color 0.3s, transform 0.3s;
}

.platform-card:hover .platform-icon i {
  color: var(--primary-2);
  transform: scale(1.1);
}

.platform-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.platform-card > p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.platform-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.platform-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.platform-features i {
  font-size: 14px;
  color: var(--green);
  flex-shrink: 0;
}

/* ── FEATURES GRID ─────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(42, 125, 241, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(42, 125, 241, 0.1);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  transition: background 0.3s;
}

.feature-icon i {
  font-size: 24px;
  color: var(--primary-2);
  transition: color 0.3s;
}

.feature-card:hover .feature-icon {
  background: rgba(34, 197, 94, 0.12);
}

.feature-card:hover .feature-icon i {
  color: var(--green);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── TECH GRID ─────────────────────────────────────────────────────── */
.tech-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.tech-item:hover {
  border-color: rgba(167, 139, 250, 0.3);
  background: rgba(167, 139, 250, 0.06);
  transform: translateY(-2px);
}

.tech-item img {
  width: 26px;
  height: 26px;
}

.tech-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* ── PROCESS GRID ──────────────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.process-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s, border-color 0.3s;
}

.process-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.process-step:hover {
  border-color: rgba(167, 139, 250, 0.3);
}

.step-num {
  font-family: "Sora", sans-serif;
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.3), rgba(42, 125, 241, 0.2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  line-height: 1;
}

.process-step h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.process-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── WHY GRID ──────────────────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.why-card {
  display: flex;
  gap: 16px;
  padding: 28px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.3s, transform 0.3s;
  opacity: 0;
  transform: translateY(16px);
}

.why-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.why-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-3px);
}

.why-card > i {
  font-size: 22px;
  color: var(--purple);
  flex-shrink: 0;
  margin-top: 2px;
}

.why-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.why-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* ── USE CASE GRID ─────────────────────────────────────────────────── */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.usecase-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(20px);
}

.usecase-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.usecase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 139, 250, 0.3);
  box-shadow: 0 12px 40px rgba(167, 139, 250, 0.15);
}

.usecase-icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
}

.usecase-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.usecase-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

/* ── CTA BANNER ────────────────────────────────────────────────────── */
.cta-banner {
  padding: 80px 0;
  background:
    radial-gradient(600px 300px at 50% 50%, rgba(167, 139, 250, 0.08), transparent),
    var(--bg);
}

.cta-banner-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-banner h2 {
  font-family: "Sora", sans-serif;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-banner p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 32px;
}

.cta-banner-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── SCROLL REVEAL STAGGER ─────────────────────────────────────────── */
.platform-card:nth-child(1) { transition-delay: 0s; }
.platform-card:nth-child(2) { transition-delay: 0.08s; }
.platform-card:nth-child(3) { transition-delay: 0.16s; }
.platform-card:nth-child(4) { transition-delay: 0.24s; }
.platform-card:nth-child(5) { transition-delay: 0.32s; }
.platform-card:nth-child(6) { transition-delay: 0.4s; }

.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.08s; }
.feature-card:nth-child(3) { transition-delay: 0.16s; }
.feature-card:nth-child(4) { transition-delay: 0.24s; }
.feature-card:nth-child(5) { transition-delay: 0.32s; }
.feature-card:nth-child(6) { transition-delay: 0.4s; }

.process-step:nth-child(1) { transition-delay: 0s; }
.process-step:nth-child(2) { transition-delay: 0.08s; }
.process-step:nth-child(3) { transition-delay: 0.16s; }
.process-step:nth-child(4) { transition-delay: 0.24s; }
.process-step:nth-child(5) { transition-delay: 0.32s; }
.process-step:nth-child(6) { transition-delay: 0.4s; }

.usecase-card:nth-child(1) { transition-delay: 0s; }
.usecase-card:nth-child(2) { transition-delay: 0.08s; }
.usecase-card:nth-child(3) { transition-delay: 0.16s; }
.usecase-card:nth-child(4) { transition-delay: 0.24s; }
.usecase-card:nth-child(5) { transition-delay: 0.32s; }
.usecase-card:nth-child(6) { transition-delay: 0.4s; }

.why-card:nth-child(1) { transition-delay: 0s; }
.why-card:nth-child(2) { transition-delay: 0.06s; }
.why-card:nth-child(3) { transition-delay: 0.12s; }
.why-card:nth-child(4) { transition-delay: 0.18s; }
.why-card:nth-child(5) { transition-delay: 0.24s; }
.why-card:nth-child(6) { transition-delay: 0.3s; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .usecase-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero { padding: 130px 0 60px; }
  .hero h1 { font-size: clamp(30px, 7vw, 44px); }

  .sec { padding: 56px 0; }

  .platforms-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .usecase-grid { grid-template-columns: 1fr; }

  .hero-stats { gap: 24px; }
  .hero-stat strong { font-size: 24px; }

  .cta-banner { padding: 56px 0; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 32px); }
  .hero { padding: 120px 0 48px; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .hero-stats { 
    flex-direction: row; 
    gap: 20px; 
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .hero-stat {
    flex: 1;
    min-width: 100px;
    text-align: center;
  }
  .hero-stat strong {
    font-size: 24px;
  }
  .hero-stat span {
    font-size: 12px;
  }
  .cta-banner-actions { flex-direction: column; align-items: center; }
  .cta-banner-actions .btn-primary,
  .cta-banner-actions .btn-secondary { width: 100%; justify-content: center; }
}

/* Keep content visible without the expand toggles */
.expand-content,
.card-expand-content {
  max-height: none;
  opacity: 1;
  overflow: visible;
  margin-top: 8px;
}

.expand-content.expanded,
.card-expand-content.expanded {
  max-height: none;
  opacity: 1;
  margin-top: 8px;
}

.see-more-btn,
.card-see-more {
  display: none !important;
}