:root {
  color-scheme: dark;
  font-family: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  background: #050816;
  color: #f8fafc;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #050816;
  color: #f8fafc;
}

body:not([data-lang="en"]) [data-lang-panel="en"],
body:not([data-lang="fr"]) [data-lang-panel="fr"],
body:not([data-lang="de"]) [data-lang-panel="de"],
body:not([data-lang="ja"]) [data-lang-panel="ja"] {
  display: none;
}

body[data-lang="ja"] {
  line-break: strict;
}

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

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
  background: rgba(5, 8, 22, .9);
  backdrop-filter: blur(16px);
}

.nav-inner {
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-links {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.nav-links a {
  color: #94a3b8;
  font-size: .84rem;
  font-weight: 800;
}

.nav-links a:hover {
  color: #dbeafe;
}

.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 999px;
  background: rgba(15, 23, 42, .76);
}

.lang-toggle button {
  min-width: 38px;
  min-height: 30px;
  border-radius: 999px;
  background: transparent;
  color: #94a3b8;
  font-size: .78rem;
  font-weight: 800;
}

.lang-toggle button[aria-pressed="true"] {
  background: #2563eb;
  color: #fff;
}

.app-link,
.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 850;
}

.app-link,
.primary-link {
  padding: 0 16px;
  background: #2563eb;
  color: #fff;
}

.secondary-link {
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, .26);
  background: rgba(15, 23, 42, .74);
  color: #dbeafe;
}

.site-hero {
  position: relative;
  min-height: calc(100svh - 64px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 8, 22, .95), rgba(5, 8, 22, .72) 48%, rgba(5, 8, 22, .22)),
    linear-gradient(0deg, rgba(5, 8, 22, .82), rgba(5, 8, 22, .12) 54%),
    url("https://images.unsplash.com/photo-1523580494863-6f3031224c94?auto=format&fit=crop&w=1800&q=82") center 62% / cover;
}

.hero-content {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 96px 0 18vh;
  display: grid;
  gap: 22px;
}

.eyebrow {
  margin: 0;
  color: #93c5fd;
  font-size: .95rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin: 0;
  color: #f8fafc;
  font-size: clamp(3rem, 10vw, 7rem);
  line-height: .9;
}

.hero-lead {
  max-width: 660px;
  margin: 0;
  color: #e5edf8;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.story-section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 44px;
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.story-section-alt {
  grid-template-columns: minmax(300px, .95fr) minmax(0, 1.05fr);
}

.story-section-alt .story-image {
  order: 2;
}

.story-image {
  min-width: 0;
}

.story-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

.story-copy {
  display: grid;
  gap: 16px;
}

.story-copy h2,
.section-heading h2,
.cta-band h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.story-copy p:not(.eyebrow),
.section-heading p,
.cta-band p {
  margin: 0;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.7;
}

.feature-band,
.workflow-band,
.cta-band {
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.section-inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 28px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 12px;
  background: rgba(15, 23, 42, .7);
}

.feature span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 9px;
  background: rgba(37, 99, 235, .2);
  color: #bfdbfe;
  font-weight: 900;
}

.feature h3 {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: 1rem;
}

.feature p {
  margin: 0;
  color: #94a3b8;
  font-size: .92rem;
  line-height: 1.55;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 12px;
  background: rgba(148, 163, 184, .16);
}

.step {
  padding: 18px;
  background: #0f172a;
}

.step strong {
  display: block;
  margin-bottom: 12px;
  color: #60a5fa;
  font-size: .82rem;
}

.step h3 {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: 1rem;
}

.step p {
  margin: 0;
  color: #94a3b8;
  font-size: .9rem;
  line-height: 1.5;
}

.image-strip {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.image-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 14px;
}

.cta-band {
  background: #020617;
}

.cta-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.site-footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
  color: #64748b;
  font-size: .84rem;
}

.page-hero {
  border-bottom: 1px solid rgba(148, 163, 184, .12);
  background:
    linear-gradient(90deg, rgba(5, 8, 22, .95), rgba(5, 8, 22, .64)),
    #0b1220;
}

.page-hero-inner,
.content-page {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
}

.page-hero-inner {
  padding: 84px 0 58px;
  display: grid;
  gap: 18px;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
}

.page-lead {
  max-width: 720px;
  margin: 0;
  color: #cbd5e1;
  font-size: 1.12rem;
  line-height: 1.65;
}

.content-page {
  padding: 58px 0 82px;
  display: grid;
  gap: 24px;
}

.content-section {
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 14px;
  background: rgba(15, 23, 42, .72);
}

.content-section h2 {
  margin: 0 0 12px;
  color: #f8fafc;
  font-size: 1.4rem;
  line-height: 1.15;
}

.content-section p,
.content-section li {
  color: #cbd5e1;
  line-height: 1.65;
}

.content-section p {
  margin: 0 0 12px;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section ul {
  margin: 0;
  padding-left: 20px;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  display: grid;
  gap: 14px;
}

.feature-detail {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 390px);
  gap: 58px;
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.feature-detail-alt {
  grid-template-columns: minmax(250px, 390px) minmax(0, 1fr);
}

.feature-detail-alt .feature-detail-copy {
  order: 2;
}

.feature-detail-copy {
  display: grid;
  gap: 16px;
}

.feature-detail-copy h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.feature-detail-copy p:not(.eyebrow) {
  margin: 0;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.7;
}

.feature-detail-copy ul {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.feature-detail-copy li {
  position: relative;
  padding-left: 18px;
  color: #94a3b8;
  line-height: 1.55;
}

.feature-detail-copy li::before {
  content: "";
  position: absolute;
  top: .7em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: #60a5fa;
}

.phone-shot {
  margin: 0;
  justify-self: center;
}

.phone-shot img {
  display: block;
  width: min(100%, 360px);
  height: auto;
  border-radius: 34px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

@media (max-width: 900px) {
  .story-section,
  .story-section-alt {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .story-section-alt .story-image {
    order: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-detail,
  .feature-detail-alt {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-detail-alt .feature-detail-copy {
    order: 0;
  }

  .workflow {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .nav-inner {
    width: min(100% - 20px, 1120px);
    gap: 10px;
  }

  .nav-links {
    display: none;
  }

  .brand span {
    display: none;
  }

  .lang-toggle button {
    min-width: 32px;
  }

  .app-link {
    padding: 0 10px;
    font-size: .82rem;
    white-space: nowrap;
  }

  .site-hero {
    min-height: 72svh;
    background-position: 56% 62%;
  }

  .hero-content,
  .story-section,
  .feature-detail,
  .section-inner,
  .image-strip,
  .page-hero-inner,
  .content-page,
  .site-footer {
    width: min(100% - 24px, 1120px);
  }

  .hero-content {
    padding: 64px 0 13vh;
  }

  h1 {
    font-size: 3.25rem;
  }

  .feature-grid,
  .workflow,
  .image-strip,
  .page-grid,
  .cta-content {
    grid-template-columns: 1fr;
  }

  .story-section,
  .feature-detail,
  .section-inner,
  .image-strip {
    padding: 52px 0;
  }

  .phone-shot img {
    width: min(100%, 320px);
    border-radius: 28px;
  }

  .story-image img {
    aspect-ratio: 4 / 3;
    border-radius: 12px;
  }

  .image-strip img {
    aspect-ratio: 16 / 10;
  }
}
