/* ==========================================================================
   TABLE OF CONTENTS
   1. Resets & Root Variables
   2. Global Typography & Layout
   3. Global Components (Badges, Buttons)
   4. Section 1 - Features (#cpanel-features)
   5. Section 2 - Use Cases (#cpanel-use-cases)
   6. Section 3 - Ecosystem (#cpanel-ecosystem)
   7. Section 4 - FAQ (#cpanel-faq)
   8. Section 5 - CTA (#cpanel-cta)
   ========================================================================== */

/* ══════════════════════════════════════════════════════════════════════════
   1. RESETS & ROOT VARIABLES
   ══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

:root {
  /* Colors */
  --navy:       #02073e;
  --navy-mid:   #060d52;
  --red:        #ff5533;
  --red-light:  #fff0ed;
  --red-mid:    #ffe1da;
  --red-dark:   #c93a1f;
  --white:      #ffffff;
  --slate:      #f4f6fb;
  --text-main:  #02073e;
  --text-muted: #637089;
  --border:     #e8ecf5;
  
  /* Typography */
  --font-display: 'Poppins', sans-serif;
  --font-body:    'Poppins', sans-serif;
}

/* ══════════════════════════════════════════════════════════════════════════
   2. GLOBAL TYPOGRAPHY & LAYOUT
   ══════════════════════════════════════════════════════════════════════════ */
body {
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   3. GLOBAL COMPONENTS
   ══════════════════════════════════════════════════════════════════════════ */
/* Section Badge */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red-light);
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  margin-bottom: 1.1rem;
}

.section-badge::before {
  content: '';
  display: block;
  width: 6px; 
  height: 6px;
  background: var(--red);
  border-radius: 50%;
}

/* Buttons */
.btn-primary {
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 24px rgba(255, 85, 51, 0.35);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 85, 51, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.25s ease, transform 0.25s ease;
}

.btn-secondary:hover { 
  background: rgba(255, 255, 255, 0.13); 
  transform: translateY(-2px); 
}

/* ══════════════════════════════════════════════════════════════════════════
   4. SECTION 1 — FEATURES
   ══════════════════════════════════════════════════════════════════════════ */
#cpanel-features {
  background: var(--navy);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

/* Corner grid decoration */
#cpanel-features::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 480px; height: 480px;
  background-image:
    linear-gradient(rgba(255, 85, 51, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 85, 51, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 100% 0%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 60% 60% at 100% 0%, black 30%, transparent 100%);
}

/* Glow blob */
#cpanel-features::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -80px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255, 85, 51, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

/* Headers */
#cpanel-features .feat-head {
  text-align: center;
  margin-bottom: 4rem;
  position: relative; 
  z-index: 1;
}

#cpanel-features .feat-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

#cpanel-features .feat-head h2 em {
  font-style: normal;
  color: var(--red);
}

#cpanel-features .feat-head p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Feature Grid */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5px;
  border: 1.5px solid rgba(255, 85, 51, 0.18);
  border-radius: 16px;
  overflow: hidden;
  position: relative; 
  z-index: 1;
}

/* Feature Cards */
.feat-card {
  background: rgba(255, 255, 255, 0.03);
  padding: 2.5rem 2rem;
  position: relative;
  transition: background 0.35s ease;
  cursor: default;
  overflow: hidden;
}

.feat-card:not(:last-child) {
  border-right: 1.5px solid rgba(255, 85, 51, 0.12);
}

.feat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 85, 51, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.feat-card:hover { 
  background: rgba(255, 85, 51, 0.06); 
}

.feat-card:hover::before { 
  opacity: 1; 
}

/* Feature Card Typography & Elements */
.feat-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgb(167 167 167 / 50%);
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.04em;
  transition: color 0.35s ease;
}

.feat-card:hover .feat-num { 
  color: rgba(255, 85, 51, 0.22); 
}

.feat-icon {
  width: 44px; height: 44px;
  background: var(--red-light);
  border-radius: 10px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 1.1rem;
  color: var(--red);
  margin-bottom: 1.25rem;
  position: relative; 
  z-index: 1;
  transition: background 0.35s ease, transform 0.35s ease;
}

.feat-card:hover .feat-icon {
  background: var(--red);
  color: #fff;
  transform: scale(1.08) rotate(-4deg);
}

.feat-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.6rem;
  position: relative; 
  z-index: 1;
}

.feat-card p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.7;
  position: relative; 
  z-index: 1;
}

@media (max-width: 900px) {
  .feat-card:not(:last-child) { 
    border-right: none; 
    border-bottom: 1.5px solid rgba(255, 85, 51, 0.12); 
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   5. SECTION 2 — USE CASES
   ══════════════════════════════════════════════════════════════════════════ */
#cpanel-use-cases {
  background: var(--white);
  padding: 6rem 0;
  position: relative;
}

#cpanel-use-cases .uc-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  margin-bottom: 4rem;
}

#cpanel-use-cases .uc-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

#cpanel-use-cases .uc-head h2 span { 
  color: var(--red); 
}

#cpanel-use-cases .uc-head p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  align-self: end;
}

.uc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.uc-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.uc-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px; height: 0;
  background: var(--red);
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0 2px 2px 0;
}

.uc-card:hover { 
  border-color: transparent; 
  transform: translateY(-4px); 
  box-shadow: 0 24px 48px rgba(2, 7, 62, 0.10); 
}

.uc-card:hover::after { 
  height: 100%; 
}

.uc-top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.uc-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--red-light);
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 1.3rem;
  color: var(--red);
  flex-shrink: 0;
  transition: background 0.3s ease, color 0.3s ease;
}

.uc-card:hover .uc-icon { 
  background: var(--red); 
  color: #fff; 
}

.uc-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.uc-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.72;
}

.uc-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-light);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 768px) {
  #cpanel-use-cases .uc-head { grid-template-columns: 1fr; }
  .uc-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════════════════
   6. SECTION 3 — ECOSYSTEM
   ══════════════════════════════════════════════════════════════════════════ */
#cpanel-ecosystem {
  background: var(--slate);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

#cpanel-ecosystem::before {
  content: '';
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(255, 85, 51, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

#cpanel-ecosystem .eco-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

#cpanel-ecosystem .eco-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
}

#cpanel-ecosystem .eco-head p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.75;
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.eco-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.25rem 1.75rem;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
  cursor: default;
}

.eco-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.eco-card:hover {
  border-color: rgba(255, 85, 51, 0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(2, 7, 62, 0.09);
}

.eco-card:hover::before { 
  transform: scaleX(1); 
}

.eco-logo {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--red-light);
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 1.7rem;
  color: var(--red);
  margin: 0 auto 1.25rem;
  transition: background 0.35s ease, transform 0.35s ease;
}

.eco-card:hover .eco-logo {
  background: var(--navy);
  color: var(--red);
  transform: scale(1.08);
}

.eco-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.eco-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════════════════
   7. SECTION 4 — FAQ
   ══════════════════════════════════════════════════════════════════════════ */
#cpanel-faq {
  background: var(--white);
  padding: 6rem 0;
}

#cpanel-faq .faq-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

#cpanel-faq .faq-left h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
}

#cpanel-faq .faq-left p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.faq-support-box p {
    color: white !important;
    margin-bottom: 10px !important;
    font-size: 0.88rem !important;
}

.faq-support-box {
  background: var(--navy);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-support-box a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  align-self: flex-start;
  transition: background 0.2s ease, transform 0.2s ease;
}

.faq-support-box a:hover { 
  background: var(--red-dark); 
  transform: translateY(-1px); 
}

.faq-list { 
  display: flex; 
  flex-direction: column; 
  gap: 0.75rem; 
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item[open] { 
  border-color: rgba(255, 85, 51, 0.3); 
}

.faq-item summary {
  padding: 1.3rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.2s ease;
}

.faq-item summary::-webkit-details-marker { 
  display: none; 
}

.faq-item summary:hover { 
  background: var(--slate); 
}

.faq-arrow {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
  display: flex; 
  align-items: center; 
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: background 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item[open] .faq-arrow { 
  background: var(--red); 
  color: #fff; 
  transform: rotate(45deg); 
}

.faq-body {
  padding: 0 1.5rem 1.3rem;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.75;
  animation: expandIn 0.3s ease;
}

@keyframes expandIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  #cpanel-faq .faq-layout { 
    grid-template-columns: 1fr; 
    gap: 2.5rem; 
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   8. SECTION 5 — CTA
   ══════════════════════════════════════════════════════════════════════════ */
#cpanel-cta {
  background: var(--slate);
  padding: 5rem 0 6rem;
}

.cta-inner {
  background: var(--navy);
  border-radius: 24px;
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative stripes top-right */
.cta-inner::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 280px; height: 280px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255, 85, 51, 0.07) 0px,
    rgba(255, 85, 51, 0.07) 2px,
    transparent 2px,
    transparent 14px
  );
  border-radius: 50%;
}

/* Glow */
.cta-inner::after {
  content: '';
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(255, 85, 51, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.cta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 85, 51, 0.15);
  color: #ff8866;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  position: relative; 
  z-index: 1;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  position: relative; 
  z-index: 1;
}

.cta-inner h2 span { 
  color: var(--red); 
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  position: relative; 
  z-index: 1;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative; 
  z-index: 1;
}

/* Stat strip above CTA */
.cta-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  position: relative; 
  z-index: 1;
}

.cta-stat { 
  text-align: center; 
}

.cta-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.cta-stat strong em {
  font-style: normal;
  color: var(--red);
}

.cta-stat span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cta-divider {
  width: 1px; height: 48px;
  background: rgba(255, 255, 255, 0.1);
  align-self: center;
}

@media (max-width: 640px) {
  .cta-divider { display: none; }
  .cta-inner { padding: 3rem 1.5rem; }
}