:root {
  --bg: #05070d;
  --bg-2: #080b14;
  --ink: #f4f7fb;
  --muted: #9aa6b8;
  --line: rgba(148, 163, 184, 0.16);
  --cyan: #5ce1ff;
  --violet: #8b7cff;
  --mint: #7ef0c5;
  --glass: rgba(12, 16, 28, 0.72);
  --card: #101625;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --header: 68px;
  --max: 1180px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 16px);
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
}

body {
  min-height: 100dvh;
  font-family: "IBM Plex Sans JP", "Sora", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}

img {
  max-width: 100%;
  display: block;
}

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

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3 {
  font-family: "Sora", "IBM Plex Sans JP", sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 0;
}

p {
  margin: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 999px;
  z-index: 80;
}

.skip:focus {
  transform: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(22px) saturate(1.3);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  background: rgba(5, 7, 13, 0.78);
  border-bottom: 1px solid var(--line);
  padding-top: var(--safe-top);
}

.topbar-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-size: 1.05rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: #0b0d14;
}

.nav {
  display: none;
  gap: 22px;
  margin-left: 12px;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang button {
  min-height: 36px;
  min-width: 44px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
}

.lang button.on {
  background: rgba(92, 225, 255, 0.14);
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), #6d8bff);
  color: #061018;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(92, 225, 255, 0.16);
}

.btn-sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn:hover,
.btn:focus-visible {
  filter: brightness(1.06);
}

.burger {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: 0.2s ease;
}

.burger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.sheet {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 8px 16px calc(20px + var(--safe-bottom));
}

.sheet.open {
  display: flex;
}

.sheet a {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 14px;
  color: var(--ink);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 12px;
}

.aurora,
.grid-fade {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.aurora {
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(139, 124, 255, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 45% at 12% 20%, rgba(92, 225, 255, 0.18), transparent 50%),
    radial-gradient(ellipse 40% 40% at 50% 90%, rgba(126, 240, 197, 0.08), transparent 50%);
}

.grid-fade {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 80%);
}

.hero-grid,
.facts,
.partners,
.section,
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  position: relative;
}

.hero-copy h1 {
  font-size: clamp(3.1rem, 13vw, 7.2rem);
  margin: 10px 0 18px;
}

.hero-copy .lead {
  display: block;
  color: rgba(244, 247, 251, 0.72);
  font-weight: 500;
}

.hero-copy .trail {
  display: block;
  background: linear-gradient(120deg, #fff 10%, var(--cyan) 48%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker,
.meta {
  color: var(--cyan);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}

.vision {
  font-size: 1.12rem;
  max-width: 36rem;
}

.spirit {
  margin-top: 10px;
  color: var(--muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-visual {
  position: relative;
  margin-top: 28px;
  display: grid;
  place-items: center;
}

.orb {
  position: absolute;
  width: min(78vw, 420px);
  height: min(78vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 225, 255, 0.28), transparent 68%);
  filter: blur(12px);
}

.hero-icon {
  position: relative;
  width: min(78vw, 420px);
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.facts {
  display: grid;
  gap: 10px;
  padding: 28px 0 8px;
  list-style: none;
}

.facts li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.95rem;
}

.partners {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0 8px;
}

.partners p {
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: min(720px, 100%);
}

.logo-card {
  width: 100%;
  height: 140px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #07090f;
}

.logo-card.nvidia,
.logo-card.aws {
  background: #fff;
}

.logo-card img {
  width: auto;
  height: auto;
  max-width: 160px;
  max-height: 52px;
  object-fit: contain;
}

.section {
  padding: 64px 0 12px;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(2rem, 7vw, 3.4rem);
  margin-bottom: 10px;
}

.section-head p,
.card-body p,
.prompt-card blockquote,
.resource p {
  color: var(--muted);
}

.feature-grid,
.product-grid,
.gallery,
.resource-grid,
.contact-grid {
  display: grid;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    border-color: rgba(92, 225, 255, 0.34);
    transform: translateY(-3px);
  }
}

.card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #080b12;
}

.card.feature.paperlens .card-media {
  aspect-ratio: 4 / 5;
}

.card.feature.paperlens .card-media img {
  object-position: top center;
}

.card-media.compact {
  aspect-ratio: 16 / 9;
}

.card-media img,
.gallery img,
.bloom img,
.about-photo,
.resource img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 16px 16px 18px;
  display: grid;
  gap: 8px;
}

.card-body h3,
.resource h3 {
  font-size: 1.2rem;
}

.text-link {
  color: var(--cyan);
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.player {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.player iframe,
.poster,
.poster img {
  width: 100%;
  height: 100%;
  border: 0;
}

.poster {
  position: relative;
  padding: 0;
}

.poster img {
  object-fit: cover;
  filter: saturate(1.05) brightness(0.78);
}

.play {
  position: absolute;
  inset: auto 16px 16px 16px;
  min-height: 52px;
  border-radius: 999px;
  background: rgba(5, 7, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
  color: #fff;
  font-weight: 700;
}

.play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.center {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.studio-grid {
  display: grid;
  gap: 16px;
}

.bloom,
.prompt-card,
.about-photo,
.mail {
  border-radius: 24px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.bloom {
  aspect-ratio: 1;
}

.prompt-card {
  padding: 20px;
  background: var(--card);
}

.prompt-card blockquote {
  margin: 10px 0 16px;
  font-size: 0.98rem;
}

.gallery {
  margin-top: 16px;
  grid-template-columns: 1fr 1fr;
}

.gallery img {
  aspect-ratio: 1;
  border-radius: 18px;
  border: 1px solid var(--line);
}

.resource-grid {
  margin-top: 18px;
}

.resource {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--card);
  min-height: 92px;
}

.resource img {
  width: 92px;
  height: 72px;
  border-radius: 12px;
}

.about-grid {
  display: grid;
  gap: 20px;
}

.about-photo {
  min-height: 240px;
  aspect-ratio: 1;
}

address {
  font-style: normal;
  display: grid;
  gap: 6px;
  color: var(--muted);
}

address strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.mail {
  padding: 20px;
  background: var(--card);
  display: grid;
  gap: 6px;
  min-height: 96px;
}

.mail span {
  color: var(--muted);
  font-size: 0.85rem;
}

.mail strong {
  font-size: 1.05rem;
  word-break: break-word;
}

.footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding: 28px 16px calc(28px + var(--safe-bottom));
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: grid;
  gap: 10px;
}

.brand.faint {
  opacity: 0.85;
}

@media (max-width: 879px) {
  .top-actions .btn-sm {
    display: none;
  }
}

@media (min-width: 640px) {
  .facts {
    grid-template-columns: 1fr 1fr;
  }

  .product-grid,
  .resource-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 880px) {
  .burger,
  .sheet {
    display: none !important;
  }

  .nav {
    display: flex;
  }

  .hero {
    padding: 48px 0 20px;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 24px;
  }

  .hero-visual {
    margin-top: 0;
  }

  .facts {
    grid-template-columns: repeat(4, 1fr);
    padding-top: 36px;
  }

  .feature-grid {
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
  }

  .card.feature.paperlens {
    grid-row: span 2;
  }

  .card.feature.paperlens .card-media {
    aspect-ratio: 3 / 4;
    max-height: 620px;
  }

  .card.feature.paperlens .card-media img {
    object-position: top center;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 14px;
  }

  .studio-grid,
  .about-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .resource-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .resource {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .resource img {
    width: 100%;
    height: 120px;
  }

  .about-photo {
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .topbar {
    background: #080b14;
  }
}
