/* ===== Base ===== */
:root {
  --bg: #07070d;
  --bg-soft: #0e0e18;
  --card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f8;
  --muted: #9a9ab0;
  --accent: #7c5cff;
  --accent-2: #20d6a5;
  --gradient: linear-gradient(135deg, #7c5cff 0%, #3d8bff 50%, #20d6a5 100%);
  --radius: 20px;
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

h1, h2, h3 { font-family: "Sora", "Inter", sans-serif; line-height: 1.15; letter-spacing: -0.02em; }

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

/* Background glow */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% 10%, rgba(124, 92, 255, 0.18), transparent 70%),
    radial-gradient(500px 400px at 90% 30%, rgba(32, 214, 165, 0.10), transparent 70%),
    radial-gradient(700px 500px at 50% 100%, rgba(61, 139, 255, 0.10), transparent 70%);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(7, 7, 13, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35);
}
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.menu-btn {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-btn span:nth-child(1) { top: 13px; }
.menu-btn span:nth-child(2) { top: 19px; }
.menu-btn span:nth-child(3) { top: 25px; }
.menu-btn.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--card);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  margin-bottom: 24px;
}
.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 40px;
}
.hero-stats {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
}
.hero-stats strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 1.8rem;
}
.hero-stats span { color: var(--muted); font-size: 0.9rem; }

/* Phone mockup */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-wrap::before {
  content: "";
  position: absolute;
  width: min(340px, 90vw); height: min(340px, 90vw);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--gradient);
  filter: blur(90px);
  opacity: 0.35;
  border-radius: 50%;
}
.phone {
  position: relative;
  width: 270px;
  height: 550px;
  border-radius: 44px;
  background: #111119;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 12px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 6px #0a0a10;
  animation: float 6s ease-in-out infinite;
}
.phone-screen {
  height: 100%;
  border-radius: 34px;
  background: linear-gradient(180deg, #15152a 0%, #0c0c16 100%);
  padding: 44px 18px 18px;
  overflow: hidden;
  position: relative;
}
.phone-screen::before {
  content: "";
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #000;
}
.screen-title {
  font-family: "Sora", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 10px;
}
.app-icon {
  aspect-ratio: 1;
  border-radius: 16px;
  display: grid;
  place-items: center;
}
.app-icon svg { width: 46%; height: 46%; stroke: #fff; }
.ai-1 { background: linear-gradient(135deg, #7c5cff, #b39cff); }
.ai-2 { background: linear-gradient(135deg, #20d6a5, #6ef0c9); }
.ai-3 { background: linear-gradient(135deg, #ff7a59, #ffb199); }
.ai-4 { background: linear-gradient(135deg, #3d8bff, #8dbbff); }
.ai-5 { background: linear-gradient(135deg, #ff4f9a, #ff9cc6); }
.ai-6 { background: linear-gradient(135deg, #f5b400, #ffd766); }
.screen-card {
  margin-top: 22px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}
.screen-card small { color: var(--muted); font-size: 0.72rem; }
.screen-card .bar {
  margin-top: 10px;
  height: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.screen-card .bar span {
  display: block;
  width: 72%;
  height: 100%;
  background: var(--gradient);
  border-radius: 8px;
}
.screen-card .row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ===== Sections ===== */
section { padding: 110px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(124, 92, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
}
.card-icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.3);
  margin-bottom: 22px;
}
.card-icon svg { width: 26px; height: 26px; stroke: #b3a1ff; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-text .eyebrow { margin-bottom: 14px; }
.about-text h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 22px; }
.about-text p { color: var(--muted); margin-bottom: 18px; font-size: 1.05rem; }
.about-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.about-points .card { padding: 28px 24px; }
.about-points strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 2rem;
  margin-bottom: 4px;
}
.about-points span { color: var(--muted); font-size: 0.92rem; }

/* Services */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* Apps */
.apps-section { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.app-card { display: flex; flex-direction: column; }
.app-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.app-card .app-icon { width: 64px; border-radius: 18px; flex-shrink: 0; }
.app-card h3 { margin-bottom: 2px; }
.app-card .category { color: var(--accent-2); font-size: 0.85rem; font-weight: 500; }
.app-card p { flex: 1; margin-bottom: 24px; }
.play-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: border-color 0.2s;
}
.play-link:hover { border-color: rgba(255, 255, 255, 0.45); }
.play-link svg { width: 20px; height: 20px; }
.play-link span { display: flex; flex-direction: column; line-height: 1.1; }
.play-link small { font-size: 0.62rem; color: #cfcfdc; letter-spacing: 0.04em; }
.play-link b { font-size: 0.98rem; font-weight: 600; }

/* Why */
.why-item { display: flex; gap: 18px; align-items: flex-start; }
.why-item .card-icon { margin-bottom: 0; flex-shrink: 0; background: rgba(32, 214, 165, 0.12); border-color: rgba(32, 214, 165, 0.3); }
.why-item .card-icon svg { stroke: #6ef0c9; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

/* Contact */
.contact-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 70px 50px;
  text-align: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(32, 214, 165, 0.10));
  border: 1px solid var(--border);
}
.contact-box h2 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 14px; }
.contact-box > p { color: var(--muted); margin-bottom: 44px; }
.contact-list {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 26px;
  border-radius: 16px;
  background: rgba(7, 7, 13, 0.55);
  border: 1px solid var(--border);
  text-align: left;
  transition: border-color 0.2s;
}
.contact-item:hover { border-color: rgba(124, 92, 255, 0.5); }
.contact-item svg { width: 22px; height: 22px; stroke: #b3a1ff; flex-shrink: 0; }
.contact-item small { display: block; color: var(--muted); font-size: 0.78rem; }
.contact-item b { font-weight: 600; font-size: 0.98rem; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer p { color: var(--muted); font-size: 0.95rem; margin-top: 16px; max-width: 340px; }
.footer h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 600;
}
.footer ul { list-style: none; display: grid; gap: 12px; }
.footer ul a { color: var(--text); opacity: 0.85; font-size: 0.95rem; transition: opacity 0.2s; }
.footer ul a:hover { opacity: 1; color: #b3a1ff; }
.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* ===== Privacy page ===== */
.page-hero {
  padding: 170px 0 60px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 14px; }
.page-hero p { color: var(--muted); }
.policy {
  padding: 0 0 110px;
}
.policy-body {
  max-width: 820px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 56px 52px;
}
.policy-body h2 { font-size: 1.45rem; margin: 40px 0 14px; }
.policy-body h2:first-child { margin-top: 0; }
.policy-body p, .policy-body li { color: #c4c4d4; margin-bottom: 14px; }
.policy-body ul { padding-left: 22px; margin-bottom: 14px; }
.policy-body a { color: #b3a1ff; text-decoration: underline; word-break: break-word; }
.policy-body h2 { scroll-margin-top: 100px; }
.policy-body h3 { font-size: 1.1rem; margin: 26px 0 12px; color: var(--text); }
.policy-body strong { color: var(--text); }
.policy-body .toc {
  margin: 30px 0 10px;
  padding: 26px 30px;
  border-radius: 16px;
  background: rgba(124, 92, 255, 0.07);
  border: 1px solid rgba(124, 92, 255, 0.25);
}
.policy-body .toc h2 { margin: 0 0 14px; font-size: 1.1rem; }
.policy-body .toc ol { padding-left: 22px; columns: 2; column-gap: 30px; }
.policy-body .toc li { margin-bottom: 8px; break-inside: avoid; }
.policy-body .toc a { text-decoration: none; color: #c4c4d4; }
.policy-body .toc a:hover { color: #b3a1ff; }
.policy-body .table-scroll { overflow-x: auto; margin-bottom: 14px; }
.policy-body table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.policy-body th, .policy-body td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: #c4c4d4;
}
.policy-body th { color: var(--text); background: rgba(255, 255, 255, 0.04); font-weight: 600; }
@media (max-width: 560px) { .policy-body .toc ol { columns: 1; } }
.placeholder {
  padding: 22px 24px;
  border: 1px dashed rgba(124, 92, 255, 0.5);
  border-radius: 14px;
  background: rgba(124, 92, 255, 0.07);
  color: var(--muted);
  font-style: italic;
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }

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

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li a { display: block; padding: 16px 24px; }
  .menu-btn { display: block; }
  .header.menu-open { background: var(--bg); }

  .hero { min-height: auto; }
  .hero-grid, .about-grid { grid-template-columns: minmax(0, 1fr); gap: 60px; }
  .hero-text { text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  section { padding: 80px 0; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .phone { width: 240px; height: 490px; }
  .contact-box { padding: 50px 20px; }
  .contact-item { width: 100%; }
  .policy-body { padding: 36px 22px; }
  .hero-stats { gap: 28px; }
  .about-points { gap: 12px; }
  .about-points .card { padding: 22px 16px; }
  .about-points strong { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Apps list */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
  gap: 24px;
}
.app-img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  flex-shrink: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}
.app-card.coming-soon { border-style: dashed; }
@media (max-width: 860px) {
  .apps-grid { grid-template-columns: minmax(0, 420px); }
}
