:root {
  --background: 210 22% 92%;
  --foreground: 215 34% 20%;
  --card: 0 0% 100%;
  --card-foreground: 215 34% 20%;
  --primary: 214 88% 55%;
  --primary-foreground: 0 0% 100%;
  --muted: 210 20% 86%;
  --muted-foreground: 215 16% 43%;
  --border: 214 28% 88%;
  --radius: 0.75rem;

  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;

  --hero-gradient: linear-gradient(135deg, #3d79df 0%, #4f93ea 50%, #60acef 100%);
  --shadow: 0 10px 30px rgba(16, 58, 126, 0.12);
  --content-max: 1260px;
  --gutter: clamp(0.85rem, 2.4vw, 1.35rem);
  --space-section: clamp(1.2rem, 2.6vw, 2.4rem);
  --space-card: clamp(0.7rem, 1.2vw, 1rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  background: hsl(var(--background));
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
}

p {
  margin: 0;
}

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

.page {
  width: 100%;
  min-height: 100vh;
}

.hero-shell,
.categories,
.why,
.cta-band,
.footer {
  width: min(var(--content-max), calc(100% - (var(--gutter) * 2)));
  margin-left: auto;
  margin-right: auto;
}

.hero-shell {
  margin-top: 1.25rem;
  border-radius: 22px;
  overflow: hidden;
  background: var(--hero-gradient);
  padding: 1.1rem 1.4rem 0;
  box-shadow: 0 14px 34px rgba(20, 75, 155, 0.14);
}

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

.brand {
  width: clamp(110px, 12vw, 160px);
  display: inline-flex;
}

.brand img {
  width: 100%;
  height: auto;
  display: block;
}

.menu {
  display: flex;
  gap: 1.35rem;
}

.menu a {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  transition: opacity 0.2s ease;
}

.menu a:hover {
  opacity: 0.8;
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-light {
  background: #fff;
  color: #1a4a94;
  font-size: 0.8rem;
  padding: 0.62rem 1rem;
}

.hero-content {
  position: relative;
  min-height: clamp(360px, 40vw, 500px);
  padding: 1.45rem 0 0;
}

.hero-copy {
  max-width: min(53%, 500px);
  padding-top: 1.35rem;
}

.hero-copy h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.9rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.word-rotator {
  color: #e4f3ff;
}

.word-rotator.is-leaving {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.word-rotator.is-entering {
  animation: wordIn 0.45s ease;
}

.hero-copy p {
  margin-top: 1.05rem;
  color: rgba(239, 247, 255, 0.95);
  max-width: 440px;
  font-size: clamp(0.95rem, 1.25vw, 1.12rem);
  line-height: 1.4;
}

.btn-primary {
  display: inline-block;
  margin-top: 1.45rem;
  padding: 0.82rem 1.6rem;
  color: #fff;
  background: linear-gradient(180deg, #1a65dd 0%, #0d4bb8 100%);
  box-shadow: 0 10px 24px rgba(5, 46, 121, 0.26);
}

.hero-visual {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(48%, 430px);
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  display: block;
}

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

.cat-card {
  background: hsl(var(--card));
  border-radius: 14px;
  padding: var(--space-card);
  box-shadow: var(--shadow);
  border: 1px solid hsl(var(--border));
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cat-card.is-active {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 32px rgba(20, 80, 168, 0.22);
}

.cat-image {
  border-radius: 11px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.cat-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cat-card h3 {
  margin-top: 0.65rem;
  text-align: center;
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: #0f376e;
}

.why {
  padding: clamp(1.8rem, 4vw, 2.8rem) 0.25rem 1.25rem;
  text-align: center;
}

.why h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  color: #133a73;
}

.why-sub {
  margin-top: 0.55rem;
  color: hsl(var(--muted-foreground));
  font-size: 0.98rem;
}

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

.feature {
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: 13px;
  padding: 1rem 0.95rem;
  text-align: left;
  min-height: 148px;
  box-shadow: 0 4px 14px rgba(11, 58, 130, 0.06);
}

.feature h3 {
  font-size: 0.9rem;
  color: #10376f;
  margin-bottom: 0.36rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.feature p {
  font-size: 0.78rem;
  color: #5b7093;
  line-height: 1.42;
}

.cta-band {
  margin-top: 1.25rem;
  border-radius: 18px;
  background: var(--hero-gradient);
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem 1.55rem;
  box-shadow: 0 14px 34px rgba(25, 88, 173, 0.16);
}

.cta-band h2 {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
}

.cta-band p {
  margin-top: 0.38rem;
  color: rgba(240, 247, 255, 0.92);
  font-size: 0.9rem;
}

.store-buttons {
  margin-top: 1.05rem;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.58rem 1.02rem;
  border-radius: 999px;
  background: #fff;
  color: #12407f;
  font-weight: 700;
  font-size: 0.78rem;
}

.store-primary {
  background: #1a59cd;
  color: #fff;
}

.footer {
  margin-bottom: 1.45rem;
  padding: 1.25rem 0.15rem 0.65rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 1.2rem;
  color: #5c7092;
}

.footer h4 {
  font-size: 0.84rem;
  color: #19447f;
  margin-bottom: 0.4rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.footer p,
.footer li {
  font-size: 0.74rem;
  line-height: 1.45;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.copyright {
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid hsl(var(--border));
  text-align: center;
  color: #8a9bb4;
  font-size: 0.7rem;
}

@keyframes wordIn {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .menu {
    width: 100%;
    order: 3;
    overflow-x: auto;
    padding-bottom: 0.3rem;
    scrollbar-width: none;
  }

  .menu::-webkit-scrollbar {
    display: none;
  }

  .menu a {
    white-space: nowrap;
    font-size: 0.78rem;
    padding: 0.35rem 0.58rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.17);
  }

  .hero-content {
    min-height: 0;
    padding: 1.1rem 0 0;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-copy p {
    max-width: 460px;
  }

  .hero-visual {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 2 / 3;
    margin: 0 auto;
    height: auto;
  }

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

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

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

@media (max-width: 620px) {
  .hero-shell {
    padding: 0.95rem 1rem 0;
    border-radius: 18px;
    margin-top: 0.85rem;
  }

  .topbar {
    flex-wrap: wrap;
    gap: 0.55rem;
  }

  .btn-light {
    font-size: 0.74rem;
    padding: 0.5rem 0.8rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 10vw, 2.5rem);
    line-height: 1.08;
  }

  .headline-top {
    white-space: normal;
  }

  .word-rotator {
    display: inline;
  }

  .btn-primary {
    margin-top: 1.05rem;
  }

  .categories {
    grid-template-columns: 1fr 1fr;
    gap: 0.72rem;
  }

  .cat-card {
    padding: 0.5rem;
  }

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

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

  .hero-shell,
  .categories,
  .why,
  .cta-band,
  .footer {
    width: calc(100% - 1rem);
  }
}
