/* CHIVALRY EA HUB — CEA HUB
   Main visual system. Change the variables below to restyle the whole site. */

:root {
  --obsidian: #070A0F;
  --obsidian-2: #0B1018;
  --panel: #0F151F;
  --gold: #D7A52A;
  --gold-bright: #F0C24B;
  --silver: #D9DEE6;
  --silver-mid: #A9B1BE;
  --muted: #7F8997;
  --white: #F7F8FA;
  --line: rgba(217,222,230,.12);
  --line-strong: rgba(217,222,230,.20);
  --max: 1180px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 75% 5%, rgba(215,165,42,.09), transparent 30rem),
    radial-gradient(circle at 10% 40%, rgba(80,100,130,.07), transparent 28rem),
    var(--obsidian);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 110px 0; position: relative; }
.section-tight { padding: 78px 0; }

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 9999;
  padding: 10px 14px; border-radius: 10px;
  background: var(--gold); color: #080A0D;
  transform: translateY(-150%); transition: .2s;
}
.skip-link:focus { transform: translateY(0); }

/* Opening/loading treatment */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  display: grid; place-items: center;
  background: #06080C;
  transition: opacity .55s ease, visibility .55s ease;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; }
.loader-logo {
  width: 92px; height: 92px; object-fit: contain; margin: 0 auto 24px;
  filter: drop-shadow(0 12px 28px rgba(215,165,42,.18));
  animation: loaderPulse 1.5s ease-in-out infinite;
}
.loader-name {
  letter-spacing: .24em; font-size: 12px; font-weight: 800; color: var(--silver);
}
.loader-line {
  width: 150px; height: 2px; margin: 18px auto 0;
  background: rgba(255,255,255,.08); overflow: hidden;
}
.loader-line::after {
  content: ""; display: block; width: 45%; height: 100%;
  background: var(--gold); animation: loaderBar 1.15s ease-in-out infinite;
}
@keyframes loaderPulse { 50% { transform: translateY(-5px) scale(1.03); } }
@keyframes loaderBar { from { transform: translateX(-120%); } to { transform: translateX(340%); } }

.site-header {
  position: fixed; z-index: 1000; top: 0; left: 0; right: 0;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.scrolled {
  background: rgba(7,10,15,.78);
  backdrop-filter: blur(18px);
  border-color: var(--line);
}
.nav {
  min-height: 82px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-text { display: grid; line-height: 1; gap: 5px; }
.brand-name { font-size: 12px; letter-spacing: .16em; font-weight: 800; white-space: nowrap; }
.brand-sub { font-size: 9px; letter-spacing: .20em; color: var(--muted); text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 7px; }
.nav-links a {
  color: var(--silver-mid); font-size: 13px; font-weight: 600;
  padding: 10px 13px; border-radius: 10px;
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white); background: rgba(255,255,255,.055);
}
.nav-links a.active { box-shadow: inset 0 -1px var(--gold); }
.nav-toggle {
  display:none; border:1px solid var(--line); background:rgba(255,255,255,.03);
  color:var(--white); width:44px; height:44px; border-radius:12px; cursor:pointer;
}

.hero {
  min-height: 100svh; display: grid; align-items: center;
  padding-top: 120px; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 70px; align-items: center;
}
.eyebrow {
  display:inline-flex; align-items:center; gap:10px;
  color:var(--gold-bright); font-size:11px; font-weight:800;
  letter-spacing:.22em; text-transform:uppercase;
}
.eyebrow::before { content:""; width:30px; height:1px; background:var(--gold); }
h1, h2, h3 { margin:0; line-height:1.08; letter-spacing:-.035em; }
h1 { font-size: clamp(3.1rem, 7vw, 6.8rem); max-width: 820px; margin-top: 24px; }
h1 span { color: var(--silver-mid); font-weight: 400; }
.lead {
  max-width: 680px; color: var(--silver-mid);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem); margin: 28px 0 0;
}
.actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:36px; }
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:48px; padding:0 19px; border-radius:12px;
  border:1px solid var(--line-strong); font-size:13px; font-weight:800;
  transition: transform .2s, border-color .2s, background .2s;
}
.btn:hover { transform:translateY(-2px); border-color:rgba(215,165,42,.55); }
.btn-primary {
  background:linear-gradient(135deg, #E5B83B, #B98519);
  color:#0A0C10; border-color:transparent;
}
.btn-secondary { background:rgba(255,255,255,.035); color:var(--silver); }

.hero-mark {
  min-height: 560px; display:grid; place-items:center; position:relative;
}
.hero-mark::before {
  content:""; position:absolute; width:430px; height:430px; border-radius:50%;
  background:radial-gradient(circle, rgba(215,165,42,.13), transparent 67%);
}
.hero-mark::after {
  content:""; position:absolute; inset:15% 5%; border:1px solid rgba(217,222,230,.08);
  transform:rotate(45deg); border-radius:36px;
}
.hero-mark img {
  position:relative; z-index:2; width:min(430px, 75vw);
  filter:drop-shadow(0 35px 45px rgba(0,0,0,.55)) drop-shadow(0 0 35px rgba(215,165,42,.10));
  animation: emblemFloat 6s ease-in-out infinite;
}
@keyframes emblemFloat { 50% { transform:translateY(-10px); } }

.section-head { max-width: 720px; margin-bottom: 45px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-top: 14px; }
.section-head p { color:var(--silver-mid); margin:18px 0 0; max-width:640px; }

.cards { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.card {
  position:relative; padding:28px; min-height:240px;
  border:1px solid var(--line); border-radius:var(--radius);
  background:linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  overflow:hidden; transition:transform .25s, border-color .25s, background .25s;
}
.card::after {
  content:""; position:absolute; width:160px; height:160px; right:-90px; top:-90px;
  border-radius:50%; background:rgba(215,165,42,.08);
}
.card:hover {
  transform:translateY(-5px); border-color:rgba(215,165,42,.35);
  background:linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.018));
}
.card-number { color:var(--gold); font-size:11px; font-weight:800; letter-spacing:.18em; }
.card h3 { margin-top:28px; font-size:22px; }
.card p { color:var(--muted); margin:13px 0 0; font-size:14px; }
.card-link {
  display:inline-flex; margin-top:25px; color:var(--silver);
  font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase;
}
.card-link::after { content:"→"; color:var(--gold); margin-left:8px; transition:transform .2s; }
.card-link:hover::after { transform:translateX(4px); }

.statement {
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.statement-inner {
  display:grid; grid-template-columns:.75fr 1.25fr; gap:70px; align-items:start;
}
.statement h2 { font-size:clamp(2.2rem, 5vw, 4.5rem); }
.statement-copy { color:var(--silver-mid); font-size:18px; }
.statement-copy p { margin-top:0; margin-bottom:20px; }

.feature-panel {
  display:grid; grid-template-columns:1.1fr .9fr; gap:24px; padding:30px;
  border:1px solid var(--line); border-radius:var(--radius);
  background:linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
}
.feature-panel h3 { font-size:28px; }
.feature-panel p { color:var(--muted); }
.meta-list { display:grid; gap:10px; }
.meta-item {
  display:flex; justify-content:space-between; gap:20px; padding:14px 0;
  border-bottom:1px solid var(--line); font-size:13px;
}
.meta-item span:first-child { color:var(--muted); }
.meta-item span:last-child { color:var(--silver); font-weight:700; text-align:right; }

.page-hero { padding:170px 0 90px; }
.page-hero h1 { font-size:clamp(3rem, 7vw, 6rem); max-width:950px; }
.page-hero p { max-width:720px; color:var(--silver-mid); font-size:18px; margin-top:24px; }

.prose { max-width:800px; }
.prose h2 { font-size:32px; margin:0 0 18px; }
.prose p { color:var(--silver-mid); margin:0 0 24px; font-size:16px; }
.prose strong { color:var(--silver); }

.product-placeholder {
  min-height:380px; display:grid; place-items:center; text-align:center; padding:40px;
  border:1px dashed rgba(215,165,42,.35); border-radius:var(--radius);
  background:radial-gradient(circle at 50% 0, rgba(215,165,42,.08), transparent 45%), rgba(255,255,255,.015);
}
.product-placeholder .mark { width:70px; height:70px; margin:0 auto 22px; opacity:.9; }

.site-footer { border-top:1px solid var(--line); padding:48px 0 34px; margin-top:80px; }
.footer-grid { display:grid; grid-template-columns:1.3fr .7fr .7fr; gap:40px; }
.footer-brand { display:flex; align-items:center; gap:12px; }
.footer-brand img { width:38px; height:38px; }
.footer-copy { color:var(--muted); font-size:13px; max-width:420px; margin-top:16px; }
.footer-col h3 { font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--silver); }
.footer-col a { display:block; color:var(--muted); font-size:13px; margin-top:10px; }
.footer-col a:hover { color:var(--silver); }
.footer-bottom {
  display:flex; justify-content:space-between; gap:20px; padding-top:30px;
  margin-top:30px; border-top:1px solid var(--line); color:#626B78; font-size:11px;
}

.reveal { opacity:0; transform:translateY(18px); transition:opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity:1; transform:none; }

@media (max-width: 900px) {
  .hero-grid, .statement-inner, .feature-panel { grid-template-columns:1fr; }
  .hero-mark { min-height:420px; }
  .cards { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .footer-grid > :first-child { grid-column:1 / -1; }
}
@media (max-width: 680px) {
  .container { width:min(var(--max), calc(100% - 28px)); }
  .nav { min-height:70px; }
  .nav-toggle { display:block; }
  .nav-links {
    position:absolute; left:14px; right:14px; top:66px;
    display:grid; gap:3px; padding:10px;
    background:rgba(10,14,20,.96); border:1px solid var(--line);
    border-radius:16px; backdrop-filter:blur(18px);
    transform:translateY(-12px); opacity:0; pointer-events:none; transition:.2s;
  }
  .nav-links.open { transform:none; opacity:1; pointer-events:auto; }
  .nav-links a { padding:13px; }
  .hero { padding-top:110px; }
  h1 { font-size:clamp(3rem, 16vw, 5rem); }
  .hero-mark { min-height:350px; }
  .hero-mark img { width:min(340px, 86vw); }
  .section { padding:80px 0; }
  .page-hero { padding:130px 0 70px; }
  .footer-grid { grid-template-columns:1fr; }
  .footer-grid > :first-child { grid-column:auto; }
  .footer-bottom { flex-direction:column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:.001ms !important; animation-iteration-count:1 !important;
    scroll-behavior:auto !important; transition-duration:.001ms !important;
  }
  .reveal { opacity:1; transform:none; }
}
