/* E2A Group — Shared Design System */

:root {
  --bg: #000000;
  --bg-soft: #080808;
  --bg-card: #0f0f0f;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
  --text: #eef2f6;
  --text-dim: #9aa7b4;
  --text-faint: #67737f;
  --gold: #c9a86a;
  --gold-bright: #dfc189;
  --gold-soft: rgba(201,168,106,0.12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--gold); color: #0b0f14; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
section { position: relative; }

/* Typography */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 24px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h2 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.12; }
.lede { font-size: 17px; color: var(--text-dim); max-width: 620px; line-height: 1.7; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Navigation */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 32px; transition: padding 0.4s;
}
header.scrolled { padding: 10px 32px; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 8px 0 28px;
  background: rgba(8,8,8,0.55);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
  transition: background 0.4s, box-shadow 0.4s;
}
header.scrolled .nav {
  background: rgba(4,4,4,0.82);
  box-shadow: 0 16px 48px rgba(0,0,0,0.65), inset 0 1px 0 rgba(255,255,255,0.08);
}
.logo { text-decoration: none; display: flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; transition: height 0.4s; }
header.scrolled .logo img { height: 44px; }
.nav-links { display: flex; gap: 2px; align-items: center; list-style: none; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 100px;
  transition: color 0.25s, background 0.25s;
}
.nav-links a::after { display: none; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.07); }
.nav-links a.active { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-cta {
  display: inline-block !important; padding: 11px 24px;
  background: var(--gold); color: #000 !important;
  border: none; border-radius: 100px; font-size: 12px !important;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700 !important;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s !important;
  margin-left: 6px;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-bright) !important; color: #000 !important; transform: scale(1.04); box-shadow: 0 4px 20px rgba(201,168,106,0.4); }

.burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 110; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.3s var(--ease); border-radius: 2px; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none;
  border-radius: 100px; transition: all 0.3s var(--ease);
  cursor: pointer; font-family: var(--sans); border: 1px solid transparent;
}
.btn-primary { background: var(--gold); color: #0b0f14; }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201,168,106,0.3); }
.btn-ghost { border: 1px solid rgba(255,255,255,0.14); color: var(--text); background: rgba(255,255,255,0.04); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); background: rgba(201,168,106,0.06); }
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* Sections */
.section { padding: 120px 0; }
.section-alt { background: rgba(255,255,255,0.018); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,0.07); border-bottom: 1px solid rgba(255,255,255,0.07); }
.section-head { margin-bottom: 64px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }

/* Card base */
.card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px; padding: 36px 32px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent 70%);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.14); box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,168,106,0.08); }
.card:hover::before { transform: scaleX(1); }

/* Inner page hero */
.page-hero {
  padding: 160px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 400px at 72% -15%, rgba(201,168,106,0.09), transparent 60%);
}
.page-hero h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.07; max-width: 14ch; }
.page-hero .lede { margin-top: 22px; max-width: 560px; }

/* Shared form styles */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px; padding: 14px 16px; color: var(--text);
  font-family: var(--sans); font-size: 15px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s; width: 100%;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa7b4' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,106,0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.form-submit { grid-column: 1 / -1; }
.form-submit .btn { width: 100%; justify-content: center; }
.form-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-faint); text-align: center; }
.form-success {
  grid-column: 1 / -1; display: none; padding: 18px 20px;
  border: 1px solid rgba(120,200,140,0.4); background: rgba(120,200,140,0.08);
  color: #a9dcb6; border-radius: 3px; font-size: 14px;
}

/* Footer */
footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 80px 0 40px; background: rgba(255,255,255,0.02); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { font-size: 14px; color: var(--text-faint); max-width: 300px; line-height: 1.65; }
.footer-col h4 { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 20px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--text-dim); text-decoration: none; font-size: 14px; transition: color 0.25s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; color: var(--text-faint); }
.footer-tag { font-family: var(--serif); font-style: italic; color: var(--text-dim); font-size: 14px; }
.disclosure { font-size: 12px; color: var(--text-faint); line-height: 1.7; max-width: 900px; margin-top: 24px; }

/* ============================================
   Article / Blog detail pages
   ============================================ */
.article-hero {
  padding: 150px 0 56px;
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.article-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 420px at 75% -20%, rgba(201,168,106,0.10), transparent 60%);
}
.breadcrumb {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-faint); margin-bottom: 26px;
}
.breadcrumb a { color: var(--text-dim); text-decoration: none; transition: color 0.25s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: 0.5; }
.article-cat {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px; display: block;
}
.article-hero h1 {
  font-size: clamp(32px, 5vw, 56px); line-height: 1.08; max-width: 20ch;
}
.article-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 28px; font-size: 13.5px; color: var(--text-faint);
}
.article-meta .author { color: var(--text-dim); font-weight: 500; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gold); opacity: 0.7; }

.article-feature { max-width: 920px; margin: 0 auto 4px; }
.article-feature img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  border-radius: 14px; border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 24px 56px rgba(0,0,0,0.45);
}

.article-wrap { padding: 72px 0 100px; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-body > p { font-size: 17px; color: var(--text-dim); line-height: 1.85; margin-bottom: 24px; }
.article-body > p:first-of-type { font-size: 19px; color: var(--text); line-height: 1.7; }
.article-body h2 {
  font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; color: var(--text);
  margin: 60px 0 22px;
}
.article-body h3 {
  font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.3;
  color: var(--text); margin: 40px 0 16px;
}
.article-body h4 {
  font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--gold); margin: 32px 0 12px;
}
.article-body ul, .article-body ol { margin: 0 0 24px; padding-left: 4px; list-style: none; }
.article-body li {
  position: relative; padding-left: 26px; margin-bottom: 14px;
  font-size: 16.5px; color: var(--text-dim); line-height: 1.7;
}
.article-body ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); opacity: 0.85;
}
.article-body ol { counter-reset: li; }
.article-body ol li { counter-increment: li; }
.article-body ol li::before {
  content: counter(li); position: absolute; left: 0; top: 1px;
  font-family: var(--serif); font-size: 14px; color: var(--gold); font-weight: 500;
}
.article-body strong { color: var(--text); font-weight: 600; }
.article-body blockquote {
  margin: 36px 0; padding: 24px 28px;
  border-left: 2px solid var(--gold);
  background: rgba(201,168,106,0.05); border-radius: 0 12px 12px 0;
  font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.5;
  color: var(--text);
}
.article-divider { height: 1px; background: var(--line); margin: 56px 0; border: none; }
.article-back {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; color: var(--gold);
  text-transform: uppercase; letter-spacing: 0.07em; text-decoration: none;
  margin-top: 64px; transition: gap 0.3s;
}
.article-back:hover { gap: 14px; }
.article-back svg { transform: scaleX(-1); }

/* Back to top */
.to-top {
  position: fixed; bottom: 28px; right: 28px; width: 46px; height: 46px;
  border: 1px solid rgba(255,255,255,0.10); background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, border-color 0.3s, transform 0.3s; z-index: 90;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--gold); transform: translateY(-3px); }
.to-top svg { stroke: var(--text-dim); }
.to-top:hover svg { stroke: var(--gold); }

/* Responsive */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  header { padding: 12px 16px; }
  .nav-links {
    position: fixed; inset: 0; background: rgba(4,4,4,0.96);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    flex-direction: column; justify-content: center;
    gap: 8px; transform: translateX(100%); transition: transform 0.45s var(--ease);
    border-radius: 0;
  }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 20px; padding: 12px 20px; }
  .burger { display: block; }
  .section { padding: 88px 0; }
  .container { padding: 0 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 120px 0 64px; }
}
