/* GZONE Developer Program – iamdev.gzone.vn
   Cùng hệ màu với gzone.vn: navy #010b26, đỏ #dc2023, nền trắng / xám nhạt. */
:root {
  --red: #dc2023;
  --red-700: #b90000;
  --navy: #010b26;
  --ink: #15171f;
  --text: #3d414c;
  --muted: #6b6f7b;
  --line: #e4e6eb;
  --gray: #f5f6f8;
  --ok: #138a4b;
  --header-h: 72px;
  --wrap: 1200px;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: #fff; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 2.2vw + 14px, 40px); font-weight: 800; margin-bottom: 16px; }
.container { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.muted { color: var(--muted); }
.req { color: var(--red); font-style: normal; }

/* Kicker – giống gzone.vn: gạch đỏ + chữ in hoa */
.kicker { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: 14px; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--red); flex: none; }
.kicker--light { color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 6px; border: 1.5px solid transparent; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-700); }
.btn--primary:disabled { opacity: .65; cursor: wait; }
.btn--outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 32px; font-size: 16px; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.08); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 34px; width: auto; }
.brand span { padding-left: 14px; border-left: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.75); font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: .12em; text-transform: uppercase; }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a { color: rgba(255,255,255,.8); font-size: 15px; font-weight: 500; transition: color .15s; }
.nav a:hover { color: #fff; }

/* Hero */
.hero { position: relative; display: flex; align-items: center; min-height: min(78vh, 720px); padding: 96px 0; color: #fff;
  background: linear-gradient(90deg, rgba(1,11,38,.96) 0%, rgba(1,11,38,.86) 38%, rgba(1,11,38,.35) 70%, rgba(1,11,38,.15) 100%), var(--hero, none) center right / cover no-repeat, var(--navy); }
.hero h1 { color: #fff; font-size: clamp(40px, 4.4vw + 12px, 72px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin-bottom: 24px; }
.hero h1 span { color: var(--red); }
.hero__lead { max-width: 540px; font-size: 18px; color: rgba(255,255,255,.82); margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Facts bar */
.facts { border-bottom: 1px solid var(--line); background: #fff; }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 28px 28px 28px 0; display: flex; flex-direction: column; gap: 2px; }
.fact + .fact { padding-left: 28px; border-left: 1px solid var(--line); }
.fact b { font-size: 13px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .1em; }
.fact span { font-size: 17px; font-weight: 600; color: var(--ink); }
.fact--cta { justify-content: center; }
.fact--cta span { font-size: 14px; font-weight: 500; color: var(--muted); }
.fact--cta a { font-weight: 700; color: var(--red); }

/* Sections */
.section { padding: 112px 0; }
.section--tight { padding: 88px 0; }
.section--gray { background: var(--gray); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.75); }
.section--navy h2, .section--navy h3 { color: #fff; }

/* Ảnh + nội dung */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; }
.split__media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; }
.split__body p { font-size: 17px; margin-bottom: 18px; }
.split__body blockquote { margin: 28px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--red); font-size: 21px; font-weight: 700; line-height: 1.45; color: var(--ink); }

/* Cột tiêu đề + danh sách */
.cols { display: grid; grid-template-columns: 4fr 7fr; gap: 80px; align-items: start; }
.cols__head { position: sticky; top: calc(var(--header-h) + 40px); }
.cols__head .muted { font-size: 16px; }
.cols__head a { color: var(--red); font-weight: 600; }

.services { list-style: none; border-top: 1px solid #d9dce3; }
.services li { display: grid; grid-template-columns: 64px 1fr; column-gap: 8px; padding: 28px 0; border-bottom: 1px solid #d9dce3; }
.services .num { grid-row: span 2; font-size: 14px; font-weight: 700; color: var(--red); padding-top: 4px; }
.services h3 { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.services p { font-size: 16px; }

/* Game GZONE đã phát hành */
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.row-head h2 { margin-bottom: 0; }
.link-arrow { font-weight: 600; color: var(--red); white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }
.games { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.games li { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.games a { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 28px 16px; text-align: center; height: 100%; transition: background-color .15s; }
.games a:hover { background: var(--gray); }
.games img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.games span { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; }

/* Quy trình */
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 48px; border-top: 1px solid rgba(255,255,255,.18); }
.steps li { position: relative; padding: 32px 24px 0 0; }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 3px; background: rgba(255,255,255,.4); }
.steps li.is-current::before, .steps li:last-child::before { background: var(--red); }
.steps .num { display: block; font-size: 14px; font-weight: 700; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.steps h3 { font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.steps p { font-size: 15px; }

/* Form */
.form-head { max-width: 720px; margin-bottom: 48px; }
.form-head .muted { font-size: 16px; }
.form-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.form-nav { position: sticky; top: calc(var(--header-h) + 32px); display: grid; border-left: 1px solid #d9dce3; }
.form-nav a { display: flex; gap: 12px; padding: 10px 0 10px 18px; margin-left: -1px; border-left: 2px solid transparent; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s, border-color .15s; }
.form-nav a span { font-size: 13px; font-weight: 700; padding-top: 1px; }
.form-nav a:hover { color: var(--ink); }
.form-nav a.is-active { color: var(--ink); border-left-color: var(--red); font-weight: 600; }
.form-nav a.is-active span { color: var(--red); }
.form-nav__progress { padding: 20px 0 0 18px; }
.form-nav__progress .bar { height: 4px; background: #e1e3e8; border-radius: 2px; overflow: hidden; }
.form-nav__progress i { display: block; height: 100%; width: 0; background: var(--red); transition: width .3s; }
.form-nav__progress small { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.form-nav__progress b { color: var(--ink); }

.form { background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.fs { border: 0; padding: 40px 48px; display: grid; gap: 22px; min-width: 0; }
.fs + .fs { border-top: 1px solid var(--line); }
.fs legend { float: left; width: 100%; font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.fs legend span { color: var(--red); margin-right: 6px; }
.fs__desc { font-size: 15px; color: var(--muted); margin-top: -10px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }

.field { display: grid; gap: 8px; position: relative; align-content: start; }
.field > label, .field > .label { display: flex; align-items: baseline; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field .counter { margin-left: auto; font-weight: 500; color: var(--muted); font-size: 12px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid #cfd3db; border-radius: 6px; outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: auto; resize: vertical; }
.field select { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6f7b' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #aab0bc; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21,23,31,.08); }
.field input::placeholder, .field textarea::placeholder { color: #a0a5b0; }
.field--unit input { padding-right: 64px; }
.field--unit em { position: absolute; right: 14px; bottom: 14px; font-style: normal; font-size: 13px; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); }
.field__error { display: none; font-size: 13px; color: var(--red); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); background: #fffafa; }
.field.is-invalid .field__error { display: block; }

/* Checkbox dạng lưới */
.checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; }
.check { position: relative; display: flex; font-size: 15px; color: var(--text); cursor: pointer; padding: 4px 0; }
.check input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.check span { display: flex; align-items: flex-start; gap: 10px; }
.check span::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border: 1.5px solid #b5bac5; border-radius: 3px; background: #fff center / 12px no-repeat; transition: background-color .15s, border-color .15s; }
.check:hover span::before { border-color: var(--ink); }
.check input:checked + span { color: var(--ink); font-weight: 500; }
.check input:checked + span::before { background-color: var(--red); border-color: var(--red); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' stroke='%23fff' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.check input:focus-visible + span::before { box-shadow: 0 0 0 3px rgba(220,32,35,.25); }
.field.is-invalid .check span::before { border-color: var(--red); }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; padding-top: 6px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.consent.is-invalid span { color: var(--red); }

.form__foot { padding: 28px 48px 40px; border-top: 1px solid var(--line); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.success { grid-column: 2; text-align: center; padding: 72px 32px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.success svg { margin: 0 auto 20px; color: var(--ok); }
.success h3 { font-size: 26px; margin-bottom: 8px; }
.success__code { margin: 24px 0 32px; font-size: 15px; color: var(--muted); }
.success__code b { display: block; margin-top: 6px; font-size: 24px; letter-spacing: .06em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* FAQ */
.faqs { border-top: 1px solid var(--line); }
.faqs details { border-bottom: 1px solid var(--line); }
.faqs summary { position: relative; padding: 24px 48px 24px 0; font-size: 18px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faqs details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faqs p { padding: 0 48px 24px 0; font-size: 16px; }

/* Closing */
.closing { background: var(--red); color: #fff; padding: 72px 0; }
.closing__inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.closing h2 { color: #fff; max-width: 760px; margin: 0; font-size: clamp(24px, 1.6vw + 12px, 34px); }
.closing .btn--primary { background: #fff; color: var(--red); }
.closing .btn--primary:hover { background: var(--navy); color: #fff; }

/* Footer */
.footer { background: var(--navy); color: rgba(255,255,255,.65); font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1.4fr 1fr; gap: 48px; padding: 64px 0 40px; }
.footer__grid img { height: 34px; width: auto; margin-bottom: 20px; }
.footer__grid p { margin-bottom: 10px; max-width: 380px; }
.footer__grid b { color: #fff; }
.footer h4 { color: #fff; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,.85); }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 160%); padding: 14px 20px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); transition: transform .25s, visibility .25s; max-width: calc(100% - 32px); visibility: hidden; }
.toast.is-show { transform: translate(-50%, 0); visibility: visible; }

/* Responsive */
@media (max-width: 1080px) {
  .split, .cols { grid-template-columns: 1fr; gap: 48px; }
  .cols__head { position: static; }
  .split__media img { aspect-ratio: 16 / 10; }
  .games { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: 1fr; border-top: 0; margin-top: 32px; }
  .steps li { padding: 0 0 28px 28px; border-left: 1px solid rgba(255,255,255,.18); }
  .steps li::before { top: 0; left: -2px; width: 3px; height: 32px; }
  .steps li:last-child { padding-bottom: 0; }
  .form-wrap { grid-template-columns: 1fr; }
  .form-nav { display: none; }
  .success { grid-column: 1; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .container { width: calc(100% - 40px); }
  .nav, .brand span { display: none; }
  .header__inner { justify-content: space-between; }
  .brand img { height: 28px; }
  .hero { min-height: 0; padding: 72px 0 64px; background: linear-gradient(180deg, rgba(1,11,38,.72) 0%, rgba(1,11,38,.95) 70%), var(--hero, none) center / cover no-repeat, var(--navy); }
  .hero__lead { font-size: 16px; }
  .hero__cta .btn { width: 100%; }
  .facts__grid { grid-template-columns: 1fr; }
  .fact, .fact + .fact, .fact:nth-child(3) { padding: 18px 0; border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .section--tight { padding: 64px 0; }
  .row-head { flex-direction: column; align-items: flex-start; }
  .games { grid-template-columns: repeat(3, 1fr); }
  .games a { padding: 20px 8px; }
  .games img { width: 56px; height: 56px; border-radius: 12px; }
  .games span { font-size: 12.5px; }
  .services li { grid-template-columns: 44px 1fr; }
  .fs { padding: 28px 20px; }
  .form__foot { padding: 24px 20px 28px; }
  .form__foot .btn, .closing .btn { width: 100%; white-space: normal; }
  .grid, .checks { grid-template-columns: 1fr; }
  .closing__inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 48px; }
}
