:root {
  --sky: #7ec7ee;
  --cream: #fff8e8;
  --navy: #17214c;
  --cobalt: #3156ee;
  --coral: #ff614a;
  --lime: #b9f17c;
  --yellow: #ffca58;
  --white: #ffffff;
  --ink-muted: #485071;
  --page-max: 1200px;
  --line: 2px solid var(--navy);
  --shadow-sm: 4px 4px 0 var(--navy);
  --shadow-md: 8px 8px 0 var(--navy);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--sky);
  color: var(--navy);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 4px solid var(--yellow);
  outline-offset: 4px;
}

.site-header,
.section-shell,
footer {
  width: min(var(--page-max), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: cover;
  border: var(--line);
  border-radius: 13px;
  box-shadow: 3px 3px 0 var(--navy);
  transform: rotate(-4deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 0.94rem;
  font-weight: 750;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:not(.nav-store-link):hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.nav-store-link {
  padding: 11px 17px;
  border: var(--line);
  border-radius: 14px;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.nav-store-link:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--navy);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 10px;
  border: var(--line);
  border-radius: 13px;
  background: var(--cream);
  box-shadow: 3px 3px 0 var(--navy);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
}

.hero {
  width: min(var(--page-max), calc(100% - 48px));
  min-height: 710px;
  margin: 0 auto;
  padding: clamp(42px, 5vw, 74px);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  background: var(--cream);
  border: var(--line);
  border-radius: 38px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow,
.section-kicker {
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.eyebrow-dot {
  width: 9px;
  height: 9px;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: var(--lime);
}

.hero h1 {
  max-width: 790px;
  margin: 25px 0 25px;
  font-size: clamp(4rem, 7vw, 7.25rem);
  line-height: 0.86;
  letter-spacing: -0.075em;
  font-weight: 900;
}

.hero h1 span {
  display: block;
  color: var(--coral);
}

.hero-copy > p {
  max-width: 670px;
  margin: 0;
  font-size: clamp(1.08rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 54px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: var(--line);
  border-radius: 15px;
  text-decoration: none;
  font-weight: 850;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button-primary {
  color: var(--white);
  background: var(--cobalt);
  box-shadow: var(--shadow-sm);
}

.button-secondary {
  background: var(--white);
}

.button:hover {
  transform: translate(2px, 2px);
}

.button-primary:hover {
  box-shadow: 2px 2px 0 var(--navy);
}

.button-secondary:hover {
  background: var(--yellow);
}

.hero-facts {
  margin-top: 45px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: var(--line);
}

.hero-facts > div {
  padding: 18px 14px 0 0;
}

.hero-facts > div + div {
  padding-left: 18px;
  border-left: var(--line);
}

.hero-facts strong,
.hero-facts span {
  display: block;
}

.hero-facts strong {
  font-size: 1.9rem;
  line-height: 1;
}

.hero-facts span {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 0.8rem;
  line-height: 1.25;
}

.hero-art {
  min-height: 560px;
  position: relative;
}

.phone-shell {
  width: min(390px, 74%);
  min-height: 610px;
  padding: 20px;
  position: absolute;
  z-index: 4;
  top: -10px;
  left: 50%;
  transform: translateX(-48%) rotate(6deg);
  background: var(--white);
  border: 12px solid var(--navy);
  border-radius: 52px;
  box-shadow: 16px 18px 0 var(--yellow);
  animation: phone-float 5s ease-in-out infinite;
}

.phone-bar {
  width: 92px;
  height: 20px;
  margin: -8px auto 25px;
  border-radius: 0 0 15px 15px;
  background: var(--navy);
}

.phone-heading span,
.phone-heading strong {
  display: block;
}

.phone-heading span {
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

.phone-heading strong {
  margin-top: 6px;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.phone-grid a {
  min-width: 0;
  text-decoration: none;
  text-align: center;
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1.2;
}

.phone-grid img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 8px;
  border: 2px solid var(--navy);
  border-radius: 23%;
}

.phone-note {
  min-height: 190px;
  margin-top: 30px;
  padding: 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  background: var(--lime);
  border: var(--line);
  border-radius: 27px;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.shape {
  position: absolute;
  border: var(--line);
}

.shape-coral {
  width: 190px;
  height: 190px;
  top: 18px;
  right: -42px;
  background: var(--coral);
  border-radius: 50%;
}

.shape-cobalt {
  width: 160px;
  height: 160px;
  bottom: -20px;
  left: -10px;
  background: var(--cobalt);
  transform: rotate(24deg);
}

.shape-lime {
  width: 115px;
  height: 115px;
  right: -10px;
  bottom: 58px;
  background: var(--lime);
  border-radius: 28px;
  transform: rotate(-12deg);
}

.floating-label {
  position: absolute;
  z-index: 7;
  padding: 10px 15px;
  background: var(--cream);
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.label-one {
  top: 100px;
  left: -10px;
  transform: rotate(-8deg);
}

.label-two {
  right: -2px;
  bottom: 175px;
  transform: rotate(7deg);
}

@keyframes phone-float {
  0%,
  100% {
    transform: translateX(-48%) rotate(6deg) translateY(0);
  }
  50% {
    transform: translateX(-48%) rotate(4.5deg) translateY(-9px);
  }
}

.featured-section,
.apps-section {
  padding-block: clamp(90px, 10vw, 150px);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 470px);
  align-items: end;
  gap: 50px;
  margin-bottom: 48px;
}

.section-heading h2,
.studio-intro h2,
.contact-section h2 {
  margin: 11px 0 0;
  font-size: clamp(3rem, 6vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.section-heading > p {
  margin: 0 0 5px;
  color: var(--ink-muted);
  font-size: 1.1rem;
  line-height: 1.55;
}

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

.featured-card {
  min-height: 490px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.featured-card:hover {
  transform: translateY(-7px) rotate(-0.4deg);
  box-shadow: 7px 11px 0 var(--navy);
}

.featured-card-1 {
  background: var(--coral);
}

.featured-card-2 {
  background: var(--cobalt);
  color: var(--white);
}

.featured-card-2 .app-category,
.featured-card-2 p {
  color: #eef0ff;
}

.featured-card-3 {
  background: var(--lime);
}

.featured-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-card img {
  width: 112px;
  height: 112px;
  margin-block: 44px;
  border: var(--line);
  border-radius: 25%;
  box-shadow: 5px 5px 0 var(--navy);
}

.app-category {
  display: block;
  color: var(--ink-muted);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.featured-card h3 {
  margin: 10px 0 12px;
  font-size: clamp(1.7rem, 2.6vw, 2.75rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.featured-card p {
  margin: 0;
  color: var(--navy);
  line-height: 1.45;
}

.apps-section {
  width: 100%;
  max-width: none;
  padding-inline: max(24px, calc((100vw - var(--page-max)) / 2));
  background: var(--cream);
  border-block: var(--line);
}

.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin: -10px 0 38px;
}

.filter {
  min-height: 44px;
  padding: 9px 16px;
  border: var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.filter:hover {
  transform: translateY(-2px);
}

.filter.is-active {
  color: var(--white);
  background: var(--navy);
}

.filter-count {
  margin-left: auto;
  font-size: 0.83rem;
  font-weight: 800;
}

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

.app-card {
  min-height: 355px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: var(--line);
  border-radius: 23px;
  box-shadow: 3px 3px 0 var(--navy);
  animation: card-in 240ms ease both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.app-card img {
  width: 88px;
  height: 88px;
  border: var(--line);
  border-radius: 23%;
}

.app-card-copy {
  margin-top: 24px;
}

.app-card h3 {
  margin: 8px 0 10px;
  font-size: 1.42rem;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.app-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.91rem;
  line-height: 1.45;
}

.app-link {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #d9d8df;
  font-size: 0.85rem;
  font-weight: 850;
  text-decoration: none;
}

.app-link:hover {
  color: var(--cobalt);
}

.studio-section {
  width: min(var(--page-max), calc(100% - 48px));
  margin: 0 auto;
  padding-block: clamp(100px, 12vw, 180px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(55px, 9vw, 150px);
}

.studio-intro h2 {
  max-width: 780px;
}

.studio-copy {
  padding-top: 25px;
}

.studio-copy > p {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.5;
}

.principles {
  margin-top: 55px;
  border-top: var(--line);
}

.principles > div {
  padding: 20px 0;
  display: grid;
  grid-template-columns: 54px 1fr;
  border-bottom: var(--line);
}

.principles span {
  font-size: 0.76rem;
  font-weight: 900;
}

.principles strong {
  font-size: 1.1rem;
}

.contact-section {
  min-height: 430px;
  margin-bottom: 40px;
  padding: clamp(42px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  background: var(--navy);
  color: var(--white);
  border: var(--line);
  border-radius: 36px;
  box-shadow: var(--shadow-md);
}

.contact-section h2 {
  max-width: 960px;
}

.contact-section p {
  margin: 20px 0 0;
  color: #cbd1eb;
  font-size: 1.06rem;
}

.contact-badge {
  display: inline-block;
  padding: 8px 13px;
  color: var(--navy);
  background: var(--yellow);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transform: rotate(-2deg);
}

.contact-link {
  margin-top: 48px;
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--white);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 850;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.contact-link:hover {
  color: var(--lime);
}

.contact-details {
  margin-top: 48px;
}

.contact-details .contact-link {
  margin-top: 0;
}

.contact-details address {
  margin-top: 18px;
  color: #cbd1eb;
  font-size: 0.98rem;
  font-style: normal;
  line-height: 1.5;
}

footer {
  min-height: 170px;
  display: grid;
  grid-template-columns: 1fr 1fr auto auto;
  align-items: center;
  gap: 40px;
  font-size: 0.85rem;
  font-weight: 750;
}

.footer-brand {
  font-size: 1.1rem;
}

.footer-brand .brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  text-underline-offset: 4px;
}

.copyright {
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 640px;
    margin-top: 25px;
  }

  .phone-shell {
    width: 390px;
  }

  .label-one {
    left: 16%;
  }

  .label-two {
    right: 15%;
  }

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

  .featured-card:last-child {
    grid-column: 1 / -1;
    min-height: 420px;
  }

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

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

@media (max-width: 800px) {
  .site-header,
  .section-shell,
  footer,
  .hero,
  .studio-section {
    width: min(calc(100% - 28px), var(--page-max));
  }

  .site-header {
    height: 82px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 73px;
    left: 0;
    right: 0;
    padding: 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border: var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 5px;
  }

  .nav-store-link {
    margin-top: 8px;
    padding: 13px 15px !important;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: 38px 24px;
    border-radius: 27px;
    box-shadow: 6px 6px 0 var(--navy);
  }

  .hero h1 {
    font-size: clamp(3.55rem, 16vw, 5rem);
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-facts > div,
  .hero-facts > div + div {
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid var(--navy);
  }

  .hero-art {
    min-height: 555px;
  }

  .phone-shell {
    width: min(340px, 85vw);
    min-height: 530px;
    left: 50%;
  }

  .phone-note {
    min-height: 145px;
  }

  .shape-cobalt {
    left: -60px;
  }

  .shape-coral {
    right: -70px;
  }

  .floating-label {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .featured-grid,
  .apps-grid,
  .studio-section {
    grid-template-columns: 1fr 1fr;
  }

  .featured-card:last-child {
    grid-column: auto;
  }

  .apps-section {
    padding-inline: 14px;
  }

  .studio-section {
    grid-template-columns: 1fr;
  }

  .studio-copy {
    padding-top: 0;
  }

  .contact-section {
    border-radius: 26px;
  }

  footer {
    padding-block: 44px;
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 1.1rem;
  }

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

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-art {
    min-height: 500px;
    margin-inline: -20px;
  }

  .phone-shell {
    width: min(306px, 86vw);
    min-height: 485px;
    padding: 16px;
    border-width: 9px;
    border-radius: 44px;
  }

  .phone-heading strong {
    font-size: 1.35rem;
  }

  .phone-note {
    min-height: 135px;
    padding: 18px;
    margin-top: 22px;
  }

  .featured-grid,
  .apps-grid {
    grid-template-columns: 1fr;
  }

  .featured-card {
    min-height: 440px;
  }

  .filter-count {
    width: 100%;
    margin: 8px 0 0;
  }

  .section-heading h2,
  .studio-intro h2,
  .contact-section h2 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .contact-section {
    padding: 34px 25px;
  }

  .contact-link {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
