/* Imperator Systems Group — shared stylesheet for all public pages. */

:root {
  color-scheme: dark;
  --obsidian: #0a0a0c;
  --obsidian-deep: #050506;
  --panel: #141418;
  --panel-2: #1d1d22;
  --gold: #b8923c;
  --gold-bright: #f4d77a;
  --silver: #c4c4ca;
  --text: #f7f3e8;
  --muted: #cfc9bc;
  --line: rgba(196, 196, 202, .16);
  --line-gold: rgba(244, 215, 122, .45);
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --radius: 20px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% -4%, rgba(184, 146, 60, .22), transparent 36rem),
    radial-gradient(circle at 88% 12%, rgba(196, 196, 202, .08), transparent 30rem),
    linear-gradient(170deg, var(--obsidian-deep) 0%, var(--obsidian) 46%, #100e0a 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(244, 215, 122, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 215, 122, .03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 72%);
}

a { color: inherit; }

::selection { background: rgba(244, 215, 122, .28); }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(1120px, calc(100% - 36px)); margin: 0 auto; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold-bright);
  color: var(--obsidian);
  font-weight: 800;
  text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* Header ----------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 12, .78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
}

.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; }
.mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand strong { display: block; font-size: 1.02rem; letter-spacing: .03em; }
.brand .tagline { display: block; color: var(--silver); font-size: .84rem; }

.navlinks { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: .95rem; }
.navlinks a { text-decoration: none; position: relative; padding: 4px 0; }
.navlinks a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--gold-bright);
  transition: right .25s var(--ease);
}
.navlinks a:hover::after { right: 0; }
.navlinks .button { padding: 9px 16px; min-height: 0; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

/* Buttons ----------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  letter-spacing: .01em;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}
.button.primary {
  color: var(--obsidian);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  box-shadow: 0 10px 30px rgba(184, 146, 60, .28);
}
.button.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(184, 146, 60, .4); }
.button.secondary {
  color: var(--gold-bright);
  border: 1px solid var(--line-gold);
  background: rgba(10, 10, 12, .25);
}
.button.secondary:hover { transform: translateY(-2px); background: rgba(244, 215, 122, .08); }

/* Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(64px, 10vw, 110px) 0 64px;
}

.hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  border: 1px solid rgba(244, 215, 122, .16);
  box-shadow: inset 0 0 90px rgba(244, 215, 122, .07), 0 0 90px rgba(184, 146, 60, .07);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold-bright);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .76rem;
  font-weight: 800;
  border: 1px solid rgba(244, 215, 122, .3);
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(244, 215, 122, .06);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 14px rgba(244, 215, 122, .8);
}

h1 {
  max-width: 980px;
  margin: 22px 0 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6.6vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -.02em;
}

h1 em {
  font-style: italic;
  background: linear-gradient(115deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead { max-width: 760px; color: var(--muted); font-size: clamp(1.05rem, 2.2vw, 1.28rem); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.trust { margin-top: 26px; color: var(--silver); font-size: .95rem; max-width: 640px; }

/* Sections and cards ------------------------------------------------ */

section { padding: 44px 0; }

.kicker {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .74rem;
  font-weight: 800;
  margin: 0 0 10px;
}

h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -.01em;
}

h3 { margin: 0 0 10px; font-size: 1.2rem; }
p { margin: 0 0 14px; }
ul { padding-left: 1.15rem; margin: 14px 0 0; }
li { margin: 8px 0; }
.muted { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(29, 29, 34, .95), rgba(12, 12, 15, .92));
  padding: 26px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 215, 122, .35);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .42);
}
.card.featured {
  border-color: var(--line-gold);
  background:
    linear-gradient(160deg, rgba(184, 146, 60, .12), transparent 42%),
    linear-gradient(160deg, rgba(29, 29, 34, .95), rgba(12, 12, 15, .92));
  box-shadow: 0 24px 80px rgba(184, 146, 60, .16);
}

/* Process steps ------------------------------------------------------ */

.process .grid { counter-reset: step; }
.step { position: relative; padding-top: 62px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 26px;
  top: 20px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--obsidian);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  width: 44px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

/* Form --------------------------------------------------------------- */

form { display: grid; gap: 16px; margin-top: 20px; }
label { display: grid; gap: 7px; color: var(--silver); font-weight: 600; font-size: .95rem; }

input, textarea, select {
  width: 100%;
  border: 1px solid rgba(196, 196, 202, .22);
  border-radius: 12px;
  background: #0f0f13;
  color: var(--text);
  padding: 13px 14px;
  font: inherit;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--line-gold);
  box-shadow: 0 0 0 3px rgba(244, 215, 122, .14);
}
textarea { min-height: 130px; resize: vertical; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.small { color: var(--silver); font-size: .92rem; }

/* Spam trap: visually removed but present for bots that fill every field. */
.hp-field {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Footer -------------------------------------------------------------- */

.site-footer {
  margin-top: 40px;
  padding: 30px 0 44px;
  color: var(--silver);
  border-top: 1px solid var(--line);
  font-size: .94rem;
}
.site-footer .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--silver); text-decoration: none; }
.foot-links a:hover { color: var(--gold-bright); }

/* Legal / secondary pages ---------------------------------------------- */

.legal main { width: min(860px, calc(100% - 36px)); margin: 0 auto; padding: 48px 0 64px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
.legal h2 { margin-top: 34px; font-size: 1.35rem; color: var(--gold-bright); }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--gold-bright); }

/* Reveal-on-scroll (progressive enhancement; no-JS visitors see everything). */

html.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .button, .card, .navlinks a::after { transition: none; }
}

/* Responsive ------------------------------------------------------------ */

@media (max-width: 880px) {
  .navlinks {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: var(--obsidian);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
  }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 13px 4px; border-bottom: 1px solid rgba(196, 196, 202, .08); }
  .navlinks a::after { display: none; }
  .navlinks .button { margin-top: 12px; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .brand .tagline { display: none; }
  .hero { padding-top: 52px; }
  .hero::after { display: none; }
  .grid, .grid.two, .form-grid { grid-template-columns: 1fr; }
}
