
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #6457e8;
  --primary-dark: #5144cf;
  --text: #27304b;
  --muted: #68738c;
  --background: #f7f9ff;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.65;
}

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

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

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.header {
  background: rgba(255,255,255,.95);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 20px rgba(30,40,80,.05);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 21px;
  color: var(--primary);
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: white;
  border-radius: 13px;
  padding: 4px;
}

.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14px;
  font-weight: 800;
}

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

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 50px;
  padding-top: 80px;
  padding-bottom: 90px;
}

.eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.16;
  font-weight: 900;
  margin: 18px 0 22px;
}

.hero h1 span {
  color: var(--primary);
}

.hero-content > p {
  color: var(--muted);
  max-width: 530px;
  font-size: 17px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 15px 25px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 900;
  transition: .25s;
}

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

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 25px rgba(100,87,232,.2);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 1px solid #dedcff;
}

.hero-note {
  margin-top: 25px;
  font-size: 13px;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, #e9e6ff 0%, transparent 70%);
}

.logo-card {
  width: min(330px, 85%);
  aspect-ratio: 1;
  background: white;
  border-radius: 38px;
  padding: 32px;
  box-shadow: 0 25px 65px rgba(85,75,180,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-3deg);
  animation: float 12s ease-in-out infinite;
}

.logo-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.floating-shape {
  position: absolute;
  background: white;
  padding: 14px 20px;
  border-radius: 18px;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(30,40,80,.08);
}

.shape-one {
  top: 12%;
  left: 4%;
  color: #ffbd43;
  font-size: 26px;
}

.shape-two {
  top: 10%;
  right: 0;
  color: #f472a0;
}

.shape-three {
  bottom: 12%;
  right: 3%;
  color: #36b9a8;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-4px) rotate(-2.5deg); }
}

.features-section {
  background: white;
  padding: 95px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 45px;
}

.section-heading h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  margin: 10px 0;
}

.section-heading p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 35px 28px;
  border-radius: 25px;
  border: 1px solid #edf0f7;
  transition: .25s;
}

.feature-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 15px 35px rgba(30,40,80,.07);
}

.feature-card.word { background: #fff5f8; }
.feature-card.math { background: #effaf5; }
.feature-card.audio { background: #f2f1ff; }

.feature-icon {
  font-size: 40px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 23px;
  font-weight: 900;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
  min-height: 95px;
}

.feature-tag {
  display: inline-block;
  margin-top: 22px;
  background: white;
  padding: 7px 13px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
}

.benefits {
  padding-top: 95px;
  padding-bottom: 100px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.benefit-item {
  background: white;
  padding: 28px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid #edf0f7;
}

.benefit-item span {
  font-size: 35px;
}

.benefit-item h3 {
  font-size: 18px;
  margin: 12px 0 8px;
}

.benefit-item p {
  color: var(--muted);
  font-size: 13px;
}

.download-section {
  padding: 90px 0;
  background: linear-gradient(135deg, #eae7ff, #e7f8ff);
}

.download-card {
  max-width: 760px;
  margin: auto;
  text-align: center;
  background: white;
  padding: 50px 35px;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(80,75,140,.09);
}

.download-logo {
  width: 115px;
  height: 115px;
  background: white;
  border: 1px solid #edf0f7;
  border-radius: 25px;
  padding: 12px;
  margin: 0 auto 25px;
  box-shadow: 0 10px 25px rgba(30,40,80,.08);
}

.download-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.download-card h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  margin: 10px 0;
}

.download-card > p {
  color: var(--muted);
  max-width: 520px;
  margin: 12px auto;
}

.app-details {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 25px 0;
}

.app-details span {
  background: #f1f2ff;
  color: var(--primary);
  padding: 7px 13px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
}

.btn-download {
  background: #20a66b;
  color: white;
  min-width: 260px;
}

.btn-download:hover {
  background: #168858;
}

.btn-download[aria-disabled="true"] {
  background: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
}

.download-status {
  font-size: 13px;
  font-weight: 800;
}

.download-warning {
  font-size: 12px;
  line-height: 1.7;
}

.guide-section {
  padding-top: 100px;
  padding-bottom: 100px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: white;
  border: 1px solid #edf0f7;
  padding: 28px 22px;
  border-radius: 20px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #eeecff;
  color: var(--primary);
  border-radius: 14px;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 18px;
}

.step-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.step-card p {
  color: var(--muted);
  font-size: 13px;
}

.guide-reminder {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 30px;
}

.footer {
  background: #252a49;
  color: white;
  padding-top: 50px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  padding-bottom: 40px;
}

.footer-content strong {
  font-size: 22px;
}

.footer-content p {
  color: #c5c8dd;
  font-size: 13px;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 20px;
  text-align: center;
  color: #c5c8dd;
  font-size: 12px;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 15px;
    padding-top: 65px;
  }

  .hero-content > p {
    margin: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-visual {
    min-height: 340px;
  }

  .feature-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .feature-card p {
    min-height: auto;
  }

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

@media (max-width: 550px) {
  .navbar {
    min-height: 70px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 0;
  }

  .nav-links {
    gap: 18px;
    font-size: 12px;
  }

  .hero {
    padding-top: 45px;
    padding-bottom: 65px;
  }

  .hero-content > p {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 300px;
  }

  .logo-card {
    width: 240px;
    padding: 22px;
  }

  .floating-shape {
    padding: 8px 12px;
    font-size: 13px;
  }

  .features-section,
  .benefits,
  .guide-section {
    padding-top: 65px;
    padding-bottom: 65px;
  }

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

  .download-card {
    padding: 40px 20px;
  }

  .btn-download {
    width: 100%;
    min-width: 0;
  }

  .footer-content {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}


/* APP SCREENSHOTS GALLERY */

.screenshots-section {
  background: #f4f3ff;
  padding: 95px 0;
}

.screenshots-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.screenshots-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px 5px 28px;
  scrollbar-width: thin;
  flex: 1;
  min-width: 0;
}

.screenshot-item {
  flex: 0 0 230px;
  scroll-snap-align: center;
  text-align: center;
}

.screenshot-item img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  background: #ffffff;
  border-radius: 22px;
  border: 5px solid #ffffff;
  box-shadow: 0 12px 30px rgba(60, 50, 130, .13);
  cursor: zoom-in;
  transition: transform .25s ease;
}

.screenshot-item img:hover {
  transform: translateY(-5px);
}

.screenshot-item h3 {
  font-size: 15px;
  font-weight: 900;
  margin-top: 16px;
}

.gallery-arrow {
  flex: 0 0 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: #6457e8;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.gallery-arrow:hover {
  background: #5144cf;
}

.gallery-hint {
  text-align: center;
  color: #68738c;
  font-size: 13px;
  margin-top: 12px;
}

/* FULL SCREEN IMAGE PREVIEW */

.screenshot-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 18, 40, .92);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 55px 20px 25px;
}

.screenshot-lightbox[hidden] {
  display: none;
}

.screenshot-lightbox img {
  max-width: 95%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
}

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 25px;
  border: none;
  background: transparent;
  color: white;
  font-size: 38px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .screenshots-section {
    padding: 65px 0;
  }

  .screenshots-wrapper {
    gap: 5px;
  }

  .screenshots-track {
    gap: 12px;
  }

  .screenshot-item {
    flex-basis: 200px;
  }

  .screenshot-item img {
    height: 370px;
  }

  .gallery-arrow {
    flex-basis: 30px;
    height: 36px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screenshots-track {
    scroll-behavior: auto;
  }
}


/* INSTALLATION SECURITY INFO */
.security-note { margin: 30px auto 0; padding: 24px; max-width: 880px; border: 1px solid #dddaf8; border-radius: 20px; background: #f8f7ff; overflow-wrap: anywhere; }
.security-note h3 { margin: 0 0 10px; }
.security-note p { margin: 10px 0; line-height: 1.65; }
.security-note code { display: inline-block; font-size: 12px; word-break: break-all; margin: 8px 12px 8px 0; }
.security-small { font-size: 13px; color: #626c82; }
.copy-checksum { padding: 8px 13px; border: 0; border-radius: 10px; background: #6457e8; color: white; cursor: pointer; }
#checksumCopyStatus { margin-left: 10px; font-size: 13px; }
.privacy-page { max-width: 850px; padding-top: 70px; padding-bottom: 90px; line-height: 1.75; }
.privacy-page h1 { margin-bottom: 18px; }
.privacy-page h2 { margin-top: 28px; margin-bottom: 8px; }
.privacy-draft-warning { padding: 16px; background: #fff5db; border: 1px solid #e5bf65; border-radius: 12px; }

/* Gallery layout safeguards */
.screenshots-wrapper { width: 100%; max-width: 1100px; margin: 0 auto; }
.screenshots-track { min-width: 0; width: 0; }
.gallery-hint { display: block; width: 100%; margin: 14px auto 0; clear: both; }
@media (prefers-reduced-motion: reduce) { .logo-card { animation: none; } }
