:root {
  --ink: #171821;
  --text: #252735;
  --muted: #626579;
  --soft: #f7f8fc;
  --surface: #ffffff;
  --panel: #f0eef6;
  --line: #d9d7e2;
  --brand: #7e8ef1;
  --brand-dark: #4f46e5;
  --brand-soft: #eef2ff;
  --coral: #d7344f;
  --coral-soft: #f9e8ee;
  --mint: #16a34a;
  --mint-soft: #effbf3;
  --gold: #f59e0b;
  --shadow: 0 22px 60px rgba(31, 34, 51, 0.16);
  --radius: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--soft);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--brand-dark); }

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

.site-header,
header:not(.site-header) {
  background: rgba(247, 248, 252, 0.92);
  color: var(--text);
  border-bottom: 1px solid rgba(217, 215, 226, 0.8);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  white-space: nowrap;
}

.brand img {
  width: 34px;
  height: 34px;
  padding: 6px;
  border-radius: 8px;
  background: var(--brand-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--brand-dark);
  background: var(--brand-soft);
}

.hero {
  min-height: calc(100svh - 128px);
  max-height: 920px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(247, 248, 252, 0.98) 0%, rgba(247, 248, 252, 0.92) 42%, rgba(247, 248, 252, 0.35) 74%, rgba(247, 248, 252, 0.1) 100%),
    url("/assets/screen-topics.png") center right 16% / auto 122% no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(0deg, var(--soft), rgba(247, 248, 252, 0));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 74px 0 120px;
}

.eyebrow,
.section-kicker {
  color: var(--brand-dark);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

.hero h1 {
  color: var(--ink);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.9;
  margin: 14px 0 24px;
  letter-spacing: 0;
}

.lead {
  max-width: 620px;
  color: #3b3d4f;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.35;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--brand-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.24);
}

.btn:hover { background: #4338ca; }

.btn.secondary {
  background: var(--surface);
  color: var(--brand-dark);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn.secondary:hover { border-color: var(--brand); background: var(--brand-soft); }

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.phone {
  overflow: hidden;
  border: 10px solid #181923;
  border-radius: 38px;
  background: #181923;
  box-shadow: var(--shadow);
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 27px;
}

.phone-primary {
  position: absolute;
  right: max(42px, calc((100vw - 1120px) / 2));
  top: 7%;
  width: min(28vw, 330px);
  aspect-ratio: 1242 / 2688;
  transform: rotate(4deg);
}

.phone-secondary {
  position: absolute;
  right: max(230px, calc((100vw - 780px) / 2));
  bottom: 4%;
  width: min(21vw, 250px);
  aspect-ratio: 1242 / 2688;
  transform: rotate(-7deg);
  opacity: 0.94;
}

main { padding: 0; }

section + section { margin-top: 0; }

.intro-band,
.features-band,
.showcase-band,
.contact-band {
  padding: 78px 0;
}

.intro-band { background: var(--soft); }

.intro-grid,
.showcase-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 52px;
  align-items: center;
}

h2 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: 0;
  margin-top: 10px;
}

h3 {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.2;
  margin-top: 18px;
}

.section-copy,
.showcase-copy p,
.contact-grid p,
.feature-card p {
  color: var(--muted);
  font-size: 1rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.features-band {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  min-height: 220px;
}

.feature-card p { margin-top: 10px; }

.feature-mark {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.feature-mark.blue { background: var(--brand-soft); border-color: #d8defd; }
.feature-mark.red { background: var(--coral-soft); border-color: #f0c6d0; }
.feature-mark.green { background: var(--mint-soft); border-color: #bfefcd; }
.feature-mark.violet { background: #f0e7ff; border-color: #dcc8ff; }

.showcase-band {
  background: linear-gradient(180deg, #f7f8fc 0%, #f3f5fb 100%);
}

.showcase-copy p {
  margin-top: 18px;
  max-width: 560px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: #3a3d4f;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.44em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 5px var(--coral-soft);
}

.screen-row {
  min-height: 560px;
  position: relative;
}

.small-phone {
  width: min(44vw, 255px);
  aspect-ratio: 1242 / 2688;
  position: absolute;
  right: 42%;
  top: 30px;
  border-width: 8px;
}

.small-phone.raised {
  right: 0;
  top: 0;
  transform: rotate(4deg);
}

.contact-band {
  background: #171821;
  color: #fff;
}

.contact-band h2,
.contact-band .section-kicker { color: #fff; }

.contact-band p { color: #cfd2df; }

.contact-actions {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.email-link,
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
}

.email-link {
  background: #fff;
  color: var(--ink);
  padding: 0 18px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.text-link { color: #cfd6ff; }

.page-title {
  background: #171821;
  color: #fff;
  padding: 56px 0 64px;
  text-align: center;
}

.page-title h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1;
}

.page-title p {
  color: #cfd2df;
  margin: 14px auto 0;
  max-width: 680px;
}

body > header:not(.site-header) .container {
  width: min(980px, calc(100% - 40px));
}

body > header:not(.site-header) + main {
  padding: 58px 0 78px;
}

body > header:not(.site-header) + main .container {
  width: min(920px, calc(100% - 40px));
}

body > header:not(.site-header) .nav {
  min-height: 76px;
}

body > header:not(.site-header) section + section { margin-top: 56px; }

body > header:not(.site-header) h2 {
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 0 0 18px;
}

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

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card,
.contact-box,
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card { padding: 24px; }

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

.card p,
.legal p,
.legal li { color: var(--muted); }

.contact-box {
  border-left: 5px solid var(--brand);
  padding: 28px;
}

.contact-box .email {
  font-size: 1.25rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-box ul { margin: 14px 0 0 20px; color: var(--muted); }

details {
  padding: 18px 22px;
  margin-bottom: 12px;
}

details summary {
  cursor: pointer;
  font-weight: 750;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details summary::-webkit-details-marker { display: none; }

details summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--brand-dark);
  font-weight: 500;
  margin-left: 12px;
}

details[open] summary::after { content: "-"; }

details p { margin-top: 12px; color: var(--muted); }

.legal h2 { margin-top: 40px; font-size: 1.2rem; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { margin-bottom: 12px; }
.legal ul { margin: 0 0 12px 22px; }
.legal .updated { font-size: 0.9rem; color: var(--muted); font-style: italic; }

footer {
  background: #101118;
  color: #c4c8d8;
  padding: 34px 0;
  font-size: 0.9rem;
}

footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
}

footer a {
  color: #dce1ff;
  text-decoration: none;
  margin-right: 18px;
}

footer a:hover { color: #fff; }

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(247, 248, 252, 0.98) 0%, rgba(247, 248, 252, 0.9) 52%, rgba(247, 248, 252, 0.98) 100%),
      url("/assets/screen-home.png") center bottom / min(88vw, 430px) auto no-repeat;
  }

  .hero-content {
    padding: 58px 0 min(88vw, 430px);
  }

  .hero-media { display: none; }

  .intro-grid,
  .showcase-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .screen-row {
    min-height: 520px;
    max-width: 580px;
  }

  .small-phone { right: auto; left: 0; }
  .small-phone.raised { right: 0; left: auto; }
}

@media (max-width: 640px) {
  .container,
  body > header:not(.site-header) .container,
  body > header:not(.site-header) + main .container {
    width: min(100% - 28px, 1120px);
  }

  .nav {
    min-height: 68px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links a {
    padding: 6px 8px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: calc(100svh - 188px);
    background-size: min(100vw, 390px) auto;
  }

  .hero-content {
    padding-top: 38px;
    padding-bottom: min(76vw, 300px);
  }

  .hero h1 { font-size: clamp(3.5rem, 22vw, 5.8rem); }

  .lead { font-size: 1.05rem; }

  .hero-actions { align-items: stretch; }

  .btn { width: 100%; }

  .intro-band,
  .features-band,
  .showcase-band,
  .contact-band {
    padding: 54px 0;
  }

  h2 { font-size: clamp(1.9rem, 10vw, 2.65rem); }

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

  .feature-card { min-height: 0; }

  .screen-row {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .small-phone,
  .small-phone.raised {
    position: static;
    width: 100%;
    transform: none;
    border-width: 5px;
    border-radius: 24px;
  }

  .small-phone img { border-radius: 18px; }

  .email-link { width: 100%; }

  footer .container {
    flex-direction: column;
    align-items: flex-start;
  }
}
