@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --bg: #f5f7fb;
  --line: rgba(15, 23, 42, 0.06);
  --text: #111827;
  --muted: #5b6474;
  --teal: #6fe3d1;
  --amber: #ffc966;
  --blue: #76a7ff;
  --mint: #a5f0ba;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

html.is-landing-page,
body.is-landing-page {
  height: 100%;
  overflow: hidden;
}

body.is-landing-page {
  overscroll-behavior: none;
  touch-action: none;
}

button { font: inherit; }

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

.page-shell {
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 138px;
}

#content {
  display: grid;
  gap: 24px;
}

#content.is-landing {
  min-height: calc(100dvh - 64px);
  align-content: center;
  justify-items: center;
  gap: 16px;
}

#content.is-articles {
  align-content: start;
  justify-items: stretch;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 4px 0;
}

.back-button {
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
}

.topbar__copy {
  display: grid;
  gap: 4px;
}

.topbar__kicker {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.topbar__title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  letter-spacing: -0.04em;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: min(225px, 100%);
  margin: 0 auto;
}

.landing-copy {
  width: min(560px, 100%);
  margin: 2px auto 0;
  text-align: center;
  display: grid;
  gap: 8px;
  padding: 0 4px;
}

.landing-copy__eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}

.landing-copy__title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.2rem, 2.6vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--text);
}

.landing-copy__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.platform-card {
  aspect-ratio: 1 / 1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 5px;
  border: 0;
  border-radius: 16px;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: var(--text);
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.18s ease, background 0.18s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

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

.platform-card::after {
  content: none;
}

.platform-card--teal {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)),
    url('./assets/logo-parts/android.png');
}

.platform-card--amber {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)),
    url('./assets/logo-parts/iphone.png');
}

.platform-card--blue {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)),
    url('./assets/logo-parts/web.png');
}

.platform-card--mint {
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12)),
    url('./assets/logo-parts/windows.png');
}

.platform-card__mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  border: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.platform-card__icon-svg {
  width: 18px;
  height: 18px;
  display: block;
}

.platform-card__label {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(0.8rem, 1vw, 0.92rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.platform-card__count {
  color: var(--muted);
  font-size: 0.66rem;
}

.platform-card__hint {
  color: rgba(91, 100, 116, 0.82);
  font-size: 0.58rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.articles-panel {
  padding: 22px;
  border: 0;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.90)),
    rgba(255, 255, 255, 0.96);
  box-shadow: none;
  backdrop-filter: blur(18px);
}

.articles-panel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.articles-panel__kicker {
  margin: 0 0 6px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
}

.articles-panel__title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}

.articles-panel__count {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
  font-weight: 700;
}

.article-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.article-card {
  width: 100%;
  display: grid;
  gap: 12px;
  text-align: left;
  border: 0;
  border-radius: 22px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96)),
    rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.18s ease, background 0.18s ease;
}

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

.article-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.article-card__title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.08rem;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.article-card__date {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(111, 227, 209, 0.12);
  color: #0f766e;
  font-size: 0.84rem;
  font-weight: 700;
}

.article-card__meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.empty-state {
  padding: 30px 20px;
  border: 0;
  border-radius: 24px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

.bottom-menu {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 90;
  width: min(100% - 16px, 430px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  min-height: 72px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 28px;
  background:
    radial-gradient(circle at top, rgba(111, 227, 209, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.90));
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.12),
    0 2px 0 rgba(255, 255, 255, 0.55) inset;
  backdrop-filter: blur(18px);
  isolation: isolate;
}

.bottom-menu__item {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 0 8px;
  border-radius: 20px;
  color: var(--text);
  flex: 1 1 0;
  transition: transform 0.18s ease;
  position: relative;
  white-space: nowrap;
  z-index: 1;
  background: transparent;
  box-shadow: none;
}

.bottom-menu__item:first-child {
  justify-items: center;
}

.bottom-menu__item:last-child {
  justify-items: center;
}

.bottom-menu__item:first-child .bottom-menu__label {
  display: inline-block;
  transform: translateX(-48px);
}

.bottom-menu__item:last-child .bottom-menu__label {
  display: inline-block;
  transform: translateX(48px);
}

.bottom-menu__item:hover {
  transform: translateY(-2px);
  background: transparent;
}

.bottom-menu__item:focus-visible {
  outline: 3px solid rgba(111, 227, 209, 0.35);
  outline-offset: 2px;
}

.bottom-menu__item:not(.bottom-menu__item--primary):is(:hover, :focus-visible, :active) {
  background: transparent;
  box-shadow: none;
}

.bottom-menu__item:not(.bottom-menu__item--primary) .bottom-menu__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.bottom-menu__item:not(.bottom-menu__item--primary):is(:hover, :focus-visible, :active) .bottom-menu__label {
  background: linear-gradient(180deg, rgba(111, 190, 255, 0.95), rgba(86, 160, 240, 0.98));
  color: #ffffff;
  box-shadow:
    0 10px 20px rgba(86, 160, 240, 0.20),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
}

.bottom-menu__icon {
  display: none;
}

.bottom-menu__item--primary {
  flex: 0 0 auto;
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: auto;
  width: 118px;
  height: 118px;
  padding: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: visible;
  z-index: 2;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.90) 44%, rgba(238, 253, 249, 0.98) 100%);
  border: 1px solid rgba(111, 227, 209, 0.24);
  box-shadow:
    0 30px 64px rgba(15, 23, 42, 0.24),
    0 0 0 16px rgba(111, 227, 209, 0.16),
    0 0 28px rgba(111, 227, 209, 0.22);
  transform: translate(-50%, -50%);
  animation: bottomMenuPrimaryFloat 1.8s ease-in-out infinite;
}

.bottom-menu__item--primary:hover {
  transform: translate(-50%, -50%) scale(1.05);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92) 44%, rgba(238, 253, 249, 0.98) 100%);
}

.bottom-menu__item--primary::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(111, 227, 209, 0.42), transparent 66%);
  filter: blur(14px);
  z-index: 0;
  animation: bottomMenuPulse 1.4s ease-in-out infinite;
  pointer-events: none;
}

.bottom-menu__orb {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.bottom-menu__orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.bottom-menu__orb img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 50%;
  transform: translateY(1px);
  filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.14));
}

.bottom-menu__item:not(.bottom-menu__item--primary) .bottom-menu__label {
  font-size: 0.84rem;
  font-weight: 700;
  color: rgba(17, 24, 39, 0.88);
}

.bottom-announce {
  position: fixed;
  left: 50%;
  bottom: calc(128px + env(safe-area-inset-bottom));
  z-index: 95;
  width: min(100% - 20px, 430px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #5aa8f5;
  font-size: clamp(0.8rem, 2.7vw, 0.92rem);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateX(-50%);
  pointer-events: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

@keyframes bottomMenuPulse {
  0%, 100% { opacity: 0.72; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes bottomMenuPrimaryFloat {
  0%, 100% {
    box-shadow:
      0 30px 64px rgba(15, 23, 42, 0.22),
      0 0 0 16px rgba(111, 227, 209, 0.16),
      0 0 28px rgba(111, 227, 209, 0.20);
  }
  50% {
    box-shadow:
      0 36px 76px rgba(15, 23, 42, 0.30),
      0 0 0 22px rgba(111, 227, 209, 0.24),
      0 0 40px rgba(111, 227, 209, 0.30);
  }
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100;
  overflow-y: auto;
  padding: 24px 0 48px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.modal.is-open { display: block; }

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

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(8px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 24px));
  margin: 6vh auto 48px;
  padding: 22px;
  border: 0;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.98)),
    rgba(255, 255, 255, 0.98);
  box-shadow: none;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
  font-size: 1.65rem;
  cursor: pointer;
}

.modal__meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-right: 52px;
}

.modal__kicker {
  margin: 0 0 8px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
}

.modal__title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.modal__date {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(111, 227, 209, 0.14);
  color: #0f766e;
  font-size: 0.88rem;
  font-weight: 700;
}

.modal__body {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 0;
}

.modal__summary {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.modal__content :is(h1, h2, h3, h4, h5, h6) {
  margin: 20px 0 10px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.modal__content :is(p, ul, ol, blockquote, pre, figure) {
  margin: 0 0 14px;
}

.modal__content p,
.modal__content li,
.modal__content blockquote,
.modal__content pre {
  color: var(--text);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.modal__content ul,
.modal__content ol {
  padding-left: 22px;
}

.modal__content img {
  display: block;
  width: 100%;
  height: auto;
  margin: 14px 0;
  border-radius: 18px;
  border: 0;
  background: rgba(255, 255, 255, 0.98);
}

.modal__content a {
  color: var(--teal);
  text-decoration: none;
  word-break: break-word;
}

.modal__content figure {
  display: grid;
  gap: 10px;
}

.modal__content figcaption {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .platform-grid {
    width: min(225px, 100%);
  }

  .articles-panel__head,
  .modal__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 18px, 1220px);
    padding: 12px 0 154px;
  }

  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(225px, 100%);
    gap: 6px;
  }

  .platform-card {
    aspect-ratio: 1 / 1;
    min-height: 0;
    border-radius: 16px;
    padding: 5px;
  }

  .platform-card__mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .platform-card__icon-svg {
    width: 17px;
    height: 17px;
  }

  .article-list {
    grid-template-columns: 1fr;
  }

  .article-card__top {
    flex-direction: column;
  }

  .modal__panel {
    margin-top: 3vh;
  }

  .bottom-menu {
    width: min(370px, calc(100vw - 12px));
    min-height: 62px;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 26px;
  }

  .bottom-menu__item {
    padding: 0 6px;
  }

  .bottom-menu__item:not(.bottom-menu__item--primary):is(:hover, :focus-visible, :active) {
    box-shadow: none;
  }

  .bottom-menu__item:first-child .bottom-menu__label {
    transform: translateX(-30px);
  }

  .bottom-menu__item:last-child .bottom-menu__label {
    transform: translateX(30px);
  }

  .bottom-menu__item--primary {
    top: 50%;
    bottom: auto;
    width: 102px;
    height: 102px;
  }

  .bottom-menu__orb {
    width: 68px;
    height: 68px;
  }

  .bottom-menu__orb img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
  }

  .bottom-menu__item:not(.bottom-menu__item--primary) .bottom-menu__label {
    font-size: 0.8rem;
    min-height: 30px;
    padding: 0.45rem 0.8rem;
  }

  .bottom-announce {
    bottom: calc(118px + env(safe-area-inset-bottom));
    width: min(370px, calc(100vw - 12px));
    font-size: 0.84rem;
  }
}
