* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, Arial, sans-serif;
}

body {
  background: #f8f8ff;
  color: #1d1d1f;
}

.school-crm-page {
  overflow-x: hidden;
}

.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 20px 60px;
  text-align: center;
  background: radial-gradient(1200px 600px at 50% 0%, #f4f0ff 0%, #ffffff 70%);
  position: relative;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(106, 77, 244, 0.18), transparent 70%);
  z-index: 0;
}

.hero::before {
  top: -40px;
  left: -120px;
}

.hero::after {
  bottom: -40px;
  right: -120px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.school-crm-page .container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.5;
  color: #5a5a6a;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  color: #1d1d1f;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 30px rgba(18, 10, 60, 0.12);
  border: 1px solid rgba(106, 77, 244, 0.15);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-chip svg {
  color: inherit;
}

.hero-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px rgba(13, 12, 48, 0.18);
}

.hero-chip--whatsapp {
  color: #0f8f4d;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.25);
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 600;
}

.hero-links .hero-link {
  color: #5a5a6a;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 22px rgba(36, 32, 72, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-links .hero-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(24, 20, 60, 0.18);
}

.hero-links .hero-link.whatsapp {
  color: #0f8f4d;
  background: rgba(16, 185, 129, 0.15);
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary {
  background: #6a4df4;
  color: #fff;
  box-shadow: 0 14px 30px rgba(106, 77, 244, 0.25);
}

.btn.outline {
  border: 2px solid #6a4df4;
  color: #6a4df4;
  background: rgba(255, 255, 255, 0.65);
}

.hero-price {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 15px 35px rgba(19, 22, 58, 0.12);
}

.price-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a5a6a;
}

.price-amount {
  font-size: 22px;
  font-weight: 800;
  color: #1d1d1f;
}

.hero-floating {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.floating-badge {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(106, 77, 244, 0.12);
  color: #6a4df4;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 8px 30px rgba(106, 77, 244, 0.15);
  animation: float 5s ease-in-out infinite;
}

.floating-badge:nth-child(2) {
  animation-delay: 0.8s;
}

.floating-badge:nth-child(3) {
  animation-delay: 1.6s;
}

.hero-media {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding-top: 10px;
  position: relative;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: 30px;
  /* background: radial-gradient(circle at 20% 20%, rgba(106, 77, 244, 0.08), transparent 70%); */
  z-index: -1;
}

.hero-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  transform: translateZ(0);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 77, 244, 0.4), transparent 70%);
  animation: drift 12s linear infinite;
}

.hero-particles span:nth-child(1) {
  top: 20%;
  left: 12%;
  animation-duration: 10s;
}

.hero-particles span:nth-child(2) {
  top: 8%;
  right: 24%;
  animation-duration: 14s;
  animation-delay: 1.2s;
}

.hero-particles span:nth-child(3) {
  top: 45%;
  left: 5%;
  animation-duration: 11s;
  animation-delay: 2.2s;
}

.hero-particles span:nth-child(4) {
  bottom: 30%;
  right: 10%;
  animation-duration: 13s;
  animation-delay: 3s;
}

.hero-particles span:nth-child(5) {
  bottom: 15%;
  left: 40%;
  animation-duration: 12s;
  animation-delay: 4s;
}

.video-section {
  padding: 80px 20px;
  text-align: center;
}

.video-wrapper {
  max-width: 900px;
  margin: auto;
}

video {
  width: 100%;
  border-radius: 20px;
}

.app-gallery {
  padding: 80px 20px;
  text-align: center;
  position: relative;
}

.app-gallery.light {
  background: #fafafa;
}

.app-story {
  padding: 90px 20px;
  background: #f4f1ff;
}

.app-story--light {
  background: #ffffff;
}

.story-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.story-panel {
  position: sticky;
  top: 70px;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
  box-shadow: 0 25px 60px rgba(31, 30, 68, 0.12);
  backdrop-filter: blur(10px);
  --story-color: #7b61ff;
  border: 1px solid rgba(123, 97, 255, 0.2);
  align-self: flex-start;
  flex: 0 0 360px;
}

.story-panel .section-pill {
  margin-bottom: 20px;
}

.story-tag {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--story-color);
  margin-bottom: 10px;
  display: inline-block;
}

.story-title {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 14px;
}

.story-description {
  color: #4a4a5a;
  line-height: 1.7;
}

.story-meta {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(123, 97, 255, 0.08);
  color: #433d67;
  font-weight: 600;
}

.story-cards {
  display: grid;
  gap: 28px;
  flex: 1;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  padding-right: 12px;
  scroll-snap-type: y proximity;
}

.story-card {
  padding: 24px;
  border-radius: 32px;
  background: #ffffff;
  box-shadow: 0 25px 60px rgba(27, 22, 62, 0.1);
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.25s ease;
  scroll-snap-align: start;
}

.story-card__media {
  border-radius: 26px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.65);
}

.story-cards::-webkit-scrollbar {
  width: 6px;
}

.story-cards::-webkit-scrollbar-track {
  background: rgba(123, 97, 255, 0.08);
  border-radius: 999px;
}

.story-cards::-webkit-scrollbar-thumb {
  background: rgba(123, 97, 255, 0.45);
  border-radius: 999px;
}

.story-card__media img {
  width: 100%;
  display: block;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(20, 15, 60, 0.15);
}

.story-card__body h4 {
  font-size: 20px;
  margin: 8px 0;
}

.story-card__body p {
  color: #5b5b6d;
  line-height: 1.6;
}

.story-card__tag {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story-card.is-active {
  border: 2px solid rgba(106, 77, 244, 0.35);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 30px 70px rgba(31, 30, 68, 0.18);
}

.section-heading {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

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

.section-pill {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(106, 77, 244, 0.1);
  color: #6a4df4;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: clamp(26px, 4vw, 42px);
  margin-bottom: 12px;
}

.section-heading p {
  color: #5a5a6a;
  line-height: 1.6;
}

.gallery-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 26px;
  position: relative;
}

.gallery-card {
  padding: 18px 18px 26px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow: 0 18px 36px rgba(45, 35, 66, 0.08);
  border: 1px solid rgba(106, 77, 244, 0.08);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeSlideUp 0.6s ease forwards, cardFloat 7s ease-in-out infinite;
  animation-delay: var(--animation-delay, 0ms);
  animation-fill-mode: forwards;
  position: relative;
  overflow: hidden;
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  background: linear-gradient(130deg, rgba(106, 77, 244, 0.08), rgba(106, 77, 244, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gallery-card::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(106, 77, 244, 0.28), transparent 70%);
  bottom: -30px;
  right: -20px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.gallery-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 25px 55px rgba(45, 35, 66, 0.16);
}

.gallery-card:hover::before,
.gallery-card:hover::after {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gallery-card img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.gallery-card figcaption {
  margin-top: 14px;
  font-weight: 600;
  color: #262538;
}

.features {
  padding: 80px 20px 100px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f6ff 100%);
  text-align: center;
}

.feature-stack {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
}

.feature-row {
  padding: 26px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(106, 77, 244, 0.08);
  box-shadow: 0 30px 80px rgba(18, 10, 60, 0.08);
  position: relative;
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--feature-accent, #6a4df4)15%, transparent 65%);
  opacity: 0.08;
  pointer-events: none;
}

.feature-row:hover {
  transform: translateY(-8px);
  box-shadow: 0 40px 90px rgba(13, 14, 64, 0.15);
}

.feature-row__header {
  margin-bottom: 18px;
}

.feature-row__label {
  display: inline-flex;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--feature-accent, #6a4df4);
  background: rgba(106, 77, 244, 0.12);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.feature-row__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #33324a;
  font-weight: 600;
}

.feature-row__list li {
  display: flex;
  gap: 12px;
  align-items: center;
}

.feature-row__bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--feature-accent, #6a4df4);
  box-shadow: 0 0 10px var(--feature-accent, #6a4df4);
}

.download {
  padding: 80px 20px;
  text-align: center;
}

.download-buttons {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 30px;
  margin: 0 10px;
  text-decoration: none;
  color: white;
  font-weight: 600;
}

.store-btn.android {
  background: #34a853;
}

.store-btn.ios {
  background: #000;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes cardFloat {
  0% {
    transform: translateY(10px);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(10px);
  }
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate3d(30px, -40px, 0) scale(1.3);
    opacity: 0.5;
  }
  100% {
    transform: translate3d(-30px, -80px, 0) scale(0.8);
    opacity: 0;
  }
}

@media (min-width: 992px) {
  .hero-media {
    margin-top: 20px;
  }

  .story-card {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  }
}

@media (max-width: 991px) {
  .story-grid {
    flex-direction: column;
  }

  .story-panel {
    position: relative;
    top: 0;
  }

  .story-card {
    grid-template-columns: 1fr;
  }

  .story-cards {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

.appchain .mobile-promo .phones .ph.a {
    right: 40px;
    transform: rotate(-14deg);
    width: 190px;
}
.appchain .mobile-promo .phones .ph.b {
    right: 160px;
    transform: rotate(8deg);
    width: 185px;
}
