/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Taralipi — Refined Glassmorphism UI
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* ━━━━ RESET & BASE ━━━━ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  font-size: 16px
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background: #05070B;
  background-image: linear-gradient(to bottom, #05070B 0%, #0B1020 100%);
  background-attachment: fixed;
  color: #A6ACBF;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none
}

ul {
  list-style: none
}

img {
  max-width: 100%;
  display: block
}

/* ━━━━ DESIGN TOKENS ━━━━ */
:root {
  --bg-top: #05070B;
  --bg-bottom: #0B1020;
  --glass-bg: rgba(20, 20, 35, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover-border: rgba(180, 120, 255, 0.4);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  --glass-radius: 20px;

  --text-main: #ffffff;
  --text-body: #A6ACBF;

  --btn-primary: linear-gradient(120deg, #6E7BFF, #4DA7FF);
  --btn-primary-shadow: 0 8px 24px rgba(110, 123, 255, 0.35);
  --btn-radius: 14px;

  --max-w: 1120px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ━━━━ UTILITIES ━━━━ */
.gradient-text {
  background: linear-gradient(90deg, #7C8CFF, #4FD1FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ━━━━ HEADER ━━━━ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
  background: linear-gradient(180deg, rgba(5, 7, 11, 0.9) 0%, transparent 100%);
  pointer-events: none;
}

.header>* {
  pointer-events: auto
}

.logo-btn {
  display: flex;
  align-items: center;
  gap: .7rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -.02em;
  transition: opacity var(--transition);
}

.logo-btn:hover {
  opacity: .8
}

.logo-icon {
  flex-shrink: 0
}

/* ━━━━ BUTTON CTA ━━━━ */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(120deg, #7B8CFF, #4FD1FF);
  border: none;
  border-radius: var(--btn-radius);
  box-shadow: var(--btn-primary-shadow);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform var(--transition), filter var(--transition), box-shadow var(--transition);
  position: relative;
}

.btn-cta:hover {
  transform: scale(1.04);
  filter: brightness(1.1);
  box-shadow: 0 10px 30px rgba(120, 150, 255, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--btn-radius);
  transition: background var(--transition), transform var(--transition);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.02);
}

.header-cta {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
}

/* ━━━━ HEADER NAV ━━━━ */
.header__nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background: rgba(20, 25, 40, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border-radius: 999px;
}

.header__nav-link {
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-body);
  border-radius: 100px;
  transition: all var(--transition);
}

.header__nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

/* ━━━━ HERO ━━━━ */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 12rem 2rem 8rem;
  text-align: center;
}

.hero__glow {
  position: absolute;
  width: 1000px;
  height: 1000px;
  top: 0%;
  left: 50%;
  transform: translate(-50%, -30%);
  background: radial-gradient(ellipse at center, rgba(120, 120, 255, 0.25) 0%, rgba(120, 120, 255, 0.08) 30%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Canvas Background behind hero */
.particles-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

#heroBgCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px
}

.hero__label {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  margin-bottom: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7C8CFF;
  background: rgba(124, 140, 255, 0.08);
  border: 1px solid rgba(124, 140, 255, 0.15);
  border-radius: 50px;
}

.hero__title {
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero__sub {
  font-size: clamp(1.1rem, 1.8vw, 1.25rem);
  color: var(--text-body);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.85;
  font-weight: 400;
}

.hero__actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ━━━━ SECTIONS ━━━━ */
.section {
  position: relative;
  z-index: 1;
  padding: 8rem 2rem;
}

.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section.visible .section__inner {
  opacity: 1;
  transform: none
}

.section--alt {
  /* Subtly different background for alternating sections */
  background: rgba(0, 0, 0, 0.2);
}

.section--narrow .section__inner {
  max-width: 540px
}

.section--cta {
  text-align: center;
  padding: 10rem 2rem 12rem;
}

.section__heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.section__sub {
  color: var(--text-body);
  font-size: 1.1rem;
  margin-bottom: 4rem;
  font-weight: 400;
}

/* ━━━━ FEATURES ━━━━ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.feature-card {
  position: relative;
  border-radius: var(--glass-radius);
  background: transparent;
  transition: transform var(--transition);
  z-index: 1;
}

.feature-card__border {
  position: absolute;
  inset: 0;
  border: 1px solid var(--glass-border);
  border-radius: inherit;
  transition: border-color var(--transition);
  z-index: 3;
  pointer-events: none;
}

.feature-card__glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top left, rgba(180, 120, 255, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: 1;
  pointer-events: none;
}

.feature-card__content {
  position: relative;
  padding: 3rem 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-radius: inherit;
  box-shadow: var(--glass-shadow);
  transition: box-shadow var(--transition);
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
}

.feature-card:hover .feature-card__border {
  border-color: var(--glass-hover-border);
}

.feature-card:hover .feature-card__glow {
  opacity: 1;
}

.feature-card:hover .feature-card__content {
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5), 0 0 25px rgba(180, 120, 255, 0.25);
}

.feature-card--wide {
  grid-column: 1/-1;
}

.feature-card__header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(120, 120, 255, 0.1);
  border: 1px solid rgba(120, 120, 255, 0.2);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #7C8CFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.feature-card__title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 0;
}

.feature-card__desc {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
  max-width: 520px;
}

/* ━━━━ KNOWLEDGE GRAPH ━━━━ */
.section--kg {
  padding: 0;
  margin: 8rem 0;
}

.kg-container {
  position: relative;
  width: 100%;
  height: 600px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#kgCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.kg-content {
  position: relative;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.kg-content .section__heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(90deg, #fff, #A6ACBF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.kg-content .section__sub {
  margin-bottom: 0;
}

/* ━━━━ ABOUT ━━━━ */
.about__body {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.9;
  max-width: 720px;
}

/* ━━━━ PRICING ━━━━ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.pricing-card {
  padding: 3rem 2.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: var(--glass-radius);
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--glass-hover-border);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(120, 120, 255, 0.15);
}

.pricing-card--featured {
  border-color: rgba(120, 120, 255, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 0 40px rgba(120, 120, 255, 0.1);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 2.5rem;
  padding: 0.4rem 1.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--btn-primary);
  color: #fff;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(110, 123, 255, 0.3);
}

.pricing-card__name {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem
}

.pricing-card__price {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2rem;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-card__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-body)
}

.pricing-card__list {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}

.pricing-card__list li {
  font-size: 0.95rem;
  color: var(--text-body);
  padding-left: 1.6rem;
  position: relative;
}

.pricing-card__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #7C8CFF;
  font-weight: 700;
  font-size: 0.9rem;
}

.pricing-card .btn-cta,
.pricing-card .btn-ghost {
  margin-top: auto;
  width: 100%
}

/* ━━━━ LOGIN FORM ━━━━ */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  width: 100%;
}

.login-form__input {
  padding: 1rem 1.4rem;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.login-form__input::placeholder {
  color: rgba(255, 255, 255, 0.4)
}

.login-form__input:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(120, 120, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(120, 120, 255, 0.15);
}

.login-form__submit {
  width: 100%
}

/* ━━━━ FOOTER ━━━━ */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 1rem;
  font-size: 0.9rem;
  color: var(--text-body);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ━━━━ RESPONSIVE ━━━━ */
@media(max-width:900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 3rem
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .feature-card--wide {
    grid-column: auto
  }

  .hero__title {
    font-size: clamp(3rem, 10vw, 4rem)
  }
}

@media(max-width:640px) {
  .header {
    padding: 1.2rem 1.5rem
  }

  .glass-menu {
    left: 1.5rem;
    right: 1.5rem;
    min-width: unset
  }

  .hero {
    padding: 10rem 1.5rem 6rem
  }

  .section {
    padding: 5rem 1.5rem
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .pricing-card,
  .feature-card {
    padding: 2.5rem 1.5rem
  }
}

/* ━━━━ HOW IT WORKS ━━━━ */
.how-it-works {
  text-align: center;
}

.hiw-inner {
  max-width: var(--max-w);
}

.steps-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}

/* Step Card */
.step-card {
  background: rgba(20, 20, 35, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--step-delay, 0s),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--step-delay, 0s),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.step-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-card:hover {
  border-color: rgba(120, 140, 255, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(120, 140, 255, 0.07);
}

.step-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(120, 140, 255, 0.7);
  font-variant-numeric: tabular-nums;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* ── Mock UI Shell ── */
.step-mock {
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(10, 10, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  position: relative;
}

/* ── Mock Editor ── */
.mock-editor {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

.mock-editor__topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: inline-block;
}

.mock-editor__title {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.3);
  margin-left: 6px;
  font-family: 'SF Mono', 'Fira Mono', monospace;
}

.mock-editor__body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mock-line {
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
}

.mock-line--long {
  width: 85%;
}

.mock-line--med {
  width: 65%;
}

.mock-line--short {
  width: 40%;
}

.mock-cursor {
  width: 1.5px;
  height: 14px;
  background: rgba(120, 140, 255, 0.85);
  border-radius: 1px;
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ── Mock AI Layout (Step 2) ── */
.mock-ai-layout {
  display: flex;
  gap: 0;
  height: 100%;
}

.mock-editor--shrunk {
  flex: 0 0 58%;
  border-radius: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  height: 100%;
  background: transparent;
}

.mock-ai-panel {
  flex: 1;
  background: rgba(100, 80, 200, 0.12);
  border-left: 1px solid rgba(150, 120, 255, 0.2);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.mock-ai-panel__header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0.3rem;
}

.mock-ai-icon {
  font-size: 0.75rem;
  color: rgba(180, 130, 255, 0.9);
}

.mock-ai-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(180, 130, 255, 0.8);
  letter-spacing: 0.05em;
}

.mock-ai-suggestion {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  border: 1px solid rgba(180, 130, 255, 0.12);
}

.mock-ai-suggestion .mock-line {
  background: rgba(200, 170, 255, 0.2);
}

/* ── Mock Graph (Step 3) ── */
.mock-graph-view {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 20, 0.8);
}

.mock-graph-svg {
  width: 100%;
  height: 100%;
}

/* Responsive steps */
@media (max-width: 900px) {
  .steps-wrapper {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

/* ━━━━ EDITOR PREVIEW SECTION ━━━━ */
.editor-preview-section {
  overflow: hidden;
}

.editor-preview-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}

.editor-preview-text .section__heading {
  text-align: left;
  margin-bottom: 1.2rem;
}

.editor-preview-ui {
  display: flex;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 22, 0.8);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  min-height: 380px;
}

/* Editor pane */
.ep-editor {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.ep-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ep-filename {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  margin-left: 8px;
  font-family: 'SF Mono', 'Fira Mono', monospace;
}

.ep-body {
  padding: 1.4rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ep-line {
  font-size: 0.8rem;
  line-height: 1.5;
}

.ep-line--heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
}

.ep-line--para {
  color: rgba(255, 255, 255, 0.45);
}

/* Typing line */
.ep-typing {
  color: rgba(255, 255, 255, 0.7);
  min-height: 1.2rem;
}

.ep-typing::after {
  content: '|';
  color: rgba(120, 140, 255, 0.9);
  animation: blink 1s step-end infinite;
  margin-left: 1px;
}

/* AI Panel within editor preview */
.ep-ai-panel {
  width: 220px;
  flex-shrink: 0;
  background: rgba(80, 60, 150, 0.12);
  border-left: 1px solid rgba(150, 120, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem;
}

.ep-ai-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(150, 120, 255, 0.12);
}

.ep-ai-star {
  font-size: 0.95rem;
  color: rgba(180, 130, 255, 0.9);
}

.ep-ai-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(180, 130, 255, 0.8);
  letter-spacing: 0.05em;
}

.ep-ai-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(150, 120, 255, 0.12);
  border-radius: 8px;
  padding: 0.7rem;
  transition: border-color 0.25s ease;
}

.ep-ai-card--active {
  border-color: rgba(150, 120, 255, 0.35);
  background: rgba(120, 100, 220, 0.1);
}

.ep-ai-text {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.ep-ai-accept {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(180, 130, 255, 0.9);
  background: rgba(150, 120, 255, 0.12);
  border: 1px solid rgba(150, 120, 255, 0.25);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: background 0.2s;
}

.ep-ai-accept:hover {
  background: rgba(150, 120, 255, 0.2);
}

/* ━━━━ KNOWLEDGE GRAPH SHOWCASE ━━━━ */
.kg-showcase {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.kg-showcase-text .section__heading {
  text-align: left;
  margin-bottom: 1.2rem;
}

.kg-canvas-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(120, 140, 255, 0.15);
  background: rgba(8, 10, 20, 0.9);
  box-shadow: 0 0 60px rgba(80, 100, 255, 0.08), 0 30px 80px rgba(0, 0, 0, 0.5);
  aspect-ratio: 4/3;
}

.kg-canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.kg-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  color: var(--text-body);
  font-size: 0.9rem;
}

.kg-bullet {
  font-size: 0.5rem;
  color: rgba(120, 140, 255, 0.8);
  margin-right: 0.6rem;
  vertical-align: middle;
}

/* ━━━━ FEATURE ROWS ━━━━ */
.feat-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 5rem 0;
  border: none !important;
  background: transparent;
}

.feat-row.section {
  opacity: 0;
  transform: translateY(30px);
}

.feat-row.section.visible {
  opacity: 1;
  transform: none;
}

.feat-row--reverse {
  direction: rtl;
}

.feat-row--reverse>* {
  direction: ltr;
}

.feat-row__visual {
  position: relative;
}

.feat-mockup {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(10, 10, 22, 0.8);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.feat-mockup--graph {
  background: rgba(8, 10, 22, 0.9);
  padding: 0;
  aspect-ratio: 16/10;
  min-height: unset;
}

.feat-mockup--graph canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Chat mockup */
.feat-chat-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow: hidden;
}

.chat-msg {
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.55;
  max-width: 88%;
}

.chat-msg--user {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  align-self: flex-end;
}

.chat-msg--ai {
  background: rgba(100, 80, 200, 0.15);
  border: 1px solid rgba(150, 120, 255, 0.18);
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-self: flex-start;
}

/* Citation mockup */
.citation-body {
  padding: 0.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: hidden;
}

.citation-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.citation-tag {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(120, 140, 255, 0.8);
  background: rgba(120, 140, 255, 0.1);
  border: 1px solid rgba(120, 140, 255, 0.2);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
  display: inline-block;
  width: fit-content;
}

.citation-text {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.citation-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.citation-actions span {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(120, 140, 255, 0.75);
  cursor: pointer;
  padding: 0.15rem 0.5rem;
  border: 1px solid rgba(120, 140, 255, 0.2);
  border-radius: 4px;
  transition: background 0.2s;
}

.citation-actions span:hover {
  background: rgba(120, 140, 255, 0.1);
}

/* Feature Row Text */
.feat-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(120, 140, 255, 0.75);
  margin-bottom: 0.9rem;
}

.feat-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.feat-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 1.4rem;
}

.feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.feat-list li {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
  padding-left: 1.2rem;
  position: relative;
}

.feat-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(120, 140, 255, 0.5);
}

/* Responsive: stack on mobile */
@media (max-width: 900px) {

  .editor-preview-inner,
  .kg-showcase,
  .feat-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .feat-row--reverse {
    direction: ltr;
  }

  .ep-ai-panel {
    width: 100%;
  }

  .editor-preview-ui {
    flex-direction: column;
  }
}

/* ━━━━ SECTION SEPARATORS ━━━━ */
/* Glowing top divider for every section except hero */
.section+.section::before,
.editor-preview-section::before,
.section--kg::before,
#features::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 800px;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(120, 140, 255, 0.18) 30%,
      rgba(120, 140, 255, 0.22) 50%,
      rgba(120, 140, 255, 0.18) 70%,
      transparent 100%);
  pointer-events: none;
}

/* Fade-out glow beneath each section */
.section::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  max-width: 560px;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.05) 50%,
      transparent 100%);
  pointer-events: none;
}

/* ━━━━ IMPROVED SCROLL ANIMATIONS ━━━━ */
/* The base state for section__inner is already opacity:0 + translateY(30px).
   We upgrade the timing here for smoother natural deceleration. */
.section__inner {
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Feature rows have their own independent stagger */
.feat-row.section {
  transition:
    opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ━━━━ JARVIS CTA SECTION ━━━━ */
.section--jarvis {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: 10rem 2rem;
}

.jarvis-inner {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Large radial glow behind the heading */
.jarvis-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(100, 120, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.jarvis-heading {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 1;
}

.jarvis-sub {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.jarvis-btn {
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(120, 140, 255, 0.25),
    0 10px 40px rgba(100, 120, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jarvis-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(120, 140, 255, 0.35),
    0 16px 50px rgba(100, 120, 255, 0.4);
}

/* ━━━━ FOOTER ━━━━ */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 5, 12, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4rem 2rem 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.8fr 2fr;
  gap: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 280px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--text-body);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive footer */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}