:root {
  --sp-primary: #2F76D2;
  --sp-primary-dark: #1B3C6B;
  --sp-primary-light: #4A90E2;
  --sp-bg: #0B0F1A;
  --sp-bg-soft: #111827;
  --sp-card: rgba(255, 255, 255, 0.06);
  --sp-card-border: rgba(255, 255, 255, 0.12);
  --sp-text: #E5ECF6;
  --sp-muted: #9FB0C7;
  --sp-heading: #FFFFFF;
  --sp-white: #FFFFFF;
  --sp-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --sp-shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.22);
  --sp-radius: 22px;
  --sp-transition: 0.3s ease;
}

/* LIGHT THEME */
body.light {
  --sp-bg: #F8FAFC;
  --sp-bg-soft: #FFFFFF;
  --sp-card: #FFFFFF;
  --sp-card-border: #E6ECF5;
  --sp-text: #0F172A;
  --sp-muted: #64748B;
  --sp-heading: #0F172A;
  --sp-white: #FFFFFF;
  --sp-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --sp-shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body, .glass-card, .hero-panel, .btn, .navbar, .nav-link {
  transition:
    background-color var(--sp-transition),
    color var(--sp-transition),
    border-color var(--sp-transition),
    box-shadow var(--sp-transition),
    transform var(--sp-transition);
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--sp-text);
  background:
    radial-gradient(circle at top left, rgba(74,144,226,0.22), transparent 32%),
    radial-gradient(circle at top right, rgba(47,118,210,0.18), transparent 28%),
    linear-gradient(180deg, #0b0f1a 0%, #0d1220 100%);
}

body.light {
  background:
    radial-gradient(circle at top left, rgba(74,144,226,0.05), transparent 40%),
    radial-gradient(circle at top right, rgba(47,118,210,0.04), transparent 40%),
    #ffffff;
}

/* NAVBAR */
.navbar {
  backdrop-filter: blur(16px);
  background: rgba(11, 15, 26, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.light .navbar {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--sp-card-border);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--sp-heading) !important;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 10px 28px rgba(47, 118, 210, 0.25);
}

.nav-link {
  color: var(--sp-muted) !important;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sp-primary) !important;
  transform: translateY(-1px);
}

/* NAVBAR TOGGLER */
.navbar-toggler.custom-toggler {
  width: 46px;
  height: 46px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  margin-left: 12px;
}

.navbar-toggler.custom-toggler:focus {
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.18);
}

.navbar-toggler.custom-toggler span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  border-radius: 999px;
  background: #FFFFFF;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.navbar-toggler.custom-toggler.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler.custom-toggler.open span:nth-child(2) { opacity: 0; }
.navbar-toggler.custom-toggler.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.light .navbar-toggler.custom-toggler {
  background: #FFFFFF;
  border: 1px solid #E6ECF5;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

body.light .navbar-toggler.custom-toggler span {
  background: #0F172A;
}

.navbar-toggler.custom-toggler:hover {
  transform: scale(1.05);
  background: rgba(255,255,255,0.1);
}

body.light .navbar-toggler.custom-toggler:hover {
  background: #f1f5f9;
}

/* BUTTONS */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--sp-primary), var(--sp-primary-light));
  border: none;
  color: white;
  padding: 0.9rem 1.35rem;
  border-radius: 14px;
  font-weight: 600;
  box-shadow: 0 16px 30px rgba(47, 118, 210, 0.25);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  justify-content: center;
}

.btn-primary-custom:hover {
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(47, 118, 210, 0.32);
}

.btn-outline-custom {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--sp-white);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.9rem 1.35rem;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  justify-content: center;
}

.btn-outline-custom:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--sp-white);
}

body.light .btn-outline-custom {
  border: 1px solid #CBD5E1;
  color: var(--sp-text);
  background: #fff;
}

body.light .btn-outline-custom:hover {
  background: #F1F5F9;
  color: var(--sp-text);
}

/* LAYOUT */
.section {
  padding: 100px 0;
  position: relative;
}

.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero.is-home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
}

/* BADGES */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--sp-muted);
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}

body.light .hero-badge {
  background: rgba(47, 118, 210, 0.06);
  border: 1px solid rgba(47, 118, 210, 0.12);
}

/* TYPOGRAPHY */
.hero-title {
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 800;
  color: var(--sp-heading);
  margin-bottom: 1.2rem;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff, #8BB8FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

body.light .gradient-text {
  background: linear-gradient(135deg, #2F76D2, #6EA8FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero-subtitle,
.section-subtitle {
  font-size: 1.1rem;
  color: var(--sp-muted);
  max-width: 760px;
  line-height: 1.8;
}

.section-label {
  color: #8BB8FF;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

body.light .section-label {
  color: var(--sp-primary);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--sp-heading);
  margin-bottom: 1rem;
}

/* PANELS / CARDS */
.hero-panel,
.glass-card {
  background: var(--sp-card);
  border: 1px solid var(--sp-card-border);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow);
  backdrop-filter: blur(18px);
  height: 100%;
}

body.light .hero-panel,
body.light .glass-card {
  backdrop-filter: none;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.hero-panel {
  padding: 1.25rem;
}

.glass-card:hover,
.hero-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

body:not(.light) .glass-card {
  backdrop-filter: blur(20px);
}

body:not(.light) .glass-card:hover,
body:not(.light) .hero-panel:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  border-color: rgba(139, 184, 255, 0.25);
}

.hero-stat {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  height: 100%;
}

body.light .hero-stat {
  background: #F8FAFC;
  border: 1px solid #E6ECF5;
}

.hero-stat h3 {
  color: var(--sp-heading);
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.metric-number,
.stat-number,
.overview-number {
  color: var(--sp-heading);
  font-weight: 800;
  margin-bottom: 0.25rem;
  font-size: 2rem;
}

.feature-card, .product-card, .pillar-card, .tech-card, .contact-card,
.metric-card, .content-card, .timeline-card, .stat-card, .overview-card,
.form-card, .info-card {
  padding: 1.6rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.icon-wrap {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(47, 118, 210, 0.18), rgba(74, 144, 226, 0.28));
  color: #BCD7FF;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
  border: 1px solid rgba(139, 184, 255, 0.16);
}

body.light .icon-wrap {
  color: var(--sp-primary);
  background: linear-gradient(135deg, rgba(47, 118, 210, 0.08), rgba(74, 144, 226, 0.16));
  border: 1px solid rgba(47, 118, 210, 0.12);
}

.card-title-custom {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--sp-heading);
  margin-bottom: 0.7rem;
}

.card-text-custom,
.product-desc {
  color: var(--sp-muted);
  line-height: 1.75;
  margin-bottom: 0;
}

.product-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sp-white);
  margin-bottom: .35rem;
}

.product-tagline {
  color: #c9dcfb;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* LISTS */
.timeline-list,
.check-list,
.value-list,
.feature-list,
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-list li, .check-list li, .value-list li, .feature-list li, .contact-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 0.9rem 0;
  color: var(--sp-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.light .timeline-list li, body.light .check-list li, body.light .value-list li,
body.light .feature-list li, body.light .contact-list li {
  border-bottom: 1px solid #E6ECF5;
}

.timeline-list li:last-child, .check-list li:last-child, .value-list li:last-child,
.feature-list li:last-child, .contact-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.timeline-list i, .check-list i, .value-list i, .feature-list i, .contact-list i {
  color: #8BB8FF;
  font-size: 1.1rem;
  margin-top: 0.2rem;
}

body.light .timeline-list i, body.light .check-list i, body.light .value-list i,
body.light .feature-list i, body.light .contact-list i {
  color: var(--sp-primary);
}

.feature-list {
  margin-top: 1.2rem;
}

.contact-link {
  color: var(--sp-white);
  text-decoration: none;
}

.contact-link:hover {
  color: #8bb8ff;
}

/* FORM STYLES */
.form-control,
.form-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--sp-white);
  border-radius: 14px;
  box-shadow: none;
  padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
  background: rgba(255,255,255,0.04);
  border-color: var(--sp-primary-light);
  color: var(--sp-white);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.18);
}

.form-control::placeholder {
  color: #8ea2bf;
}

.form-label {
  color: var(--sp-white);
  font-weight: 600;
  margin-bottom: .55rem;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* FORM CHECK (Checkbox) */
.form-check-input {
  background-color: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}

.form-check-input:focus {
  border-color: var(--sp-primary-light);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.18);
}

.form-check-input:checked {
  background-color: var(--sp-primary);
  border-color: var(--sp-primary);
}

.form-check-label {
  color: var(--sp-muted);
}

body.light .form-check-input {
  background-color: var(--sp-bg-soft);
  border-color: var(--sp-card-border);
}

/* CTA */
.cta-box {
  padding: 2rem;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(47, 118, 210, 0.18), rgba(27, 60, 107, 0.35));
  border: 1px solid rgba(139, 184, 255, 0.14);
  box-shadow: var(--sp-shadow);
}

body.light .cta-box {
  background: linear-gradient(135deg, rgba(47, 118, 210, 0.08), rgba(74, 144, 226, 0.12));
  border: 1px solid rgba(47, 118, 210, 0.12);
}

/* FOOTER */
footer {
  padding: 28px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--sp-muted);
}

body.light footer {
  border-top: 1px solid #E6ECF5;
}

.footer-link {
  color: var(--sp-muted);
  text-decoration: none;
  margin-left: 1rem;
}

.footer-link:hover {
  color: var(--sp-heading);
}

/* MOCK WINDOW (from index.html) */
.mock-window {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: var(--sp-shadow);
}

body.light .mock-window {
  border: 1px solid #E6ECF5;
  background: linear-gradient(180deg, #FFFFFF, #F8FAFC);
}

.mock-topbar {
  padding: 0.9rem 1rem;
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.light .mock-topbar {
  background: #F8FAFC;
  border-bottom: 1px solid #E6ECF5;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

body.light .dot {
  background: #CBD5E1;
}

.mock-body {
  padding: 1.3rem;
}

.code-line {
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(139, 184, 255, 0.35), rgba(255, 255, 255, 0.06));
  margin-bottom: 0.85rem;
}

body.light .code-line {
  background: linear-gradient(90deg, rgba(47, 118, 210, 0.18), rgba(47, 118, 210, 0.05));
}

.code-line.w-90 { width: 90%; }
.code-line.w-75 { width: 75%; }
.code-line.w-60 { width: 60%; }
.code-line.w-45 { width: 45%; }

.hero-visual-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(47, 118, 210, 0.18);
  border: 1px solid rgba(139, 184, 255, 0.16);
  color: #D3E4FF;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

body.light .hero-visual-badge {
  background: rgba(47, 118, 210, 0.08);
  border: 1px solid rgba(47, 118, 210, 0.12);
  color: var(--sp-primary);
}

.mini-label {
  letter-spacing: .12em;
  color: var(--sp-muted);
}

.mini-value {
  color: var(--sp-heading);
}

/* THEME SWITCH */
.theme-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 10px;
  cursor: pointer;
  user-select: none;
}

.theme-switch i {
  font-size: 14px;
  color: var(--sp-muted);
  line-height: 1;
}

.switch-track {
  width: 50px;
  height: 26px;
  background: linear-gradient(145deg, #E2E8F0, #CBD5E1);
  border-radius: 999px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.switch-thumb {
  width: 22px;
  height: 22px;
  background: #FFFFFF;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

body:not(.light) .switch-track {
  background: linear-gradient(145deg, #1E293B, #0F172A);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.04);
}

body:not(.light) .switch-thumb {
  transform: translateX(24px);
  background: #4A90E2;
}

/* TEAM / LEADERSHIP SECTION */
.team-card {
  overflow: hidden;
  padding: 0;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

.team-card .card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.team-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sp-heading);
  margin-bottom: 0.25rem;
}

.team-title {
  color: var(--sp-primary-light);
  font-weight: 600;
  margin-bottom: 1rem;
}

body.light .team-title {
  color: var(--sp-primary);
}

.team-socials {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.team-socials a {
  color: var(--sp-muted);
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.team-socials a:hover {
  color: var(--sp-primary-light);
}

/* CAROUSEL STYLES */
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  opacity: 0.8;
}

.carousel-indicators .active {
  background-color: var(--sp-primary-light);
  border-color: var(--sp-primary-light);
  opacity: 1;
}

body.light .carousel-indicators [data-bs-target] {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(0, 0, 0, 0.3);
}

body.light .carousel-indicators .active {
  background-color: var(--sp-primary);
  border-color: var(--sp-primary);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  width: 48px;
  height: 48px;
  background-size: 50% 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

body.light .carousel-control-prev-icon,
body.light .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light .carousel-control-prev-icon:hover,
body.light .carousel-control-next-icon:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
  .navbar .container {
    align-items: flex-start;
  }

  .navbar-collapse {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem 0 0;
    transition: all 0.25s ease;
  }

  .navbar-nav {
    width: 100%;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
  }

  body.light .navbar-nav {
    background: #FFFFFF;
    border: 1px solid #E6ECF5;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    backdrop-filter: none;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar-nav .nav-link {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.2rem;
  }

  .navbar-nav .btn-primary-custom {
    width: 100%;
    text-align: center;
    margin-top: 0.75rem;
  }

  .theme-switch {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: 0;
  }

  body.light .theme-switch {
    border-top: 1px solid #E6ECF5;
  }

  .section {
    padding: 80px 0;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 50px;
  }

  .hero.is-home {
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 60px;
  }

  .hero-panel {
    margin-top: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: clamp(2.3rem, 12vw, 4rem);
  }

  .section-title {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .hero-subtitle,
  .section-subtitle {
    font-size: 1rem;
    line-height: 1.7;
  }

  .btn-primary-custom,
  .btn-outline-custom {
    width: 100%;
    justify-content: center;
  }

  .team-card .card-body {
    padding: 1.5rem;
  }
  .team-img {
    border-bottom: 1px solid var(--sp-card-border);
  }
}

@media (min-width: 992px) {
  .navbar-toggler {
    display: none !important;
  }
}