:root {
  --primary: #6d5dfc;
  --primary-dark: #5142e7;
  --secondary: #ff7a59;
  --ink: #17223b;
  --muted: #67728a;
  --line: #e8e9f2;
  --soft: #f7f7fc;
  --white: #ffffff;
  --success: #28b487;
  --shadow: 0 20px 60px rgba(51, 45, 114, 0.12);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.65;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.page-glow { position: fixed; z-index: -1; width: 460px; height: 460px; border-radius: 50%; filter: blur(120px); opacity: .18; }
.glow-1 { background: var(--primary); top: -180px; right: -120px; }
.glow-2 { background: var(--secondary); top: 480px; left: -260px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(232,233,242,.75);
}
.nav-wrap { height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; white-space: nowrap; }
.brand img { width: 43px; height: 43px; }
.brand span { font-size: 18px; }
.brand strong { color: var(--primary); }
.main-nav { display: flex; gap: 28px; margin-left: auto; }
.main-nav a { color: #4d5870; font-size: 14px; font-weight: 600; transition: .2s; }
.main-nav a:hover { color: var(--primary); }
.header-cta { margin-left: 8px; }
.menu-toggle { display: none; background: none; border: 0; padding: 4px; margin-left: auto; }
.menu-toggle span { width: 25px; height: 2px; background: var(--ink); display: block; margin: 5px 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 23px; border-radius: 14px; font-weight: 700; border: 1px solid transparent; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--primary), #8f62ff); box-shadow: 0 12px 28px rgba(109,93,252,.27); }
.btn-primary:hover { box-shadow: 0 16px 32px rgba(109,93,252,.35); }
.btn-outline { color: var(--primary); border-color: #d8d3ff; background: #f9f8ff; }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 13px; border-radius: 12px; }
.btn-white { background: #fff; color: var(--primary-dark); }
.btn-full { width: 100%; }

.hero { padding: 84px 0 76px; min-height: 720px; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.eyebrow { display: inline-flex; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: 1.4px; margin-bottom: 14px; }
.hero h1 { margin: 0 0 22px; font-size: clamp(42px, 5.5vw, 68px); line-height: 1.1; letter-spacing: -2.6px; max-width: 690px; }
.hero h1 span { color: var(--primary); background: linear-gradient(90deg, var(--primary), #b04ef6, var(--secondary)); -webkit-background-clip: text; color: transparent; }
.hero-copy > p { color: var(--muted); font-size: 17px; max-width: 650px; margin: 0; }
.hero-actions { display: flex; gap: 13px; margin: 32px 0 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 23px; }
.hero-stats span { color: var(--muted); font-size: 12px; }

.hero-visual { min-height: 520px; position: relative; display: grid; place-items: center; }
.hero-visual::before { content: ""; position: absolute; width: 390px; height: 390px; border-radius: 50%; background: linear-gradient(135deg, #e6e0ff, #fff2eb); }
.phone-card { position: relative; z-index: 2; width: 290px; min-height: 525px; padding: 20px 18px; border-radius: 39px; background: linear-gradient(160deg, #252b4f, #151a33); border: 8px solid #fff; box-shadow: 0 35px 80px rgba(31,29,72,.28); transform: rotate(4deg); }
.phone-top { display: flex; align-items: center; justify-content: space-between; padding: 0 9px 16px; }
.phone-top span:first-child { width: 70px; height: 7px; background: rgba(255,255,255,.18); border-radius: 10px; }
.phone-top span:last-child { width: 9px; height: 9px; background: #7d70ff; border-radius: 50%; box-shadow: 0 0 0 4px rgba(125,112,255,.15); }
.phone-search { background: rgba(255,255,255,.08); color: rgba(255,255,255,.62); padding: 12px 13px; border-radius: 13px; font-size: 11px; }
.mini-feature { margin-top: 18px; padding: 14px; background: linear-gradient(135deg, #7868ff, #a257f3); border-radius: 20px; color: #fff; display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; }
.mini-feature img { width: 48px; border-radius: 13px; grid-row: 1/3; }
.mini-feature div { display: flex; flex-direction: column; }
.mini-feature b { font-size: 12px; }
.mini-feature small { font-size: 9px; opacity: .74; }
.mini-feature > span { grid-column: 2; font-size: 9px; opacity: .9; }
.mini-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 19px; }
.mini-grid img { width: 100%; border-radius: 22px; box-shadow: 0 10px 25px rgba(0,0,0,.2); }
.floating-badge { position: absolute; z-index: 4; background: #fff; padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow); font-size: 12px; font-weight: 700; }
.badge-one { top: 63px; right: -8px; animation: float 4s ease-in-out infinite; }
.badge-two { bottom: 61px; left: -12px; animation: float 4s 1s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-9px); } }

.platform-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.8); }
.platform-list { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 28px; color: #525e74; }
.platform-list > span { color: #9aa2b2; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.platform-list div { font-size: 14px; font-weight: 700; }

.section { padding: 105px 0; }
.section-soft { background: var(--soft); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-head.centered { justify-content: center; text-align: center; }
.section h2, .newsletter h2 { font-size: clamp(30px, 4vw, 43px); line-height: 1.22; letter-spacing: -1.5px; margin: 0 0 11px; }
.section-head p { color: var(--muted); margin: 0; }
.search-box { width: min(320px,100%); display: flex; align-items: center; gap: 8px; padding: 0 15px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.search-box input { min-height: 48px; width: 100%; border: 0; outline: 0; color: var(--ink); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter-btn { border: 1px solid var(--line); background: #fff; color: #68728a; padding: 10px 16px; border-radius: 99px; font-size: 13px; font-weight: 700; transition: .2s; }
.filter-btn:hover, .filter-btn.active { color: #fff; background: var(--primary); border-color: var(--primary); }

.app-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.app-card { display: flex; flex-direction: column; min-height: 350px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; transition: transform .25s, box-shadow .25s, border-color .25s; }
.app-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: #d9d4ff; }
.app-card.hidden { display: none; }
.app-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.app-icon { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 10px 20px rgba(36,42,83,.14); }
.tag { display: inline-flex; padding: 7px 10px; border-radius: 99px; font-size: 10px; font-weight: 800; }
.tag-game { color: #694ada; background: #eeeaff; }
.tag-safe { color: #158a67; background: #e2f8f0; }
.tag-edu { color: #0c73b9; background: #e5f4ff; }
.tag-tool { color: #be673c; background: #fff0e8; }
.app-card h3 { font-size: 20px; margin: 21px 0 9px; }
.app-card p { color: var(--muted); font-size: 13px; margin: 0 0 20px; }
.app-meta { display: flex; align-items: center; justify-content: space-between; color: #8a93a5; font-size: 11px; margin-top: auto; padding-top: 15px; border-top: 1px solid #f0f0f5; }
.card-action { border: 0; background: transparent; color: var(--primary); display: flex; justify-content: space-between; padding: 15px 0 0; font-size: 12px; font-weight: 800; }
.empty-state { display: none; padding: 50px; text-align: center; border: 1px dashed #ccc8f1; border-radius: var(--radius-lg); }
.empty-state.visible { display: block; }
.empty-state span { font-size: 34px; }
.empty-state h3 { margin: 8px 0 3px; }
.empty-state p { margin: 0; color: var(--muted); }

.category-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.category-card { border: 0; background: #fff; padding: 25px; border-radius: var(--radius-lg); box-shadow: 0 10px 30px rgba(44,44,91,.06); text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 17px; align-items: center; transition: .25s; }
.category-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.category-icon { width: 58px; height: 58px; border-radius: 17px; background: #f2efff; display: grid; place-items: center; font-size: 26px; grid-row: 1/3; }
.category-card h3 { margin: 0; font-size: 16px; }
.category-card p { margin: 3px 0; color: var(--muted); font-size: 12px; }
.category-card > span:last-child { grid-column: 2; color: var(--primary); font-size: 10px; font-weight: 800; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.about-visual { min-height: 430px; position: relative; border-radius: 34px; background: linear-gradient(135deg,#ece9ff,#fff3ec); }
.about-card { position: absolute; background: #fff; box-shadow: var(--shadow); border-radius: 20px; display: flex; flex-direction: column; }
.about-card.main { width: 270px; padding: 28px; left: 70px; top: 86px; }
.about-card.main span { font-size: 42px; }
.about-card.main b { margin-top: 15px; }
.about-card small { color: var(--muted); }
.about-card.small { padding: 18px 20px; }
.about-card.one { right: 28px; top: 37px; }
.about-card.two { right: 35px; bottom: 45px; }
.about-copy > p { color: var(--muted); }
.check-list { padding: 0; margin: 25px 0 30px; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 11px; margin: 13px 0; font-size: 14px; }
.check-list span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #e3f8f0; color: var(--success); font-weight: 900; }

.newsletter { position: relative; margin-bottom: 105px; border-radius: 30px; background: linear-gradient(135deg,#5b4ef1,#9859f6); color: #fff; padding: 50px 56px; display: grid; grid-template-columns: 1fr .8fr; gap: 40px; align-items: center; overflow: hidden; }
.newsletter::after { content: ""; position: absolute; width: 280px; height: 280px; border: 50px solid rgba(255,255,255,.06); border-radius: 50%; right: -100px; top: -145px; }
.newsletter > * { position: relative; z-index: 2; }
.eyebrow.light { color: #e7e3ff; }
.newsletter h2 { font-size: 31px; letter-spacing: -1px; }
.newsletter p { margin: 0; color: rgba(255,255,255,.75); font-size: 13px; }
.subscribe-form { display: flex; gap: 10px; }
.subscribe-form input { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 13px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.12); color: #fff; outline: 0; }
.subscribe-form input::placeholder { color: rgba(255,255,255,.66); }
.form-message { position: absolute; bottom: 18px; right: 56px; }

.site-footer { background: #11172c; color: #fff; padding: 72px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3,1fr); gap: 55px; }
.footer-brand span { color: #fff; }
.footer-grid p { color: #8991a8; font-size: 12px; max-width: 300px; }
.footer-grid h4 { margin: 0 0 18px; font-size: 13px; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid a:not(.brand) { color: #8e96ab; font-size: 12px; margin: 6px 0; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; color: #666f86; border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; margin-top: 54px; font-size: 11px; }

.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; }
.modal.open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(13,17,37,.64); backdrop-filter: blur(8px); }
.modal-panel { position: relative; width: min(460px,100%); padding: 34px; background: #fff; border-radius: 26px; box-shadow: 0 30px 90px rgba(0,0,0,.28); animation: pop .22s ease; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.modal-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f1f1f6; font-size: 23px; color: #697084; }
.modal-panel > img { width: 84px; border-radius: 22px; margin-bottom: 16px; }
.modal-panel h2 { margin: 13px 0 10px; }
.modal-panel > p { color: var(--muted); font-size: 14px; }
.modal-info { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 22px 0; }
.modal-info div { background: var(--soft); border-radius: 13px; padding: 12px; display: flex; flex-direction: column; }
.modal-info small { color: var(--muted); font-size: 9px; }
.modal-info b { font-size: 11px; margin-top: 3px; }
.modal-note { display: block; text-align: center; color: #949bac; font-size: 9px; margin-top: 12px; }

.back-top { position: fixed; z-index: 40; right: 24px; bottom: 24px; width: 44px; height: 44px; border: 0; border-radius: 13px; color: #fff; background: var(--primary); box-shadow: 0 12px 30px rgba(109,93,252,.3); opacity: 0; pointer-events: none; transform: translateY(10px); transition: .2s; }
.back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }

@media (max-width: 960px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 62px; }
  .hero-copy { text-align: center; }
  .hero-copy > p { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { min-height: 560px; }
  .app-grid, .category-grid { grid-template-columns: repeat(2,1fr); }
  .main-nav { position: fixed; left: 20px; right: 20px; top: 84px; display: none; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .about-grid { gap: 45px; }
  .newsletter { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .footer-grid > div:last-child { display: none; }
}

@media (max-width: 700px) {
  .container { width: min(100% - 28px, 1160px); }
  .hero { min-height: auto; padding: 52px 0 45px; }
  .hero h1 { font-size: 42px; letter-spacing: -1.8px; }
  .hero-copy > p { font-size: 14px; }
  .hero-stats { gap: 20px; }
  .hero-visual { min-height: 490px; transform: scale(.88); margin: -20px 0; }
  .platform-list { flex-wrap: wrap; justify-content: center; padding: 20px 0; gap: 18px 24px; }
  .platform-list > span { width: 100%; text-align: center; }
  .section { padding: 76px 0; }
  .section-head { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .app-grid, .category-grid { grid-template-columns: 1fr; }
  .about-visual { min-height: 370px; }
  .about-card.main { left: 25px; top: 85px; width: 230px; }
  .about-card.one { right: 12px; top: 27px; }
  .about-card.two { right: 17px; bottom: 28px; }
  .newsletter { padding: 38px 24px 56px; margin-bottom: 70px; }
  .subscribe-form { flex-direction: column; }
  .form-message { left: 24px; right: 24px; bottom: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
  .footer-bottom { gap: 12px; flex-direction: column; }
  .modal-panel { padding: 27px 22px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 36px; }
  .hero-actions .btn { width: 100%; }
  .hero-stats strong { font-size: 19px; }
  .phone-card { transform: rotate(2deg) scale(.91); }
  .badge-one { right: -20px; }
  .badge-two { left: -20px; }
  .modal-info { grid-template-columns: 1fr; }
}
