/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

/* ===== Utility ===== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: #FBFAF3;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #503AA8;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #555;
  max-width: 640px;
  margin-bottom: 2.5rem;
}

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

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Scroll-triggered animations (CSS-only) ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeUp 0.6s ease both;
}

/* stagger children */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}

.header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo {
  font-size: 1.125rem;
  font-weight: 800;
  color: #111;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.header__logo svg {
  width: 28px;
  height: 28px;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header__nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: #444;
  transition: color 0.2s;
}

.header__nav a:hover {
  color: #503AA8;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff !important;
  background: #503AA8;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
}

.header__cta:hover {
  background: #3f2d88;
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111;
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(145deg, #1a0e3e 0%, #503AA8 50%, #7c5ecf 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, #fff 0%, transparent 100%);
}

.hero__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  max-width: 720px;
  margin: 0 auto 1.25rem;
}

.hero__sub {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: #fff;
  color: #503AA8;
}

.btn--primary:hover {
  background: #f0eef9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.btn--purple {
  background: #503AA8;
  color: #fff;
}

.btn--purple:hover {
  background: #3f2d88;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(80, 58, 168, 0.35);
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ===== Problem Section ===== */
.problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.problem-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.problem-card__icon {
  width: 48px;
  height: 48px;
  background: #fef2f2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.problem-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Solution ===== */
.solution__highlight {
  font-size: 1.5rem;
  font-weight: 800;
  color: #503AA8;
  max-width: 700px;
  margin-bottom: 1rem;
}

.solution__body {
  font-size: 1.05rem;
  color: #555;
  max-width: 640px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.solution__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: #f3f0fc;
  color: #503AA8;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== Modes (Create / Edit / Evolve) ===== */
.modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mode-card {
  padding: 2.5rem 2rem;
  background: #fff;
  border-radius: 20px;
  border: 1px solid #eee;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mode-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(80, 58, 168, 0.12);
}

.mode-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
}

.mode-card__icon--create {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.mode-card__icon--edit {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
}

.mode-card__icon--evolve {
  background: linear-gradient(135deg, #f3e5f5, #e1bee7);
}

.mode-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.mode-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Why Different ===== */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.diff-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eee;
  transition: transform 0.2s, box-shadow 0.2s;
}

.diff-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.diff-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f3f0fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.diff-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.diff-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== For Who ===== */
.personas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.persona-card {
  padding: 2.25rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eee;
  transition: transform 0.2s, box-shadow 0.2s;
}

.persona-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.persona-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f3f0fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.persona-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.persona-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Demo / Workflow ===== */
.demo-box {
  max-width: 800px;
  margin: 0 auto;
  background: #1a1a2e;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15);
}

.demo-box__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #16162a;
}

.demo-box__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #333;
}

.demo-box__dot--red { background: #ff5f57; }
.demo-box__dot--yellow { background: #febc2e; }
.demo-box__dot--green { background: #28c840; }

.demo-box__content {
  padding: 2rem 2.5rem;
}

.demo-prompt {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.demo-prompt__avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #503AA8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.demo-prompt__text {
  color: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

.demo-prompt__text strong {
  color: #a78bfa;
}

.demo-arrow {
  text-align: center;
  color: #555;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.demo-result {
  background: #111;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #333;
}

.demo-result__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #28c840;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.demo-result__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ccc;
  font-size: 0.85rem;
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  padding: 0.35rem 0;
}

.demo-result__check {
  color: #28c840;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 2rem;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #eee;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #f3f0fc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-card p {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ===== Install Guide ===== */
.install-steps {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.install-steps::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e5e0f5;
}

.install-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
}

.install-step:last-child {
  margin-bottom: 0;
}

.install-step__num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #503AA8;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  z-index: 1;
}

.install-step__content {
  padding-top: 0.75rem;
}

.install-step__content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.install-step__content p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.5;
}

.install-step__content code {
  background: #f3f0fc;
  color: #503AA8;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.pricing-card {
  padding: 2.5rem;
  background: #fff;
  border-radius: 24px;
  border: 2px solid #e0e0e0;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  position: relative;
}

.pricing-card--pro {
  border-color: #503AA8;
  box-shadow: 0 16px 48px rgba(80, 58, 168, 0.15);
}

.pricing-card__ribbon {
  position: absolute;
  top: -1px;
  right: 24px;
  background: #503AA8;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 1rem;
  border-radius: 0 0 8px 8px;
}

.pricing-card__badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: #f3f0fc;
  color: #503AA8;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.pricing-card__badge--pro {
  background: #503AA8;
  color: #fff;
}

.pricing-card__price {
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.pricing-card__period {
  font-size: 1rem;
  font-weight: 500;
  color: #888;
}

.pricing-card__desc {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.pricing-card__list {
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #444;
}

.pricing-card__list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: #e8f5e9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2328c840' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.pricing-card--pro .pricing-card__list li::before {
  background-color: #f3f0fc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23503AA8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.pricing-card--enterprise {
  border-color: #1a0e3e;
  background: linear-gradient(180deg, #fff 0%, #f5f0ff 100%);
  box-shadow: 0 16px 48px rgba(26, 14, 62, 0.12);
}

.pricing-card__badge--enterprise {
  background: #1a0e3e;
  color: #fff;
}

.pricing-card--enterprise .pricing-card__list li::before {
  background-color: #ede9fe;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231a0e3e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.pricing-card__multi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: #555;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 14px;
}

.pricing-card--pro .pricing-card__multi {
  background: #f5f0ff;
  border-color: #d4c6f5;
}

.pricing-card--enterprise .pricing-card__multi {
  background: #ede9fe;
  border-color: #c4b5fd;
}

.pricing-card__lifetime {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #888;
}

/* ===== Final CTA ===== */
.final-cta {
  padding: 6rem 0;
  text-align: center;
  background: linear-gradient(145deg, #1a0e3e 0%, #503AA8 50%, #7c5ecf 100%);
  color: #fff;
}

.final-cta h2 {
  font-size: 2.75rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.final-cta p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Footer ===== */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid #eee;
  text-align: center;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.9rem;
  color: #666;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #503AA8;
}

.footer__copy {
  font-size: 0.85rem;
  color: #999;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.75rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid,
  .modes,
  .problems,
  .personas {
    grid-template-columns: repeat(2, 1fr);
  }

  .diff-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid #eee;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .header__nav.open {
    transform: translateY(0);
    opacity: 1;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 7rem 0 4rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero__sub {
    font-size: 1.05rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .features-grid,
  .modes,
  .problems,
  .personas {
    grid-template-columns: 1fr;
  }

  .diff-grid {
    grid-template-columns: 1fr;
  }

  .demo-box__content {
    padding: 1.5rem;
  }

  .final-cta h2 {
    font-size: 2rem;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .pricing-card {
    padding: 2rem;
  }

  .pricing-card__price {
    font-size: 2.75rem;
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.85rem;
  }

  .btn--large {
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
  }
}

/* ===== Skip link (a11y) ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: #503AA8;
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}
