:root {
  --color-primary: #6c3eb6;
  --color-primary-dark: #4a2b80;
  --color-secondary: #2089b0;
  --color-accent: #f57c1f;
  --color-bg: #ffffff;
  --color-bg-alt: #f7f7fb;
  --color-text: #2d2d2d;
  --color-text-soft: #6b6b6b;
  --color-white: #ffffff;
  --color-border: #e5e7ef;
  --shadow-md: 0 10px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 20px 50px rgba(3, 7, 18, 0.2);
  --header-height: 80px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  font-family: "Poppins", sans-serif;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.7rem);
}

a {
  color: inherit;
}

p {
  margin: 0 0 1rem;
}

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

ul {
  margin: 0;
  padding-left: 1.15rem;
}

.container {
  width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.narrow {
  width: min(860px, 100%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(13, 19, 33, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-white);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  font-family: "Poppins", sans-serif;
  font-weight: 800;
}

.brand-text {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.95rem;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.12rem;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--color-white);
  border-bottom-color: var(--color-accent);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  background: transparent;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--color-white);
}

.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(135deg, #4a2b80 0%, #186180 58%, #6238a8 100%);
  color: var(--color-white);
  min-height: 88vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr 1fr;
}

.hero-content {
  max-width: 640px;
}

.app-name {
  color: var(--color-white);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  margin-bottom: 0.3rem;
}

.badge {
  display: inline-block;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.35rem 0.95rem;
  font-size: 0.74rem;
  letter-spacing: 0.12rem;
  font-weight: 600;
}

.hero-title {
  max-width: 760px;
}

.hero-text {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.6rem 0;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  padding: 0;
}

.hero-highlights li {
  position: relative;
  padding-left: 1.3rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.hero-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
}

.hero-image-wrap {
  width: 100%;
}

.hero-image {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-dark {
  background: linear-gradient(135deg, #4a2b80 0%, #186180 58%, #6238a8 100%);
  color: var(--color-white);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: center;
}

.image-wrap img {
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.chip {
  display: inline-block;
  border-radius: 999px;
  padding: 0.28rem 0.85rem;
  background: #e0d2f9;
  color: #6c3eb6;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08rem;
  margin-bottom: 0.9rem;
}

.chip-blue {
  background: #d6eef6;
  color: #2089b0;
}

.check-list {
  list-style: none;
  padding: 0;
  margin-top: 1.4rem;
}

.check-list li {
  margin-bottom: 0.55rem;
  padding-left: 1.4rem;
  position: relative;
  font-weight: 500;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #22c55e;
}

.benefit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.benefit-row:last-child {
  margin-bottom: 0;
}

.benefit-row.reverse {
  direction: rtl;
}

.benefit-row.reverse > * {
  direction: ltr;
}

.numbers {
  padding: 3.3rem 0;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  text-align: center;
}

.num {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #f8b56d;
  margin: 0 0 0.2rem;
}

.section-title {
  text-align: center;
}

.section-subtitle {
  max-width: 760px;
  margin: 0 auto 2.2rem;
  text-align: center;
  color: var(--color-text-soft);
}

.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.feature-grid {
  display: grid;
  gap: 1rem;
}

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

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

.feature-card,
.quote-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

.feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.6rem;
}

.quote-card p {
  color: var(--color-text-soft);
}

.quote-card h4 {
  margin-top: 0.8rem;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.stars {
  color: #f59e0b;
  letter-spacing: 0.1rem;
}

.cta-final p,
.cta-final li {
  color: rgba(255, 255, 255, 0.9);
}

.text-link {
  color: var(--color-primary);
  font-weight: 600;
}

.text-gradient {
  background: linear-gradient(135deg, #6c3eb6 0%, #2089b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-light {
  background: linear-gradient(135deg, #f57c1f 0%, #f9a865 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  padding: 0.78rem 1.15rem;
}

.btn-primary {
  background: linear-gradient(135deg, #f57c1f, #e86200);
  color: var(--color-white);
}

.btn-secondary {
  border: 2px solid rgba(255, 255, 255, 0.65);
  color: var(--color-white);
}

.legal-page {
  min-height: calc(100vh - var(--header-height));
  background: linear-gradient(180deg, #0d1321 0%, #111826 45%, #0c111a 100%);
  color: #f4f7ff;
}

.legal-hero {
  padding: 5rem 0 2rem;
}

.legal-hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(3, 7, 18, 0.45);
}

.legal-hero-card h1 {
  background: linear-gradient(135deg, #6c3eb6 0%, #2089b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.legal-hero-card p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  font-size: 1.1rem;
  max-width: 720px;
}

.legal-chip {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: #e0d2f9;
  color: #6c3eb6;
  border-radius: 999px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.legal-section {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

.legal-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem;
}

.legal-toc-title {
  margin: 0 0 0.5rem;
  color: #9470d6;
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.legal-toc a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0.3rem 0;
  transition: color 0.15s ease;
}

.legal-toc a:hover {
  color: #9470d6;
}

.legal-articles {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.legal-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 0;
  transition: border-color 0.25s ease;
}

.legal-card:hover {
  border-color: rgba(108, 62, 182, 0.4);
}

.legal-card:last-child {
  margin-bottom: 0;
}

.legal-content {
  width: min(880px, 100%);
}

.legal-content h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #f4f7ff;
}

.legal-content p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
}

.legal-content ul {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.legal-content li {
  margin-bottom: 0.5rem;
  padding-left: 1.25rem;
  position: relative;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
}

.legal-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c3eb6 0%, #2089b0 100%);
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #111111;
  color: rgba(255, 255, 255, 0.86);
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 1.2rem;
}

.footer-inner {
  align-items: start;
}

.footer-brand {
  margin: 0 0 0.4rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.footer-desc {
  color: rgba(255, 255, 255, 0.66);
}

.footer-title {
  margin: 0 0 0.6rem;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: var(--color-white);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-nav a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-credits {
  color: rgba(255, 255, 255, 0.68);
}

.footer-credits a {
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1024px) {
  .feature-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .split-grid,
  .hero-grid,
  .benefit-row,
  .feature-grid-2,
  .feature-grid-3,
  .legal-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .benefit-row.reverse {
    direction: ltr;
  }

  .section {
    padding: 3.8rem 0;
  }

  .hero {
    min-height: auto;
    padding-top: 3.4rem;
  }

  .hero-highlights {
    flex-direction: column;
    gap: 0.6rem;
  }

  .legal-toc {
    position: static;
  }

  .legal-hero-card {
    padding: 2rem;
  }

  .legal-toc a {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
  }

  .legal-toc a:hover {
    background: rgba(108, 62, 182, 0.15);
  }

  .legal-toc {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .legal-toc-title {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .js-enabled .menu-toggle {
    display: block;
  }

  .js-enabled .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-height);
    padding: 1rem 1.25rem 1.2rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    background: #12182a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .js-enabled .main-nav.nav-open {
    display: flex;
  }

  .container {
    width: min(1200px, calc(100% - 1.5rem));
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
