@import './tokens.css';
:root {
  --bg: #f7f8f2;
  --surface: #fff;
  --ink: #123d32;
  --muted: #596f63;
  --line: #d9e3d8;
  --accent: #164c3e;
  --on: #fff;
  --soft: #e8f0e4;
  --warm: #f1bc98;
  color-scheme: light;
}
html[data-theme='dark'] {
  --bg: #091c16;
  --surface: #102b21;
  --ink: #e2f5e7;
  --muted: #aac1b2;
  --line: #365446;
  --accent: #b7efc9;
  --on: #102b21;
  --soft: #183c2a;
  --warm: #e6a67c;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, 'Segoe UI', sans-serif;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
header,
main,
footer {
  max-width: 1320px;
  margin: auto;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 48px;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 26px;
  letter-spacing: -1px;
  font-weight: 750;
}
.brand i {
  font-size: 37px;
  font-style: normal;
  line-height: 1;
}
.brand span {
  font-size: 12px;
  align-self: start;
}
nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}
#theme {
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  height: 42px;
  width: 42px;
  font-size: 22px;
  cursor: pointer;
}
.sun {
  display: none;
}
[data-theme='dark'] .sun {
  display: inline;
}
[data-theme='dark'] .moon {
  display: none;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 75px 48px 90px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 22px;
}
.hero h1 {
  font-size: clamp(45px, 5.9vw, 78px);
  line-height: 1.08;
  font-weight: 620;
  letter-spacing: -0.055em;
  margin: 0 0 28px;
}
.intro {
  font-size: 18px;
  max-width: 490px;
  line-height: 1.8;
  color: var(--muted);
}
.button {
  display: inline-flex;
  gap: 28px;
  justify-content: space-between;
  align-items: center;
  background: var(--accent);
  color: var(--on);
  padding: 15px 23px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  margin-top: 20px;
  min-height: 50px;
}
.tiny {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}
.scene {
  height: 470px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 900px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, var(--soft), transparent 70%);
}
.orb {
  position: absolute;
  height: 370px;
  width: 370px;
  border-radius: 50%;
  border: 1px dashed var(--line);
  transform: rotateX(30deg);
}
.poster {
  position: absolute;
  width: 245px;
  height: 330px;
  padding: 25px;
  border-radius: 11px;
  box-shadow: 12px 25px 35px #0d302d26;
}
.poster small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.poster.back {
  transform: translate(-78px, -9px) rotate(-16deg) rotateY(8deg);
  background: var(--warm);
  color: #433725;
}
.poster.back strong {
  display: block;
  font-size: 132px;
  line-height: 1.8;
}
.poster.front {
  background: #d8e9d2;
  color: #22513d;
  transform: translate(55px, 20px) rotate(9deg) rotateY(-13deg);
}
.poster.front strong {
  display: block;
  font-size: 40px;
  line-height: 1.2;
  margin-top: 65px;
  letter-spacing: -0.05em;
}
.rule {
  height: 3px;
  width: 48px;
  background: #cc825e;
  margin-top: 24px;
}
.poster.front > span {
  position: absolute;
  bottom: 23px;
  font-size: 10px;
}
.floating {
  position: absolute;
  inset-inline-end: 20px;
  top: 30px;
  font-size: 60px;
  color: var(--accent);
}
.tools {
  padding: 0 48px 70px;
}
.section-title {
  max-width: 620px;
}
.section-title h2 {
  font-size: 38px;
  line-height: 1.2;
  font-weight: 550;
  letter-spacing: -0.03em;
  margin: 0;
}
.section-title > p:last-child {
  color: var(--muted);
}
.tool {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  align-items: center;
}
.tool > div:last-child {
  padding: 40px;
}
.tool-art {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: var(--soft);
  font-size: 50px;
  letter-spacing: -0.04em;
}
.tool-art span {
  font-size: 115px;
}
.tool h3 {
  font-size: 29px;
  margin: 12px 0;
}
.tool p {
  color: var(--muted);
  max-width: 470px;
}
.tool b {
  font-size: 14px;
}
.badge {
  font-size: 11px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 30px;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 48px 80px;
  gap: 36px;
}
.features article {
  border-top: 1px solid var(--line);
  padding-top: 23px;
}
.features article > span {
  font-size: 12px;
  color: var(--muted);
}
.features h3 {
  font-size: 20px;
  margin: 18px 0 10px;
}
.features p {
  font-size: 14px;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  padding: 38px 48px;
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
footer p {
  font-size: 13px;
  color: var(--muted);
}
footer > div:last-of-type {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-inline-start: auto;
  font-size: 13px;
}
footer small {
  font-size: 11px;
  color: var(--muted);
  width: 100%;
}
.legal {
  max-width: 850px;
  margin: 65px auto 90px;
  padding: 0 30px;
}
.legal h1 {
  font-size: 48px;
  letter-spacing: -0.04em;
}
.legal h2 {
  font-size: 24px;
  margin: 35px 0 12px;
}
.legal p {
  color: var(--muted);
  font-size: 17px;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
[dir='rtl'] .hero h1,
[dir='rtl'] .poster.front strong {
  letter-spacing: 0;
}
[dir='rtl'] .hero h1 {
  line-height: 1.3;
  font-size: clamp(45px, 5vw, 68px);
}
@media (prefers-reduced-motion: no-preference) {
  .poster {
    transition: transform 0.4s;
  }
  .scene:hover .front {
    transform: translate(60px, 10px) rotate(5deg) rotateY(-5deg);
  }
  .scene:hover .back {
    transform: translate(-85px, -15px) rotate(-19deg);
  }
  .button {
    transition: transform 0.2s;
  }
  .button:hover {
    transform: translateY(-3px);
  }
}
@media (max-width: 900px) {
  header {
    padding: 22px 25px;
  }
  .hero {
    padding: 50px 25px;
    gap: 15px;
  }
  .scene {
    transform: scale(0.85);
    height: 420px;
  }
  .tools {
    padding: 30px 25px 60px;
  }
  .features {
    padding: 0 25px 60px;
    gap: 20px;
  }
  footer {
    padding: 30px 25px;
  }
  .tool > div:last-child {
    padding: 26px;
  }
}
@media (max-width: 650px) {
  header {
    padding: 18px 20px;
  }
  .brand {
    font-size: 23px;
  }
  nav {
    gap: 14px;
  }
  nav > a:first-child {
    display: none;
  }
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 50px 22px 20px;
  }
  .hero h1 {
    font-size: 54px;
  }
  .intro {
    font-size: 17px;
  }
  .scene {
    height: 360px;
    transform: scale(0.85);
    margin: 10px -15px;
  }
  .tool {
    grid-template-columns: 1fr;
  }
  .tool-art {
    height: 210px;
    font-size: 43px;
  }
  .section-title h2 {
    font-size: 30px;
  }
  .features {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .features article {
    padding-top: 14px;
  }
  .features h3 {
    margin-top: 10px;
  }
  footer {
    gap: 15px;
  }
  footer > div:last-of-type {
    margin-inline-start: 0;
    width: 100%;
  }
  .legal h1 {
    font-size: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
