/* ============================================================
   gi8dangky.com — Stylesheet
   ============================================================ */
:root {
  --brand: #c8102e;
  --brand-dark: #9c0c23;
  --accent: #f5b301;
  --ink: #1b1f2a;
  --ink-soft: #4a5263;
  --muted: #7a8295;
  --line: #e5e8ef;
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --bg-dark: #12151d;
  --ok: #138a52;
  --warn-bg: #fff7e0;
  --warn-line: #f0d48a;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(20, 24, 40, 0.08);
  --max: 1120px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; color: var(--ink); }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head p { color: var(--ink-soft); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 8px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.15rem; }
.logo picture { display: block; flex-shrink: 0; }
.logo-img { height: 40px; width: auto; }
.site-footer .logo-img { height: 44px; }
.logo small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); line-height: 1; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: var(--radius-sm); text-decoration: none;
  color: var(--ink-soft); font-weight: 600; font-size: .95rem;
}
.site-nav a:hover { background: var(--bg-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--brand); background: #fdeef0; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  width: 44px; height: 44px; cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: ""; transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 64px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 2px; }
  .site-nav a { padding: 12px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
  min-height: 48px; font-family: inherit; text-align: center; line-height: 1.3;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(200,16,46,.28); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #1b1f2a; }
.btn-accent:hover { background: #e2a400; color: #1b1f2a; }
.btn-outline { background: transparent; border-color: currentColor; color: var(--brand); }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(245,179,1,.25), transparent 60%),
              linear-gradient(135deg, #1a0b10 0%, #5c0a1a 55%, var(--brand) 100%);
  color: #fff; padding: 72px 0 80px;
}
.hero h1 { color: #fff; }
.hero p.lead { font-size: 1.12rem; color: rgba(255,255,255,.88); max-width: 620px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius);
  padding: 24px;
}
.hero-card h3 { color: #fff; margin-bottom: 14px; }
.hero-card ol { margin: 0; padding-left: 1.2em; color: rgba(255,255,255,.9); }
.hero-card li { margin-bottom: 8px; }
.hero-visual { display: grid; gap: 20px; justify-items: center; }
.hero-visual picture { display: block; width: 100%; max-width: 420px; }
.hero-logo {
  width: 100%; height: auto;
  filter: drop-shadow(0 10px 30px rgba(40, 110, 255, .45));
}
.hero-visual .hero-card { width: 100%; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.badge {
  font-size: .85rem; padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2);
}
@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { display: contents; }
  .hero-visual picture { order: -1; max-width: 240px; margin: 0 auto; }
}

/* ---------- Page header (inner pages) ---------- */
.page-hero { background: linear-gradient(135deg, #1a0b10, #5c0a1a 70%, var(--brand)); color: #fff; padding: 44px 0 48px; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 680px; margin: 0; }
.breadcrumb { font-size: .88rem; margin-bottom: 12px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: rgba(255,255,255,.6); }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: #fff; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: 0 1px 2px rgba(20,24,40,.04); display: flex; flex-direction: column;
}
.card p { color: var(--ink-soft); }
.card .card-link { margin-top: auto; font-weight: 700; text-decoration: none; }
.card .card-link::after { content: " →"; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: #fdeef0; color: var(--brand);
}
.card-icon svg { width: 24px; height: 24px; }
a.card { text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 16px; }
.step {
  counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 22px 22px 80px;
}
.step::before {
  content: counter(step); position: absolute; left: 22px; top: 22px; width: 40px; height: 40px;
  border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: var(--brand); color: #fff;
}
.step h3 { margin-bottom: .35em; }
.step p:last-child, .step ul:last-child { margin-bottom: 0; }
.step ul { color: var(--ink-soft); margin: .4em 0 0; }
@media (max-width: 520px) {
  .step { padding: 70px 18px 20px; }
  .step::before { left: 18px; top: 18px; }
}

/* ---------- Layout with sidebar ---------- */
.with-aside { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
.aside { position: sticky; top: 88px; display: grid; gap: 16px; }
@media (max-width: 960px) { .with-aside { grid-template-columns: 1fr; } .aside { position: static; } }

.cta-box {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff;
  border-radius: var(--radius); padding: 24px;
}
.cta-box h3 { color: #fff; }
.cta-box p { color: rgba(255,255,255,.88); }
.cta-box .btn { width: 100%; }

/* ---------- Notices ---------- */
.notice {
  border-radius: var(--radius-sm); padding: 16px 18px; border: 1px solid var(--warn-line);
  background: var(--warn-bg); color: #5a4300; margin: 20px 0;
}
.notice strong { color: #3d2d00; }
.notice-info { background: #eef5ff; border-color: #bcd5f7; color: #183e6e; }
.notice-info strong { color: #0e2a4d; }
.notice-ok { background: #ebf8f1; border-color: #a9dfc3; color: #0f5434; }
.notice p:last-child, .notice ul:last-child { margin-bottom: 0; }

.checklist { list-style: none; padding: 0; margin: 0 0 1em; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 8px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Tabs (app page) ---------- */
.platform-switch { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.platform-switch a {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none;
  font-weight: 700; color: var(--ink-soft); background: #fff;
}
.platform-switch a:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- QR cards (app page) ---------- */
.qr-card { align-items: center; text-align: center; }
.qr-card .btn-row { justify-content: center; }
.qr-img {
  width: 200px; height: 200px; margin: 4px auto 16px; padding: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
}
@media (max-width: 620px) { .qr-img { width: 160px; height: 160px; } }

/* ---------- FAQ ---------- */
.faq-group { margin-bottom: 36px; }
.faq-group h2 { font-size: 1.3rem; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 10px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--brand); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .answer { padding: 14px 18px 4px; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-email {
  display: inline-flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 800;
  text-decoration: none; word-break: break-all;
}
.form { display: grid; gap: 16px; }
.form label { font-weight: 600; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cfd4df; border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(200,16,46,.15);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .hint { font-size: .88rem; color: var(--muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, #1a0b10, var(--brand)); color: #fff; border-radius: var(--radius);
  padding: 36px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-band .btn { white-space: nowrap; }
@media (max-width: 620px) {
  .cta-band { padding: 24px 20px; }
  .cta-band .btn { width: 100%; padding-left: 12px; padding-right: 12px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #b7bdcc; padding: 48px 0 24px; font-size: .95rem; }
.site-footer a { color: #e6e9f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.site-footer .logo small { color: #8d94a6; }
.footer-bottom {
  border-top: 1px solid #262b38; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; font-size: .85rem; color: #8d94a6;
}
.age-badge {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid #e05a6d; color: #ff8a9a; font-weight: 800; font-size: .8rem; margin-right: 8px; vertical-align: middle;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Sticky register bar (mobile) ---------- */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(18, 21, 29, .94); backdrop-filter: blur(6px);
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .sticky-cta .btn { width: 100%; }
  body.has-sticky-cta { padding-bottom: 76px; }
}

/* ---------- Register CTA band ---------- */
.cta-register {
  background: linear-gradient(135deg, #0b1230, #1d3fd8); color: #fff; border-radius: var(--radius);
  padding: 36px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
}
.cta-register img { width: 150px; height: auto; filter: drop-shadow(0 6px 18px rgba(80,140,255,.5)); }
.cta-register h2 { color: #fff; margin-bottom: .25em; }
.cta-register p { color: rgba(255,255,255,.85); margin: 0; }
@media (max-width: 760px) {
  .cta-register { grid-template-columns: 1fr; text-align: center; padding: 28px 20px; gap: 18px; }
  .cta-register picture { justify-self: center; }
  .cta-register .btn { width: 100%; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-soft); }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 16px; }
.notfound .code { font-size: 5rem; font-weight: 800; color: var(--brand); line-height: 1; }
