/* ==========================================================================
   IGE — International Gem Exchange
   Dark luxury theme · Champagne gold on charcoal
   ========================================================================== */

:root {
  /* Palette — matched to the IGE wordmark on dark navy */
  --bg:            #1a2030;          /* matches the logo backdrop */
  --bg-elev:       #232a3d;
  --bg-elev-2:     #2c344a;
  --surface:       #1f2638;
  --line:          rgba(232, 212, 168, 0.16);
  --line-strong:   rgba(232, 212, 168, 0.42);

  --gold:          #d8c089;          /* warm champagne, lifted from the diamond */
  --gold-light:    #f0e0b8;
  --gold-deep:     #a89060;

  --ink:           #f4f1ec;
  --ink-muted:     #a8b0c2;
  --ink-faint:     #6e7689;

  --danger:        #c97770;
  --success:       #87a878;

  /* Type */
  --font-display:  "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --font-body:     "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Sizing */
  --container:     1240px;
  --container-narrow: 880px;
  --radius:        2px;
  --radius-lg:     4px;

  /* Motion */
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
a:hover { color: var(--gold-light); }

button { font: inherit; }

/* Selection */
::selection {
  background: var(--gold);
  color: var(--bg);
}

/* Scrollbar (WebKit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-elev-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.1;
  margin: 0 0 0.6em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.15rem; font-weight: 500; }

p { margin: 0 0 1.2em; color: var(--ink); }
p.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-muted);
  line-height: 1.75;
  font-weight: 300;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.5rem 0 2rem;
  border: 0;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container.narrow { max-width: var(--container-narrow); }

section { padding: clamp(72px, 10vw, 140px) 0; }

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  section { padding: 64px 0; }
}

.center { text-align: center; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(26, 32, 48, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(26, 32, 48, 0.94);
  border-bottom-color: var(--line);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  display: block;
  height: 38px;
  width: auto;
  /* Logo is on the same dark navy as the page so it blends in cleanly */
}
.nav.scrolled .brand img { height: 32px; transition: height 0.3s var(--ease); }
.brand img { transition: height 0.3s var(--ease); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  padding: 0; margin: 0;
}
.nav-links a {
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: 10px 22px;
  border: 1px solid var(--gold);
  color: var(--gold) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.22em !important;
  transition: all 0.3s var(--ease);
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--bg) !important;
}
.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--gold);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    padding: 24px 32px;
    transform: translateY(-110%);
    transition: transform 0.4s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-toggle { display: inline-flex; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 38px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--bg);
  transition: all 0.35s var(--ease);
  border-radius: var(--radius);
}
.btn:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -12px rgba(201, 169, 110, 0.5);
}
.btn-ghost {
  background: transparent;
  color: var(--gold);
}
.btn-ghost:hover {
  background: var(--gold);
  color: var(--bg);
}
.btn-arrow::after {
  content: "→";
  font-size: 1.1em;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn-arrow::after,
.btn.btn-arrow:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 80px;
  overflow: hidden;
  background:
    linear-gradient(95deg, rgba(26,32,48,0.96) 0%, rgba(26,32,48,0.78) 45%, rgba(26,32,48,0.40) 75%, rgba(26,32,48,0.55) 100%),
    url("gem-hero-sapphire.jpg") right center / cover no-repeat,
    radial-gradient(circle at 30% 30%, #2a3148 0%, #1a2030 70%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 35%, rgba(216, 192, 137, 0.10) 0%, transparent 55%);
  pointer-events: none;
}

.hero-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 28px;
  opacity: 0.95;
}

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

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 300;
  margin-bottom: 0.3em;
  line-height: 1.02;
}
.hero h1 .accent {
  font-style: italic;
  color: var(--gold);
}

.hero .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--gold-light);
  margin: 0.8em 0 1.6em;
  font-weight: 300;
}

.hero .lead {
  max-width: 640px;
  font-size: 1.08rem;
  color: var(--ink-muted);
  margin-bottom: 2.4rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-meta {
  position: absolute;
  bottom: 40px;
  left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: end;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

@media (max-width: 700px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(26,32,48,0.92) 0%, rgba(26,32,48,0.65) 50%, rgba(26,32,48,0.95) 100%),
      url("gem-hero-sapphire.jpg") center 35% / cover no-repeat,
      var(--bg);
    padding: 160px 0 130px;
  }
  .hero-logo {
    max-width: 130px;
    margin-bottom: 40px;
  }
  .eyebrow {
    margin-bottom: 28px;
    line-height: 1.8;
  }
  .hero h1 {
    font-size: clamp(2.1rem, 8.5vw, 2.8rem);
    line-height: 1.32;
    margin-bottom: 0.9em;
  }
  .hero .tagline {
    font-size: 1.02rem;
    line-height: 1.65;
    margin: 0.7em 0 2em;
  }
  .hero .lead {
    font-size: 0.98rem;
    line-height: 1.85;
    margin-bottom: 2.6rem;
  }
  .hero-actions { gap: 14px; margin-top: 1.2rem; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: 18px 28px; }
  .hero-meta { bottom: 28px; font-size: 0.65rem; gap: 14px; }
  .hero-meta .scroll-cue::after { display: none; }
}
.hero-meta .scroll-cue {
  display: flex; align-items: center; gap: 12px;
}
.hero-meta .scroll-cue::after {
  content: "";
  width: 1px; height: 36px;
  background: linear-gradient(180deg, var(--gold), transparent);
  display: inline-block;
  animation: cuePulse 2.4s var(--ease) infinite;
}
@keyframes cuePulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

@media (max-width: 700px) {
  .hero-meta { flex-direction: column; gap: 12px; align-items: start; }
}

/* ==========================================================================
   Section headers
   ========================================================================== */

.section-head {
  max-width: 720px;
  margin-bottom: 4rem;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 .accent { font-style: italic; color: var(--gold); }

/* ==========================================================================
   Pillars (Why IGE)
   ========================================================================== */

.section-pillars {
  background: var(--bg);
  position: relative;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.pillar {
  background: var(--bg);
  padding: 48px 36px;
  transition: background 0.4s var(--ease);
  position: relative;
}
.pillar:hover { background: var(--bg-elev); }

.pillar-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 24px;
}

.pillar h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.pillar p {
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.7;
}

/* ==========================================================================
   How it works (steps)
   ========================================================================== */

.section-how {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 50%, var(--bg) 100%);
  position: relative;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 28px; left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
  opacity: 0.4;
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 12px;
}

.step-num {
  width: 56px; height: 56px;
  margin: 0 auto 24px;
  display: grid; place-items: center;
  background: var(--bg);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.4rem;
  border-radius: 50%;
}

.step h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin: 0;
}

@media (max-width: 880px) {
  .steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .steps::before { display: none; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Subgroups
   ========================================================================== */

.section-subgroups { background: var(--bg); }

.subgroups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.subgroup {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.subgroup:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.subgroup::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-deep));
}

.subgroup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.subgroup-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid var(--line-strong);
  color: var(--gold);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.subgroup h3 {
  font-size: 1.8rem;
  margin: 0 0 10px;
}

.subgroup .subgroup-quota {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.subgroup p {
  color: var(--ink-muted);
  font-size: 0.98rem;
  margin-bottom: 24px;
}

.subgroup-list {
  list-style: none;
  padding: 0; margin: 0;
}
.subgroup-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.92rem;
  display: flex;
  align-items: start;
  gap: 12px;
}
.subgroup-list li:last-child { border-bottom: 0; }
.subgroup-list li::before {
  content: "◆";
  color: var(--gold);
  font-size: 0.7em;
  margin-top: 0.4em;
}

@media (max-width: 880px) {
  .subgroups { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Founder / credibility
   ========================================================================== */

.section-founder {
  background: var(--bg-elev);
  position: relative;
  overflow: hidden;
}
.section-founder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("gem-sapphire-burma.jpg") center / cover no-repeat;
  opacity: 0.06;
  pointer-events: none;
}

.founder-brandmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin-bottom: 72px;
  position: relative;
}
.founder-brandmark img {
  height: 110px;
  width: auto;
  opacity: 0.95;
}
.founder-brandmark .kicker {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
}

.founder-image {
  position: relative;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: transparent;
  border: 0;
}
.founder-bp-logo {
  max-width: 38%;
  max-height: 42%;
  width: auto;
  height: auto;
  opacity: 1;
}

.founder-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.founder-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding-left: 24px;
  margin: 32px 0;
  line-height: 1.5;
}
.founder-cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

@media (max-width: 880px) {
  .founder-grid { grid-template-columns: 1fr; gap: 48px; }
  .founder-image { max-width: 480px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .founder-brandmark { margin-bottom: 48px; }
  .founder-brandmark img { height: 84px; }
  .founder-image {
    aspect-ratio: auto;
    padding: 24px 0;
  }
  .founder-bp-logo { width: clamp(100px, 34%, 146px); max-width: 34%; max-height: none; }
  .founder-stats {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }
  .founder-quote {
    padding-left: 18px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .gallery .label {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    bottom: 12px; left: 12px;
    right: 12px;
  }
}

/* ==========================================================================
   Gallery strip
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.gallery-item {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 32, 48, 0.4);
  transition: background 0.4s var(--ease);
}
.gallery-item:hover::after { background: rgba(26, 32, 48, 0.05); }
.gallery-item .label {
  position: absolute;
  bottom: 16px; left: 16px;
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-light);
}
@media (max-width: 700px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Application form
   ========================================================================== */

.section-apply {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--bg-elev) 100%);
  position: relative;
}

.apply-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.apply-aside {
  position: sticky;
  top: 120px;
}

.apply-aside h2 {
  margin-bottom: 24px;
}

.apply-aside .lead {
  font-size: 1rem;
  color: var(--ink-muted);
}

.apply-checks {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.apply-checks li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--ink);
}
.apply-checks li:last-child { border-bottom: 1px solid var(--line); }
.apply-checks li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 600;
  flex-shrink: 0;
}

.form {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 48px;
}

.form-section {
  padding-bottom: 32px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.form-section:last-of-type { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.form-section h3 {
  font-size: 1.3rem;
  margin-bottom: 4px;
}
.form-section .form-section-hint {
  color: var(--ink-muted);
  font-size: 0.86rem;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
.form-row.full { grid-template-columns: 1fr; }

.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 500;
}
.form-field label .req { color: var(--ink-muted); margin-left: 4px; font-size: 0.78em; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 12px 0;
  transition: border-color 0.3s var(--ease);
  border-radius: 0;
  outline: none;
}
.form-field textarea {
  border: 1px solid var(--line-strong);
  padding: 14px 16px;
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--ink-faint); }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--gold); }

.form-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 16px) 18px, calc(100% - 11px) 18px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
  padding-right: 30px;
}
.form-field select option { background: var(--bg-elev); color: var(--ink); }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  margin-top: 8px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--ink);
}
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }

.radio-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  cursor: pointer;
  margin: 0;
}
.radio-row input { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }

.form-foot {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.consent {
  display: flex;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.55;
}
.consent input { margin-top: 4px; accent-color: var(--gold); flex-shrink: 0; }

.form-success,
.form-error {
  display: none;
  padding: 18px 22px;
  font-size: 0.94rem;
  border: 1px solid;
  margin-bottom: 24px;
}
.form-success {
  border-color: var(--success);
  background: rgba(135, 168, 120, 0.08);
  color: var(--success);
}
.form-error {
  border-color: var(--danger);
  background: rgba(201, 119, 112, 0.08);
  color: var(--danger);
}
.form-success.show, .form-error.show { display: block; }

@media (max-width: 980px) {
  .apply-grid { grid-template-columns: 1fr; gap: 48px; }
  .apply-aside { position: static; }
  .form { padding: 32px 24px; }
  .form-row, .form-row.three { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Page header (sub-pages)
   ========================================================================== */

.page-header {
  padding: 200px 0 100px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(26,32,48,0.85) 0%, var(--bg) 100%),
    url("gem-emerald-colombia.jpg") center / cover no-repeat,
    var(--bg);
  text-align: center;
}
.page-header h1 { margin-bottom: 0.4em; }
.page-header .lead { max-width: 720px; margin: 0 auto; }

/* ==========================================================================
   Rules page
   ========================================================================== */

.rules-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 80px;
  align-items: start;
}

.rules-toc {
  position: sticky;
  top: 120px;
  font-size: 0.86rem;
}
.rules-toc h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.rules-toc ul { list-style: none; padding: 0; margin: 0; }
.rules-toc li {
  border-left: 1px solid var(--line);
  padding: 10px 0 10px 18px;
  transition: border-color 0.3s var(--ease);
}
.rules-toc li:hover,
.rules-toc li.active { border-left-color: var(--gold); }
.rules-toc a {
  color: var(--ink-muted);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}
.rules-toc a:hover, .rules-toc li.active a { color: var(--ink); }

.rule-block {
  padding-bottom: 56px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.rule-block:last-child { border-bottom: 0; }
.rule-block h2 { margin-bottom: 18px; }
.rule-block .rule-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 12px;
}
.rule-block p { color: var(--ink-muted); }
.rule-block p strong { color: var(--ink); font-weight: 500; }

.rule-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.rule-list li {
  padding: 12px 0 12px 28px;
  position: relative;
  color: var(--ink);
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--line);
}
.rule-list li:last-child { border-bottom: 0; }
.rule-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 14px;
  color: var(--gold);
  font-size: 0.7em;
}

/* Template card */
.template {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  padding: 28px 32px;
  margin: 24px 0;
  position: relative;
}
.template-label {
  display: inline-block;
  background: var(--gold);
  color: var(--bg);
  padding: 4px 12px;
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
.template pre {
  margin: 0;
  font-family: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--ink);
  white-space: pre-wrap;
  word-wrap: break-word;
}
.template pre .field { color: var(--gold); }
.template pre .value { color: var(--ink-muted); }

.example {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 24px 28px;
  margin: 16px 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--ink);
  white-space: pre-wrap;
}
.example .label-good {
  display: inline-block;
  color: var(--success);
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}
.example .label-bad {
  display: inline-block;
  color: var(--danger);
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}

.do-dont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.do-dont .col {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.do-dont .col h4 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.do-dont .do h4 { color: var(--success); }
.do-dont .dont h4 { color: var(--danger); }
.do-dont ul { list-style: none; padding: 0; margin: 0; font-size: 0.92rem; color: var(--ink-muted); }
.do-dont li { padding: 8px 0 8px 24px; position: relative; }
.do-dont .do li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 600; }
.do-dont .dont li::before { content: "✕"; position: absolute; left: 0; color: var(--danger); font-weight: 600; }

@media (max-width: 880px) {
  .rules-grid { grid-template-columns: 1fr; gap: 32px; }
  .rules-toc { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .do-dont { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CTA banner
   ========================================================================== */

.cta-banner {
  background:
    linear-gradient(180deg, rgba(26,32,48,0.92), rgba(26,32,48,0.96)),
    url("gem-ruby-burma.jpg") center / cover no-repeat,
    var(--bg-elev);
  text-align: center;
  padding: 100px 0;
}
.cta-banner h2 { margin-bottom: 0.4em; }
.cta-banner h2 .accent { color: var(--gold); font-style: italic; }
.cta-banner .lead { max-width: 620px; margin: 0 auto 2rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 72px 0 32px;
  color: var(--ink-muted);
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer p { font-size: 0.9rem; color: var(--ink-muted); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 6px 0; }
.footer li a { color: var(--ink-muted); }
.footer li a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
}

@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
