
:root {
  color-scheme: light dark;
  --bg: #f6f5f2;
  --surface: #fbfaf8;
  --surface-strong: #ffffff;
  --text: #171719;
  --muted: #6e6d72;
  --faint: #97969b;
  --line: rgba(23, 23, 25, .10);
  --line-strong: rgba(23, 23, 25, .17);
  --soft: #eeece8;
  --accent: #1768d2;
  --dio: #f2262f;
  --dio-soft: rgba(242, 38, 47, .09);
  --ink: #242426;
  --paper: #ebe7df;
  --max: 1180px;
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow: 0 24px 80px rgba(26, 25, 23, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
::selection { background: rgba(23, 104, 210, .18); }

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-140%);
  transition: transform .18s ease;
}
.skip-link:focus { transform: translateY(0); }

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

.site-header {
  width: min(var(--max), calc(100% - 48px));
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 1.12rem;
  font-weight: 760;
  letter-spacing: -.04em;
}
.brand-mark {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav a,
.footer-links a,
.inline-link {
  color: var(--muted);
  text-decoration: none;
}
.site-nav a {
  font-size: .94rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"],
.footer-links a:hover,
.inline-link:hover {
  color: var(--text);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: .77rem;
  font-weight: 750;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow.dio { color: var(--dio); }
.eyebrow.ink { color: var(--text); }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.hero {
  padding: 128px 0 112px;
  max-width: 970px;
}
.hero h1 {
  margin-bottom: 28px;
  font-size: clamp(4.3rem, 9vw, 8.4rem);
  line-height: .88;
  letter-spacing: -.075em;
  font-weight: 780;
}
.hero-copy,
.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.17rem, 2.2vw, 1.55rem);
  line-height: 1.55;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 34px;
}
.meta-pill {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.22);
  font-size: .88rem;
}

.section {
  padding: 36px 0 118px;
}
.section-kicker {
  margin-bottom: 34px;
}
.section-kicker h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.4rem, 5vw, 4.7rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.project-list {
  display: grid;
  gap: 18px;
}
.project-card {
  position: relative;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 34px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--line);
}
.project-card.dio::before { background: var(--dio); }
.project-card.yomuhon::before { background: var(--ink); }

.icon-crop {
  width: 116px;
  height: 116px;
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--soft);
  flex: 0 0 auto;
}
.icon-crop img {
  width: 118%;
  height: 118%;
  max-width: none;
  position: absolute;
  left: 50%;
  top: 50%;
  object-fit: cover;
  transform: translate(-50%, -50%);
}
.project-icon {
  width: 116px;
  height: 116px;
  display: block;
  object-fit: cover;
  border-radius: 28px;
  background: var(--soft);
}

.project-copy h3 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.05em;
}
.project-copy > p:last-of-type {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

.card-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 11px;
  margin-top: 24px;
}

.button,
.card-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--text);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 680;
  transition: transform .18s ease, border-color .18s ease, opacity .18s ease;
}
.button:hover,
.card-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}
.button.primary,
.card-button.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.button.dio,
.card-button.dio {
  background: var(--dio);
  color: white;
  border-color: var(--dio);
}
.button.disabled,
.card-button.disabled {
  color: var(--faint);
  cursor: default;
  opacity: .8;
}
.button.disabled:hover,
.card-button.disabled:hover { transform: none; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 18px;
}
.about-card,
.note-card,
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.about-card {
  padding: 42px;
}
.about-card h2 {
  margin-bottom: 24px;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: .98;
  letter-spacing: -.06em;
}
.about-card p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1.05rem;
}
.note-card {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--text);
  color: var(--bg);
}
.note-card p {
  color: var(--bg);
  opacity: .72;
  line-height: 1.65;
}
.note-card .inline-link { color: var(--bg); }

.app-hero {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 104px 0 82px;
}
.app-hero .icon-crop,
.app-hero .project-icon {
  width: 148px;
  height: 148px;
  border-radius: 36px;
}
.app-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(4.4rem, 8vw, 7rem);
  line-height: .9;
  letter-spacing: -.07em;
}
.app-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 24px;
  color: var(--muted);
  font-size: .9rem;
}
.app-facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.app-facts span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--line-strong);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  padding: 30px;
}
.feature-number {
  margin-bottom: 34px;
  color: var(--faint);
  font-size: .82rem;
  font-weight: 720;
}
.feature-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  letter-spacing: -.035em;
}
.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.screenshot-shell {
  position: relative;
  margin-top: 26px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  overflow: hidden;
}
.screenshot-shell.dio {
  background:
    linear-gradient(var(--dio-soft), var(--dio-soft)),
    var(--surface);
}
.screenshot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 24px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.phone-shot {
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  justify-content: center;
}
.phone-shot img {
  width: min(100%, 240px);
  height: auto;
  display: block;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 22px 55px rgba(0,0,0,.22);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.copy-panel {
  padding: 42px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
}
.copy-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.055em;
}
.copy-panel p,
.copy-panel li {
  color: var(--muted);
  line-height: 1.7;
}
.copy-panel ul {
  margin: 22px 0 0;
  padding-left: 20px;
}
.copy-panel.accent-dio {
  background: var(--dio);
  border-color: var(--dio);
  color: white;
}
.copy-panel.accent-dio p,
.copy-panel.accent-dio li {
  color: rgba(255,255,255,.78);
}
.copy-panel.accent-dio .eyebrow { color: white; }

.legal {
  max-width: 820px;
  padding: 92px 0 118px;
}
.legal h1 {
  margin-bottom: 22px;
  font-size: clamp(3.5rem, 7vw, 6.2rem);
  line-height: .92;
  letter-spacing: -.065em;
}
.updated {
  margin-bottom: 58px;
  color: var(--muted);
}
.legal section { margin-top: 48px; }
.legal h2 {
  margin-bottom: 14px;
  font-size: 1.55rem;
  letter-spacing: -.03em;
}
.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.72;
}
.legal li + li { margin-top: 6px; }
.legal a { text-underline-offset: 3px; }

.empty-state {
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}
.empty-state h2 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 5vw, 4.1rem);
  letter-spacing: -.055em;
}
.empty-state p {
  max-width: 700px;
  color: var(--muted);
  line-height: 1.68;
}

.site-footer {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer p { margin: 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
}

:focus-visible {
  outline: 3px solid rgba(23, 104, 210, .45);
  outline-offset: 4px;
  border-radius: 8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111113;
    --surface: #171719;
    --surface-strong: #1b1b1e;
    --text: #f4f3ef;
    --muted: #aaa9af;
    --faint: #7c7b82;
    --line: rgba(255,255,255,.085);
    --line-strong: rgba(255,255,255,.17);
    --soft: #222225;
    --accent: #70abff;
    --dio-soft: rgba(242, 38, 47, .13);
    --ink: #f4f3ef;
    --paper: #292725;
    --shadow: none;
  }
  .meta-pill { background: rgba(255,255,255,.025); }
  .brand-mark { filter: invert(1); }
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .split { grid-template-columns: 1fr; }
  .project-card { grid-template-columns: 96px minmax(0, 1fr); }
  .project-icon, .icon-crop { width: 96px; height: 96px; border-radius: 24px; }
}

@media (max-width: 700px) {
  .shell,
  .site-header,
  .site-footer {
    width: min(100% - 32px, var(--max));
  }
  .site-header { min-height: 68px; }
  .site-nav { gap: 13px; }
  .site-nav a { font-size: .84rem; }
  .brand { font-size: 1.03rem; }
  .brand-mark { width: 27px; height: 27px; }

  .hero { padding: 86px 0 78px; }
  .hero h1 { font-size: clamp(3.7rem, 18vw, 5.2rem); }

  .section { padding: 26px 0 84px; }
  .project-card {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
    border-radius: 24px;
  }
  .project-icon, .icon-crop {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
  .project-copy h3 { font-size: 1.7rem; }
  .project-copy > p:last-of-type { font-size: .96rem; }
  .card-actions { grid-column: 1 / -1; }

  .about-card,
  .note-card,
  .copy-panel { padding: 28px; }

  .app-hero {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 20px;
    padding: 74px 0 58px;
  }
  .app-hero .icon-crop,
  .app-hero .project-icon {
    width: 86px;
    height: 86px;
    border-radius: 22px;
  }
  .app-hero h1 { font-size: 3.45rem; }
  .app-hero .lead { grid-column: 1 / -1; }
  .actions, .app-facts { grid-column: 1 / -1; }

  .feature-grid { grid-template-columns: 1fr; }
  .screenshot-shell { padding: 24px 16px 18px; }
  .screenshot-strip {
    grid-auto-columns: 72%;
    gap: 16px;
  }
  .phone-shot img { width: 100%; }

  .empty-state { padding: 32px 26px; }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 470px) {
  .site-nav a:nth-child(2) { display: none; }
  .hero-meta { gap: 8px; }
  .meta-pill { font-size: .8rem; }
  .project-card { grid-template-columns: 64px minmax(0, 1fr); }
  .project-icon, .icon-crop { width: 64px; height: 64px; border-radius: 16px; }
  .button, .card-button { width: 100%; }
  .app-hero { grid-template-columns: 76px minmax(0, 1fr); }
  .app-hero .icon-crop,
  .app-hero .project-icon { width: 76px; height: 76px; border-radius: 19px; }
  .app-hero h1 { font-size: 2.9rem; }
}

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