:root {
  color-scheme: light;
  --bg: #eef7ff;
  --bg-soft: #dff1ff;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --surface-muted: #f7fbff;
  --text: #172033;
  --heading: #071527;
  --muted: #5f6b7a;
  --subtle: #8a95a6;
  --line: #d7e5f5;
  --line-strong: #b8cbe1;
  --accent: #1b78e5;
  --accent-strong: #105bb7;
  --accent-soft: #e7f3ff;
  --success: #12715b;
  --warning: #a35b11;
  --violet: #7b61ff;
  --orange: #ff8a3d;
  --sand: #f3d7a6;
  --teal: #23b7a4;
  --rose: #e86f84;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 20px 50px rgba(24, 73, 130, 0.12);
  --shadow-lg: 0 32px 80px rgba(24, 73, 130, 0.18);
  --radius: 8px;
  --max: 1160px;
  --header: rgba(255, 255, 255, 0.82);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090d14;
  --bg-soft: #111827;
  --surface: #101722;
  --surface-raised: #151f2d;
  --surface-muted: #0d141f;
  --text: #e8edf5;
  --heading: #ffffff;
  --muted: #a6b1c2;
  --subtle: #78869a;
  --line: #253247;
  --line-strong: #35445b;
  --accent: #7aa7ff;
  --accent-strong: #9bbcff;
  --accent-soft: #14233d;
  --success: #5ee0bd;
  --warning: #f3b562;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.38);
  --header: rgba(9, 13, 20, 0.82);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(118deg, rgba(255, 198, 109, 0.4) 0 18%, transparent 18% 100%),
    linear-gradient(242deg, rgba(35, 183, 164, 0.22) 0 16%, transparent 16% 100%),
    linear-gradient(180deg, rgba(171, 216, 255, 0.86), rgba(238, 247, 255, 0.52) 520px, var(--bg) 100%),
    var(--bg);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent);
  outline-offset: 3px;
}

button,
input {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: var(--header);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--heading);
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.26), transparent),
    linear-gradient(135deg, #111827, #1f6feb 58%, #65d6ad);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a,
.icon-button,
.filter-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  padding: 0 12px;
  font-weight: 700;
  cursor: pointer;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.icon-button:hover,
.filter-tabs button:hover,
.filter-tabs button.is-active {
  background: var(--surface);
  color: var(--heading);
  box-shadow: var(--shadow-sm);
}

.icon-button {
  width: 40px;
  padding: 0;
}

.icon-button::before {
  content: "◐";
  font-size: 1rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--heading);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  padding: 92px 0 76px;
}

.hero-home {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(128deg, rgba(255, 255, 255, 0.92) 0 48%, rgba(218, 239, 255, 0.84) 48% 72%, rgba(255, 226, 181, 0.58) 72% 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(223, 241, 255, 0.65)),
    var(--bg-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 54px;
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(27, 120, 229, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 850;
}

.eyebrow.subtle {
  color: var(--muted);
  background: var(--surface-muted);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin-top: 18px;
  font-size: clamp(3rem, 8vw, 5.9rem);
  font-weight: 900;
  max-width: 10.5ch;
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3.7rem);
  font-weight: 850;
}

h3 {
  font-size: 1.18rem;
  font-weight: 800;
}

p {
  margin: 0;
}

.hero p,
.lead,
.page-hero p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 66ch;
}

.hero p {
  margin-top: 22px;
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.button.primary {
  background:
    linear-gradient(135deg, #0b1728 0%, #1b78e5 52%, #ff8a3d 100%);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(16, 91, 183, 0.3);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(184, 203, 225, 0.82);
  color: var(--heading);
  box-shadow: 0 12px 26px rgba(24, 73, 130, 0.08);
  backdrop-filter: blur(12px);
}

.button.store {
  gap: 8px;
  background: #ffffff;
  color: var(--heading);
  border-color: rgba(184, 203, 225, 0.9);
}

.button.store::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal), var(--accent));
}

.trust-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.trust-strip span,
.platform-pill,
.meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.product-console {
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    linear-gradient(156deg, rgba(255, 255, 255, 0.96) 0 58%, rgba(231, 243, 255, 0.92) 58% 100%),
    var(--surface);
  box-shadow: 32px 38px 88px rgba(8, 88, 208, 0.18);
  overflow: hidden;
  max-width: 460px;
  margin-left: auto;
}

.console-top {
  display: flex;
  gap: 7px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.console-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line-strong);
}

.console-screen {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.console-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(231, 243, 255, 0.78)),
    var(--surface-muted);
}

.console-row:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 230, 255, 0.82));
}

.console-row:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 233, 215, 0.82));
}

.console-row strong,
.console-row small {
  display: block;
}

.console-row small {
  color: var(--muted);
}

.console-row a {
  color: var(--accent);
  font-weight: 800;
}

.app-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: #ffffff;
  font-weight: 900;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.icon-kpss,
.icon-lunara,
.icon-series {
  background: var(--surface);
}

.section {
  padding: 86px 0;
}

.surface-band {
  background:
    linear-gradient(132deg, rgba(247, 251, 255, 0.94) 0 62%, rgba(255, 240, 216, 0.78) 62% 100%),
    var(--surface-muted);
  border-block: 1px solid var(--line);
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 30px;
}

.split-heading h2 {
  margin-top: 14px;
}

.app-showcase,
.policy-grid,
.app-list,
.contact-grid {
  display: grid;
  gap: 18px;
}

.app-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

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

.app-card,
.policy-card,
.card,
.legal-card,
.contact-card,
.sidebar,
.ops-panel,
.timeline,
.cta,
.legal-search-panel,
.page-hero,
.directory-tools {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.app-card {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--violet), var(--orange));
}

.app-card[data-category="education"]::before {
  background: linear-gradient(90deg, #2f80ed, #23b7a4);
}

.app-card[data-category="ai"]::before {
  background: linear-gradient(90deg, #7b61ff, #e86f84);
}

.app-card[data-category="entertainment"]::before {
  background: linear-gradient(90deg, #ff8a3d, #23b7a4);
}

.app-card header {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.app-card header h3 {
  margin-top: 8px;
}

.app-card p,
.policy-card p,
.feature p,
.contact-card p,
.ops-panel p,
.timeline span,
.legal-card p,
.legal-card li,
.sidebar a,
.meta {
  color: var(--muted);
}

.app-card .app-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0 0;
}

.app-card .actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.app-card-full {
  display: flex;
  min-height: 100%;
  padding: 14px;
  background:
    linear-gradient(148deg, rgba(255, 255, 255, 0.98) 0 54%, rgba(231, 243, 255, 0.9) 54% 78%, rgba(255, 242, 222, 0.9) 78% 100%),
    var(--surface);
}

.app-card-full[data-category="education"] {
  background:
    linear-gradient(148deg, rgba(255, 255, 255, 0.98) 0 54%, rgba(225, 241, 255, 0.94) 54% 78%, rgba(219, 249, 243, 0.86) 78% 100%);
}

.app-card-full[data-category="ai"] {
  background:
    linear-gradient(148deg, rgba(255, 255, 255, 0.98) 0 54%, rgba(239, 232, 255, 0.95) 54% 78%, rgba(255, 230, 238, 0.88) 78% 100%);
}

.app-card-full[data-category="entertainment"] {
  background:
    linear-gradient(148deg, rgba(255, 255, 255, 0.98) 0 54%, rgba(255, 235, 218, 0.94) 54% 78%, rgba(226, 248, 244, 0.86) 78% 100%);
}

.app-card-full .app-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.app-card-full .actions {
  grid-template-columns: 1fr 1fr;
}

.app-card-full .actions .button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.app-card-full .button {
  min-height: 42px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.app-preview {
  position: relative;
  display: grid;
  place-items: center;
  height: 280px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.82) 0 36%, rgba(219, 237, 255, 0.96) 36% 72%, rgba(255, 224, 176, 0.55) 72% 100%),
    var(--bg-soft);
  overflow: hidden;
}

.app-preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(7, 17, 31, 0.1));
  pointer-events: none;
}

.app-preview img {
  width: auto;
  height: 92%;
  max-width: 82%;
  object-fit: contain;
  border-radius: 26px;
  box-shadow: 0 20px 46px rgba(8, 88, 208, 0.22);
}

.feature-list,
.app-feature-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.app-feature-list li {
  position: relative;
  padding-left: 25px;
  color: var(--muted);
}

.feature-list li::before,
.app-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--success);
}

.legal-search-panel {
  padding: 18px;
}

.search-box {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.search-box span {
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 800;
}

.search-box input {
  min-height: 50px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text);
  padding: 0 14px;
}

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

.policy-card {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.policy-card:hover,
.app-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  box-shadow: var(--shadow);
}

.policy-card small {
  margin-top: auto;
  color: var(--accent);
  font-weight: 850;
}

.ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 18px;
}

.ops-panel,
.timeline,
.cta {
  padding: 28px;
}

.ops-panel h2 {
  margin: 14px 0 16px;
}

.timeline {
  display: grid;
  gap: 0;
  padding: 12px;
}

.timeline div {
  display: grid;
  gap: 5px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.timeline div:last-child {
  border-bottom: 0;
}

.timeline strong {
  color: var(--heading);
}

.cta-section {
  padding-top: 70px;
}

.cta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 70%, transparent), transparent),
    var(--surface);
}

.cta h2 {
  margin: 12px 0;
}

.page-shell {
  padding: 54px 0 84px;
}

.page-hero {
  padding: 34px;
  margin-bottom: 22px;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.96) 0 55%, rgba(223, 241, 255, 0.88) 55% 77%, rgba(255, 226, 181, 0.66) 77% 100%);
}

.page-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
}

.page-hero p {
  margin-top: 18px;
}

.app-detail-page {
  background:
    linear-gradient(118deg, rgba(255, 198, 109, 0.34) 0 16%, transparent 16% 100%),
    linear-gradient(238deg, rgba(35, 183, 164, 0.22) 0 18%, transparent 18% 100%),
    linear-gradient(180deg, rgba(207, 233, 255, 0.92), rgba(247, 251, 255, 0.8) 720px, var(--bg));
}

.app-kpss-page {
  --app-a: #2f80ed;
  --app-b: #23b7a4;
  --app-c: #ffc64d;
}

.app-lunara-page {
  --app-a: #7b61ff;
  --app-b: #e86f84;
  --app-c: #23b7a4;
}

.app-series-page {
  --app-a: #ff3d57;
  --app-b: #ff8a3d;
  --app-c: #23b7a4;
}

.app-hero {
  min-height: calc(100vh - 76px);
  padding: 72px 0 54px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.95) 0 50%, color-mix(in srgb, var(--app-a) 16%, white) 50% 74%, color-mix(in srgb, var(--app-b) 18%, white) 74% 100%);
  overflow: hidden;
}

.app-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1fr);
  gap: 48px;
  align-items: center;
}

.app-hero-copy {
  display: grid;
  gap: 24px;
}

.back-link {
  width: fit-content;
  color: var(--muted);
  font-weight: 850;
}

.back-link::before {
  content: "< ";
  color: var(--app-a);
}

.app-title-lockup {
  display: flex;
  gap: 18px;
  align-items: center;
}

.app-icon-large {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  box-shadow: 0 18px 38px color-mix(in srgb, var(--app-a) 28%, transparent);
}

.app-hero h1 {
  max-width: 9ch;
  margin-top: 10px;
  font-size: clamp(3.4rem, 8vw, 6.7rem);
}

.app-series-page .app-hero h1 {
  max-width: none;
  font-size: clamp(3.2rem, 6.4vw, 5.3rem);
}

.app-hero p {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.4vw, 1.24rem);
}

.app-device-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  min-height: 600px;
  display: grid;
  place-items: center;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.app-device-stage::before {
  content: "";
  position: absolute;
  inset: 11% 2% 8% 12%;
  border-radius: 34px;
  background:
    linear-gradient(138deg, color-mix(in srgb, var(--app-a) 28%, white) 0 48%, color-mix(in srgb, var(--app-c) 36%, white) 48% 100%);
  box-shadow: 0 34px 80px color-mix(in srgb, var(--app-a) 22%, transparent);
  transform: rotate(-7deg);
}

.app-stage-backdrop {
  position: absolute;
  left: 2%;
  top: 7%;
  width: min(470px, 78%);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  transform: translateZ(-40px) rotate(-8deg);
  opacity: 0.92;
}

.phone-frame {
  position: absolute;
  width: min(310px, 48vw);
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border-radius: 42px;
  background: #071527;
  box-shadow: 0 34px 76px rgba(7, 21, 39, 0.28);
  overflow: hidden;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateZ(70px);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  animation: phone-float 6s ease-in-out infinite;
}

.phone-frame::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14px;
  z-index: 2;
  width: 76px;
  height: 22px;
  border-radius: 999px;
  background: #050914;
  transform: translateX(-50%);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 32px;
}

.phone-primary {
  right: 12%;
  top: 4%;
}

.phone-secondary {
  left: 7%;
  top: 14%;
  width: min(245px, 36vw);
  opacity: 0.92;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotate(-10deg) translateZ(30px);
  animation-delay: -1.6s;
}

.phone-tertiary {
  right: 2%;
  bottom: 2%;
  width: min(220px, 34vw);
  opacity: 0.88;
  transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) rotate(10deg) translateZ(20px);
  animation-delay: -3s;
}

.floating-reward {
  position: absolute;
  width: min(170px, 24vw);
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(7, 21, 39, 0.2));
  animation: reward-float 5.5s ease-in-out infinite;
}

.reward-one {
  left: 8%;
  top: 16%;
}

.reward-two {
  right: 4%;
  bottom: 8%;
  width: min(250px, 31vw);
  animation-delay: -2s;
}

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

.feature-tile {
  min-height: 240px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0 66%, color-mix(in srgb, var(--app-a) 10%, white) 66% 100%);
  box-shadow: var(--shadow-sm);
}

.feature-tile span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 30px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--app-a) 16%, white);
  color: var(--app-a);
  font-weight: 900;
}

.feature-tile h2 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.feature-tile p {
  color: var(--muted);
}

.app-gallery-section {
  background:
    linear-gradient(132deg, color-mix(in srgb, var(--app-a) 10%, white) 0 58%, color-mix(in srgb, var(--app-c) 18%, white) 58% 100%);
  border-block: 1px solid var(--line);
}

.screenshot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 310px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.screenshot-strip img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  scroll-snap-align: start;
  border: 10px solid rgba(255, 255, 255, 0.88);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.screenshot-strip img[src*="banner"],
.screenshot-strip img[src*="crown"],
.screenshot-strip img[src*="trophy"] {
  object-fit: contain;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), color-mix(in srgb, var(--app-a) 10%, white));
}

.app-cta {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0 54%, color-mix(in srgb, var(--app-a) 14%, white) 54% 76%, color-mix(in srgb, var(--app-b) 14%, white) 76% 100%);
}

@keyframes phone-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -14px; }
}

@keyframes reward-float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-18px) rotate(5deg); }
}

.directory-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 18px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.directory-tools .search-box {
  margin-bottom: 0;
}

.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.legal-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 98px;
  padding: 20px;
}

.sidebar h2 {
  margin: 0 0 14px;
  color: var(--heading);
  font-size: 1rem;
}

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

.sidebar li + li {
  margin-top: 8px;
}

.sidebar a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 700;
}

.sidebar a:hover {
  background: var(--surface-muted);
  color: var(--heading);
}

.legal-card {
  padding: 34px;
}

.legal-card h1 {
  max-width: none;
  margin: 8px 0 20px;
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.legal-card h2,
.legal-card h3 {
  scroll-margin-top: 110px;
}

.legal-card h2 {
  margin-top: 36px;
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.legal-card h3 {
  margin-top: 22px;
  margin-bottom: 8px;
}

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

.notice {
  margin: 24px 0 30px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 650;
}

.meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.contact-card {
  padding: 22px;
}

.contact-card h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.email-request-form {
  margin: 18px 0 20px;
}

.email-request-form label {
  display: block;
  color: var(--heading);
  font-weight: 800;
  margin-bottom: 8px;
}

.email-request-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}

.email-request-row input {
  flex: 1 1 260px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: var(--surface-muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  padding: 34px 0;
}

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

.footer-brand {
  margin-bottom: 12px;
}

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

.footer-links a {
  font-weight: 750;
}

.footer-links a:hover {
  color: var(--heading);
}

.small {
  font-size: 0.92rem;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: min(340px, calc(100% - 40px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--heading);
  color: var(--bg);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@supports (animation-timeline: view()) {
  .policy-card,
  .app-card {
    animation: card-rise both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }

  @keyframes card-rise {
    from { opacity: 0.25; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .phone-frame,
  .floating-reward {
    animation: none !important;
  }
}

@media (max-width: 980px) {
  .hero-home {
    min-height: auto;
  }

  .hero-grid,
  .split-heading,
  .ops-grid,
  .legal-layout,
  .directory-tools {
    grid-template-columns: 1fr;
  }

  .app-showcase,
  .app-list,
  .policy-grid,
  .contact-grid,
  .app-feature-grid {
    grid-template-columns: 1fr;
  }

  .product-console {
    max-width: 620px;
  }

  .sidebar {
    position: static;
  }

  .filter-tabs {
    justify-content: flex-start;
  }

  .app-card-full {
    grid-template-columns: 1fr;
  }

  .app-card-full .actions {
    justify-content: flex-start;
  }

  .app-hero {
    min-height: auto;
    padding: 58px 0;
  }

  .app-hero-grid {
    grid-template-columns: 1fr;
  }

  .app-device-stage {
    min-height: 560px;
  }

  .phone-primary {
    right: 18%;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .nav {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

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

  .nav-links a,
  .nav-links .icon-button {
    justify-content: flex-start;
    width: 100%;
  }

  .hero,
  .section {
    padding: 58px 0;
  }

  .hero-grid {
    gap: 34px;
  }

  h1,
  .page-hero h1 {
    font-size: clamp(2.55rem, 14vw, 4rem);
  }

  .app-title-lockup {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-icon-large {
    width: 76px;
    height: 76px;
  }

  .app-hero h1 {
    max-width: 8ch;
    font-size: clamp(3.1rem, 16vw, 4.6rem);
  }

  .app-device-stage {
    min-height: 470px;
  }

  .app-device-stage::before {
    inset: 10% 0 8%;
  }

  .app-stage-backdrop {
    left: 0;
    top: 2%;
    width: 86%;
  }

  .phone-frame {
    width: min(245px, 68vw);
    border-radius: 34px;
  }

  .phone-frame img {
    border-radius: 25px;
  }

  .phone-primary {
    right: 4%;
    top: 8%;
  }

  .phone-secondary {
    left: 0;
    width: min(190px, 50vw);
  }

  .phone-tertiary {
    width: min(170px, 46vw);
  }

  .floating-reward {
    width: min(120px, 34vw);
  }

  .reward-two {
    width: min(180px, 48vw);
  }

  .screenshot-strip {
    grid-auto-columns: minmax(220px, 76vw);
  }

  .screenshot-strip img {
    height: 430px;
  }

  .console-row {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .console-row a {
    grid-column: 2;
  }

  .page-shell {
    padding-top: 26px;
  }

  .page-hero,
  .legal-card,
  .ops-panel,
  .timeline,
  .cta,
  .legal-search-panel {
    padding: 20px;
  }

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

  .button,
  .email-request-row .button {
    width: 100%;
  }
}
