﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --primary: #7C3AED;
  --primary-dark: #6D28D9;
  --primary-light: #EDE9FE;
  --primary-glow: rgba(124, 58, 237, 0.25);
  --accent: #A78BFA;
  --accent-light: #C4B5FD;
  --dark: #08080F;
  --dark-2: #0E0E1A;
  --dark-3: #141428;
  --dark-4: #1C1C35;
  --text: #E2E8F0;
  --text-light: #94A3B8;
  --text-lighter: #64748B;
  --bg: #08080F;
  --bg-card: #0E0E1A;
  --bg-card-2: #141428;
  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.5);
  --shadow-purple: 0 8px 32px rgba(124,58,237,0.2);
  --max-w: 1140px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

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

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8,8,15,0.85);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 800; color: #fff;
  letter-spacing: -0.02em;
}
.logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; color: #fff;
  flex-shrink: 0;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: var(--radius-xs);
  font-size: .875rem; font-weight: 500; color: var(--text-light);
  transition: color .2s, background .2s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav a.active { color: #fff; }
.nav a.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  font-weight: 600;
  padding: 8px 20px;
  box-shadow: 0 2px 12px rgba(124,58,237,0.4);
  transition: transform .2s, box-shadow .2s;
}
.nav a.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(124,58,237,0.5);
}

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer; border-radius: 8px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-light); border-radius: 2px;
  transition: .3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 8px 0;
}
.mobile-nav a {
  padding: 12px 24px;
  font-size: .9rem; color: var(--text-light);
  transition: background .2s;
}
.mobile-nav a:hover { background: rgba(255,255,255,0.05); color: #fff; }

/* ===== HERO ===== */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124,58,237,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 70% 30%, rgba(167,139,250,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  background: var(--primary-glow);
  border: 1px solid rgba(124,58,237,0.4);
  color: var(--accent-light);
  font-size: .78rem; font-weight: 600; letter-spacing: .05em;
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 24px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.1rem; color: var(--text-light);
  max-width: 560px; margin: 0 auto 40px;
  line-height: 1.75;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600;
  border: none; cursor: pointer; transition: all .2s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 2px 16px rgba(124,58,237,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(124,58,237,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-bright);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--dark-2); }
.section-dark { background: var(--bg); }

.section-tag {
  display: inline-block;
  background: var(--primary-glow);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--accent);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 100px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800; color: #fff;
  letter-spacing: -0.025em; line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem; color: var(--text-light);
  max-width: 520px; line-height: 1.7;
}
.section-header { margin-bottom: 52px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ===== GRID ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover {
  border-color: rgba(124,58,237,0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(124,58,237,0.15);
}
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-glow);
  border: 1px solid rgba(124,58,237,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 18px;
  color: var(--accent);
}
.card-title {
  font-size: 1.05rem; font-weight: 700; color: #fff;
  margin-bottom: 10px;
}
.card-text {
  font-size: .875rem; color: var(--text-light); line-height: 1.7;
}

/* ===== PLATFORM CARDS ===== */
.platform-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px; text-align: center;
  transition: all .25s; cursor: pointer;
}
.platform-card:hover {
  border-color: rgba(124,58,237,0.4);
  background: var(--bg-card-2);
  transform: translateY(-3px);
}
.platform-card .plat-icon {
  font-size: 2.2rem; margin-bottom: 12px;
}
.platform-card h3 {
  font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 6px;
}
.platform-card p {
  font-size: .78rem; color: var(--text-lighter);
}

/* ===== FEATURES BANNER ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-banner {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(124,58,237,0.08) 100%);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius);
  padding: 36px;
}
.feature-banner h3 {
  font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 12px;
}
.feature-banner p {
  font-size: .875rem; color: var(--text-light); line-height: 1.7;
}
.feature-banner .fb-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(167,139,250,0.15));
  border: 1px solid rgba(124,58,237,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}

/* ===== STATS ===== */
.stats-bar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  text-align: center;
}
.stat-num {
  font-size: 2.4rem; font-weight: 900; color: #fff;
  letter-spacing: -0.03em; line-height: 1;
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}
.stat-label { font-size: .875rem; color: var(--text-light); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 0%, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== FAQ (details/summary) ===== */
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color .2s;
}
details.faq-item > summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; cursor: pointer;
  font-size: .92rem; font-weight: 600; color: var(--text);
  font-family: inherit; text-align: left; user-select: none;
}
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item > summary::after {
  content: '+'; font-size: 1.2rem; font-weight: 400;
  color: var(--text-lighter); transition: transform .25s, color .2s;
  flex-shrink: 0; margin-left: 16px;
}
details.faq-item[open] > summary::after { transform: rotate(45deg); color: var(--primary); }
details.faq-item[open] > summary { color: var(--primary); }
details.faq-item[open] { border-color: rgba(124,58,237,0.35); }
.faq-answer {
  padding: 0 24px 20px;
  font-size: .875rem; color: var(--text-light); line-height: 1.8;
}
details.faq-item > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

/* ===== COMPARISON TABLE ===== */
.compare-table-wrap {
  overflow-x: auto; border-radius: var(--radius);
  border: 1px solid var(--border);
}
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 14px 20px; text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: .875rem;
}
.compare-table th {
  background: var(--bg-card);
  color: #fff; font-weight: 700;
  white-space: nowrap;
}
.compare-table th:first-child { text-align: left; }
.compare-table td:first-child {
  text-align: left; font-weight: 600; color: var(--text);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: rgba(255,255,255,0.02); }
.compare-table .yes { color: #34D399; font-weight: 700; }
.compare-table .no { color: #6B7280; }

/* ===== PRIVACY ===== */
.privacy-content { max-width: 720px; margin: 0 auto; }
.privacy-content h2 {
  font-size: 1.2rem; font-weight: 800; color: #fff; margin: 36px 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.privacy-content h2:first-child { margin-top: 0; }
.privacy-content p {
  font-size: .875rem; color: var(--text-light); line-height: 1.85; margin-bottom: 14px;
}

/* ===== GUIDES ===== */
.guide-step {
  display: flex; gap: 24px; align-items: flex-start;
  padding: 28px 0; border-bottom: 1px solid var(--border);
}
.guide-step:last-child { border-bottom: none; }
.step-num {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; color: #fff;
}
.step-content h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-content p { font-size: .875rem; color: var(--text-light); line-height: 1.7; }

/* ===== FRIEND LINKS ===== */
.friend-links {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 20px;
}
.friend-links h3 {
  font-size: .9rem; font-weight: 700; color: var(--text-light);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 16px;
}
.friend-links-list { display: flex; flex-wrap: wrap; gap: 10px; }
.friend-links-list a {
  font-size: .85rem; color: var(--text-light);
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid var(--border);
  transition: all .2s;
}
.friend-links-list a:hover {
  color: var(--accent); border-color: rgba(124,58,237,0.4);
  background: var(--primary-glow);
}

/* ===== OFFICIAL LINKS ===== */
.official-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.official-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; align-items: center; gap: 16px;
  transition: all .25s;
}
.official-card:hover {
  border-color: rgba(124,58,237,0.35);
  transform: translateY(-2px);
}
.official-card .oc-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--primary-glow); border: 1px solid rgba(124,58,237,0.3);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.official-card h3 { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.official-card p { font-size: .8rem; color: var(--text-lighter); }

/* ===== CONTENT CARD ===== */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
}
.content-card h2 { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.content-card p { font-size: .875rem; color: var(--text-light); line-height: 1.8; }

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; font-size: 1.1rem; }
.footer-brand p {
  font-size: .83rem; color: var(--text-lighter); line-height: 1.75;
  max-width: 260px;
}
.footer-col h4 {
  font-size: .78rem; font-weight: 700; color: var(--text-lighter);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: .83rem; color: var(--text-light);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .78rem; color: var(--text-lighter);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-lighter); transition: color .2s; }
.footer-bottom-links a:hover { color: var(--accent); }

/* ===== SCROLL TOP ===== */
#scrollTop {
  position: fixed; bottom: 28px; right: 28px;
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; border: none; border-radius: 50%;
  font-size: 1.1rem; cursor: pointer;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
  display: none; align-items: center; justify-content: center;
  z-index: 90; transition: opacity .3s, transform .3s;
}
#scrollTop.visible { display: flex; }
#scrollTop:hover { transform: translateY(-2px); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 420px; width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(124,58,237,0.1);
  animation: modalIn .3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--text-lighter);
  font-size: 1.2rem; cursor: pointer; padding: 4px; line-height: 1;
  transition: color .2s;
}
.modal-close:hover { color: var(--text); }
.modal-icon { font-size: 3rem; margin-bottom: 16px; }
.modal h3 { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.modal p { font-size: .875rem; color: var(--text-light); margin-bottom: 20px; }
.modal-progress {
  height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 12px;
}
.modal-progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px; width: 0%; transition: width .5s ease;
}
.modal-hint { font-size: .78rem; color: var(--text-lighter); margin-bottom: 0; }

/* ===== REVEAL ANIMATION ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .mobile-nav.open { display: flex; }
  .hero { padding: 130px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .official-grid { grid-template-columns: 1fr; }
  .compare-table th, .compare-table td { padding: 10px 12px; font-size: .78rem; }
}
@media (max-width: 480px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-btns { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}
