:root {
  --bg: #070b14;
  --bg-alt: #0b1120;
  --surface: #101828;
  --surface-2: #16213a;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e6edf7;
  --text-soft: #94a3b8;
  --text-faint: #64748b;
  --brand-1: #3b82f6;
  --brand-2: #38bdf8;
  --brand-glow: #2563eb;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.18);
  --grad: linear-gradient(120deg, var(--brand-1), var(--brand-2));
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 45px -18px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 12px 40px -12px rgba(37, 99, 235, 0.6);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--brand-glow);
  color: #fff;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

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

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-soft);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  flex: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 8px;
}

.nav-links a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 420px at 15% 20%, rgba(59, 130, 246, 0.22), transparent 70%),
    radial-gradient(700px 460px at 85% 10%, rgba(56, 189, 248, 0.16), transparent 70%),
    radial-gradient(900px 600px at 50% 120%, rgba(37, 99, 235, 0.18), transparent 70%);
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--brand-1);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 20px;
}

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

.hero-sub {
  color: var(--text-soft);
  font-size: 1.12rem;
  max-width: 560px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.stats {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: clamp(32px, 8vw, 80px);
}

.stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stats strong {
  font-size: 2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stats span {
  color: var(--text-faint);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.section-sub {
  color: var(--text-soft);
}

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: 22px;
}

.grid-apps {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.grid-featured {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* ---------- App cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.6);
}

.badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  background: rgba(148, 163, 184, 0.08);
}

.badge-mobile {
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(37, 99, 235, 0.14);
}

.badge-web {
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(16, 185, 129, 0.12);
}

.badge-desktop {
  color: #f9a8d4;
  border-color: rgba(236, 72, 153, 0.35);
  background: rgba(236, 72, 153, 0.12);
}

.card-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.card-tagline {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.card-desc {
  color: var(--text-faint);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.8rem;
}

.card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.card-actions .btn {
  flex: 1;
  padding: 9px 14px;
  font-size: 0.85rem;
}

.card-actions .btn-secondary {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text);
  border-color: var(--border);
}

.card-actions .btn-secondary:hover {
  border-color: var(--accent);
}

.card-demo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-1);
  font-weight: 600;
  font-size: 0.88rem;
  margin-top: 2px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.card-demo:hover {
  color: var(--brand-2);
}

.card-demo span {
  transition: transform 0.2s ease;
}

.card-demo:hover span {
  transform: translateX(3px);
}

/* ---------- Toolbar ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-soft);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.chip:hover {
  color: var(--text);
  border-color: var(--accent);
}

.chip.is-active {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0 16px;
  min-width: min(300px, 100%);
  color: var(--text-faint);
}

.search:focus-within {
  border-color: var(--accent);
}

.search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  padding: 11px 0;
  width: 100%;
}

.search input::placeholder {
  color: var(--text-faint);
}

.empty-state {
  text-align: center;
  color: var(--text-faint);
  padding: 48px 0;
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-grid p {
  color: var(--text-soft);
  margin-top: 14px;
}

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

.feature-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  color: var(--text-soft);
}

.feature-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad);
  transform: translateY(-1px);
  flex: none;
  align-self: baseline;
  margin-top: 9px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  background-image: var(--grad);
  background-size: 0%;
}

.about-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.about-card .btn {
  margin-top: 18px;
}

/* ---------- CTA / Contact ---------- */
.section-cta {
  background:
    radial-gradient(560px 360px at 50% 0%, rgba(37, 99, 235, 0.2), transparent 70%),
    var(--bg);
}

.cta-inner {
  text-align: center;
  max-width: 640px;
}

.contact-form {
  margin-top: 30px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 4vw, 32px);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
}

.field input,
.field textarea,
.field select {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
}

.field select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  color: var(--text);
}

.field select:invalid {
  color: var(--text-faint);
}

.field select option {
  color: var(--text);
  background: var(--surface);
}

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

.field-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 20px;
  font-size: 0.85rem;
  color: var(--text-soft);
  cursor: pointer;
  line-height: 1.5;
}

.field-check input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--accent);
}

.field-check a {
  color: var(--brand-1);
  text-decoration: underline;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin-top: 14px;
  color: #6ee7b7;
  font-size: 0.92rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-note {
  color: var(--text-faint);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-faint);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- Legal pages ---------- */
.legal-hero {
  padding: 74px 0 34px;
  text-align: center;
}

.legal .container {
  max-width: 780px;
}

.legal-head {
  margin-bottom: 8px;
}

.legal {
  padding-bottom: 90px;
}

.legal-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px clamp(24px, 5vw, 56px);
}

.legal-intro {
  color: var(--text-soft);
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.legal-block {
  margin-bottom: 30px;
}

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

.legal-block h2 {
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
}

.legal-block h2 .num {
  color: var(--brand-1);
  font-weight: 800;
}

.legal-block p {
  color: var(--text-soft);
  font-size: 0.96rem;
  margin-bottom: 10px;
}

.legal-block ul {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.legal-block ul li {
  color: var(--text-soft);
  font-size: 0.96rem;
  padding-left: 22px;
  position: relative;
}

.legal-block ul li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-1);
  position: absolute;
  left: 4px;
  top: 0.62em;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 18px;
  transition: color 0.2s ease;
}

.legal-back:hover {
  color: var(--text);
}

.legal-updated {
  color: var(--text-faint);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Services page ---------- */
.services-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.5);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 18px;
  box-shadow: var(--shadow-glow);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card p {
  color: var(--text-soft);
  font-size: 0.96rem;
}

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

.service-list li {
  color: var(--text-faint);
  font-size: 0.88rem;
  padding-left: 20px;
  position: relative;
}

.service-list li::before {
  content: "✓";
  color: var(--brand-1);
  position: absolute;
  left: 0;
  font-weight: 700;
}

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

.process-step .step-num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.process-step h3 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.process-step p {
  color: var(--text-soft);
  font-size: 0.92rem;
}

@media (max-width: 560px) {
  .legal-hero {
    padding: 54px 0 24px;
  }
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 14, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  animation: modal-in 0.22s ease;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.7);
  color: var(--text-soft);
  font-size: 1.2rem;
  line-height: 1;
  transition: all 0.2s ease;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--accent);
}

.modal-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 34px 34px 22px;
  background:
    radial-gradient(420px 180px at 20% 0%, rgba(255, 255, 255, 0.06), transparent 70%),
    var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}

.modal-icon svg {
  width: 34px;
  height: 34px;
}

.modal-hero h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.modal-hero .badge {
  display: inline-block;
}

.modal-content {
  padding: 26px 34px 34px;
}

.modal-desc {
  color: var(--text-soft);
}

.modal-meta {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 24px;
}

.modal-meta li {
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-soft);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .hero {
    padding: 64px 0 48px;
  }

  .section {
    padding: 64px 0;
  }

  .nav-links {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .search {
    min-width: 100%;
  }

  .grid-apps {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .modal-hero {
    padding: 26px 22px 18px;
  }

  .modal-content {
    padding: 20px 22px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}