/* ===== RESET & VARIABLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #050505;
  --panel: #0b0b0c;
  --panel-2: #111112;
  --hairline: rgba(212, 175, 106, 0.18);
  --hairline-soft: rgba(212, 175, 106, 0.08);

  --gold: #d4af6a;
  --gold-light: #f4e2b8;
  --gold-deep: #8a6a22;
  --gold-gradient: linear-gradient(135deg, #f4e2b8 0%, #e8c767 22%, #c6a64b 45%, #8a6a22 62%, #d4af6a 82%, #f4e2b8 100%);

  /* Warm champagne-gold body text — replaces the old near-white (#eae5da)
     so no body copy on the front screens reads as plain white. */
  --ink: #e6c98a;
  --ink-dim: #cbb27e;
  --ink-muted: #6f675c;

  --topbar-h: 60px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 60% 50% at 15% 10%, rgba(138, 106, 34, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 85%, rgba(198, 166, 75, 0.05) 0%, transparent 65%);
  color: var(--ink);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== GRAIN / VIGNETTE ===== */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 300;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse 95% 85% at 50% 30%, transparent 45%, rgba(0, 0, 0, 0.6) 100%);
}

/* ===== SHARED GOLD GRADIENT ===== */
.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== TOP BAR ===== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-h);
  z-index: 250;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.6rem;
  background: rgba(5, 5, 5, 0.72);
  border-bottom: 1px solid var(--hairline-soft);
  backdrop-filter: blur(12px);
  gap: 1rem;
}

.brand {
  font-family: 'Cormorant', serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  border: none;
  background-color: transparent;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.brand:hover { opacity: 0.8; }

.topnav {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topnav-btn {
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid transparent;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  white-space: nowrap;
}

.topnav-btn:hover {
  color: var(--gold-light);
  border-color: var(--hairline);
  background: rgba(212, 175, 106, 0.06);
}

.topnav-btn--solid {
  color: #0a0a0a;
  background: var(--gold-gradient);
  border-color: transparent;
  font-weight: 700;
}

.topnav-btn--solid:hover {
  color: #0a0a0a;
  background: var(--gold-gradient);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(198, 166, 75, 0.25);
}
.topnav-btn--trial {
  color: #0a0a0a;
  background: var(--gold-gradient);
  border-color: transparent;
  font-weight: 700;
}
.topnav-btn--trial:hover {
  color: #0a0a0a;
  background: var(--gold-gradient);
  border-color: transparent;
  box-shadow: 0 8px 22px rgba(198, 166, 75, 0.25);
}

/* ===== MAIN ===== */
.main {
  position: relative;
  z-index: 2;
  padding-top: var(--topbar-h);
  min-height: 100vh;
}

.view {
  animation: fadeUp 0.7s ease both;
}

.hidden { display: none !important; }

/* ===== HOME ===== */
.home {
  min-height: calc(100vh - var(--topbar-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.6rem;
  perspective: 1000px;
}

.home-inner {
  text-align: center;
  max-width: 640px;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

/* ===== 3D TILT (premium interactive feel) ===== */
.tilt-3d {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .home-inner, .tilt-3d { transition: none !important; }
}

.home-greeting {
  font-family: 'Cormorant', serif;
  font-size: clamp(2.5rem, 6.5vw, 4.1rem);
  font-weight: 600;
  line-height: 1.15;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
  margin-bottom: 1.6rem;
  letter-spacing: 0.05em;
}

.home-cta {
  font-family: 'Cormorant', serif;
  font-size: 1.35rem;
  letter-spacing: 0.015em;
  color: var(--gold-light);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.6rem 0.4rem;
  transition: color 0.25s ease;
}

.home-cta-link {
  color: var(--gold-light);
  border-bottom: 1px solid rgba(212, 175, 106, 0.35);
  padding-bottom: 1px;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.home-cta:hover { color: var(--ink); }
.home-cta:hover .home-cta-link {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ===== WHAT IS IBEX ===== */
.what {
  padding: 4rem 1.6rem 6rem;
}

.what-inner {
  max-width: 720px;
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

/* Textured metallic gold — used for every front-screen header, including
   "Institutional Backbone Executive". Bigger, wider letter-spacing, plus a
   soft drop-shadow so the gradient reads as brushed metal rather than flat
   color. */
.what-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.035em;
  margin-bottom: 1.1rem;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45));
}
#what .what-title--red {
  background: linear-gradient(135deg, #4a0d0d 0%, #6d2018 28%, #9a3b2f 48%, #4a0d0d 68%, #7b2a20 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: 0.075em;
  text-shadow: 0 1px 10px rgba(85, 18, 14, 0.28);
}

.what-lede {
  font-family: 'Cormorant', serif;
  font-size: 1.68rem;
  line-height: 1.74;
  color: #9a7b32;
  margin-bottom: 2.6rem;
  max-width: 62ch;
}

.feature-list {
  display: flex;
  flex-direction: column;
}

.group-head {
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 2.2rem 0 0.8rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--hairline-soft);
}

.group-head:first-child { margin-top: 0; }

.feature {
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(212, 175, 106, 0.05);
}

.feature:last-child { border-bottom: none; }

.feature h3 {
  font-family: 'Cormorant', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.2rem;
  letter-spacing: 0.01em;
}

.feature p {
  font-family: 'Cormorant', serif;
  font-size: 1.34rem;
  line-height: 1.72;
  color: #9a7b32;
  max-width: 66ch;
}

/* ===== CONTACT BLOCK ===== */
.contact {
  border-top: 1px solid var(--hairline-soft);
  padding-top: 1.8rem;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin: 1rem 0 1.2rem;
}

.contact-info p {
  color: var(--ink);
  font-family: 'Cormorant', serif;
  font-size: 0.98rem;
}

.contact-info strong {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.2rem;
}

.contact-cta {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ===== INFO PAGES (trial / buy) ===== */
.info-page {
  padding: 4rem 1.6rem 6rem;
}

.info-inner {
  max-width: 620px;
  margin: 0 auto;
}

.info-lede {
  font-family: 'Cormorant', serif;
  font-size: 1.3rem;
  color: #9a7b32;
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.info-contact {
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 1.6rem;
  margin-bottom: 1.8rem;
  background: rgba(212, 175, 106, 0.03);
  text-align: center;
}

.info-contact-line {
  font-family: 'Cormorant', serif;
  font-size: 1.55rem;
  font-weight: 700;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.info-contact-or {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0.55rem 0;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.info-list li {
  font-family: 'Cormorant', serif;
  font-size: 1.05rem;
  color: var(--ink);
  padding-left: 1.4rem;
  position: relative;
}

.info-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .topnav-btn { font-size: 0.55rem; padding: 0.45rem 0.55rem; }
}

@media (max-width: 640px) {
  :root { --topbar-h: 96px; }

  .topbar {
    padding: 0.5rem 0.9rem;
    flex-wrap: wrap;
    height: auto;
    min-height: var(--topbar-h);
    align-items: center;
  }

  .brand { font-size: 1.05rem; letter-spacing: 0.12em; }

  .topnav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.2rem;
    padding-bottom: 0.35rem;
  }

  .topnav-btn {
    font-size: 0.52rem;
    padding: 0.4rem 0.5rem;
    letter-spacing: 0.05em;
  }

  .home-cta { font-size: 1.15rem; }

  .what, .info-page { padding: 3rem 1.2rem 5rem; }

}

@media (max-width: 640px) {
  .what-lede { font-size: 1.3rem; line-height: 1.7; }
  .feature p { font-size: 1.14rem; line-height: 1.66; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-deep); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
