/* GGLME — modern static redesign
   Palette kept from the original brand: dark navy background, pink/red accent. */

:root {
  --navy: #090d24;
  --navy-2: #12172f;
  --navy-3: #1b2140;
  --accent: #d91e51;
  --accent-2: #ba1a45;
  --text: #eef0fb;
  --text-dim: #b7bcd9;
  --border: #262c4d;
  --radius: 14px;
  --maxw: 1180px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head: "Sora", "Inter", -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 1000;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* Focus visibility for keyboard users */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
/* Background + blur live on a pseudo-element rather than on .site-header
   itself: a `backdrop-filter` directly on an ancestor turns it into the
   containing block for `position: fixed` descendants (the mobile nav
   panel below), which collapses the panel's height. Keeping the filter
   off the header element sidesteps that while keeping the same look. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(9, 13, 36, 0.86);
  backdrop-filter: blur(8px);
  z-index: -1;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.brand img { height: 32px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a:focus-visible { color: #fff; }

.lang-switch {
  display: flex;
  gap: 6px;
  align-items: center;
  border-left: 1px solid var(--border);
  padding-left: 20px;
  margin-left: 4px;
}
.lang-switch a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  padding: 4px 8px;
  border-radius: 6px;
}
.lang-switch a[aria-current="true"] {
  color: #fff;
  background: var(--accent);
}
.lang-switch a:hover:not([aria-current="true"]) { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  padding: 8px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    transform: translateX(100%);
    transition: transform .25s ease;
    overflow-y: auto;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 18px; width: 100%; }
  .main-nav ul a { font-size: 1.1rem; }
  .lang-switch { border-left: none; padding-left: 0; margin-left: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 90px;
  background-color: var(--navy);
  background-image:
    linear-gradient(180deg, rgba(9,13,36,0.55) 0%, rgba(9,13,36,0.88) 65%, var(--navy) 100%),
    url("../images/map.png");
  background-repeat: no-repeat;
  background-position: center 40%;
  background-size: cover;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 18px;
  color: #fff;
}

.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-dim);
  margin: 0 0 32px;
  max-width: 560px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-2); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: var(--navy-2); }

/* ---------- Section shell ---------- */
section { padding: 90px 0; }
section + section { border-top: 1px solid var(--border); }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  color: #fff;
  margin: 0 0 14px;
}
.section-head p {
  color: var(--text-dim);
  margin: 0;
  font-size: 1.05rem;
}

/* ---------- Intro ---------- */
.intro-text {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.08rem;
  color: var(--text-dim);
}
.intro-text p { margin: 0 0 20px; }
.intro-text strong { color: #fff; }
.intro-signoff {
  margin-top: 32px;
  color: var(--text);
  font-style: italic;
}

/* ---------- Advantages ---------- */
.grid-advantages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.card {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(217, 30, 81, 0.14);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.35rem;
}

.card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin: 0 0 10px;
  color: #fff;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.97rem;
}

/* ---------- The problem ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.problem-item .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(217, 30, 81, 0.14);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.problem-item h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: #fff;
}
.problem-item p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.97rem;
}

/* ---------- Capability card badge ---------- */
.card-badge { position: relative; }
.badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}

/* ---------- How it works ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.step { text-align: center; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 18px;
}
.step h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: #fff;
}
.step p {
  margin: 0 auto;
  max-width: 320px;
  color: var(--text-dim);
  font-size: 0.97rem;
}

/* ---------- Who it's for ---------- */
.who-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.who-item {
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.who-item .icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(217, 30, 81, 0.14);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.who-item h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  margin: 0;
  color: #fff;
}

/* ---------- Legal pages ---------- */
.legal { padding-top: 64px; }
.inline-link { color: var(--accent); text-decoration: underline; }
.inline-link:hover { color: var(--accent-2); }

/* ---------- Contact ---------- */
.contact-box {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  background: var(--navy-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 32px;
}
.contact-box p { color: var(--text-dim); font-size: 1.05rem; }
.contact-email {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin: 18px 0 26px;
  word-break: break-word;
}
.contact-email:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img { height: 24px; }
.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0;
}
.footer-copy a { color: var(--text-dim); text-decoration: underline; }
.footer-lang {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
}
.footer-lang a { color: var(--text-dim); text-decoration: none; }
.footer-lang a[aria-current="true"] { color: var(--accent); font-weight: 700; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.error-page .container { max-width: 560px; }
.error-page h1 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 8vw, 4rem);
  color: var(--accent);
  margin: 0 0 10px;
}
.error-page h2 { margin: 0 0 16px; font-family: var(--font-head); }
.error-page p { color: var(--text-dim); margin: 0 0 30px; }
.error-langs { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 600px) {
  .hero { padding: 100px 0 70px; }
  section { padding: 64px 0; }
  .contact-box { padding: 36px 20px; }
}
