:root {
  color-scheme: dark;
  --bg: #071b2d;
  --surface: #0d263a;
  --ink: #f2f5f4;
  --muted: #abc0cd;
  --accent: #8ef1d5;
  --line: #274254;
  --max: 1200px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button {
  font: inherit;
  cursor: pointer;
}
a,
button {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible,
canvas:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
p {
  margin: 0 0 1.2rem;
}
h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin: 0 0 1.4rem;
}
h1 {
  font-size: clamp(3rem, 6.3vw, 5.6rem);
  font-weight: 600;
}
h2 {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 550;
}
h3 {
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}
img,
svg {
  max-width: 100%;
}
.header,
footer,
main > .section,
main > .hero,
main > .page-heading,
main > .article-layout,
main > .legal,
main > .tool-wrap,
main > .cta {
  width: min(var(--max), calc(100% - 96px));
  margin-inline: auto;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 110px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.6rem;
  font-weight: 650;
  letter-spacing: -0.065em;
  text-decoration: none;
}
.brand-mark {
  font-size: 30px;
  background: var(--accent);
  color: var(--bg);
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  line-height: 1;
  position: relative;
  padding-bottom: 4px;
}
.brand-mark > span {
  position: absolute;
  background: var(--bg);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  right: 5px;
  bottom: 6px;
}
.header nav {
  display: flex;
  gap: 27px;
  align-items: center;
  font-size: 0.9rem;
}
.header nav a {
  text-decoration: none;
  color: var(--muted);
}
.header nav a:hover {
  color: var(--accent);
}
.header nav .lang {
  padding-left: 24px;
  border-left: 1px solid var(--line);
  color: var(--ink);
}
.skip {
  position: absolute;
  left: 20px;
  top: -70px;
  padding: 10px 20px;
  background: var(--accent);
  color: var(--bg);
  z-index: 20;
}
.skip:focus {
  top: 10px;
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 50px;
  padding-block: 85px 78px;
  min-height: 730px;
}
.eyebrow {
  font:
    600 0.7rem/1.5 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 30px;
}
.hero h1 {
  margin-bottom: 26px;
}
.lede {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 650px;
}
.hero .lede {
  max-width: 530px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
  margin: 32px 0 21px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 15px 22px;
  min-height: 54px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--bg);
  font-size: 0.92rem;
  line-height: 1.4;
  font-weight: 650;
  text-decoration: none;
  transition:
    background 0.18s,
    transform 0.18s;
}
.button:hover {
  background: #b6ffe9;
  transform: translateY(-2px);
}
.text-link {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 550;
}
.small {
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 590px;
}
.hero .small {
  font-size: 0.73rem;
  max-width: 460px;
}
.device-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 530px;
  background: radial-gradient(ellipse at center, #194c58 0, transparent 65%);
}
.scene-label,
.scene-caption {
  font:
    500 0.6rem ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: 0.12em;
  color: #a6c5cb;
  position: absolute;
}
.scene-label {
  top: 0;
  left: 15px;
}
.scene-caption {
  bottom: 0;
  right: 0;
}
.phone {
  width: 262px;
  min-height: 492px;
  padding: 17px 19px 25px;
  border: 1px solid #6f8792;
  border-radius: 37px;
  background: linear-gradient(150deg, #24485a, #0a2334 70%);
  box-shadow:
    0 30px 80px #0005,
    0 0 0 7px #061522,
    0 0 0 8px #3c5663;
  transform: rotate(7deg);
  position: relative;
}
.island {
  display: block;
  width: 78px;
  height: 21px;
  border-radius: 30px;
  background: #04111b;
  margin: 0 auto 29px;
}
.phone-top {
  display: flex;
  justify-content: space-between;
  color: #dcece9;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.phone-top > span:last-child {
  color: var(--accent);
}
.phone-title {
  font-size: 1.7rem;
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.2;
  white-space: pre-line;
  margin: 25px 0;
}
.phone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}
.phone-grid > div {
  border: 1px solid #446371;
  border-radius: 10px;
  min-height: 67px;
  padding: 8px 12px;
  background: #badfdb06;
}
.phone-grid span {
  display: block;
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1.3;
}
.phone-grid small {
  font-size: 0.6rem;
  color: #bed1d7;
}
.phone-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #45606c;
  margin-top: 24px;
  padding-top: 15px;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
}
.band {
  border-block: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: clamp(25px, 7vw, 110px);
  padding: 20px 24px;
  font:
    500 0.63rem ui-monospace,
    SFMono-Regular,
    monospace;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.section {
  padding-block: 95px;
}
.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}
.section-heading .eyebrow {
  margin-bottom: 22px;
}
.section-heading > p:last-child {
  max-width: 670px;
  color: var(--muted);
}
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.tool-card {
  text-decoration: none;
  background: var(--surface);
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: 13px;
  transition: border-color 0.18s;
}
.tool-card:hover {
  border-color: var(--accent);
}
.tool-art {
  height: 140px;
  margin-bottom: 30px;
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 25px;
}
.color-art span {
  height: 70px;
  width: 45px;
  transform: skewY(-8deg);
  background: #f6faf7;
  border-radius: 4px;
}
.color-art span:nth-child(2) {
  background: #163546;
  border: 1px solid #6f8c9b;
}
.color-art span:nth-child(3) {
  background: #fc7870;
}
.color-art span:nth-child(4) {
  background: #8ef1b0;
}
.color-art span:nth-child(5) {
  background: #739aff;
}
.touch-art svg {
  width: 270px;
  height: 100px;
}
.touch-art path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
}
.tool-card h3 {
  display: flex;
  justify-content: space-between;
}
.tool-card h3 span {
  color: var(--accent);
}
.tool-card p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}
.app-scope {
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}
.app-scope p {
  color: var(--muted);
}
.notice {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  font-size: 0.84rem;
  line-height: 1.8;
  margin-top: 28px;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.steps li:last-child {
  border-bottom: 1px solid var(--line);
}
.steps li > span {
  font:
    500 0.8rem ui-monospace,
    monospace;
  color: var(--accent);
  padding-top: 6px;
}
.steps h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}
.steps p {
  font-size: 0.88rem;
  margin-bottom: 0;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 40px;
}
.guide-card {
  display: flex;
  flex-direction: column;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.guide-card .number {
  font:
    500 0.65rem ui-monospace,
    monospace;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 22px;
}
.guide-card h3 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-bottom: 15px;
}
.guide-card p {
  font-size: 0.91rem;
  color: var(--muted);
  max-width: 470px;
}
.read {
  margin-top: auto;
  font-size: 0.8rem;
}
.guide-card:hover .read {
  color: var(--accent);
}
.faq {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 90px;
  border-top: 1px solid var(--line);
}
details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
details:first-child {
  padding-top: 0;
}
summary {
  font-size: 1.05rem;
  cursor: pointer;
  line-height: 1.5;
}
details p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 18px 0 0;
}
.cta {
  background: var(--accent);
  border-radius: 15px;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: var(--bg);
  margin-block: 0 95px;
}
.cta .eyebrow {
  color: #205650;
  margin-bottom: 18px;
}
.cta h2 {
  font-size: 2rem;
  max-width: 580px;
  margin: 0;
}
.cta .button {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
  flex-shrink: 0;
}
.cta .button:hover {
  background: #17405a;
}
footer {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  padding-block: 48px 30px;
}
footer .brand {
  font-size: 2rem;
}
footer p {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 12px;
}
.dot {
  color: var(--accent);
  margin-left: -8px;
}
.footer-links {
  display: flex;
  justify-content: flex-end;
  align-items: start;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--accent);
}
footer .fine {
  grid-column: 1/-1;
  font-size: 0.68rem;
  margin: 10px 0 0;
  color: #89a3b3;
}
.page-heading {
  padding-block: 80px 30px;
}
.page-heading h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  max-width: 900px;
}
.page-heading + .section {
  padding-top: 40px;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 230px;
  gap: 90px;
  padding-block: 60px 90px;
}
.article-layout article h1,
.legal h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.25rem);
  line-height: 1.15;
}
.back {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 35px;
}
.article-layout article > .eyebrow {
  margin-bottom: 20px;
}
.article-layout article > section,
.legal > section {
  margin-top: 42px;
}
.article-layout article h2,
.legal h2 {
  font-size: 1.6rem;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.article-layout article section p,
.legal section p {
  color: #c0d0da;
  line-height: 1.85;
}
.article-aside {
  border-left: 1px solid var(--line);
  padding-left: 26px;
  margin-top: 170px;
  align-self: start;
}
.article-aside a {
  display: block;
  font-size: 0.86rem;
  margin: 24px 0;
  color: var(--muted);
  text-decoration: none;
}
.article-aside a:hover {
  color: var(--accent);
}
.legal {
  max-width: 800px !important;
  padding-block: 75px 95px;
  overflow-wrap: anywhere;
}
.tool-wrap {
  padding: 35px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  margin-top: 20px !important;
  margin-bottom: 10px !important;
}
.screen-preview {
  height: 260px;
  background: #fff;
  border-radius: 9px;
  border: 1px solid #78919b;
}
.swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.swatches button {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 17px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  font-size: 0.9rem;
}
.swatches button[aria-pressed="true"] {
  border-color: var(--accent);
  background: #8ef1d512;
}
.swatches button > span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid #78919b;
}
.local-note {
  font:
    500 0.65rem/1.6 ui-monospace,
    monospace;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin: 25px 0 0;
}
#screen-dialog {
  position: fixed;
  inset: 0;
  border: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  background: white;
  color: black;
  z-index: 100;
}
#screen-dialog::backdrop {
  background: black;
}
.color-toolbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(25px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 18px;
  background: #071b2def;
  color: white;
  padding: 10px 15px;
  border-radius: 12px;
  box-shadow: 0 2px 20px #0003;
  white-space: nowrap;
}
.color-toolbar button {
  font-size: 0.85rem;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #527184;
  color: white;
  background: #143348;
  border-radius: 6px;
}
.color-toolbar span {
  font-size: 0.8rem;
  min-width: 45px;
  text-align: center;
}
#touch-canvas {
  width: 100%;
  height: 440px;
  display: block;
  border: 1px solid #416278;
  border-radius: 9px;
  background-color: #061726;
  background-image:
    linear-gradient(#2b48583b 1px, transparent 1px),
    linear-gradient(90deg, #2b48583b 1px, transparent 1px);
  background-size: 30px 30px;
  touch-action: none;
  cursor: crosshair;
}
.tool-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 22px 0;
}
.tool-controls span {
  color: var(--muted);
  font-size: 0.85rem;
}
.tool-reading {
  max-width: 850px !important;
}
.tool-reading p {
  color: var(--muted);
}
@media (min-width: 1600px) {
  .hero {
    min-height: 780px;
  }
  .device-scene {
    transform: scale(1.08);
  }
}
@media (max-width: 1000px) {
  .header,
  footer,
  main > .section,
  main > .hero,
  main > .page-heading,
  main > .article-layout,
  main > .legal,
  main > .tool-wrap,
  main > .cta {
    width: calc(100% - 56px);
  }
  .hero {
    gap: 25px;
    min-height: 650px;
  }
  .device-scene {
    min-height: 490px;
  }
  .phone {
    transform: rotate(5deg) scale(0.9);
  }
  .scene-label {
    left: 0;
  }
  .app-scope {
    gap: 45px;
  }
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 40px;
  }
  .cta {
    padding: 32px;
    gap: 25px;
  }
  .cta h2 {
    font-size: 1.7rem;
  }
  .cta .button {
    max-width: 240px;
  }
  .faq {
    gap: 40px;
  }
  .footer-links {
    gap: 16px;
  }
}
@media (max-width: 700px) {
  .header,
  footer,
  main > .section,
  main > .hero,
  main > .page-heading,
  main > .article-layout,
  main > .legal,
  main > .tool-wrap,
  main > .cta {
    width: calc(100% - 40px);
  }
  .header {
    min-height: 92px;
    flex-wrap: wrap;
    gap: 10px;
    padding-block: 17px;
  }
  .brand {
    font-size: 1.4rem;
  }
  .header nav {
    font-size: 0.76rem;
    gap: 17px;
  }
  .header nav .lang {
    padding-left: 15px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-block: 55px 40px;
    gap: 35px;
  }
  .hero h1 {
    font-size: clamp(3.2rem, 12vw, 4.7rem);
  }
  .hero .lede {
    font-size: 1.07rem;
  }
  .hero .actions {
    gap: 20px;
  }
  .device-scene {
    min-height: 495px;
    max-width: 400px;
    width: 100%;
    margin: auto;
  }
  .phone {
    transform: rotate(5deg) scale(0.9);
  }
  .scene-label {
    left: 12px;
  }
  .scene-caption {
    right: 4px;
    font-size: 0.52rem;
  }
  .band {
    font-size: 0.49rem;
    gap: 17px;
    letter-spacing: 0.05em;
    padding-inline: 12px;
  }
  .section {
    padding-block: 60px;
  }
  .tool-grid,
  .app-scope,
  .guide-grid,
  .faq {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .tool-card {
    padding: 25px;
  }
  .tool-art {
    height: 125px;
  }
  .app-scope {
    gap: 28px;
  }
  .guide-card {
    padding-block: 26px;
  }
  .guide-card h3 {
    font-size: 1.4rem;
  }
  .faq {
    gap: 18px;
  }
  .cta {
    display: block;
    padding: 27px;
    margin-bottom: 60px;
  }
  .cta .button {
    max-width: none;
    margin-top: 25px;
    font-size: 0.85rem;
  }
  .cta h2 {
    font-size: 1.7rem;
  }
  .page-heading {
    padding-block: 50px 20px;
  }
  .page-heading h1 {
    font-size: 2.75rem;
  }
  .article-layout {
    display: block;
    padding-block: 40px 60px;
  }
  .article-layout article h1,
  .legal h1 {
    font-size: 2.6rem;
  }
  .article-aside {
    margin-top: 45px;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 25px 0 0;
  }
  .legal {
    padding-block: 50px 60px;
  }
  .article-layout article h2,
  .legal h2 {
    font-size: 1.4rem;
  }
  .article-layout article > section,
  .legal > section {
    margin-top: 34px;
  }
  .tool-wrap {
    padding: 20px;
  }
  .screen-preview {
    height: 220px;
  }
  .swatches {
    gap: 7px;
  }
  .swatches button {
    padding: 8px 11px;
    font-size: 0.8rem;
  }
  .tool-controls {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  #touch-canvas {
    height: 400px;
  }
  .color-toolbar {
    gap: 8px;
    padding: 8px;
    max-width: calc(100% - 16px);
  }
  .color-toolbar button {
    padding: 8px 10px;
  }
  .color-toolbar span {
    min-width: 30px;
  }
  .local-note {
    font-size: 0.57rem;
  }
  footer {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 35px 25px;
  }
  .footer-links {
    justify-content: flex-start;
    gap: 20px;
  }
  footer .fine {
    margin-top: 0;
  }
  .tool-reading {
    padding-block: 40px 60px;
  }
}
@media (max-width: 370px) {
  .header nav {
    gap: 12px;
    font-size: 0.7rem;
  }
  .header nav .lang {
    padding-left: 12px;
  }
  .hero h1 {
    font-size: 2.9rem;
  }
  .band {
    font-size: 0.44rem;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}
