@layer base, layout, components, responsive;
@layer base {
  :root {
    --ink: #151b38;
    --muted: #535b72;
    --paper: #f7f7f2;
    --blue: #344de6;
    --line: #dcdedc;
    --lime: #d9fb67;
    color-scheme: light;
    font-family:
      Inter,
      -apple-system,
      BlinkMacSystemFont,
      "Segoe UI",
      sans-serif;
    font-synthesis: none;
  }
  * {
    box-sizing: border-box;
  }
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
  }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-size: 17px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
  }
  a {
    color: inherit;
    text-underline-offset: 4px;
  }
  button,
  input {
    font: inherit;
  }
  button,
  a {
    -webkit-tap-highlight-color: transparent;
  }
  button {
    cursor: pointer;
  }
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  h1,
  h2,
  h3,
  p {
    margin: 0;
  }
  h1,
  h2,
  h3 {
    line-height: 1.08;
    letter-spacing: -0.055em;
  }
  h1 {
    font-size: clamp(3.4rem, 6.5vw, 6.7rem);
    font-weight: 750;
  }
  h2 {
    font-size: clamp(2.4rem, 4.7vw, 4.2rem);
    font-weight: 700;
  }
  h3 {
    font-size: 1.45rem;
    letter-spacing: -0.025em;
  }
  p + p {
    margin-top: 1rem;
  }
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  summary:focus-visible {
    outline: 3px solid #be3a12;
    outline-offset: 5px;
  }
  ::selection {
    background: var(--lime);
    color: var(--ink);
  }
  [hidden] {
    display: none !important;
  }
  .skip {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 50;
    padding: 12px;
    background: white;
  }
  .skip:focus {
    top: 10px;
  }
}
@layer layout {
  .wrap {
    width: min(1280px, calc(100% - 96px));
    margin: auto;
  }
  .header {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .brand {
    font-weight: 800;
    letter-spacing: -0.075em;
    font-size: 25px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .brand-mark {
    display: grid;
    place-items: center;
    width: 39px;
    height: 39px;
    background: var(--ink);
    color: var(--paper);
    border-radius: 12px;
    font-size: 17px;
    letter-spacing: -2px;
  }
  .nav {
    display: flex;
    align-items: center;
    gap: 32px;
  }
  .nav a {
    font-size: 14px;
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .nav a:hover {
    color: var(--blue);
  }
  .hero {
    min-height: 685px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 36px;
    padding: 42px 0 68px;
  }
  .eyebrow {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
  }
  .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
  }
  .hero h1 em {
    color: var(--blue);
    font-style: normal;
  }
  .intro {
    color: var(--muted);
    max-width: 430px;
    margin: 27px 0;
    font-size: 18px;
    line-height: 1.65;
  }
  .actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
  }
  .button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 13px 22px;
    background: var(--ink);
    color: white;
    border: 1px solid var(--ink);
    border-radius: 40px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
    transition:
      transform 0.18s,
      background 0.18s;
  }
  .button:hover {
    transform: translateY(-2px);
    background: #303d67;
  }
  .button.light {
    background: white;
    color: var(--ink);
    border-color: white;
  }
  .button.outline {
    background: transparent;
    color: var(--ink);
    border-color: #bcc1cb;
  }
  .text-link {
    font-size: 14px;
    font-weight: 650;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 16px;
  }
  .section {
    padding: 100px 0;
  }
  .section-top {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 45px;
  }
  .section-top p {
    max-width: 320px;
    color: var(--muted);
  }
  .divider {
    border-top: 1px solid var(--line);
  }
  .footer {
    border-top: 1px solid var(--line);
    padding: 42px 0 24px;
  }
  .footer-top,
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
  }
  .footer-top {
    margin-bottom: 48px;
  }
  .footer-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    align-items: center;
  }
  .footer-links a {
    font-size: 13px;
    min-height: 32px;
    display: flex;
    align-items: center;
  }
  .footer-bottom {
    font-size: 12px;
    color: var(--muted);
  }
}
@layer components {
  .hero-art {
    position: relative;
    min-width: 0;
    height: 610px;
    border-radius: 32px;
    background:
      radial-gradient(ellipse at 40% 20%, #d8e0ff, transparent 60%), #e9eafa;
    overflow: hidden;
  }
  .hero-art:before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    left: 50%;
    top: 120px;
    transform: translateX(-50%);
    border: 1px solid #a4ade1;
    border-radius: 50%;
  }
  .orbit {
    position: absolute;
    width: 550px;
    height: 550px;
    left: 50%;
    top: 55px;
    transform: translateX(-50%);
    border: 1px solid #c0c6e7;
    border-radius: 50%;
  }
  .art-logo {
    position: absolute;
    width: 240px;
    top: 27px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }
  .phone {
    position: absolute;
    width: 262px;
    top: 125px;
    left: 50%;
    transform: translateX(-50%) rotate(-7deg);
    border: 7px solid #142346;
    border-radius: 40px;
    box-shadow: 25px 30px 48px #2531743b;
    background: #238dd9;
    overflow: hidden;
  }
  .phone img {
    width: 100%;
    height: auto;
  }
  .sticker {
    position: absolute;
    padding: 12px 18px;
    border-radius: 15px;
    background: var(--lime);
    color: var(--ink);
    box-shadow: 0 7px 0 #1d285313;
    font-size: 14px;
    font-weight: 700;
    z-index: 3;
  }
  .sticker.one {
    left: 20px;
    top: 205px;
    transform: rotate(-11deg);
  }
  .sticker.two {
    right: 18px;
    bottom: 85px;
    transform: rotate(9deg);
    background: white;
  }
  .art-caption {
    position: absolute;
    bottom: 19px;
    left: 24px;
    color: #414c77;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
  .hero-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: var(--muted);
    margin-top: 34px;
  }
  .ribbon {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    border-block: 1px solid var(--line);
    padding: 22px 0;
    font-size: 13px;
    color: #4e5569;
  }
  .ribbon strong {
    color: var(--ink);
  }
  .game-feature {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    border-radius: 28px;
    overflow: hidden;
    background: #111a3a;
    color: white;
  }
  .game-copy {
    padding: 55px;
  }
  .game-copy h3 {
    font-size: clamp(2.3rem, 4vw, 4rem);
    margin: 22px 0;
  }
  .game-copy p {
    color: #d1d7ee;
    max-width: 450px;
  }
  .pill {
    display: inline-flex;
    padding: 5px 11px;
    border-radius: 100px;
    border: 1px solid #687294;
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.07em;
    text-transform: uppercase;
  }
  .game-copy .actions {
    margin-top: 30px;
  }
  .game-visual {
    background: linear-gradient(140deg, #309dff, #6553ed);
    padding: 46px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    overflow: hidden;
  }
  .game-visual > img {
    width: 300px;
  }
  .chain {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .chain span {
    padding: 12px 16px;
    border-radius: 10px;
    background: #ffffffed;
    color: #172457;
    box-shadow: 0 4px #15287930;
    font-size: 15px;
    font-weight: 750;
  }
  .chain i {
    font-style: normal;
    font-size: 22px;
  }
  .demo-tiles {
    display: flex;
    gap: 7px;
    justify-content: center;
  }
  .demo-tiles span {
    width: 48px;
    height: 54px;
    display: grid;
    place-items: center;
    background: #eff9ff;
    border: 2px solid white;
    border-radius: 8px;
    font-size: 26px;
    font-weight: 800;
    color: #143264;
    box-shadow: 0 4px #0a447831;
  }
  .demo-tiles .correct {
    background: #187938;
    color: white;
  }
  .demo-tiles .present {
    background: #ffe17c;
    color: #233156;
  }
  .demo-tiles .absent {
    background: #58637c;
    color: white;
  }
  .game-visual small {
    color: white;
    font-size: 12px;
  }
  .studio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
  }
  .studio-grid > p {
    color: var(--muted);
    font-size: 21px;
  }
  .principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-top: 60px;
  }
  .principle {
    border-top: 1px solid #a9b0b5;
    padding-top: 20px;
  }
  .number {
    display: block;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 30px;
  }
  .principle h3 {
    margin-bottom: 16px;
  }
  .principle p {
    color: var(--muted);
    font-size: 15px;
  }
  .contact-panel {
    background: var(--lime);
    padding: 58px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
  }
  .contact-panel h2 {
    max-width: 670px;
  }
  .contact-panel .eyebrow {
    margin-bottom: 17px;
  }
  .page-head {
    padding: 65px 0 55px;
    max-width: 850px;
  }
  .page-head h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
  }
  .page-head .intro {
    max-width: 680px;
  }
  .legal-layout {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 80px;
    padding-bottom: 100px;
  }
  .legal-nav {
    align-self: start;
    position: sticky;
    top: 30px;
    display: flex;
    flex-direction: column;
    gap: 3px;
  }
  .legal-nav a {
    min-height: 44px;
    padding: 9px 14px;
    text-decoration: none;
    font-size: 14px;
    border-radius: 7px;
  }
  .legal-nav a[aria-current="page"] {
    background: #e3e7fb;
    font-weight: 700;
    color: #263cad;
  }
  .legal-body {
    max-width: 760px;
    overflow-wrap: anywhere;
  }
  .legal-body section {
    margin-bottom: 40px;
  }
  .legal-body h2 {
    font-size: 25px;
    letter-spacing: -0.03em;
    margin-bottom: 17px;
  }
  .legal-body h3 {
    font-size: 18px;
    margin: 25px 0 10px;
  }
  .legal-body p,
  .legal-body li {
    color: #414a60;
    font-size: 16px;
  }
  .legal-body a {
    color: #273faf;
  }
  .legal-body .notice {
    padding: 22px;
    background: #e8ebfb;
    border-left: 4px solid #5267db;
    margin-bottom: 30px;
  }
  .legal-body ul {
    padding-left: 22px;
  }
  .legal-body li + li {
    margin-top: 8px;
  }
  .muted {
    color: var(--muted);
  }
  .faq {
    border-top: 1px solid var(--line);
  }
  details {
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }
  summary {
    font-weight: 650;
    cursor: pointer;
    padding: 6px 0;
    min-height: 44px;
  }
  details p {
    padding: 12px 0 4px;
    max-width: 720px;
    color: var(--muted);
  }
  .play-demo {
    background: #e9ecfc;
    border-radius: 24px;
    padding: 42px;
  }
  .play-demo h3 {
    margin-bottom: 16px;
  }
  .play-demo .demo-tiles {
    justify-content: flex-start;
    margin: 24px 0;
  }
  .demo-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
  .demo-actions button {
    border: 1px solid #354ee6;
    background: white;
    color: #253db7;
    border-radius: 30px;
    padding: 10px 18px;
    min-height: 44px;
    font-weight: 700;
    font-size: 14px;
  }
  .demo-actions button[aria-pressed="true"] {
    background: #344de6;
    color: white;
  }
  .demo-feedback {
    margin-top: 20px;
    min-height: 58px;
    font-size: 15px;
  }
  .game-spec {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px 0;
  }
  .game-spec div {
    padding: 20px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
    color: var(--muted);
  }
  .game-spec strong {
    display: block;
    font-size: 23px;
    color: var(--ink);
    margin-bottom: 3px;
  }
  .support-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 60px;
  }
  .support-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 30px;
  }
  .support-card h2 {
    font-size: 25px;
    margin-bottom: 18px;
  }
  .support-card p {
    font-size: 16px;
    color: var(--muted);
  }
  .support-card .text-link {
    margin-top: 20px;
  }
  .micro {
    font-size: 12px;
    color: var(--muted);
    margin-top: 15px;
  }
  .fineprint {
    font-size: 13px !important;
  }
  .address {
    font-style: normal;
    font-size: 16px;
    line-height: 1.7;
  }
  .notfound {
    padding: 100px 0;
    min-height: 60vh;
  }
  .notfound p {
    margin: 25px 0;
  }
}
@layer responsive {
  @media (min-width: 1500px) {
    .hero {
      min-height: 760px;
    }
    .hero-art {
      height: 660px;
    }
    .phone {
      width: 280px;
    }
    .art-logo {
      width: 260px;
    }
  }
  @media (max-width: 1050px) {
    .wrap {
      width: calc(100% - 48px);
    }
    .hero {
      gap: 25px;
    }
    .hero-art {
      height: 570px;
    }
    .phone {
      width: 238px;
    }
    .sticker.one {
      left: 10px;
      font-size: 12px;
      top: 240px;
    }
    .sticker.two {
      font-size: 12px;
      right: 12px;
      bottom: 60px;
    }
    .game-copy {
      padding: 36px;
    }
    .studio-grid {
      gap: 45px;
    }
    .legal-layout {
      gap: 40px;
      grid-template-columns: 180px 1fr;
    }
    .nav {
      gap: 22px;
    }
    .contact-panel {
      padding: 38px;
    }
  }
  @media (max-width: 720px) {
    .wrap {
      width: calc(100% - 36px);
    }
    .header {
      height: 82px;
    }
    .brand {
      font-size: 21px;
      gap: 8px;
    }
    .brand-mark {
      width: 30px;
      height: 32px;
      font-size: 14px;
    }
    .nav {
      gap: 17px;
    }
    .nav a {
      font-size: 12px;
    }
    .nav .nav-studio {
      display: none;
    }
    .hero {
      grid-template-columns: 1fr;
      padding: 38px 0 35px;
      gap: 35px;
    }
    .hero h1 {
      font-size: clamp(3.3rem, 13vw, 5rem);
    }
    .intro {
      font-size: 17px;
      max-width: 480px;
    }
    .hero-art {
      height: 550px;
    }
    .phone {
      width: 240px;
    }
    .sticker.one {
      left: 12%;
      top: 220px;
    }
    .sticker.two {
      right: 8%;
      bottom: 68px;
    }
    .hero-meta {
      margin-top: 24px;
      gap: 12px;
    }
    .section {
      padding: 65px 0;
    }
    .section-top {
      display: block;
    }
    .section-top p {
      margin-top: 20px;
    }
    .game-feature {
      grid-template-columns: 1fr;
    }
    .game-copy {
      padding: 30px;
    }
    .game-visual {
      min-height: 340px;
      padding: 35px 20px;
    }
    .studio-grid {
      grid-template-columns: 1fr;
      gap: 25px;
    }
    .studio-grid > p {
      font-size: 18px;
    }
    .principles {
      grid-template-columns: 1fr;
      gap: 30px;
      margin-top: 35px;
    }
    .number {
      margin-bottom: 16px;
    }
    .contact-panel {
      padding: 30px;
      display: block;
    }
    .contact-panel .button {
      margin-top: 28px;
    }
    .contact-panel h2 {
      font-size: 2.2rem;
    }
    .footer-top {
      gap: 25px;
      margin-bottom: 30px;
    }
    .footer-links {
      gap: 14px;
    }
    .page-head {
      padding: 45px 0 35px;
    }
    .legal-layout {
      grid-template-columns: 1fr;
      gap: 32px;
      padding-bottom: 50px;
    }
    .legal-nav {
      position: static;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 4px;
    }
    .legal-nav a {
      padding: 9px;
      font-size: 13px;
    }
    .support-grid {
      grid-template-columns: 1fr;
      gap: 18px;
    }
    .game-spec {
      grid-template-columns: 1fr 1fr;
    }
    .play-demo {
      padding: 25px;
    }
    .art-logo {
      width: 215px;
    }
    .ribbon {
      font-size: 12px;
      gap: 14px;
    }
    .footer-bottom {
      gap: 10px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    *,
    *:before,
    *:after {
      animation: none !important;
      transition: none !important;
    }
  }
}
@layer responsive {
  @media (max-width: 380px) {
    .header {
      gap: 12px;
    }
    .brand {
      font-size: 18px;
    }
    .nav {
      gap: 10px;
    }
    .nav a {
      font-size: 11px;
    }
    .brand-mark {
      width: 27px;
      height: 29px;
    }
    .hero h1 {
      font-size: 3.1rem;
    }
    .hero-art {
      height: 530px;
    }
    .sticker.one {
      left: 8px;
    }
    .sticker.two {
      right: 8px;
    }
  }
}
@layer components {
  .studio-grid > * {
    min-width: 0;
  }
  .game-visual small {
    padding: 7px 12px;
    border-radius: 20px;
    background: #18265b;
    text-align: center;
  }
}
