:root {
  --primary: #6d5bd0;
  --primary-dark: #5847b5;
  --accent: #f0a24d;
  --accent-dark: #de8f37;
  --text: #26223b;
  --muted: #65607e;
  --bg: #faf8ff;
  --bg-soft: #f3efff;
  --border: #e3dcf5;
  --shadow: 0 12px 28px rgba(67, 54, 118, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(28, 22, 60, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  text-decoration: none;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-text {
  line-height: 1;
}

.nav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.5rem 0.86rem;
  border-radius: 999px;
}

.nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.nav a.nav-download {
  color: #ffffff;
  background: var(--primary);
  border: 1px solid transparent;
  box-shadow: 0 8px 18px rgba(109, 91, 208, 0.25);
}

.nav a.nav-download:hover {
  color: #ffffff;
  background: var(--primary-dark);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.5rem;
}

.lang-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.32rem 0.42rem;
  min-width: 2.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-flag {
  width: 1.3rem;
  height: auto;
  display: block;
  border-radius: 0.15rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.lang-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.lang-btn.is-active {
  color: #ffffff;
  background: var(--primary);
  border-color: transparent;
}

.hero {
  padding: 5.5rem 0 8rem;
  border-bottom: 0;
  background: linear-gradient(135deg, #1c163c 0%, #2d246b 55%, #3b2f82 100%);
  position: relative;
  overflow: visible;
  min-height: 620px;
  display: flex;
  align-items: center;
  z-index: 2;
}

.hero h1,
.hero .hero-text {
  color: #ffffff;
}

.hero .hero-text {
  color: rgba(255, 255, 255, 0.7);
}

.hero .eyebrow {
  color: var(--accent);
}

#features {
  background: var(--bg);
  position: relative;
  overflow: visible;
  padding-top: 11rem;
  z-index: 1;
}

#features h2,
#features .section-intro {
  color: var(--text);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(280px, 420px);
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-copy {
  max-width: 560px;
  justify-self: end;
}

.hero-visual {
  display: flex;
  justify-content: center;
  justify-self: start;
}

.hero-mascot-wrap {
  position: relative;
  width: min(360px, 100%);
  padding: 0.5rem;
}

.hero-mascot-wrap::before {
  content: "";
  position: absolute;
  inset: 6% 10% 12%;
  border-radius: 36px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.04) 58%, rgba(255, 255, 255, 0) 100%);
  filter: blur(8px);
}

.hero-mascot {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 44px rgba(5, 2, 27, 0.32));
}

.eyebrow {
  margin: 0;
  color: var(--primary-dark);
  font-size: 0.82rem;
  letter-spacing: 1.25px;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  margin: 0.36rem 0 0.9rem;
  font-size: clamp(2.1rem, 4.7vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
}

.hero-text {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 0.74rem;
  flex-wrap: wrap;
  margin: 1.2rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.7rem 1.12rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.94rem;
}

.btn-primary {
  color: #ffffff;
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(240, 162, 77, 0.4);
}

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

.btn-secondary {
  color: #2b3340;
  border: 1px solid var(--border);
  background: #ffffff;
}

.hero .btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-phone-stage {
  position: relative;
  z-index: 3;
  margin-top: -10rem;
  margin-bottom: -5rem;
}

.hero-phone-stage .container {
  display: flex;
  justify-content: center;
}

.hero-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  position: relative;
  width: min(700px, 100%);
  height: 430px;
}

.hero-phone {
  flex: 0 0 auto;
  width: 168px;
  border-radius: 28px;
  overflow: hidden;
  border: 0;
  box-shadow: 0 28px 70px rgba(12, 12, 30, 0.24);
  transition: transform 0.2s ease;
  position: absolute;
  background: transparent;
}

.hero-phone img {
  width: 100%;
  height: auto;
  display: block;
}

.zoomable-image {
  cursor: zoom-in;
}

.hero-phone--back {
  left: 7%;
  bottom: 2.1rem;
  transform: rotate(-5deg) translateY(8px);
  z-index: 1;
  width: 148px;
}

.hero-phone--mid {
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  z-index: 3;
  width: 198px;
}

.hero-phone--front {
  right: 7%;
  bottom: 2.1rem;
  transform: rotate(5deg) translateY(8px);
  z-index: 2;
  width: 148px;
}

.hero-phones:hover .hero-phone--back {
  transform: rotate(-5deg) translateY(4px);
}

.hero-phones:hover .hero-phone--front {
  transform: rotate(5deg) translateY(4px);
}

.section {
  padding: 4rem 0;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  text-align: center;
}

.section-intro {
  margin: 0.8rem auto 2.3rem;
  max-width: 720px;
  text-align: center;
  color: var(--muted);
  line-height: 1.75;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.15rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
}

.feature-card h3 {
  margin: 0;
  color: var(--accent);
  line-height: 1.2;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: var(--accent);
  overflow: hidden;
  line-height: 0;
}

.feature-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-icon--tips,
.feature-icon--plans,
.feature-icon--focus,
.feature-icon--overview {
  color: var(--accent);
}

.section-soft {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}

#awards {
  background: #ffffff;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.screenshot-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 720px;
  margin: 0 auto;
}

.screenshot-img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: block;
}

.awards-grid .screenshot-img {
  height: clamp(230px, 30vw, 320px);
  object-fit: contain;
  background: #ffffff;
}

.team-text {
  max-width: 920px;
  margin-bottom: 1rem;
}

.team-slideshow {
  position: relative;
  max-width: 860px;
  margin: 1rem auto 0.85rem;
}

.team-slide-track {
  border-radius: 18px;
  overflow: hidden;
}

.team-slide {
  display: none;
  margin: 0;
}

.team-slide.is-active {
  display: block;
}

.team-photo {
  display: block;
  width: 100%;
  height: clamp(260px, 42vw, 470px);
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.team-slide-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(28, 22, 60, 0.7);
  color: #ffffff;
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
}

.team-slide-prev {
  left: 0.75rem;
}

.team-slide-next {
  right: 0.75rem;
}

.team-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.team-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: #d6d0ea;
  cursor: pointer;
}

.team-dot.is-active {
  background: var(--primary);
}

.download-row {
  display: flex;
  gap: 0.78rem;
  flex-wrap: wrap;
}

.download-row-centered {
  justify-content: center;
  margin-top: 1rem;
}

.download-section {
  background: linear-gradient(180deg, #f0a24d 0%, #de8f37 100%);
  border-top: 1px solid #d4832d;
  border-bottom: 1px solid #cc7a25;
}

.download-section h2,
.download-section .section-intro {
  color: #ffffff;
}

.legal-section {
  background: linear-gradient(180deg, #fffaf2 0%, #fffdf8 100%);
  border-top: 1px solid rgba(222, 143, 55, 0.22);
}

.legal-wrap {
  display: flex;
  justify-content: center;
}

.legal-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f7f3ff 0%, #fffdf8 100%);
}

.legal-main {
  padding: 3rem 0 4rem;
}

.legal-shell {
  display: grid;
  gap: 1.5rem;
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 700;
}

.legal-back-link:hover {
  color: var(--primary);
}

.legal-card {
  width: min(860px, 100%);
  background: #ffffff;
  border: 1px solid rgba(222, 143, 55, 0.18);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(67, 54, 118, 0.08);
  padding: 2rem;
}

.legal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.legal-header h2 {
  margin-bottom: 0;
}

.legal-eyebrow {
  color: var(--accent-dark);
}

.legal-intro {
  margin: 0.85rem 0 1.75rem;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.7;
}

.legal-copy {
  display: grid;
  gap: 1rem;
}

.legal-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.legal-copy strong {
  color: var(--text);
}

.legal-link {
  color: var(--primary-dark);
}

.legal-link:hover {
  color: var(--primary);
}

.download-image-link {
  display: inline-flex;
  text-decoration: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.download-image-btn {
  display: block;
  width: min(210px, 44vw);
  height: min(62px, 13vw);
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
  object-fit: cover;
  object-position: center;
  clip-path: inset(0);
  transition: transform 0.2s ease;
}

.download-image-link:hover .download-image-btn {
  transform: translateY(-1px);
}

.narrow {
  max-width: 760px;
}

.gallery-item {
  display: block;
  border-radius: 18px;
  overflow: hidden;
}

.gallery-item img {
  transition: transform 0.2s ease;
}

.gallery-item:hover img {
  transform: scale(1.015);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(17, 12, 34, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

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

.image-lightbox-img {
  max-width: min(1200px, 95vw);
  max-height: 90vh;
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(4, 2, 17, 0.5);
}

.image-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

body.lightbox-open {
  overflow: hidden;
}

.site-footer {
  background: #1c163c;
  color: #ebe6fb;
  padding: 1.35rem 0;
}

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

.footer-row p {
  margin: 0;
}

.footer-mail {
  color: #ebe6fb;
  text-decoration: none;
  font-weight: 600;
}

.footer-mail:hover {
  text-decoration: underline;
}

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

.footer-links a {
  color: #ebe6fb;
  text-decoration: none;
}

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

.footer-grid h4 {
  margin: 0 0 0.35rem;
  color: #ffffff;
}

.footer-grid p {
  margin: 0.2rem 0;
}

.footer-grid a {
  color: #ebe6fb;
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-copy {
    max-width: 720px;
  }

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

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

  .hero-visual {
    justify-self: center;
  }

  .hero-mascot-wrap {
    width: min(330px, 80vw);
  }

  .hero-phone-stage {
    margin-top: -5.25rem;
    margin-bottom: -3.5rem;
  }

  .hero-phones {
    height: 370px;
    width: min(500px, 100%);
  }

  .hero-phone--mid {
    width: 172px;
  }

  .hero-phone--back,
  .hero-phone--front {
    width: 128px;
  }

  .hero-phone--back {
    left: 5%;
  }

  .hero-phone--front {
    right: 5%;
  }

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

  #features {
    padding-top: 9rem;
  }

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

  .section {
    padding: 3rem 0;
  }

  .team-slideshow {
    max-width: 100%;
  }

  .download-row {
    justify-content: center;
  }

  .legal-card {
    padding: 1.7rem;
  }
}

@media (max-width: 640px) {
  .nav-wrap {
    flex-direction: column;
    justify-content: center;
    padding: 0.8rem 0;
    gap: 0.55rem;
  }

  .nav {
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
  }

  .nav a {
    font-size: 0.88rem;
    padding: 0.46rem 0.72rem;
  }

  .nav a.nav-download {
    padding-inline: 0.95rem;
  }

  .lang-switch {
    margin-left: 0;
    gap: 0.25rem;
  }

  .lang-btn {
    min-width: 2.2rem;
    padding: 0.28rem 0.38rem;
  }

  .lang-flag {
    width: 1.2rem;
  }

  .hero {
    padding: 3.1rem 0 7rem;
    min-height: auto;
  }

  .hero-mascot-wrap {
    width: min(280px, 78vw);
  }

  .hero-phone-stage {
    margin-top: -4.25rem;
    margin-bottom: -2rem;
  }

  .hero-phones {
    height: 280px;
    width: min(340px, 100%);
  }

  .hero-phone {
    border-radius: 22px;
  }

  .hero-phone img {
    border-radius: 22px;
  }

  .hero-phone--mid {
    width: 136px;
  }

  .hero-phone--back,
  .hero-phone--front {
    width: 96px;
    bottom: 1.4rem;
  }

  .hero-phone--back {
    left: 0;
    transform: rotate(-4deg) translateY(8px);
  }

  .hero-phone--front {
    right: 0;
    transform: rotate(4deg) translateY(8px);
  }

  #features {
    padding-top: 6.75rem;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

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

  .footer-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
  }

  .footer-links {
    justify-content: center;
  }

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

  .team-slide-nav {
    width: 34px;
    height: 34px;
  }

  .screenshot-grid-2 {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .awards-grid .screenshot-img {
    height: auto;
    max-height: 260px;
  }

  .legal-card {
    padding: 1.35rem;
    border-radius: 18px;
  }

  .legal-header {
    flex-direction: column;
    align-items: stretch;
  }

  .section {
    padding: 2.25rem 0;
  }

  .section h2 {
    font-size: 1.55rem;
  }

  .download-image-btn {
    width: min(180px, 42vw);
    height: min(54px, 12vw);
  }
}

@media (max-width: 480px) {
  .container {
    width: min(1120px, 94%);
  }

  .nav-wrap {
    padding: 0.7rem 0;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-wrap {
    gap: 0.4rem;
  }

  .nav {
    gap: 0.35rem;
  }

  .nav a {
    font-size: 0.84rem;
    padding: 0.42rem 0.62rem;
  }

  .lang-btn {
    min-width: 2.05rem;
    padding: 0.25rem 0.34rem;
  }

  .lang-flag {
    width: 1.08rem;
  }
}

@media (min-width: 941px) {
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
