:root {
  --ink: #0b1020;
  --muted: #5c6782;
  --blue: #1261ff;
  --blue-soft: #eaf2ff;
  --coral: #ff6654;
  --surface: #f6f9fd;
  --line: #e2e8f2;
  --white: #fff;
  --shell: min(1160px, calc(100% - 48px));
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  left: 16px;
  top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header,
.site-footer,
.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  text-decoration: none;
  font-size: 24px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -0.045em;
}

.brand span { color: var(--blue); }

nav { display: flex; gap: 36px; }

nav a {
  position: relative;
  padding: 26px 0 22px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

nav a::after {
  content: "";
  position: absolute;
  height: 2px;
  left: 0;
  right: 100%;
  bottom: -1px;
  background: var(--blue);
  transition: right 180ms ease;
}

nav a:hover,
nav a:focus-visible,
nav a.active { color: var(--blue); }

nav a:hover::after,
nav a:focus-visible::after,
nav a.active::after { right: 0; }

.hero {
  min-height: 530px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: 48px;
  padding-block: 86px;
}

.hero h1,
.policy-heading h1 {
  margin: 0;
  font-size: clamp(56px, 5.5vw, 78px);
  line-height: .94;
  letter-spacing: -.065em;
  font-weight: 850;
}

.hero-copy > p {
  max-width: 580px;
  margin: 30px 0 32px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 11px;
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  font-weight: 750;
  box-shadow: 0 10px 28px rgba(18, 97, 255, .22);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(18, 97, 255, .3);
}

.button span { font-size: 22px; }

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

.art-shadow {
  position: absolute;
  width: 76%;
  height: 46%;
  left: 5%;
  top: 32%;
  border-radius: 60px;
  background: #f0f4fa;
}

.art-square {
  position: absolute;
  z-index: 2;
  width: 260px;
  aspect-ratio: 1;
  right: 8%;
  top: 0;
  border-radius: 62px;
  background: linear-gradient(145deg, #2c76ff, #0754ea);
  box-shadow: 0 30px 55px rgba(18, 97, 255, .2);
  transform: rotate(-2deg);
}

.art-square i {
  position: absolute;
  width: 74px;
  aspect-ratio: 1;
  right: 33px;
  top: 38px;
  border-radius: 50%;
  background: var(--white);
}

.art-coral {
  position: absolute;
  z-index: 3;
  width: 150px;
  height: 150px;
  right: 6%;
  bottom: 1%;
  border-radius: 0 0 0 150px;
  background: var(--coral);
  transform: rotate(1deg);
}

.art-dot {
  position: absolute;
  z-index: 4;
  width: 48px;
  aspect-ratio: 1;
  left: 17%;
  top: 8%;
  border-radius: 50%;
  background: var(--coral);
}

.art-triangle {
  position: absolute;
  z-index: 3;
  width: 0;
  height: 0;
  left: 0;
  bottom: 10%;
  border-left: 58px solid transparent;
  border-right: 58px solid transparent;
  border-bottom: 100px solid #a8d3ff;
  filter: drop-shadow(0 16px 22px rgba(55, 142, 228, .15));
}

.art-grid,
.ph-grid {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(2, 20px);
  gap: 10px;
}

.art-grid { right: -1%; bottom: 22%; }

.art-grid i,
.ph-grid i {
  width: 20px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #b7d7ff;
}

.apps-section {
  padding: 78px 0 84px;
  background: var(--surface);
}

.apps-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 100px;
}

.section-intro h2,
.philosophy h2 {
  margin: 0 0 14px;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -.052em;
}

.section-intro p,
.philosophy-copy p {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.app-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
}

.app-item h3 {
  margin: 18px 0 6px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.app-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.app-icon {
  width: 92px;
  aspect-ratio: 1;
  border-radius: 23px;
  box-shadow: 0 14px 28px rgba(18, 31, 67, .12);
}

.gridpop-icon {
  display: grid;
  grid-template-columns: repeat(3, 15px);
  place-content: center;
  gap: 7px;
  background: linear-gradient(145deg, #337fff, #0754ea);
}

.gridpop-icon i {
  width: 15px;
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--white);
}

.gridpop-icon i:last-child { background: var(--coral); }

.sakunote-icon {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ff8a70, #fa4e3e);
}

.sakunote-icon span {
  width: 50px;
  height: 58px;
  padding: 15px 10px;
  border-radius: 9px 9px 14px 9px;
  background: var(--white);
}

.sakunote-icon i {
  display: block;
  height: 4px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: #ffc0b7;
}

.philosophy {
  min-height: 360px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  align-items: center;
  gap: 100px;
  padding-block: 72px;
}

.philosophy-art {
  position: relative;
  min-height: 215px;
}

.ph-circle {
  position: absolute;
  z-index: 2;
  width: 84px;
  aspect-ratio: 1;
  left: 9%;
  top: 24%;
  border-radius: 50%;
  background: var(--blue);
}

.ph-arch {
  position: absolute;
  width: 210px;
  height: 110px;
  left: 12%;
  bottom: 0;
  border-radius: 130px 130px 0 0;
  background: #e8eef6;
}

.ph-triangle {
  position: absolute;
  z-index: 2;
  left: 52%;
  top: 4%;
  width: 0;
  height: 0;
  border-left: 38px solid transparent;
  border-right: 38px solid transparent;
  border-bottom: 66px solid var(--coral);
}

.ph-grid { right: 4%; bottom: 30%; }

.site-footer {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--blue); }

.policy-page {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 164px);
  padding: 70px 24px 108px;
}

.policy-article {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  margin-inline: auto;
}

.policy-heading { margin-bottom: 50px; }

.policy-heading h1 {
  font-size: clamp(48px, 5.4vw, 72px);
  line-height: 1;
}

.policy-heading > p:not(.updated) {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.policy-heading .updated {
  margin: 14px 0 0;
  color: #8490a7;
  font-size: 13px;
  font-weight: 650;
}

.policy-article section { margin-top: 34px; }

.policy-article h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.policy-article p {
  margin: 0 0 12px;
  color: #48546d;
  font-size: 15px;
  line-height: 1.72;
}

.policy-article a {
  color: var(--blue);
  text-underline-offset: 3px;
}

.policy-orbit {
  position: absolute;
  border: 2px solid;
  border-radius: 50%;
  opacity: .65;
}

.policy-orbit i {
  position: absolute;
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.policy-orbit-left {
  width: 360px;
  height: 360px;
  left: -250px;
  top: 85px;
  border-color: #7ab4ff;
}

.policy-orbit-left i {
  right: 18px;
  bottom: 44px;
  background: var(--blue);
}

.policy-orbit-right {
  width: 330px;
  height: 330px;
  right: -260px;
  bottom: 70px;
  border-color: var(--coral);
}

.policy-orbit-right i {
  left: 18px;
  top: 70px;
  background: #ffc9c2;
}

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

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

.hero .reveal,
.policy-heading {
  animation: page-in 600ms ease both;
}

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

@media (max-width: 860px) {
  :root { --shell: min(100% - 36px, 680px); }

  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 64px 72px;
  }

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

  .apps-layout,
  .philosophy {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .philosophy { padding-block: 64px; }
  .philosophy-art { order: 2; max-width: 420px; width: 100%; }
  .philosophy-copy { order: 1; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 32px); }

  .site-header { min-height: 68px; }
  .brand { font-size: 21px; }
  nav { gap: 24px; }
  nav a { padding-block: 22px 18px; font-size: 13px; }

  .hero { min-height: auto; padding-block: 52px 64px; }
  .hero h1 { font-size: clamp(50px, 15vw, 66px); }
  .hero-copy > p { margin-block: 24px 28px; font-size: 17px; }
  .hero-art { min-height: 270px; }
  .art-square { width: 190px; border-radius: 45px; right: 3%; }
  .art-square i { width: 54px; right: 25px; top: 28px; }
  .art-coral { width: 112px; height: 112px; border-radius: 0 0 0 112px; }
  .art-triangle { transform: scale(.78); transform-origin: left bottom; }
  .art-grid { right: 0; bottom: 7%; }

  .apps-section { padding-block: 64px; }
  .apps-layout { gap: 48px; }
  .app-list { grid-template-columns: 1fr; gap: 48px; }
  .app-item { display: grid; grid-template-columns: 78px 1fr; gap: 22px; align-items: start; }
  .app-icon { width: 78px; border-radius: 20px; }
  .app-item h3 { margin-top: 0; font-size: 25px; }

  .philosophy-art { min-height: 190px; }
  .ph-arch { width: 180px; height: 94px; }

  .site-footer { min-height: 100px; gap: 24px; }

  .policy-page { padding: 52px 22px 80px; }
  .policy-heading { margin-bottom: 42px; }
  .policy-heading h1 { font-size: 47px; }
  .policy-heading > p:not(.updated) { font-size: 16px; }
  .policy-article section { margin-top: 30px; }
  .policy-orbit { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
