/* huejinx.com: the landing pages (tr/, en/) and the legal pages share this file. No inline styles or scripts,
   so the Content-Security-Policy in worker.js can stay at 'self'. */
@font-face { font-family: Chakra; src: url(assets/fonts/ChakraPetch-Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Grotesk; src: url(assets/fonts/SpaceGrotesk-Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Grotesk; src: url(assets/fonts/SpaceGrotesk-Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Mono; src: url(assets/fonts/SpaceMono-Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #07060e; --card: #120e1f; --line: rgba(255, 255, 255, .1);
  --text: #f4f3fb; --muted: #c9bfdc; --accent: #ba59ff; --violet: #9d3bff;
  --red: #ff3358; --green: #25f08a; --yellow: #ffd23d; --blue: #36a6ff; --pink: #ff4d9d;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 500 17px/1.55 Grotesk, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

/* Header */
.top { max-width: 1120px; margin: 0 auto; padding: 20px 16px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font: 700 22px Chakra, sans-serif; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 24px #9d3bff88; }
.lang { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.lang a { font: 700 13px Mono, monospace; letter-spacing: .08em; color: var(--muted); text-decoration: none; padding: 6px 12px; border-radius: 999px; }
.lang a[aria-current] { background: var(--violet); color: #fff; }

/* Landing */
.glow::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(55% 45% at 15% 10%, #9d3bff55, transparent 70%), radial-gradient(45% 40% at 90% 85%, #ff4d9d33, transparent 70%), radial-gradient(35% 30% at 92% 8%, #36a6ff26, transparent 70%); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.hero { display: grid; gap: 40px; align-items: center; padding: 32px 0 72px; }
.tag { font: 700 14px Mono, monospace; letter-spacing: .16em; color: var(--yellow); margin: 0 0 16px; }
h1 { font: 700 clamp(40px, 7vw, 72px)/1.04 Chakra, sans-serif; margin: 0 0 20px; letter-spacing: -.01em; }
.g { color: var(--green); } .r { color: var(--red); } .b { color: var(--blue); } .y { color: var(--yellow); }
.sub { color: var(--muted); font-size: clamp(18px, 2.4vw, 22px); margin: 0 0 32px; max-width: 34ch; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--bg); text-decoration: none;
  font: 700 18px Grotesk, sans-serif; padding: 16px 28px; border-radius: 999px; box-shadow: 0 12px 40px #9d3bff66; }
.store:hover { transform: translateY(-1px); }
.store small { display: block; font-weight: 500; font-size: 12px; opacity: .7; line-height: 1; }
.store span { line-height: 1.15; }
.phone { width: min(300px, 78vw); margin: 0 auto; border-radius: 44px; padding: 9px; background: #16121f;
  box-shadow: 0 0 0 3px #2a2338, 0 30px 100px rgba(157, 59, 255, .5); }
.phone img { border-radius: 36px; width: 100%; aspect-ratio: 1170 / 2532; }

.features { display: grid; gap: 20px; padding-bottom: 80px; }
.feature { background: linear-gradient(180deg, #171126, var(--card)); border: 1px solid var(--line); border-radius: 28px;
  padding: 28px 24px 0; overflow: hidden; display: flex; flex-direction: column; }
.feature h2 { font: 700 26px/1.15 Chakra, sans-serif; margin: 6px 0 10px; }
.feature p { color: var(--muted); margin: 0 0 24px; }
.feature .kicker { font: 700 13px Mono, monospace; letter-spacing: .14em; color: var(--accent); margin: 0; }
.feature .shot { width: 72%; max-width: 260px; margin: auto auto 0; border-radius: 28px 28px 0 0; padding: 7px 7px 0; background: #16121f;
  box-shadow: 0 0 0 2px #2a2338; }
.feature .shot img { border-radius: 22px 22px 0 0; width: 100%; aspect-ratio: 1170 / 1700; object-fit: cover; object-position: top; }

.cta { text-align: center; padding: 72px 16px 96px; border-top: 1px solid var(--line); }
.cta h2 { font: 700 clamp(34px, 6vw, 56px)/1.05 Chakra, sans-serif; margin: 0 0 14px; }
.cta p { color: var(--muted); margin: 0 0 28px; }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; padding: 28px 16px 40px; color: var(--muted); font-size: 15px; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }

@media (min-width: 760px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .hero { grid-template-columns: 1.15fr .85fr; padding: 56px 0 104px; }
  .phone { width: 320px; transform: rotate(4deg); }
  .features { grid-template-columns: repeat(4, 1fr); }
  .feature { padding: 26px 20px 0; }
  .feature h2 { font-size: 23px; }
}

/* Legal pages (privacy, support) */
.doc { max-width: 720px; margin: 0 auto; padding: 8px 16px 64px; font-size: 16px; line-height: 1.6; }
.doc h1 { font: 700 28px/1.25 Grotesk, sans-serif; margin: 8px 0 4px; }
.doc h2 { font: 700 19px Grotesk, sans-serif; margin: 28px 0 6px; color: #d6a8ff; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.doc ul { padding-left: 20px; }
.doc .links a { margin-right: 16px; }
