:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #f7f7ff;
  background: #070710;
  --bg: #070710;
  --surface: rgba(20, 20, 38, 0.92);
  --surface-alt: rgba(18, 18, 36, 0.95);
  --border: rgba(255, 255, 255, 0.08);
  --accent: #9f7aea;
  --accent-strong: #d5b7ff;
  --muted: #8c92b5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(159, 122, 234, 0.16), transparent 24%),
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.04), transparent 12%),
    var(--bg);
  color: var(--f7f7ff);
}

button,
a {
  font: inherit;
}

body,
button,
a,
input,
textarea {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

main {
  display: grid;
  gap: 2.5rem;
}

.section {
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
  padding: 2rem;
}

.hero-section {
  padding: 2.5rem;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: 2rem;
}

.hero-copy {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero-copy h1 {
  margin: 1.5rem 0 1rem;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 42rem;
  line-height: 1.9;
  color: #c8cadf;
  font-size: 1rem;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  padding: 0.95rem 1.75rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #7e64d9);
  color: #fff;
  box-shadow: 0 20px 45px rgba(159, 122, 234, 0.25);
}

.button-primary:hover {
  background: linear-gradient(135deg, #b68bf8, #8f72e3);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #f7f7ff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  background: radial-gradient(circle at top left, rgba(159, 122, 234, 0.18), transparent 35%),
    rgba(18, 18, 36, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
}

.case-card {
  position: relative;
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #121224;
  padding: 1.75rem;
}

.case-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #8c92b5;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1.5rem;
}

.case-preview {
  border-radius: 1.75rem;
  background: linear-gradient(180deg, #2a2544 0%, #14121e 45%, #0d0c14 100%);
  padding: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.preview-panel {
  display: grid;
  gap: 1.25rem;
  height: 100%;
}

.preview-top {
  display: flex;
  gap: 0.75rem;
}

.line {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  height: 0.65rem;
}

.line.short {
  width: 6rem;
}

.line.medium {
  width: 10rem;
}

.preview-blocks {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}

.block {
  min-height: 4rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
}

.preview-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #9ca1c7;
  font-size: 0.92rem;
}

.status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--accent);
}

.case-copy {
  margin-top: 1.5rem;
  color: #c8cadf;
  line-height: 1.8;
}

.case-copy .muted {
  color: #7c82a7;
}

.feature-section,
.benefits-section,
.faq-section,
.case-section {
  padding: 2rem;
}

.section-header {
  max-width: 46rem;
  margin-bottom: 1.75rem;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 0.75rem;
  color: #9ca1c7;
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  color: #fff;
}

.section-description {
  margin-top: 0.9rem;
  color: #c0c4dc;
  line-height: 1.85;
}

.feature-grid,
.benefit-grid {
  display: grid;
  gap: 1.25rem;
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.feature-card,
.benefit-grid article {
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  padding: 1.6rem;
}

.feature-card h3,
.benefit-grid h3 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  color: #fff;
}

.feature-card p,
.benefit-grid p {
  margin: 0;
  line-height: 1.8;
  color: #bbc0df;
}

.case-section .section-layout {
  display: grid;
  gap: 2rem;
}

.case-copy-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.case-panel {
  position: relative;
  border-radius: 2rem;
  padding: 1.5rem;
  background: #111124;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-top {
  position: absolute;
  inset: 0 0 auto;
  height: 0.35rem;
  width: 100%;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(255,255,255,0.85), #7c64dd);
  opacity: 0.85;
}

.panel-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.25rem;
  border-radius: 1.75rem;
  background: #14142a;
  padding: 1.5rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  color: #8c92b5;
  font-size: 0.92rem;
}

.panel-tips {
  display: grid;
  gap: 0.9rem;
}

.tip-card {
  border-radius: 1.5rem;
  background: #0d0d1b;
  padding: 1rem;
  color: #d1d5ef;
}

.tip-card p {
  margin: 0;
  line-height: 1.85;
}

.panel-stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stat-box {
  border-radius: 1.5rem;
  background: linear-gradient(180deg, #1c1c33, #141424);
  padding: 1rem;
  color: #c8cadf;
}

.stat-box span {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8c92b5;
  margin-bottom: 0.65rem;
}

.stat-box p {
  margin: 0;
  line-height: 1.7;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111124;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  border: none;
  background: transparent;
  color: #fff;
  text-align: left;
  font-size: 1rem;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: #b5b9d1;
  line-height: 1.8;
  transition: max-height 0.28s ease, padding 0.28s ease;
}

.faq-item.active .faq-answer {
  max-height: 20rem;
  padding: 1rem 1.5rem 1.5rem;
}

.faq-item.active .faq-question {
  color: var(--accent-strong);
}

.muted {
  color: var(--muted);
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .section-layout {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
  }

  .feature-grid,
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hero-section {
  min-height: calc(100vh - 4rem);
  padding: 3rem 0 2rem;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
}

.hero-copy {
  max-width: 44rem;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 42rem;
  color: #c8cadf;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-note {
  color: #8c92b5;
  font-size: 0.96rem;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(159, 122, 234, 0.12), transparent 40%);
}

.case-card.minimal {
  position: relative;
  z-index: 1;
  padding: 2rem;
  display: grid;
  gap: 1.25rem;
  background: rgba(10, 10, 24, 0.96);
  border-radius: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.case-card.minimal .case-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #9ca1c7;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.case-card.minimal .case-copy {
  margin: 0;
  color: #d1d5ef;
  line-height: 1.8;
}

.case-section .section-header h2,
.feature-section .section-header h2,
.faq-section .section-header h2 {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
}

.case-copy-group.compact p {
  margin: 0;
  max-width: 52ch;
  color: #c8cadf;
  line-height: 1.9;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.feature-card {
  padding: 1.6rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 12rem;
}

.feature-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  line-height: 1.85;
  color: #b9bdd3;
}

.faq-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.faq-item {
  padding: 1.6rem;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-question {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.faq-answer {
  margin-top: 0.75rem;
  color: #a9adc6;
  line-height: 1.9;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    padding: 1.5rem;
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100%, calc(100% - 1rem));
    padding: 1.5rem 0 2rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 10vw, 3.5rem);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100%, calc(100% - 1.5rem));
    padding: 1.5rem 0 3rem;
  }

  .hero-section,
  .section {
    padding: 1.5rem;
  }

  .hero-actions,
  .case-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .panel-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .case-panel,
  .hero-visual {
    padding: 1.25rem;
  }
}
