:root {
  color-scheme: light;
  --ink: #1c2430;
  --muted: #657083;
  --cream: #fff7dc;
  --paper: #fffdf4;
  --lime: #a6f06d;
  --mint: #5fe7c0;
  --blue: #57a8ff;
  --orange: #ffb347;
  --pink: #ff7aa8;
  --purple: #7a5cff;
  --line: rgba(28, 36, 48, 0.14);
  --shadow: 0 26px 70px rgba(46, 38, 20, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 179, 71, 0.45), transparent 22rem),
    radial-gradient(circle at 92% 8%, rgba(95, 231, 192, 0.55), transparent 24rem),
    radial-gradient(circle at 82% 86%, rgba(122, 92, 255, 0.25), transparent 22rem),
    linear-gradient(160deg, #fff7dc 0%, #f7ffe8 45%, #e8fbff 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image: radial-gradient(rgba(28, 36, 48, 0.16) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

p {
  margin: 0;
}

.lexio-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 1rem 0;
}

.lexio-brand,
.lexio-nav,
.lexio-actions {
  display: flex;
  align-items: center;
}

.lexio-brand {
  gap: 0.7rem;
  font-family: "Baloo 2", Inter, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
}

.lexio-mark {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--purple), var(--blue));
  border: 3px solid rgba(255, 255, 255, 0.82);
  border-radius: 0.9rem;
  box-shadow: 0 14px 28px rgba(122, 92, 255, 0.28);
  transform: rotate(-5deg);
}

.lexio-nav {
  gap: 0.5rem;
  padding: 0.35rem;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(28, 36, 48, 0.08);
  backdrop-filter: blur(18px);
}

.lexio-nav a {
  padding: 0.7rem 0.95rem;
  color: var(--muted);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
}

.lexio-nav a:hover {
  color: var(--ink);
  background: #fff;
}

.lexio-hero,
.lexio-section,
.lexio-cta,
.legal-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.lexio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.56fr);
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 4rem 0 5rem;
}

.lexio-hero-copy {
  max-width: 780px;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.45rem 0.85rem;
  color: #314028;
  background: rgba(166, 240, 109, 0.72);
  border: 2px solid rgba(49, 64, 40, 0.12);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Baloo 2", Inter, sans-serif;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 760px;
  margin-top: 1rem;
  font-size: clamp(3.5rem, 8.5vw, 7.5rem);
  line-height: 0.84;
}

h2 {
  margin-top: 0.8rem;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 0.9;
}

h3 {
  font-size: 1.55rem;
}

.lexio-hero-copy > p:not(.pill),
.section-title + .steps-grid p,
.split-play p,
.mode-stack p,
.legal-card p,
.legal-updated {
  color: var(--muted);
  line-height: 1.75;
}

.lexio-hero-copy > p:not(.pill) {
  max-width: 640px;
  margin-top: 1.2rem;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.lexio-actions {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.lexio-actions.center {
  justify-content: center;
}

.lexio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0 1.2rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 7px 0 rgba(28, 36, 48, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.lexio-button:hover {
  transform: translateY(2px);
  box-shadow: 0 4px 0 rgba(28, 36, 48, 0.18);
}

.lexio-button.primary {
  background: var(--lime);
}

.lexio-button.secondary {
  background: #fff;
}

.phone-card {
  position: relative;
  padding: 1.2rem;
  background: #1e2635;
  border: 5px solid #101723;
  border-radius: 2.3rem;
  box-shadow: var(--shadow), 18px 18px 0 rgba(255, 179, 71, 0.5);
  transform: rotate(2deg);
}

.phone-card::before {
  position: absolute;
  inset: -1.2rem;
  z-index: -1;
  content: "";
  background: linear-gradient(135deg, var(--pink), var(--orange));
  border-radius: 2.8rem;
  transform: rotate(-5deg);
}

.phone-top {
  width: 5rem;
  height: 0.45rem;
  margin: 0 auto 1.2rem;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.word-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.word-list span {
  padding: 0.4rem 0.62rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.letter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.letter-grid span {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  color: #1b2130;
  background: #fff8df;
  border-radius: 1rem;
  font-family: "Baloo 2", Inter, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  box-shadow: inset 0 -5px 0 rgba(28, 36, 48, 0.12);
}

.letter-grid .active {
  color: #06120d;
  background: var(--mint);
}

.letter-grid .empty {
  opacity: 0.18;
}

.phone-card p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.6;
}

.lexio-section {
  padding: 5rem 0;
}

.section-title {
  max-width: 720px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.steps-grid article,
.mode-stack article,
.legal-card {
  background: rgba(255, 255, 255, 0.74);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.6rem;
  box-shadow: var(--shadow);
}

.steps-grid article {
  padding: 1.4rem;
}

.steps-grid strong {
  display: inline-flex;
  margin-bottom: 3rem;
  color: var(--purple);
  font-family: "Baloo 2", Inter, sans-serif;
  font-size: 1.35rem;
}

.steps-grid h3 {
  margin-bottom: 0.55rem;
}

.split-play {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: center;
}

.split-play > div:first-child > p:not(.pill) {
  max-width: 640px;
  margin-top: 1rem;
  font-size: 1.08rem;
}

.mode-stack {
  display: grid;
  gap: 1rem;
}

.mode-stack article {
  padding: 1.3rem;
}

.mode-stack span {
  display: inline-flex;
  margin-bottom: 0.55rem;
  color: var(--purple);
  font-weight: 900;
}

.lexio-cta {
  margin-bottom: 2rem;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
  background: linear-gradient(135deg, rgba(166, 240, 109, 0.8), rgba(95, 231, 192, 0.72));
  border: 3px solid rgba(255, 255, 255, 0.85);
  border-radius: 2rem;
  box-shadow: var(--shadow);
}

.lexio-cta .pill {
  margin: 0 auto;
}

.lexio-cta h2 {
  max-width: 880px;
  margin-right: auto;
  margin-left: auto;
}

.legal-shell {
  max-width: 900px;
  padding: 5rem 0;
}

.legal-shell h1 {
  margin-top: 1rem;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
}

.legal-updated {
  margin-top: 1rem;
}

.legal-card {
  margin-top: 2rem;
  padding: clamp(1.4rem, 4vw, 3rem);
}

.legal-card h2 {
  margin-top: 2rem;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  margin-top: 0.75rem;
}

.legal-card a {
  color: var(--purple);
  font-weight: 900;
}

@media (max-width: 900px) {
  .lexio-header,
  .lexio-hero,
  .steps-grid,
  .split-play {
    display: block;
  }

  .lexio-nav {
    margin-top: 0.9rem;
    overflow-x: auto;
  }

  .lexio-header {
    padding: 0.9rem 0;
  }

  .lexio-hero {
    min-height: auto;
    padding: 3rem 0 4rem;
  }

  .phone-card,
  .steps-grid,
  .mode-stack {
    margin-top: 2rem;
  }

  .steps-grid article + article {
    margin-top: 1rem;
  }

  .lexio-section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 560px) {
  .lexio-actions,
  .lexio-button {
    width: 100%;
  }

  h1 {
    font-size: clamp(3.15rem, 18vw, 4.6rem);
  }

  .phone-card {
    transform: none;
  }
}
