@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap");

@font-face {
  font-family: "Florenia";
  src: url("../fonts/florenia-regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --gcg-black: #000000;
  --gcg-grey-light: #CCD8DC;
  --gcg-grey-dark: #8C979A;
  --gcg-grey-outline: #8C979A;
  --gcg-gold-light: #FFE878;
  --gcg-gold-main: #FFBF00;
  --gcg-gold-outline-dark: #A67C00;
  --gcg-gold-outline-light: #FFD447;

  --bg: #050505;
  --surface: #101113;
  --surface-2: #151619;
  --surface-3: #0B0C0E;
  --text: #F4F4F2;
  --muted: #9AA2A5;
  --line: rgba(140, 151, 154, 0.28);
  --line-gold: rgba(166, 124, 0, 0.46);
  --line-gold-strong: rgba(255, 191, 0, 0.70);
  --gold-soft: rgba(255, 191, 0, 0.10);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
  --font-body: "Poppins", Arial, sans-serif;
  --font-title: "Florenia", "Poppins", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(166, 124, 0, 0.045), transparent 27rem),
    linear-gradient(115deg, #030303 0%, #08090A 58%, #101214 100%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
}

/* Intentionally no grid texture. */
body::before,
body::after { content: none; }

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.shell { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(166, 124, 0, 0.30);
  background: rgba(0, 0, 0, 0.96);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}
.brand-link { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { display: block; width: clamp(210px, 25vw, 300px); height: auto; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #101113;
}
.language-option {
  min-width: 45px;
  min-height: 36px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.language-option.active {
  background: var(--gcg-gold-main);
  color: var(--gcg-black);
}
.language-option:hover:not(.active) { color: var(--gcg-gold-main); }

.hero { padding: clamp(54px, 7vw, 88px) 0 42px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 38px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--gcg-gold-main);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.display-title, .page-title, .section-title, .tool-title, .panel-title {
  font-family: var(--font-title);
  font-weight: 400;
  letter-spacing: 0.004em;
}
.display-title {
  max-width: 980px;
  margin: 0 0 20px;
  color: #FFFFFF;
  font-size: clamp(3.4rem, 8vw, 7.15rem);
  line-height: 0.92;
  text-wrap: balance;
}
.page-title {
  margin: 0 0 16px;
  color: #FFFFFF;
  font-size: clamp(3.1rem, 7vw, 6.15rem);
  line-height: 0.94;
}
.hero-copy { max-width: 780px; margin: 0; color: #A8AFB2; font-size: clamp(0.98rem, 1.6vw, 1.08rem); }
.hero-seal {
  display: grid;
  place-items: center;
  width: 132px;
  aspect-ratio: 1;
  padding: 18px;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  background: #111214;
  color: var(--gcg-gold-main);
  font-family: var(--font-title);
  font-size: 1.45rem;
  line-height: 1;
  text-align: center;
}
.hero-seal small { display: block; margin-top: 6px; color: var(--gcg-grey-light); font-family: var(--font-body); font-size: 0.57rem; font-weight: 700; letter-spacing: 0.12em; }

.section { padding: 24px 0 76px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-title { margin: 0; color: #FFFFFF; font-size: clamp(2.3rem, 4vw, 3.7rem); line-height: 1; }
.section-note { max-width: 490px; margin: 0; color: var(--muted); font-size: 0.9rem; text-align: right; }

.glass-panel, .tool-card, .info-card {
  border: 1px solid var(--line-gold);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-card {
  position: relative;
  display: flex;
  min-height: 255px;
  overflow: hidden;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 60%, rgba(255, 191, 0, 0.025));
}
.tool-card::after { content: none; }
.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-gold-strong);
  background: #131518;
}
.tool-card-inner { position: relative; display: flex; flex-direction: column; width: 100%; padding: 26px; }
.tool-badge-row { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.tool-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--line-gold);
  border-radius: 12px;
  background: rgba(255, 191, 0, 0.11);
  color: var(--gcg-gold-main);
  font-weight: 800;
}
.status-pill { padding: 6px 9px; border-radius: 999px; background: rgba(255, 191, 0, 0.09); color: var(--gcg-gold-light); font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.tool-title { margin: 30px 0 10px; color: #FFFFFF; font-size: clamp(2rem, 4vw, 3rem); line-height: 0.98; }
.tool-description { max-width: 540px; margin: 0 0 22px; color: var(--muted); font-size: 0.9rem; }
.tool-open { margin-top: auto; color: var(--gcg-gold-main); font-weight: 800; font-size: 0.85rem; }
.coming-card { grid-column: 1 / -1; min-height: 175px; opacity: 0.76; pointer-events: none; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.info-card { padding: 21px; border-radius: var(--radius-md); background: #111214; box-shadow: none; }
.info-card-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 15px; border-radius: 10px; background: rgba(255, 191, 0, 0.10); color: var(--gcg-gold-main); font-weight: 800; }
.info-card h3 { margin: 0 0 7px; color: #FFFFFF; font-size: 1rem; }
.info-card p { margin: 0; color: var(--muted); font-size: 0.82rem; }

.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: var(--muted); text-decoration: none; font-size: 0.82rem; font-weight: 700; }
.back-link:hover { color: var(--gcg-gold-main); }
.app-hero { padding: 44px 0 28px; }
.app-shell { padding-bottom: 70px; }
.app-panel { padding: clamp(16px, 3vw, 28px); border-radius: var(--radius-lg); background: #111214; }

.primary-button, .secondary-button, .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 17px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}
.primary-button {
  border: 1px solid var(--gcg-gold-main);
  background: var(--gcg-gold-main);
  color: var(--gcg-black);
  box-shadow: none;
}
.primary-button:hover { background: var(--gcg-gold-outline-light); border-color: var(--gcg-gold-outline-light); }
.secondary-button {
  border: 1px solid var(--line);
  background: #181A1D;
  color: var(--gcg-grey-light);
}
.secondary-button:hover { border-color: var(--line-gold-strong); }
.ghost-button { border: 1px solid transparent; background: transparent; color: var(--muted); }
.primary-button:hover, .secondary-button:hover, .ghost-button:hover { transform: translateY(-1px); }
button:disabled { cursor: not-allowed; opacity: 0.42; transform: none !important; }

.site-footer { border-top: 1px solid rgba(166, 124, 0, 0.25); background: #050505; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 86px; gap: 20px; color: var(--muted); font-size: 0.75rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { width: 165px; height: auto; opacity: 0.92; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 80;
  max-width: calc(100% - 30px);
  padding: 11px 16px;
  border: 1px solid var(--line-gold-strong);
  border-radius: var(--radius-sm);
  background: #090909;
  color: var(--gcg-grey-light);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }

@media (max-width: 820px) {
  .header-inner { min-height: 72px; }
  .brand-logo { width: 220px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-seal { display: none; }
  .tool-grid { grid-template-columns: 1fr; }
  .coming-card { grid-column: auto; }
  .info-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .section-note { text-align: left; }
}
@media (max-width: 540px) {
  .shell { width: min(100% - 20px, 1160px); }
  .brand-logo { width: 178px; }
  .language-option { min-width: 39px; min-height: 33px; padding: 6px 9px; }
  .display-title { font-size: clamp(3rem, 16vw, 4.9rem); }
  .page-title { font-size: clamp(2.8rem, 14vw, 4.6rem); }
  .tool-card-inner { padding: 20px; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 20px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
