/* Infinite Gaming Consulting - site styles */

:root {
  --navy-900: #0a1226;
  --navy-800: #0f1b3d;
  --navy-700: #16264f;
  --navy-600: #22366b;
  --gold-500: #c9a227;
  --gold-400: #dcb84a;
  --gold-300: #ead584;
  --gold-100: #f3e7bd;
  --gold-050: #fcf8ea;
  --ink: #101828;
  --text: #2c3446;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 18, 38, 0.08);
  --shadow-lg: 0 18px 44px rgba(10, 18, 38, 0.14);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-hans: var(--font), "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-hant: var(--font), "PingFang TC", "Hiragino Sans CNS", "Microsoft JhengHei", "Noto Sans CJK TC", "Noto Sans TC", "Source Han Sans TC", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
}
html[lang="zh-Hans"] body { font-family: var(--font-hans); line-height: 1.75; }
html[lang="zh-Hant"] body { font-family: var(--font-hant); line-height: 1.75; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.01em; }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3, html[lang^="zh"] h4 { letter-spacing: 0.01em; line-height: 1.32; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { display: block; max-width: 100%; }
strong { color: var(--ink); }

.container { width: min(1140px, 100% - 40px); margin-inline: auto; }
.container.narrow { max-width: 720px; }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.82rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1.5px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 2px; }
.btn-gold { background: var(--gold-500); color: var(--navy-900); }
.btn-gold:hover { background: var(--gold-400); box-shadow: 0 8px 20px rgba(201, 162, 39, 0.35); }
.btn-outline { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); box-shadow: 0 8px 20px rgba(15, 27, 61, 0.28); }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.85rem; }

.text-link { font-weight: 600; color: var(--navy-700); }
.text-link::after { content: " \2192"; }
html[lang^="zh"] .text-link::after { content: " \203A"; }

/* Header ------------------------------------------------------------------- */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--gold-500); color: var(--navy-900); padding: 0.6rem 1rem; border-radius: 0 0 8px 8px; font-weight: 600;
}
.skip-link:focus { left: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-900);
  border-bottom: 1px solid rgba(201, 162, 39, 0.38);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; position: relative; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 44px; height: 28px; flex: none; color: var(--gold-400); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 700; font-size: 1.02rem; letter-spacing: 0.01em; white-space: nowrap; }
.brand-sub { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-400); }

.site-nav { display: flex; align-items: center; gap: 1.1rem; }
.nav-links { display: flex; gap: 0.15rem; }
.nav-links a {
  display: block; padding: 0.5rem 0.75rem; color: rgba(255, 255, 255, 0.84); font-weight: 500;
  border-radius: 8px; position: relative; white-space: nowrap;
}
.nav-links a:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, 0.06); }
.nav-links a.active { color: var(--gold-400); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.2rem; height: 2px;
  background: var(--gold-500); border-radius: 2px;
}

.lang-switch { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 999px; padding: 3px; }
.lang-switch a { padding: 0.3rem 0.72rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.82); border-radius: 999px; white-space: nowrap; }
.lang-switch a:hover { color: #fff; text-decoration: none; }
.lang-switch a.current { background: var(--gold-500); color: var(--navy-900); font-weight: 600; }

.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-cta { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    width: 44px; height: 44px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px; cursor: pointer; padding: 0;
  }
  .nav-toggle-bar { width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    display: none; position: absolute; left: -20px; right: -20px; top: 100%;
    background: var(--navy-900); border-bottom: 1px solid rgba(201, 162, 39, 0.38);
    flex-direction: column; align-items: stretch; padding: 0.75rem 20px 1.25rem; gap: 1rem;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open { display: flex; }
  .nav-links { flex-direction: column; }
  .nav-links a { padding: 0.7rem 0.75rem; font-size: 1.05rem; }
  .nav-links a.active::after { display: none; }
  .lang-switch { align-self: flex-start; }
  .nav-cta { display: inline-flex; align-self: flex-start; }
}

/* Language suggestion banner ------------------------------------------------ */
.lang-banner { background: var(--gold-050); border-bottom: 1px solid var(--gold-100); color: var(--navy-900); font-size: 0.92rem; }
.lang-banner .container { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; padding-block: 0.6rem; }
.lang-banner .banner-text { flex: 1 1 auto; font-weight: 500; }
.banner-dismiss { color: var(--muted); font-size: 0.85rem; }

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 520px at 88% -10%, rgba(201, 162, 39, 0.24), transparent 62%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 2.5rem; align-items: center; padding: 6rem 0 5.5rem;
}
.hero h1 { color: #fff; font-size: clamp(2rem, 4.2vw, 3.3rem); margin-bottom: 1.1rem; max-width: 18ch; }
html[lang^="zh"] .hero h1 { max-width: 22ch; }
.hero .lead { color: rgba(255, 255, 255, 0.82); font-size: 1.12rem; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }
.hero-art svg { width: 100%; max-width: 440px; margin-inline: auto; }

.eyebrow {
  color: var(--gold-500); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700;
  margin-bottom: 0.9rem;
}
.hero .eyebrow, .page-header .eyebrow, .cta-band .eyebrow { color: var(--gold-400); }
html[lang^="zh"] .eyebrow { letter-spacing: 0.2em; font-size: 0.82rem; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 4rem 0 3.75rem; }
  .hero-art { display: none; }
}

/* Page header (inner pages) ------------------------------------------------- */
.page-header {
  color: #fff; padding: 4rem 0 3.5rem;
  background:
    radial-gradient(700px 400px at 90% -20%, rgba(201, 162, 39, 0.2), transparent 60%),
    linear-gradient(120deg, var(--navy-900), var(--navy-700));
}
.page-header h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.page-header .lead { color: rgba(255, 255, 255, 0.82); font-size: 1.1rem; max-width: 760px; margin-bottom: 0; }

/* Sections ----------------------------------------------------------------- */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--surface-2); }
.section-title { margin-bottom: 1.6rem; max-width: 26ch; }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 720px; margin-bottom: 2rem; }
.practice-head { max-width: 800px; margin-bottom: 2.25rem; }
.practice-head .section-lead { margin-bottom: 0; }

.grid { display: grid; gap: 1.5rem; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) {
  .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; position: relative; transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--navy-900); color: var(--gold-400); margin-bottom: 1.25rem;
}
.card-icon svg { width: 28px; height: 28px; }

.pillar { border-top: 3px solid var(--gold-500); }
.pillar h3 { font-size: 1.35rem; }
.pillar .text-link { display: inline-block; margin-top: 1.1rem; }

.checklist li { position: relative; padding-left: 1.75rem; margin-bottom: 0.55rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.42em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm-1 11.4L3.6 8l1.4-1.4 2 2 4-4L12.4 6 7 11.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0zm-1 11.4L3.6 8l1.4-1.4 2 2 4-4L12.4 6 7 11.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.feature { padding: 0.5rem 0; }
.feature-num { display: block; color: var(--gold-500); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; margin-bottom: 0.6rem; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); margin-bottom: 0; }

.offering { padding: 1.6rem 1.6rem 1.5rem; }
.offering-num { position: absolute; top: 1.25rem; right: 1.35rem; color: var(--gold-500); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.1em; }
.offering h3 { font-size: 1.05rem; padding-right: 2rem; }
.offering p { color: var(--muted); font-size: 0.95rem; }

.panel { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold-500); border-radius: var(--radius); padding: 2rem; margin-top: 2.25rem; }
.panel h3 { margin-bottom: 1rem; }
.panel.mission { padding: 2.5rem; }
.panel.mission .lead { font-size: 1.2rem; color: var(--ink); margin: 0; max-width: 60ch; }

.bullets li { position: relative; padding-left: 1.2rem; margin-bottom: 0.45rem; color: var(--text); }
.bullets li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 7px; height: 7px; border-radius: 2px; background: var(--gold-500); transform: rotate(45deg); }
.bullets.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.2rem 2rem; }
@media (max-width: 720px) { .bullets.cols-2 { grid-template-columns: 1fr; } }

/* Process ------------------------------------------------------------------ */
.process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.process-step { position: relative; }
.process-num {
  display: inline-flex; width: 46px; height: 46px; align-items: center; justify-content: center; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-400); font-weight: 700; margin-bottom: 1rem;
  border: 2px solid var(--gold-500); position: relative; z-index: 1;
}
.process-step::before {
  content: ""; position: absolute; top: 22px; left: 54px; right: -2rem; height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--line));
}
.process-step:last-child::before { display: none; }
.process-step h3 { font-size: 1.1rem; }
.process-step p { color: var(--muted); margin-bottom: 0; }
@media (max-width: 960px) {
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-step:nth-child(2)::before { display: none; }
}
@media (max-width: 620px) {
  .process { grid-template-columns: 1fr; }
  .process-step::before { display: none; }
}

/* Markets ------------------------------------------------------------------ */
.markets-teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 3rem; align-items: center; }
.markets-teaser-copy .section-lead { margin-bottom: 1rem; }
@media (max-width: 860px) { .markets-teaser { grid-template-columns: 1fr; gap: 1.5rem; } }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  padding: 0.5rem 1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font-weight: 500; font-size: 0.92rem;
}

.market-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 2rem; }
.market-item { display: flex; flex-direction: column; gap: 0.15rem; padding: 1rem 0 1rem 1.25rem; border-left: 3px solid var(--gold-500); }
.market-item strong { font-size: 1.05rem; }
.market-item span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 720px) { .market-list { grid-template-columns: 1fr; } }

.region h3 { padding-bottom: 0.75rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.note { color: var(--muted); font-size: 0.92rem; margin-top: 2rem; margin-bottom: 0; }

/* About -------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 1rem; }
.value { padding: 1.4rem 1.6rem; border-left: 4px solid var(--gold-500); }
.value h3 { font-size: 1.05rem; }
.value p { color: var(--muted); font-size: 0.95rem; }

/* CTA band ----------------------------------------------------------------- */
.cta-band { background: var(--navy-900); color: #fff; padding: 3.5rem 0; border-top: 1px solid rgba(201, 162, 39, 0.35); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 0.4rem; }
.cta-band p { color: rgba(255, 255, 255, 0.78); margin: 0; }

/* Contact ------------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { padding: 2rem; }
.form-card:hover { box-shadow: none; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 0.4rem; font-size: 0.95rem; }
.req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.7rem 0.85rem; border: 1px solid #cfd4dc; border-radius: 10px; font: inherit; color: var(--ink);
  background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(34, 54, 107, 0.15); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 0.85rem; margin: 0.35rem 0 0; }
.form-alert { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecdca; border-radius: 10px; padding: 0.75rem 1rem; margin-bottom: 1.25rem; font-size: 0.95rem; }
.form-note { color: var(--muted); font-size: 0.88rem; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.contact-aside h2 { font-size: 1.3rem; margin-bottom: 1.25rem; }
.aside-item { padding: 1rem 0; border-top: 1px solid var(--line); }
.aside-item h3 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 0.3rem; }
html[lang^="zh"] .aside-item h3 { letter-spacing: 0.18em; }
.aside-item p { margin: 0; }
.aside-note { color: var(--muted); font-size: 0.92rem; margin-top: 1.25rem; }

/* Status / error cards ----------------------------------------------------- */
.status-card { text-align: center; padding: 3rem 2rem; }
.status-card .card-icon { margin-inline: auto; }
.status-card h1 { font-size: 2rem; }
.status-card .lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.75rem; }
.lang-choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8rem; }
.form-alert[hidden] { display: none; }

/* Footer ------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, 0.78); padding: 3.5rem 0 1.5rem; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand p { max-width: 380px; margin-top: 1rem; font-size: 0.95rem; }
.footer-col h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 0.9rem; }
html[lang^="zh"] .footer-col h4 { letter-spacing: 0.2em; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(255, 255, 255, 0.78); }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.footer-bottom p { margin-bottom: 0.4rem; }
.footer-disclaimer { max-width: 820px; }
