/* Nunito, self-hosted (variable font, one file per subset) */
@font-face{font-family:'Nunito';font-style:normal;font-weight:400 900;font-display:swap;src:url(/assets/fonts/nunito/cyrillic-ext.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Nunito';font-style:normal;font-weight:400 900;font-display:swap;src:url(/assets/fonts/nunito/cyrillic.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Nunito';font-style:normal;font-weight:400 900;font-display:swap;src:url(/assets/fonts/nunito/vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'Nunito';font-style:normal;font-weight:400 900;font-display:swap;src:url(/assets/fonts/nunito/latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Nunito';font-style:normal;font-weight:400 900;font-display:swap;src:url(/assets/fonts/nunito/latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
:root {
  --header-h: 60px;
  --ink: #1F1A2E;
  --muted: #5B5670;
  --bg: #F7F5FF;
  --surface: #FFFFFF;
  --violet: #5B21B6;
  --violet-2: #7C3AED;
  --night: #1A1033;
  --pink: #E8365D;
  --pink-soft: #FF5C85;
  --line: #E6E1F5;
  --radius: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--violet); }
a:hover { color: var(--pink); }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 780px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--night);
  color: #fff;
  box-shadow: 0 2px 16px rgba(26, 16, 51, .25);
}
.header-inner {
  height: 100%; max-width: 1400px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 20px;
}
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; }
.logo:hover { color: #fff; }
.logo-mark { flex: none; }
.logo-word { font-weight: 900; font-size: 24px; letter-spacing: -0.5px; line-height: 1; }
.logo-spin { color: var(--pink-soft); }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  color: #E9E3FF; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center;
}
.main-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.main-nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }

/* Language menu */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22);
  font-weight: 800; font-size: 14px; color: #fff;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover { background: rgba(255,255,255,.08); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border-radius: 12px; min-width: 180px;
  box-shadow: 0 12px 32px rgba(26, 16, 51, .22);
}
.lang-menu li a {
  display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600;
}
.lang-menu li a:hover { background: var(--bg); color: var(--violet); }
.lang-menu li a[aria-current="true"] { color: var(--violet); background: #EFEAFF; }

/* Chat first screen: fills the viewport under the header, no scrolling needed */
.chat-stage {
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 480px;
  background: #fff;
  position: relative;
}
.chat-stage #app_container { width: 100%; height: 100%; }

/* Sections */
.intro { padding: 56px 0 24px; text-align: center; }
.intro h1, .page-head h1 {
  margin: 0 0 12px; font-weight: 900; font-size: clamp(30px, 4.5vw, 48px); line-height: 1.12; letter-spacing: -0.5px;
}
.lead { font-size: 19px; color: var(--muted); max-width: 720px; margin: 0 auto 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 28px; border-radius: 999px; background: var(--pink); color: #fff;
  font-weight: 800; text-decoration: none; box-shadow: 0 8px 20px rgba(232, 54, 93, .3);
}
.btn:hover { background: #CC2A4F; color: #fff; }

.features { padding: 40px 0 56px; }
.features h2, .section-head h2 { font-weight: 900; font-size: 30px; margin: 0 0 24px; text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.feature svg { color: var(--violet-2); }
.feature h3 { margin: 12px 0 6px; font-size: 19px; font-weight: 800; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

.latest { padding: 24px 0 56px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head h2 { margin: 0; text-align: left; }
.section-head a { font-weight: 800; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-link:hover h3 { color: var(--violet); }
.card-cover {
  aspect-ratio: 16 / 9; background: #EFEAFF; color: #C9B8FF;
  display: flex; align-items: center; justify-content: center;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body time { font-size: 14px; color: var(--muted); }
.card-body h3 { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 800; }
.card-body p { margin: 0; color: var(--muted); font-size: 16px; }
.card-more { margin-top: auto; padding-top: 8px; color: var(--pink); font-weight: 800; font-size: 15px; }

.seo-text { padding: 8px 0 56px; }
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 26px; font-weight: 900; margin: 32px 0 12px; }
.prose h3 { font-size: 21px; font-weight: 800; margin: 24px 0 8px; }
.prose p, .prose li { color: #3A3450; }

.page-head { padding: 48px 0 16px; text-align: center; }
.page-head .lead p { margin: 0; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; font-weight: 800; }
.pager a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; }

.cta-band { background: var(--night); color: #fff; padding: 40px 0; text-align: center; }
.cta-band p { margin: 0 0 16px; font-size: 19px; color: #E9E3FF; }

.article { padding: 40px 0 56px; }
.article .back { font-weight: 800; text-decoration: none; }
.article h1 { font-weight: 900; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 16px 0 8px; }
.article time { color: var(--muted); font-size: 15px; }
.article-cover { display: block; width: 100%; border-radius: var(--radius); margin: 20px 0; }
.article .prose { margin-top: 20px; }
.article-cta { margin-top: 40px; padding: 28px; border-radius: var(--radius); text-align: center; background: #EFEAFF; }
.article-cta p { margin: 0 0 16px; font-weight: 700; }

/* Footer */
.site-footer { background: var(--night); color: #CFC6EE; padding: 40px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-brand p { margin: 12px 0 0; font-size: 15px; max-width: 380px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; align-content: flex-start; }
.footer-links a { color: #fff; text-decoration: none; font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }
.footer-links a:hover { color: var(--pink-soft); }
.footer-copy { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --header-h: 54px; }
  body { font-size: 16px; }
  .header-inner { gap: 8px; padding: 0 10px; }
  .logo-word { font-size: 19px; }
  .logo-mark { width: 32px; height: 32px; }
  .main-nav a { padding: 8px 10px; font-size: 14px; }
  .main-nav a:first-child { display: none; }
  .lang-menu summary { padding: 0 10px; }
  .feature-grid, .card-grid { grid-template-columns: 1fr; }
  .intro { padding-top: 40px; }
}

/* 404 */
.nf { padding: 64px 0 88px; text-align: center; }
.nf-mark { display: block; margin: 0 auto 8px; }
.nf-code { margin: 0; font-weight: 900; font-size: clamp(88px, 16vw, 150px); line-height: 1; letter-spacing: -4px; color: var(--violet-2); }
.nf h1 { margin: 8px 0 12px; font-weight: 900; font-size: clamp(26px, 4vw, 40px); line-height: 1.15; }
.nf .lead p { margin: 0; }
.nf-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.btn-ghost { background: transparent; color: var(--violet); box-shadow: none; border: 2px solid var(--line); }
.btn-ghost:hover { background: #EFEAFF; color: var(--violet); }

.related { background: #fff; border-top: 1px solid var(--line); padding-top: 40px; }

/* responsive images */
picture{display:contents}

/* accessibility: text contrast >= 4.5:1 */
.btn{background:#D6294F;box-shadow:0 8px 20px rgba(214,41,79,.3)}
.btn:hover{background:#B81F42}
.btn-ghost{background:transparent;box-shadow:none}
.btn-ghost:hover{background:#EFEAFF}
.card-more{color:#D6294F}

/* AI girlfriend menu link: keep it visible on mobile, hide "Video chat" instead */
.main-nav a.nav-ai { cursor: pointer; }
@media (max-width: 640px) {
    .main-nav a.nav-ai { display: inline-flex; }
    .main-nav a.nav-ai + a { display: none; }
}
@media (max-width: 480px) {
    .main-nav a.nav-ai ~ a { display: none; }
}
