:root {
  --ink: #20202d;
  --muted: #66677a;
  --soft: #f8f6f0;
  --paper: #fffef9;
  --line: #e8e2d8;
  --purple: #5c4ae4;
  --violet: #8e68f2;
  --coral: #ff6b7d;
  --amber: #ffb830;
  --green: #159a7e;
  --shadow: 0 24px 70px rgba(32, 32, 45, 0.12);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 184, 48, 0.18), transparent 28rem),
    radial-gradient(circle at 92% 4%, rgba(92, 74, 228, 0.16), transparent 30rem),
    var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

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

img {
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(232, 226, 216, 0.8);
  background: rgba(248, 246, 240, 0.82);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 1.25rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(92, 74, 228, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.nav-links a:hover {
  color: var(--purple);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--violet));
  color: #fff;
  font-weight: 850;
  box-shadow: 0 16px 32px rgba(92, 74, 228, 0.26);
  cursor: pointer;
}

.button.secondary {
  background: #fff;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.hero {
  padding: 78px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 52px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 7px 13px;
  border: 1px solid rgba(92, 74, 228, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.25rem);
  line-height: 0.93;
  letter-spacing: -0.08em;
}

.hero h1 span {
  color: var(--purple);
}

.lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 38px;
  background: linear-gradient(150deg, var(--purple), var(--violet) 48%, var(--coral));
  box-shadow: var(--shadow);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
}

.hero-card::before {
  width: 260px;
  height: 260px;
  right: -72px;
  top: -62px;
}

.hero-card::after {
  width: 180px;
  height: 180px;
  left: -44px;
  bottom: 30px;
}

.phone {
  position: absolute;
  inset: 54px 44px 44px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.28);
  border-radius: 36px;
  background: #fffef9;
  box-shadow: 0 36px 70px rgba(12, 12, 28, 0.26);
}

.phone-top {
  padding: 24px 22px;
  color: #fff;
  background: #2d2d3a;
}

.phone-top small {
  color: #ffcf6a;
  font-weight: 850;
}

.phone-top h3 {
  margin: 7px 0 0;
  line-height: 1.15;
  font-size: 1.55rem;
}

.phone-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.lesson {
  padding: 15px;
  border-radius: 18px;
  background: #f8f6f0;
}

.lesson strong {
  display: block;
  margin-bottom: 3px;
}

.lesson span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 58px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.section p {
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  min-height: 100%;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 254, 249, 0.9);
  box-shadow: 0 18px 45px rgba(32, 32, 45, 0.06);
}

.icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--coral));
  font-size: 1.3rem;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.app-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(135deg, #2d2d3a, #44445b);
  box-shadow: var(--shadow);
}

.app-card::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.app-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.app-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 2rem;
}

.app-card h3 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.app-card p {
  color: rgba(255, 255, 255, 0.82);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.tag {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 800;
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 850;
}

.panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.big-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--paper);
  box-shadow: 0 18px 45px rgba(32, 32, 45, 0.07);
}

.link-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--purple);
  font-weight: 850;
}

.footer {
  margin-top: 58px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.legal-page {
  padding: 58px 0;
}

.legal-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.legal-card h2 {
  margin-top: 34px;
  letter-spacing: -0.03em;
}

.legal-card h3 {
  margin-top: 24px;
}

.legal-card table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.94rem;
}

.legal-card th,
.legal-card td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-card th {
  background: #f2efe8;
}

.muted {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero-grid,
  .panel,
  .apps-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-card {
    min-height: 470px;
  }
}

@media (max-width: 700px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    padding-top: 48px;
  }

  .phone {
    inset: 34px 22px 28px;
  }

  .card,
  .app-card,
  .big-card,
  .legal-card {
    padding: 24px;
    border-radius: 24px;
  }
}
