/**
 * Stellar Academic public home (/home/).
 * Hostinger/Divi recreation: scroll animations (AOS), clickable features, shrinking header,
 * overlapping about phones, Divi tablet/phone breakpoints (980 / 767).
 * AI_AGENT NOTE: Plan names Explorer / Innovator / Visionary — product-plan-catalog-standard.
 */

:root {
  --home-font: "Open Sans", Arial, sans-serif;
  --home-heading: "IBM Plex Sans Condensed", "Open Sans", sans-serif;
  --home-nav: "Poppins", "Open Sans", sans-serif;
  --home-purple: #6f4fff;
  --home-coral: #ff4f7c;
  --home-cta: #fb1a90;
  --home-cta-hover: #d41478;
  --home-ink: #333333;
  --home-muted: #666666;
  --home-line: #bebebe;
  --home-feature-blue: #2ea3f2;
  --home-wash: #f5f5ff;
  --home-white: #ffffff;
  --home-footer: #222222;
  --home-header-h: 80px;
  --home-header-h-scrolled: 52px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--home-muted);
  background: var(--home-white);
  font-family: var(--home-font);
  font-size: 16px;
  line-height: 1.7;
  padding-top: var(--home-header-h);
}

a {
  text-decoration: none;
  color: var(--home-feature-blue);
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--home-heading);
  color: var(--home-ink);
}

/* Header — shrinks like Divi fixed nav */
.header {
  background: var(--home-white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  z-index: 997;
  min-height: var(--home-header-h);
  transition: min-height 0.25s ease, box-shadow 0.25s ease;
}

.header .container-xl {
  min-height: var(--home-header-h);
  transition: min-height 0.25s ease;
}

body.scrolled .header {
  min-height: var(--home-header-h-scrolled);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

body.scrolled .header .container-xl {
  min-height: var(--home-header-h-scrolled);
}

.logo img {
  height: 36px;
  width: auto;
  transition: height 0.25s ease;
}

body.scrolled .logo img {
  height: 28px;
}

.navmenu {
  padding: 0;
  margin-left: auto;
}

.navmenu ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
}

.navmenu a {
  color: var(--home-ink);
  font-family: var(--home-nav);
  font-weight: 500;
  font-size: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  min-height: 44px;
  transition: color 0.2s ease;
}

.navmenu a:hover,
.navmenu a.active {
  color: var(--home-feature-blue);
}

.mobile-nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: var(--home-ink);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.mobile-nav-dim {
  display: none;
}

/* CTAs */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 16px 30px;
  background: var(--home-cta);
  color: var(--home-white) !important;
  font-weight: 700;
  font-size: 16px;
  border-radius: 4px;
  box-shadow: 0 20px 40px 0 rgba(252, 160, 177, 0.3);
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-cta::after {
  content: "→";
  font-size: 1.15em;
  line-height: 1;
}

.btn-cta:hover {
  background: var(--home-cta-hover);
  color: var(--home-white) !important;
}

.btn-cta--dark {
  background: #000;
  box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.3);
}

.btn-cta--dark:hover {
  background: #1a1a1a;
}

/* Hero */
.hero {
  background-color: var(--home-purple);
  background-image: url("../img/hero-skyline.png");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 100% auto;
  color: var(--home-white);
  padding: 4vw 0 10vw;
  overflow: hidden;
}

.hero-row {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4vw;
}

.hero-copy {
  padding-right: 2vw;
}

.hero h1 {
  color: var(--home-white);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero h1 em {
  font-style: italic;
}

.hero p {
  color: var(--home-white);
  font-weight: 600;
  font-size: 18px;
  line-height: 2;
  max-width: 34rem;
  margin-bottom: 28px;
}

.hero-visual {
  text-align: left;
  overflow: visible;
}

.hero-visual img {
  max-height: 600px;
  width: auto;
  transform: translate(15%, 3%);
  margin-left: -8%;
}

/* Features — clickable like Divi et_clickable blurbs */
.features {
  padding: 6vw 0 4vw;
  background: var(--home-white);
}

.feature-card {
  display: block;
  text-align: left;
  max-width: 360px;
  color: inherit;
  cursor: pointer;
  padding: 8px 8px 8px 0;
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.feature-card img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  margin: 0 0 16px;
}

.feature-card h3 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.feature-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--home-muted);
}

/* Mid */
.mid {
  padding: 4vw 0 6vw;
  background: var(--home-white);
}

.mid h2 {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.mid p {
  margin-bottom: 28px;
  max-width: 36rem;
  font-size: 16px;
  line-height: 1.8;
}

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

.mid-visual img {
  max-width: 510px;
}

/* Pricing — Hostinger customized Divi tables (not default gray/blue header bars).
   AI_AGENT NOTE: product-plan-catalog-standard names; visual tokens from Hostinger et-core-unified. */
.pricing {
  padding: 6vw 0 9vw;
  background-color: var(--home-wash);
  background-image: url("../img/pricing-bg.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
}

.pricing-grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.pricing-card {
  width: 33.3333%;
  background: #f7f7f7;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding: 0 0 30px;
  margin: 30px 0 0;
  font-family: "Poppins", Helvetica, Arial, sans-serif;
}

.pricing-card--explorer {
  box-shadow: 0 2px 40px 0 rgba(0, 0, 0, 0.1);
}

.pricing-card--innovator {
  box-shadow: 0 2px 40px 0 rgba(0, 0, 0, 0.18);
}

.pricing-card--visionary {
  box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.1);
}

.pricing-heading {
  background: transparent;
  margin-top: 20px;
  padding: 10px 0;
}

.pricing-heading h2 {
  font-family: "Poppins", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #2a2a2a;
  margin: 0;
  padding: 0 0 5px;
  background: none;
}

.pricing-price-wrap {
  margin-top: 20px;
  padding: 17px 0 30px;
  border: none;
}

.pricing-price {
  position: relative;
  display: inline-block;
  color: #999;
  font-size: 16px;
  font-weight: 400;
  font-family: "Poppins", Helvetica, Arial, sans-serif;
}

.pricing-card .currency {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  color: #999;
  margin-left: -0.5em;
}

.pricing-card .amount {
  font-family: "Poppins", Helvetica, Arial, sans-serif;
  font-size: 80px;
  line-height: 1.03em;
  font-weight: 500;
}

.pricing-card--explorer .amount {
  color: #fe3d73;
}

.pricing-card--innovator .amount {
  color: #8b20bb;
}

.pricing-card--visionary .amount {
  color: #c532c9;
}

.pricing-card .period,
.pricing-card .slash {
  font-size: 16px;
  font-weight: 400;
  color: #999;
}

.pricing-card ul {
  list-style: none;
  margin: 20px 0 0;
  padding: 30px;
}

.pricing-card li {
  font-family: "Poppins", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.8em;
  text-align: center;
  color: #666;
  padding: 0 0 1.6em;
}

.pricing-card li:last-child {
  padding-bottom: 0;
}

.pricing-action {
  padding: 0 30px;
}

.btn-select {
  display: inline-block;
  background-color: #8b20bb;
  border: 8px solid #8b20bb;
  color: #fff !important;
  font-family: "Poppins", Helvetica, Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.7em;
  padding: 0.3em 1em;
  border-radius: 3px;
  min-height: 44px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-select:hover {
  background-color: #8b20bb;
  border-color: #8b20bb;
  color: #fff !important;
}

.pricing-card.featured {
  background: #fff;
  margin-top: 0;
  position: relative;
  z-index: 10;
}

.pricing-card.featured ul {
  padding-bottom: 50px;
}

/* Testimonials */
.testimonials {
  padding: 2vw 0 6vw;
  margin-top: -3vw;
  background: var(--home-white);
}

.testimonials blockquote {
  margin: 0;
}

.testimonials img {
  display: block;
  margin-bottom: 12px;
}

.testimonials p {
  color: #000;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
}

/* About — overlapping framed phones + coral + skyline art */
.about {
  background-color: var(--home-coral);
  background-image: url("../img/about-bg.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% auto;
  color: var(--home-white);
  margin-top: 8vw;
  padding: 8vw 0;
  overflow: visible;
}

.about-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4vw;
}

.about-copy {
  padding: 4vw 4vw 4vw 6vw;
}

.about-copy p {
  color: var(--home-white);
  font-size: 16px;
  line-height: 1.8;
  margin: 20px 0 28px;
}

.about-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.about-phones {
  position: relative;
  min-height: 42vw;
}

.about-phones .phone {
  background: var(--home-white);
  object-fit: cover;
}

.phone-1 {
  position: relative;
  top: 0;
  left: -27%;
  width: 49%;
  z-index: 2;
  border: 1.2vw solid #fff;
  border-radius: 3vw;
  box-shadow: 0 64px 64px 0 rgba(1, 6, 17, 0.16);
}

.phone-2 {
  position: absolute;
  top: -28%;
  right: 0;
  left: auto;
  width: 61%;
  z-index: 1;
  border: 1.5vw solid #fff;
  border-radius: 4vw;
  box-shadow: 0 64px 64px 0 rgba(1, 6, 17, 0.16);
}

.phone-3 {
  position: absolute;
  top: -5%;
  left: 15%;
  width: 38%;
  z-index: 3;
  border: 1vw solid #fff;
  border-radius: 4vw;
  box-shadow: 0 64px 64px 0 rgba(1, 6, 17, 0.16);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.social-links a {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--home-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  min-width: 44px;
  min-height: 44px;
}

.social-links a:hover {
  background: rgba(0, 0, 0, 0.5);
  color: var(--home-white);
}

/* Footer */
.footer {
  background: var(--home-footer);
  color: var(--home-white);
  padding: 20px 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer p {
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal a {
  color: var(--home-white);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-legal a:hover {
  color: hsla(0, 0%, 100%, 0.7);
}

.scroll-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  background: var(--home-purple);
  color: var(--home-white);
  border-radius: 4px;
  opacity: 0;
  visibility: hidden;
  z-index: 996;
  transition: opacity 0.2s ease;
}

.scroll-top.active {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  color: var(--home-white);
  background: #5a3ee6;
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Tablet — Divi 980 */
@media (max-width: 980px) {
  .hero {
    padding: 48px 0 80px;
  }

  .hero-copy {
    padding: 0 24px 24px;
    text-align: center;
  }

  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-visual img {
    transform: none;
    margin-left: 0;
    max-height: 400px;
  }

  .feature-card {
    max-width: none;
  }

  .mid h2 {
    font-size: 40px;
  }

  .testimonials p {
    font-size: 16px;
  }

  .about-phones {
    min-height: 360px;
    margin-bottom: 32px;
  }

  .phone-1,
  .phone-2,
  .phone-3 {
    border-width: 8px;
    border-radius: 16px;
  }

  .phone-1 {
    left: 0;
    width: 40%;
  }

  .phone-2 {
    top: 8%;
    width: 48%;
  }

  .phone-3 {
    top: 18%;
    left: 22%;
    width: 34%;
  }

  .about-copy {
    padding: 24px;
  }
}

/* Mobile nav — Divi-style full-width drop under header */
@media (max-width: 1199.98px) {
  .mobile-nav-toggle {
    display: inline-flex;
  }

  .navmenu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--home-white);
    flex-direction: column;
    align-items: stretch;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    padding: 8px 0 16px;
  }

  body.mobile-nav-active .navmenu ul {
    display: flex;
  }

  .navmenu a {
    min-height: 44px;
    padding: 12px 24px;
  }

  .mobile-nav-dim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 996;
  }

  .mobile-nav-dim[hidden] {
    display: none;
  }

  body.mobile-nav-active .mobile-nav-dim {
    display: block;
  }
}

/* Phone — Divi 767 */
@media (max-width: 767px) {
  .hero h1 {
    font-size: 40px;
  }

  .feature-card {
    text-align: left;
  }

  .feature-card img {
    width: 96px;
    height: 96px;
  }

  .feature-card h3 {
    font-size: 20px;
  }

  .pricing-grid {
    flex-direction: column;
  }

  .pricing-card {
    width: 100%;
    margin-top: 16px;
  }

  .pricing-card.featured {
    margin-top: 16px;
  }

  .pricing-card .amount {
    font-size: 64px;
  }

  .testimonials {
    margin-top: 0;
    padding: 40px 0;
  }

  .testimonials p {
    font-size: 14px;
  }

  .about {
    margin-top: 40px;
    padding: 48px 0;
  }

  .about-phones {
    min-height: 220px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 8px;
  }

  .about-phones .phone {
    position: static;
    width: 30%;
    left: auto;
    top: auto;
    right: auto;
    border-width: 4px;
    border-radius: 12px;
    box-shadow: 0 16px 24px rgba(1, 6, 17, 0.16);
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 479px) {
  .btn-cta,
  .btn-select {
    width: 100%;
  }

  .hero-row,
  .about-inner {
    padding: 0 16px;
  }
}
