:root {
  color-scheme: dark;
  --ink: #161713;
  --text: #faf8ed;
  --muted: #c8c6b9;
  --lime: #e4f48c;
  --line: #37392c;
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--text); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #eea854; outline-offset: 5px; }
.shell { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; inset: 12px auto auto 12px; padding: 10px; background: var(--text); color: var(--ink); transform: translateY(-150%); }
.skip:focus { transform: none; }

.top, .footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.top { min-height: 86px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.025em; }
.brand img { border-radius: 9px; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(14px, 3vw, 36px); }
nav a { font-size: .9rem; color: var(--muted); }
nav a:hover { color: var(--text); }
.nav-download { padding: 8px 16px; border: 1px solid #747e46; border-radius: 999px; color: var(--lime); white-space: nowrap; }

.hero { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 30px; align-items: center; padding-block: 68px 76px; }
.intro { position: relative; z-index: 1; }
h1, .features h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.07em; }
h1 { font-size: clamp(4rem, 7.4vw, 7.25rem); line-height: .95; }
h1 em { color: var(--lime); }
.intro p { max-width: 32ch; margin: 27px 0 28px; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.store { display: inline-flex; align-items: center; gap: 13px; padding: 11px 19px 12px; border-radius: 10px; background: var(--lime); color: var(--ink); font-size: 1.15rem; font-weight: 750; line-height: 1.1; }
.store:hover { background: #f4ffbc; }
.store small { display: block; font-size: .75rem; margin-bottom: 3px; font-weight: 600; }
.play { display: block; width: 24px; height: 27px; background: var(--ink); clip-path: polygon(4% 0, 100% 50%, 4% 100%); }

.preview { position: relative; isolation: isolate; display: grid; min-height: 490px; place-items: center; overflow: hidden; padding: 26px 16px; border: 1px solid #4a542e; border-radius: 30px; background: radial-gradient(ellipse at 53% 22%, #465231 0%, #303a24 56%, #242d1c 100%); }
.orbit { position: absolute; z-index: -1; width: 125%; height: 54%; border: 1px solid #69764c; border-radius: 50%; transform: rotate(-33deg); }
.orbit-two { width: 150%; height: 63%; }
.phone { width: min(100%, 252px); padding: 6px 8px 8px; border: 1px solid #666953; border-radius: 32px; background: #151711; box-shadow: 10px 15px 36px #11170e99; }
.phone-top { display: grid; height: 24px; place-items: center; }
.camera { width: 36px; height: 6px; border-radius: 20px; background: #454837; }
.phone-content { padding: 20px 15px 16px; min-height: 365px; border-radius: 23px; background: #f8f5e7; color: #262b1e; }
.card-label { display: block; color: #45542b; font-size: .875rem; font-weight: 750; }
.phone h2 { margin: 4px 0 17px; font-size: 1.45rem; letter-spacing: -.045em; }
.speech { margin: 0 0 5px; padding: 10px 12px; border-radius: 11px 11px 11px 2px; background: #e6eccf; font-weight: 650; }
.translation { margin: 0 0 17px 3px; font-size: .875rem; color: #4f5644; }
fieldset { padding: 0; margin: 0; border: 0; }
legend { margin-bottom: 6px; font-size: .875rem; font-weight: 700; }
fieldset button { width: 100%; min-height: 44px; margin-bottom: 6px; padding: 7px 10px; border: 1px solid #a5ac88; border-radius: 8px; text-align: left; background: #fffdf2; color: #262b1e; cursor: pointer; }
fieldset button:hover, fieldset button[aria-pressed="true"] { background: #dce9b0; border-color: #68794a; }
fieldset button.incorrect { background: #faead8; border-color: #b57646; }
.feedback { min-height: 3.3em; margin: 6px 0 0; font-size: .875rem; color: #40502b; }
.word-card, .reminder-card { position: absolute; z-index: 1; display: grid; gap: 1px; padding: 12px 15px; border-radius: 13px; box-shadow: 0 9px 18px #11170e55; color: #262b1e; font-size: .875rem; pointer-events: none; }
.word-card strong, .reminder-card strong { font-size: 1rem; }
.word-card { top: 25px; left: 17px; background: #f9f1df; transform: rotate(-8deg); }
.reminder-card { bottom: 27px; right: 17px; background: var(--lime); transform: rotate(8deg); }

.features { padding-block: 63px 73px; background: #eeeddf; color: #25271d; }
.features h2 { max-width: 770px; font-size: clamp(2.5rem, 5.1vw, 4.8rem); line-height: 1.03; }
.features h2 em { color: #495b2e; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 34px; }
.feature-grid article { border-top: 1px solid #aeb097; padding-top: 21px; }
.feature-grid h3 { font-size: 1.27rem; margin: 12px 0 5px; letter-spacing: -.02em; }
.feature-grid p { max-width: 32ch; margin: 0; color: #494e41; }
.feature-icon { display: grid; width: 41px; height: 41px; place-items: center; border-radius: 11px; background: #dce5bf; color: #354026; font: 700 1.15rem Georgia, serif; }
.grammar-icon { align-content: center; gap: 3px; }
.grammar-icon i { width: 17px; height: 2px; background: currentColor; border-radius: 2px; }
.grammar-icon i:nth-child(2) { width: 12px; }
.chat-icon { position: relative; display: flex; justify-content: center; gap: 3px; }
.chat-icon::before { content: ""; position: absolute; inset: 12px 10px 13px; border: 1.5px solid currentColor; border-radius: 5px 5px 5px 1px; }
.chat-icon i { width: 2px; height: 2px; border-radius: 50%; background: currentColor; }
.footer { min-height: 112px; padding-block: 22px; }

@media (max-width: 910px) {
  .shell { width: calc(100% - 48px); }
  .preview { min-height: 470px; }
  .word-card { top: 16px; left: 11px; }
  .reminder-card { bottom: 13px; right: 10px; }
}
@media (max-width: 740px) {
  .shell { width: calc(100% - 36px); }
  .top { min-height: 69px; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding-block: 44px; }
  h1 { font-size: clamp(3.2rem, 12vw, 5.7rem); }
  .intro p { margin-block: 20px 23px; }
  .feature-grid { grid-template-columns: 1fr; gap: 24px; }
  .features { padding-block: 42px 47px; }
  .footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 475px) {
  .feature-link { display: none; }
  .top { gap: 8px; }
  .brand { gap: 7px; }
  .top .brand img { width: 29px; height: 29px; }
  .nav-download { padding-inline: 11px; }
  .preview { min-height: 465px; padding-block: 35px 36px; }
  .word-card, .reminder-card { padding: 5px 9px; transform: none; }
  .word-card { top: 9px; left: 9px; }
  .reminder-card { right: 9px; bottom: 9px; }
  .word-card span:last-child, .reminder-card span:last-child { display: none; }
}
