:root {
  --sky-top: #daf0fc;
  --sky-mid: #eaf3fd;
  --sky-bot: #f5edfc;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;
  --surface-elevated: rgba(255, 255, 255, 0.92);
  --text: #1e2942;
  --text-muted: #5d6b89;
  --line: rgba(90, 169, 230, 0.22);
  --a: #4da3e8;
  --b: #8673e8;
  --c: #58c4a3;
  --d: #f4b266;
  --danger: #e86565;
  --shadow: 0 20px 50px rgba(30, 41, 66, 0.09);
  --shadow-lg: 0 28px 70px rgba(30, 41, 66, 0.15);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

[data-theme="dark"] {
  --sky-top: #0e1528;
  --sky-mid: #151e38;
  --sky-bot: #1d2445;
  --surface: rgba(24, 34, 62, 0.78);
  --surface-solid: #192340;
  --surface-elevated: rgba(30, 42, 76, 0.92);
  --text: #eef3ff;
  --text-muted: #9eabcb;
  --line: rgba(134, 115, 232, 0.28);
  --a: #63b4f7;
  --b: #9d8df2;
  --c: #6ad6b5;
  --d: #f7c17c;
  --shadow: 0 20px 50px rgba(4, 8, 20, 0.42);
  --shadow-lg: 0 30px 75px rgba(4, 8, 20, 0.58);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 52%, var(--sky-bot) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.35s ease, color 0.25s ease;
}

/* Scenic Animated Background */
.scenic-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.scenic-orb {
  position: absolute;
  top: 72px;
  right: 9%;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff8d6, #ffd778 65%, rgba(255, 215, 120, 0) 100%);
  box-shadow: 0 0 70px rgba(255, 211, 108, 0.65);
  transition: all 0.5s ease;
}

[data-theme="dark"] .scenic-orb {
  background: radial-gradient(circle at 35% 35%, #ffffff, #dbe6ff 65%, rgba(219, 230, 255, 0) 100%);
  box-shadow: 0 0 60px rgba(168, 195, 255, 0.45);
}

.cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  filter: blur(1px);
  animation: drift linear infinite;
}

[data-theme="dark"] .cloud {
  background: rgba(134, 156, 215, 0.12);
}

.cloud-1 {
  width: 210px;
  height: 58px;
  top: 12%;
  left: -220px;
  animation-duration: 54s;
}

.cloud-2 {
  width: 150px;
  height: 44px;
  top: 26%;
  left: -180px;
  animation-duration: 72s;
  animation-delay: -22s;
}

.cloud-3 {
  width: 250px;
  height: 66px;
  top: 62%;
  left: -260px;
  animation-duration: 85s;
  animation-delay: -40s;
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(100vw + 340px));
  }
}

.scenic-hills {
  position: fixed;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 180px;
  z-index: 0;
  opacity: 0.48;
}

/* Container & Layout */
.container {
  position: relative;
  z-index: 2;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: 1260px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(40, 120, 210, 0.22));
}

.brand-text strong {
  display: block;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-text span {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 800;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--a);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 800;
  font-size: 14px;
  border-radius: 999px;
  padding: 11px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1.5px solid transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--a), var(--b));
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(77, 163, 232, 0.34);
}

.btn-glass {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  border-color: var(--a);
}

.theme-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.theme-btn:hover {
  transform: rotate(14deg) scale(1.05);
  border-color: var(--a);
}

/* Hero Section */
.hero {
  padding: 56px 0 44px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 38px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(34px, 4.8vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--a), var(--b), var(--c));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 17.5px;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 26px;
  max-width: 630px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.kpi-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.kpi-card strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
}

.kpi-card span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

/* 3D Owl Hero Stage */
.owl-stage-card {
  background: radial-gradient(
    circle at 50% 24%,
    color-mix(in srgb, var(--a) 26%, transparent),
    color-mix(in srgb, var(--b) 18%, var(--surface))
  );
  backdrop-filter: blur(18px);
  border: 1.5px solid var(--line);
  border-radius: 32px;
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 4px rgba(88, 196, 163, 0.25);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.28);
  }
}

.owl-canvas-wrap {
  width: 100%;
  height: 290px;
  position: relative;
  cursor: pointer;
}

.owl-speech-box {
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  min-height: 74px;
}

.owl-speech-box b {
  color: var(--b);
}

.owl-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.owl-chip {
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.owl-chip:hover,
.owl-chip.active {
  background: linear-gradient(135deg, var(--a), var(--b));
  color: #fff;
  border-color: transparent;
}

/* Generic Section Headings */
section {
  padding: 58px 0;
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 38px;
}

.section-head h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 900;
  margin: 8px 0 12px;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 600;
}

/* 8-Stage End-to-End Lifecycle Stepper */
.e2e-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: stretch;
}

.e2e-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.e2e-step-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  font-family: inherit;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.22s ease;
}

.e2e-step-btn:hover {
  border-color: var(--a);
  transform: translateX(4px);
}

.e2e-step-btn.active {
  background: linear-gradient(135deg, var(--a), var(--b));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 28px rgba(77, 163, 232, 0.3);
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(90, 169, 230, 0.16);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
  flex-shrink: 0;
}

.e2e-step-btn.active .step-num {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.e2e-detail-card {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.e2e-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pill-tag {
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: color-mix(in srgb, var(--a) 15%, transparent);
  color: var(--text);
}

.e2e-detail-card h3 {
  font-size: 28px;
  font-weight: 900;
  margin: 8px 0 10px;
}

.e2e-checklist {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.e2e-checklist li {
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 15px;
  font-size: 13.5px;
  font-weight: 700;
}

.e2e-io-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.io-box {
  background: color-mix(in srgb, var(--b) 10%, var(--surface));
  border-radius: 16px;
  padding: 12px 14px;
}

.io-box small {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
}

.io-box strong {
  font-size: 13.5px;
  font-weight: 800;
}

/* Interactive Product Simulator */
.sim-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.sim-tab {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-tab.active,
.sim-tab:hover {
  background: linear-gradient(135deg, var(--a), var(--b));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(77, 163, 232, 0.28);
}

.sim-window {
  background: var(--surface-solid);
  border: 1.5px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.sim-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  background: color-mix(in srgb, var(--a) 10%, var(--surface));
  border-bottom: 1px solid var(--line);
  gap: 12px;
}

.browser-dots {
  display: flex;
  gap: 7px;
}

.browser-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.browser-url {
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-muted);
}

.sim-body {
  padding: 30px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.rubric-bar-track {
  height: 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--a) 16%, transparent);
  overflow: hidden;
  margin-top: 5px;
}

.rubric-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--a), var(--c));
}

.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  font-family: inherit;
  font-weight: 800;
  font-size: 13.5px;
  padding: 12px 16px;
  margin-top: 8px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-option:hover {
  border-color: var(--a);
}

.quiz-option.correct {
  border-color: var(--c);
  background: color-mix(in srgb, var(--c) 18%, var(--surface));
}

.quiz-option.wrong {
  border-color: var(--danger);
  background: color-mix(in srgb, var(--danger) 14%, var(--surface));
}

/* Complete 4-Pillar Feature Matrix */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.pillar-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow);
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--a), var(--b));
  color: #fff;
  font-size: 22px;
  display: grid;
  place-items: center;
}

.pillar-header h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 900;
}

.module-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}

.module-row {
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 15px;
}

.module-row strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
}

.module-row span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Architecture Grid */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.arch-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1.5px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.arch-card h3 {
  margin: 10px 0 12px;
  font-size: 19px;
  font-weight: 900;
}

.arch-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 13.5px;
}

.arch-card li {
  margin-bottom: 8px;
}

/* Portal Launch Strip */
.portal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portal-launch-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1.5px solid var(--line);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.portal-launch-card:hover {
  transform: translateY(-5px);
  border-color: var(--a);
}

/* FAQ Accordion */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 800;
  text-align: left;
  padding: 18px 22px;
  background: transparent;
  border: 0;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-a {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  position: relative;
  z-index: 2;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--a);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero,
  .e2e-layout,
  .sim-body,
  .pillar-grid,
  .arch-grid,
  .portal-strip {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .hero-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .e2e-checklist,
  .e2e-io-bar,
  .owl-chip-grid {
    grid-template-columns: 1fr;
  }
}

