:root {
  --purple: #8800c6;
  --purple-dark: #5e008a;
  --red: #ff1252;
  --red-dark: #d10a40;
  --green: #6cbf35;
  --ink: #160b22;
  --text: #3d3449;
  --muted: #6e6579;
  --line: #ece7f2;
  --bg: #ffffff;
  --bg-soft: #faf7fd;
  --gradient: linear-gradient(135deg, var(--purple) 0%, var(--red) 100%);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(40, 10, 70, 0.08);
  --shadow-lg: 0 24px 60px rgba(40, 10, 70, 0.16);
  --container: 1160px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--purple);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
}

.brand small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--bg-soft);
  color: var(--purple);
  text-decoration: none;
}

.nav-links .btn {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient);
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(136, 0, 198, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(255, 18, 82, 0.3);
}

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.btn-outline:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.btn-light {
  background: #fff;
  color: var(--ink) !important;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255, 18, 82, 0.14), transparent 60%),
    radial-gradient(800px 500px at -10% 20%, rgba(136, 0, 198, 0.14), transparent 60%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-art {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  transform: rotate(-4deg);
}

.hero-art img {
  border-radius: 28%;
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease;
}

.hero-art img:hover {
  transform: translateY(-6px) scale(1.02);
}

.hero-art img:nth-child(2),
.hero-art img:nth-child(4) {
  margin-top: 40px;
}

/* Sections */
.section {
  padding: 88px 0;
}

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

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p {
  color: var(--muted);
  font-size: 1.08rem;
}

.kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 24px;
}

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

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

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

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

.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  color: var(--purple);
  margin-bottom: 16px;
}

.icon-badge svg {
  width: 24px;
  height: 24px;
}

.icon-badge.red {
  color: var(--red);
  background: #fff1f5;
}

.icon-badge.green {
  color: #3f8f14;
  background: #f1faea;
}

/* Product cards */
.product {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 40px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.product.purple {
  background: linear-gradient(150deg, #9a12db 0%, var(--purple) 45%, var(--purple-dark) 100%);
}

.product.red {
  background: linear-gradient(150deg, #ff4475 0%, var(--red) 45%, var(--red-dark) 100%);
}

.product h3,
.product h2 {
  color: #fff;
}

.product p {
  color: rgba(255, 255, 255, 0.88);
}

.product .tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.product-apps {
  display: flex;
  gap: 14px;
  margin: 24px 0;
}

.product-apps img {
  width: 72px;
  height: 72px;
  border-radius: 22%;
  border: 3px solid rgba(255, 255, 255, 0.35);
}

.product ul {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.product li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.92);
}

.product li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

/* App detail blocks */
.app-block {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: start;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.app-block:first-of-type {
  border-top: 0;
}

.app-id {
  position: sticky;
  top: 100px;
  text-align: center;
}

.app-id img {
  width: 160px;
  height: 160px;
  border-radius: 28%;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-lg);
}

.app-id h3 {
  margin-bottom: 4px;
}

.pkg {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px 8px;
  margin-bottom: 14px;
  word-break: break-all;
}

.play-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}

.play-soon svg {
  width: 22px;
  height: 22px;
  flex: none;
}

.play-soon small {
  display: block;
  font-size: 0.68rem;
  opacity: 0.75;
  font-weight: 500;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238800C6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
  border: 1px solid var(--line);
}

.theme-red .feature-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF1252' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

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

.chip {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

/* Steps */
.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 64px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
}

/* Page hero */
.page-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(700px 360px at 90% 0%, rgba(255, 18, 82, 0.12), transparent 60%),
    radial-gradient(700px 360px at 0% 30%, rgba(136, 0, 198, 0.12), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 720px;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 14px;
}

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

/* Legal / prose */
.prose {
  max-width: 820px;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.2em;
  padding-top: 0.4em;
}

.prose h3 {
  font-size: 1.12rem;
  margin-top: 1.6em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0 1.6em;
  font-size: 0.95rem;
}

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

.prose th {
  background: var(--bg-soft);
  color: var(--ink);
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 100px;
  font-size: 0.9rem;
}

.toc strong {
  display: block;
  color: var(--ink);
  margin-bottom: 10px;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 2px solid var(--line);
}

.toc a {
  display: block;
  padding: 5px 0 5px 14px;
  color: var(--muted);
}

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

.note {
  border-left: 4px solid var(--purple);
  background: var(--bg-soft);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.2em 0;
}

.note.red {
  border-left-color: var(--red);
  background: #fff5f8;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Company / contact */
.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-list span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.info-list strong,
.info-list a {
  color: var(--ink);
  font-weight: 600;
}

/* Forms */
.form {
  display: grid;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--ink);
  background: #fff;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(136, 0, 198, 0.12);
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form .check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
}

.form .check input {
  width: auto;
  margin-top: 5px;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

/* CTA */
.cta {
  border-radius: 28px;
  padding: 56px;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}

.cta h2 {
  color: #fff;
  margin-bottom: 8px;
}

.cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 72px 0 32px;
  font-size: 0.94rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 16px;
}

.site-footer .brand small {
  color: rgba(255, 255, 255, 0.55);
}

.footer-address {
  font-style: normal;
  line-height: 1.7;
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .btn {
    margin: 8px 0 0;
  }

  .hero {
    padding: 64px 0;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .app-block {
    grid-template-columns: 1fr;
  }

  .hero-art {
    max-width: 380px;
    margin: 0 auto;
  }

  .app-id {
    position: static;
  }

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

  .section {
    padding: 64px 0;
  }

  .product,
  .cta {
    padding: 32px;
  }
}

@media (max-width: 560px) {
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .info-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
