/* =========================================================
   YFi-studio — Public Website
   Static styles. Desktop spec = FINAL 01, Mobile spec = MOBILE 01.
   ========================================================= */

:root {
  /* Brand greens */
  --green-900: #0c3119;
  --green-800: #14532d;
  --green-700: #167244;
  --green-500: #49a95c;
  --green-300: #6aae7a;
  --mint-200: #b7e4c7;
  --mint-100: #ddf4e5;
  --mint-050: #cdebd7;

  /* Neutrals */
  --ink: #101828;
  --slate-600: #475467;
  --slate-500: #667085;
  --line: #e5e7eb;
  --panel: #f8fafc;
  --white: #ffffff;

  /* Accent */
  --gold: #f6b73c;

  /* Layout */
  --maxw: 1200px;
  --pad-x: 80px;
  --radius: 18px;
  --radius-sm: 10px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p { margin: 0; }

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.kicker {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--green-500);
  text-transform: uppercase;
}

.section-title {
  font-size: 50px;
  font-weight: 900;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.5px;
}

.section-body {
  font-size: 19px;
  font-weight: 500;
  color: var(--slate-500);
  max-width: 650px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: 0;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-gold { background: var(--gold); color: var(--green-800); }
.btn-gold:hover { box-shadow: 0 8px 20px rgba(246,183,60,.35); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--green-300);
}
.btn-outline-light:hover { background: rgba(255,255,255,.08); }

.btn-outline {
  background: var(--white);
  color: var(--green-700);
  border: 1px solid var(--mint-200);
}
.btn-outline:hover { background: var(--panel); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green-800);
  border-bottom: 1px solid #1b6b3a;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
}
/* logo.png is the trimmed wordmark (524x288, ~1.82:1), no padding,
   so height alone gives the correct size and left alignment. */
.logo {
  display: block;
  height: 34px;
  width: auto;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-menu a {
  position: relative;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .5px;
  color: #d0d5dd;
  padding: 6px 0;
  transition: color .15s ease;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width .18s ease;
}
.nav-menu a:hover { color: var(--white); }
.nav-menu a:hover::after { width: 100%; }
.nav-menu .dot { color: rgba(255,255,255,.3); font-weight: 900; }

.nav-right { display: flex; align-items: center; gap: 20px; }
.lang {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.2);
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
}
.lang button {
  background: none; border: 0; color: rgba(255,255,255,.55);
  font: inherit; cursor: pointer; padding: 0;
  transition: color .15s ease;
}
.lang button:hover { color: var(--white); }
.lang button.active { color: var(--gold); }
.lang span { color: rgba(255,255,255,.25); }

/* Mobile dropdown is hidden on desktop; shown only via media query */
.nav-mobile { display: none; }

.logo-link { display: inline-flex; align-items: center; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.burger span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--white);
  transition: transform .2s ease, opacity .2s ease;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  background: var(--green-800);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 200px;
  background: linear-gradient(to bottom, rgba(12,49,25,.5), rgba(12,49,25,0));
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
  min-height: 560px;
}
.hero-title {
  font-size: 92px;
  font-weight: 900;
  line-height: .95;
  color: var(--white);
  letter-spacing: -2px;
}
.hero-sub {
  margin-top: 18px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--mint-100);
}
.hero-body {
  margin-top: 18px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--mint-050);
  max-width: 560px;
}
.hero-cta { display: flex; gap: 12px; margin-top: 28px; }

.hero-phones {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.phone {
  width: 220px;
  aspect-ratio: 220 / 460;
  border-radius: 36px;
  object-fit: cover;
  box-shadow: 0 22px 54px rgba(0,0,0,.38);
}
.phone.lower { transform: none; }

/* =========================================================
   GENERIC SECTION
   ========================================================= */
.section { padding: 80px 0; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.company-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
}
.company-box h3 { font-size: 25px; font-weight: 900; margin-bottom: 12px; }
.company-box p { font-size: 16px; font-weight: 600; color: var(--slate-600); white-space: pre-line; }

/* Games */
.games-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}
.game-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.game-card:hover { box-shadow: 0 14px 34px rgba(16,24,40,.1); transform: translateY(-3px); }
.game-card img { width: 100%; height: 260px; object-fit: cover; }
.game-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.game-card-body h3 { font-size: 34px; font-weight: 900; }
.game-card-body p { font-size: 17px; font-weight: 600; color: var(--slate-500); }
.game-card-btns { display: flex; gap: 12px; margin-top: 8px; }
.game-card-btns .btn { flex: 1; }

/* Support */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.stat {
  border: 1.5px solid #b7e0c5;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 6px 18px rgba(20,83,45,.15);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat .label { font-size: 14px; font-weight: 800; color: var(--slate-500); }
.stat .value { font-size: 28px; font-weight: 900; color: var(--ink); }
.stat .sub { font-size: 14px; font-weight: 800; color: var(--slate-600); word-break: break-all; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--green-800);
  color: var(--mint-100);
  padding: 48px 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-logo { height: 40px; width: auto; margin-bottom: 16px; }
.footer-company { font-size: 15px; font-weight: 600; color: #a7c9b4; white-space: pre-line; line-height: 1.5; }
.footer-emails { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--mint-100); display: flex; flex-direction: column; gap: 6px; }
.footer-emails .email-row { display: flex; align-items: baseline; gap: 12px; }
.footer-emails.gap-8 .email-row { gap: 8px; }
.footer-emails.gap-8 .email-row .label { width: 61px; }
.footer-emails.gap-8-cjk .email-row { gap: 8px; }
.footer-emails.gap-8-cjk .email-row .label { width: 56px; }
.footer-emails .email-row .label { flex: 0 0 auto; width: 72px; color: #a7c9b4; }
.footer-emails .email-row .colon { flex: 0 0 auto; color: #a7c9b4; }
.footer-emails .email-row a { color: var(--mint-100); text-decoration: none; }
.footer-emails .email-row a:hover { text-decoration: underline; }
.legal-panel {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  padding: 20px;
}
.legal-panel .title { font-size: 14px; font-weight: 900; color: var(--mint-200); margin-bottom: 10px; }
.legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.legal-links a { font-size: 14px; font-weight: 700; text-decoration: underline; color: var(--white); }
.legal-links a:hover { color: var(--mint-100); }
.legal-links .sep { color: rgba(255,255,255,.35); }

/* =========================================================
   RESPONSIVE  (mobile spec = MOBILE 01)
   ========================================================= */
@media (max-width: 900px) {
  :root { --pad-x: 24px; }

  .nav-inner { height: 64px; }
  .logo { height: 28px; }
  .nav-menu, .nav-right .lang { display: none; }
  .burger { display: flex; }

  /* mobile dropdown menu */
  .nav-mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: var(--green-800);
    border-top: 1px solid #1b6b3a;
    padding: 12px 24px 20px;
  }
  .nav-mobile.open { display: flex; }
  .nav-mobile a { padding: 12px 0; font-size: 16px; font-weight: 800; color: var(--mint-100); border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-mobile .lang-mobile { display: flex; gap: 14px; padding-top: 14px; }
  .nav-mobile .lang-mobile button { background: none; border: 0; color: rgba(255,255,255,.55); font: inherit; font-weight: 800; cursor: pointer; }
  .nav-mobile .lang-mobile button.active { color: var(--gold); }

  .hero::before { height: 170px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    min-height: 0;
    padding-top: 36px;
    padding-bottom: 44px;
  }
  .hero-title { font-size: 46px; letter-spacing: -1px; }
  .hero-sub { font-size: 20px; margin-top: 14px; }
  .hero-body { font-size: 15px; margin-top: 14px; }
  .hero-cta { margin-top: 20px; }
  .hero-cta .btn { flex: 1; }
  .hero-phones { gap: 14px; margin-top: 16px; }
  .phone { width: 150px; aspect-ratio: 150 / 324; border-radius: 26px; }
  .phone.lower { transform: none; }

  .section { padding: 44px 0; }
  .section-title { font-size: 28px; }
  .section-body { font-size: 15px; }
  .section-head { margin-bottom: 20px; gap: 10px; }
  .kicker { font-size: 13px; }

  .about-grid { grid-template-columns: 1fr; gap: 20px; }
  .company-box { border-radius: var(--radius); padding: 20px; }
  .company-box h3 { font-size: 20px; }
  .company-box p { font-size: 14px; }

  .games-grid { grid-template-columns: 1fr; gap: 16px; }
  .game-card img { height: 170px; }
  .game-card-body { padding: 18px; }
  .game-card-body h3 { font-size: 24px; }
  .game-card-body p { font-size: 14px; }

  .stats-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat { padding: 18px; }
  .stat .value { font-size: 24px; }

  .footer { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-logo { height: 34px; }
}

/* =========================================================
   POLICY PAGES
   ========================================================= */
.policy {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px var(--pad-x) 80px;
}
.policy h1 { font-size: 42px; font-weight: 900; letter-spacing: -1px; }
.policy .updated { margin-top: 8px; color: var(--slate-500); font-size: 15px; font-weight: 600; }
.policy h2 { font-size: 24px; font-weight: 900; margin: 36px 0 12px; }
.policy p, .policy li { font-size: 16px; color: var(--slate-600); line-height: 1.65; }
.policy ul { list-style: disc; padding-left: 22px; margin: 8px 0; }
.policy li { margin: 6px 0; }
.policy a { color: var(--green-700); text-decoration: underline; }
.back-link { display: inline-block; margin-bottom: 24px; font-weight: 700; color: var(--green-700); }

@media (max-width: 900px) {
  .policy { padding: 40px 24px 56px; }
  .policy h1 { font-size: 30px; }
  .policy h2 { font-size: 20px; }
}
