:root {
  --purple: #6155f5;
  --blue: #0088ff;
  --yellow: #f7b227;
  --bg: #0b0e1a;
  --bg-soft: #11152a;
  --card: #161b33;
  --card-2: #1b2140;
  --text: #eef1fb;
  --muted: #a3a9c9;
  --border: rgba(255, 255, 255, 0.08);
  --grad: linear-gradient(135deg, var(--purple), var(--blue));
  --radius: 18px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

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

em {
  font-style: normal;
  color: var(--yellow);
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 26, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: block;
  box-shadow: 0 6px 18px -6px rgba(97, 85, 245, 0.7);
}
.brand-icon.small {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.brand-name {
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav a:hover {
  color: var(--text);
}
.nav-cta {
  background: var(--grad);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.nav-cta:hover {
  opacity: 0.92;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  cursor: pointer;
}
.lang-opt {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 999px;
  transition:
    color 0.18s,
    background 0.18s;
}
.lang-opt.active {
  background: var(--grad);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.25s,
    opacity 0.25s;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    opacity 0.18s;
  border: 1px solid transparent;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 14px 30px -12px var(--purple);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}
.btn-light {
  background: #fff;
  color: #0b0e1a;
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, 0.5);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 84px 0 70px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background:
    radial-gradient(closest-side, rgba(97, 85, 245, 0.45), transparent 70%),
    radial-gradient(closest-side, rgba(0, 136, 255, 0.35), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.lede {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 38ch;
}
.lede strong {
  color: var(--text);
}
.hero-actions {
  display: flex;
  gap: 14px;
  margin: 28px 0 30px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 34px;
}
.hero-stats div {
  display: flex;
  flex-direction: column;
}
.hero-stats strong {
  font-size: 1.6rem;
  font-weight: 800;
}
.hero-stats span {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ===== Phone mockup ===== */
.hero-device {
  position: relative;
  display: grid;
  place-items: center;
}
.hero-icon {
  position: absolute;
  left: -6%;
  bottom: 4%;
  width: 132px;
  height: 132px;
  border-radius: 28px;
  z-index: 4;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
  animation: floatIcon 6s ease-in-out infinite;
}
@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-18px) rotate(-4deg);
  }
}
.phone {
  position: relative;
  width: 290px;
  height: 590px;
  background: linear-gradient(160deg, #2a2f45, #14182b);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    var(--shadow),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 26px;
  background: #0b0e1a;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-soft);
  border-radius: 34px;
  padding: 40px 16px 16px;
  overflow: hidden;
}
.app-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0 4px 8px;
}
.app-status .dots {
  width: 42px;
  height: 10px;
  background: linear-gradient(90deg, var(--muted) 70%, transparent 70%);
  border-radius: 2px;
  opacity: 0.5;
}
.app-title {
  font-size: 1.3rem;
  font-weight: 800;
  padding: 4px 4px 10px;
}
.app-search {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 14px;
}
.app-section {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
  padding: 8px 4px 6px;
}
.app-row {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--card);
  border-radius: 12px;
  padding: 9px 11px;
  margin-bottom: 7px;
}
.app-row .ic {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--c, var(--purple));
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}
.app-row b {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
}
.app-row i {
  font-style: normal;
  font-size: 0.68rem;
  color: var(--muted);
}

/* ===== Sections ===== */
.section {
  padding: 84px 0;
}
.section-alt {
  background: var(--bg-soft);
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ===== Features ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(97, 85, 245, 0.5);
}
.feature-ic {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--card-2);
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* ===== Categories ===== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cat-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  overflow: hidden;
  transition: transform 0.2s;
}
.cat-card:hover {
  transform: translateY(-4px);
}
.cat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: var(--cat, var(--grad));
}
.cat-emoji {
  font-size: 1.7rem;
}
.cat-card h3 {
  font-size: 1.12rem;
  margin: 12px 0 4px;
}
.cat-count {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.cat-list {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

/* ===== Tools ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 34px;
}
.chip {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.chip:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}
.chip.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.tool-item {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  transition:
    transform 0.18s,
    border-color 0.18s;
}
.tool-item:hover {
  transform: translateY(-3px);
  border-color: rgba(97, 85, 245, 0.45);
}
.tool-item .t-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--c, var(--purple));
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.tool-item b {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}
.tool-item span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ===== Download ===== */
.download {
  text-align: center;
}
.download-inner {
  position: relative;
  background: var(--grad);
  border-radius: 28px;
  padding: 64px 32px;
  overflow: hidden;
}
.download-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 20%,
    rgba(255, 255, 255, 0.25),
    transparent 50%
  );
}
.download-inner h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 14px;
  position: relative;
}
.download-icon {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 21px;
  margin-bottom: 22px;
  box-shadow: 0 18px 40px -10px rgba(0, 0, 0, 0.5);
}
.download-inner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 46ch;
  margin: 0 auto 28px;
  position: relative;
}
.download .btn-light {
  position: relative;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}
.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.footer-credit {
  color: var(--muted);
}
.footer-credit strong {
  color: var(--text);
}
.footer-social {
  display: flex;
  gap: 20px;
}
.footer-social a {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.92rem;
}
.footer-social a:hover {
  text-decoration: underline;
}
.footer-copy {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 6px;
}

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy {
    order: 2;
  }
  .hero-device {
    order: 1;
  }
  .hero-icon {
    left: 50%;
    bottom: -10px;
    transform: translateX(-130px);
    width: 104px;
    height: 104px;
  }
  @keyframes floatIcon {
    0%,
    100% {
      transform: translateX(-130px) translateY(0) rotate(-4deg);
    }
    50% {
      transform: translateX(-130px) translateY(-14px) rotate(-4deg);
    }
  }
  .lede {
    margin-inline: auto;
  }
  .hero-actions,
  .hero-stats {
    justify-content: center;
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .nav {
    display: none;
  }
  .nav.open {
    display: flex;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }
  .nav.open a {
    padding: 12px 24px;
    width: 100%;
  }
  .nav.open .nav-cta {
    margin: 8px 24px;
    text-align: center;
  }
  .nav-toggle {
    display: flex;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 24px;
  }
}
