:root {
  color-scheme: dark;
  --bg: #0a0d12;
  --panel: #121821;
  --panel-strong: #182232;
  --line: rgba(255, 255, 255, 0.13);
  --text: #f4f7fb;
  --muted: #aab5c4;
  --soft: #d7deea;
  --cyan: #58d9f7;
  --lime: #a6f75c;
  --orange: #ffb24a;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(88, 217, 247, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 217, 247, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 20% 0%, rgba(88, 217, 247, 0.15), transparent 30rem),
    radial-gradient(circle at 78% 12%, rgba(166, 247, 92, 0.09), transparent 24rem),
    var(--bg);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 18, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.top-nav,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid var(--cyan);
  border-radius: 6px;
  box-shadow: inset 0 0 0 4px rgba(88, 217, 247, 0.16), 0 0 28px rgba(88, 217, 247, 0.4);
  transform: skew(-8deg);
}

.top-nav {
  gap: clamp(0.7rem, 2vw, 1.2rem);
  color: var(--muted);
  font-size: 0.94rem;
}

.top-nav a {
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--text);
}

.language-switch {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
}

.hero,
.section,
.proof-strip,
.showcase-grid,
.asset-credits,
.site-footer {
  width: calc(100% - 2rem);
  max-width: 1160px;
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  min-height: calc(100svh - 70px);
  padding: clamp(3rem, 8vw, 6rem) 0 3rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 6.6vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 780px;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.8rem;
  font-size: 1.18rem;
  line-height: 1.25;
}

:lang(ja) h1,
:lang(ja) h2,
:lang(ja) h3,
:lang(ja) .eyebrow,
:lang(ja) .hero-lede,
:lang(ja) .section-lede {
  line-break: strict;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: auto-phrase;
}

.hero-lede {
  max-width: 650px;
  color: var(--soft);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.78rem 1rem;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: var(--lime);
  color: #071008;
  box-shadow: 0 12px 36px rgba(166, 247, 92, 0.2);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.repo-url,
.install-panel {
  display: grid;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.repo-url span,
.install-panel span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

code {
  overflow-wrap: anywhere;
  color: var(--lime);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92rem;
}

.hero-visual {
  min-width: 0;
}

.viewport-frame,
.image-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--panel);
  box-shadow: var(--shadow);
}

.viewport-frame {
  min-height: 520px;
}

.viewport-toolbar {
  display: flex;
  gap: 0.45rem;
  padding: 0.8rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.viewport-toolbar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: var(--orange);
}

.viewport-toolbar span:nth-child(2) {
  background: var(--lime);
}

.viewport-toolbar span:nth-child(3) {
  background: var(--cyan);
}

.viewport-frame img,
.image-shell img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.viewport-frame picture {
  display: block;
  height: calc(100% - 45px);
}

.screenshot-placeholder {
  position: absolute;
  inset: 45px 0 0;
  display: none;
  place-content: center;
  gap: 0.3rem;
  padding: 2rem;
  text-align: center;
  background:
    linear-gradient(120deg, rgba(88, 217, 247, 0.13), transparent 34%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 18px);
}

.image-shell .screenshot-placeholder {
  inset: 0;
}

.image-error .screenshot-placeholder {
  display: grid;
}

.screenshot-placeholder span {
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.screenshot-placeholder strong {
  font-size: clamp(1.35rem, 4vw, 2.4rem);
  line-height: 1.1;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.proof-strip div {
  display: grid;
  gap: 0.3rem;
  padding: 1.2rem;
  background: rgba(18, 24, 33, 0.86);
}

.proof-strip strong {
  color: var(--text);
}

.proof-strip span,
.feature-card p,
.feature-card li,
.screenshot-card p,
.install-steps,
.requirements dd {
  color: var(--muted);
}

.section {
  padding: clamp(4rem, 9vw, 7rem) 0 0;
}

.section-heading {
  margin-bottom: 1.6rem;
}

.section-lede {
  max-width: 760px;
  color: var(--soft);
  font-size: 1.08rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card,
.screenshot-card,
.look-card,
.install-steps,
.install-panel,
.requirements dl {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 24, 33, 0.82);
}

.feature-card {
  padding: 1.25rem;
}

.feature-card ul {
  display: grid;
  gap: 0.4rem;
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: clamp(2rem, 5vw, 4rem);
}

.screenshot-card {
  overflow: hidden;
}

.screenshot-card h3,
.screenshot-card p {
  margin-inline: 1.2rem;
}

.screenshot-card h3 {
  margin-top: 1.1rem;
}

.screenshot-card p {
  margin-bottom: 1.2rem;
}

.image-shell {
  min-height: 300px;
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
}

.cycles-section {
  position: relative;
}

.cycles-look-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.look-card {
  overflow: hidden;
}

.look-card .image-shell {
  min-height: 250px;
}

.look-card h3,
.look-card p {
  margin-inline: 1.2rem;
}

.look-card h3 {
  margin-top: 1.1rem;
}

.look-card p {
  margin-bottom: 1.2rem;
  color: var(--muted);
}

.install-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 1rem;
  align-items: start;
}

.install-steps {
  padding: 1.4rem;
}

.install-steps ol {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding-left: 1.2rem;
}

.install-panel {
  padding: 1.2rem;
}

.install-panel .button {
  margin-top: 0.6rem;
}

.requirements {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.requirements dl {
  display: grid;
  gap: 1px;
  overflow: hidden;
  margin: 0;
  background: var(--line);
}

.requirements dl > div {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 1rem;
  background: rgba(18, 24, 33, 0.9);
}

.requirements dt {
  color: var(--text);
  font-weight: 800;
}

.asset-credits {
  margin-block: 0 clamp(2rem, 5vw, 3rem);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 24, 33, 0.52);
  color: var(--muted);
  font-size: 0.82rem;
}

.asset-credits h2 {
  margin-bottom: 0.35rem;
  color: var(--soft);
  font-size: 0.95rem;
  line-height: 1.3;
}

.asset-credits p {
  max-width: 820px;
  margin-bottom: 0.7rem;
}

.asset-credits ul {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding-left: 1rem;
}

.asset-credits span {
  color: var(--soft);
  font-weight: 700;
}

.asset-credits a {
  color: var(--soft);
  text-decoration-color: rgba(88, 217, 247, 0.55);
  text-underline-offset: 0.18em;
}

.asset-credits a:hover {
  color: var(--text);
}

.site-footer {
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

@media (max-width: 900px) {
  .hero,
  .requirements,
  .install-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .viewport-frame {
    min-height: 400px;
  }

  .proof-strip,
  .feature-grid,
  .cycles-look-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    flex-wrap: wrap;
  }

  h1 {
    font-size: clamp(2.65rem, 15vw, 4.2rem);
  }

  .proof-strip,
  .feature-grid,
  .showcase-grid,
  .cycles-look-grid {
    grid-template-columns: 1fr;
  }

  .requirements dl > div {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

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