/* ========================================================
   AI GENTS — Global Stylesheet v2 (with logo integration)
   ======================================================== */

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

:root {
  --black:       #0C0C0C;
  --surface:     #0F1117;
  --surface-2:   #151921;
  --rule:        #1E2330;
  --rule-light:  #252D3D;
  --accent:      #C8A96E;
  --accent-dim:  #8B7040;
  --accent-pale: rgba(200,169,110,0.1);
  --text-1:      #F5F4F0;
  --text-2:      #8E95AB;
  --text-3:      #4C5269;
  --serif:       'Playfair Display', Georgia, serif;
  --sans:        'DM Sans', system-ui, sans-serif;
  --mono:        'DM Mono', monospace;
  --max:         1200px;
  --nav-h:       72px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black); color: var(--text-1);
  font-family: var(--sans); font-weight: 300;
  line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(38px, 5.5vw, 78px); letter-spacing: -0.015em; }
h2 { font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -0.01em; }
h3 { font-size: clamp(20px, 2vw, 26px); }
p  { line-height: 1.75; }
a  { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 44px; }
.section    { padding: 100px 0; }
.section-sm { padding: 64px 0; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h);
  background: rgba(12,12,12,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(200,169,110,0.1);
  transition: border-color 0.3s;
}
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 44px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}

/* Logo using the actual image */
.nav-logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-img {
  width: 40px; height: 40px;
  object-fit: contain;
  filter: brightness(1);
  transition: opacity 0.2s;
}
.nav-logo:hover .nav-logo-img { opacity: 0.85; }
.nav-logo-text {
  font-family: var(--serif); font-size: 19px;
  letter-spacing: 0.06em; color: var(--text-1);
  line-height: 1;
}
.nav-logo-text em { color: var(--accent); font-style: normal; }

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-2); transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-cta {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 24px; border: 1px solid var(--accent);
  color: var(--accent); background: transparent; cursor: pointer;
  font-family: var(--sans); transition: all 0.22s; white-space: nowrap;
}
.nav-cta:hover { background: var(--accent); color: var(--black); }
.nav-mobile-toggle {
  display: none; background: none; border: none;
  color: var(--text-2); cursor: pointer; padding: 4px;
}

/* ── PAGE HEADER ── */
.page-header { padding: calc(var(--nav-h) + 72px) 0 72px; border-bottom: 1px solid var(--rule); }
.page-header .eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
}
.page-header .eyebrow::before { content: ''; display: block; width: 40px; height: 1px; background: var(--accent); }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); cursor: pointer; border: none; transition: all 0.22s; }
.btn-primary { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; padding: 16px 36px; background: var(--accent); color: var(--black); }
.btn-primary:hover { background: #D4B87E; }
.btn-outline { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; padding: 15px 34px; background: transparent; color: var(--text-2); border: 1px solid var(--rule-light); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { font-size: 13px; background: none; color: var(--text-2); padding: 0; }
.btn-ghost:hover { color: var(--accent); }
.btn-ghost svg { transition: transform 0.2s; }
.btn-ghost:hover svg { transform: translateX(4px); }

/* ── SECTION EYEBROW ── */
.section-eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.section-rule { display: flex; align-items: center; gap: 20px; margin-bottom: 60px; }
.section-rule .section-eyebrow { margin-bottom: 0; }
.section-rule::after { content: ''; flex: 1; height: 1px; background: var(--rule); }

/* ── RULED GRID ── */
.ruled-grid { display: grid; gap: 1px; background: var(--rule); }
.ruled-grid-2 { grid-template-columns: 1fr 1fr; }
.ruled-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ruled-cell { background: var(--black); }

/* ── TICKER ── */
.ticker { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); overflow: hidden; padding: 14px 0; }
.ticker-track { display: flex; gap: 80px; white-space: nowrap; animation: ticker 32s linear infinite; }
@keyframes ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.ticker-item { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-3); display: flex; align-items: center; gap: 16px; text-transform: uppercase; }
.ticker-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ── ARROW LINK ── */
.arrow-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-dim); transition: color 0.2s; }
.arrow-link:hover { color: var(--accent); }
.arrow-link svg { transition: transform 0.2s; }
.arrow-link:hover svg { transform: translateX(4px); }

/* ── FORM ── */
.field { margin-bottom: 24px; }
.field label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; background: rgba(255,255,255,0.03); border: 1px solid var(--rule-light); color: var(--text-1); font-family: var(--sans); font-size: 14px; font-weight: 300; outline: none; transition: border-color 0.2s; -webkit-appearance: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field textarea { resize: vertical; min-height: 120px; }

/* ── FOOTER ── */
footer { background: #080808; border-top: 1px solid var(--rule); }
.footer-main { max-width: var(--max); margin: 0 auto; padding: 72px 44px 56px; display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 60px; }
.footer-brand-logo { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-logo-img { width: 48px; height: 48px; object-fit: contain; opacity: 0.9; }
.footer-logo-text { font-family: var(--serif); font-size: 20px; letter-spacing: 0.06em; color: var(--text-1); }
.footer-logo-text em { color: var(--accent); font-style: normal; }
.footer-brand p { font-size: 14px; color: var(--text-3); line-height: 1.75; max-width: 300px; }
.footer-col h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); margin-bottom: 20px; font-weight: 400; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a { font-size: 14px; color: var(--text-2); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding: 24px 44px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.06em; }
.footer-tagline { font-family: var(--serif); font-size: 13px; color: var(--text-3); font-style: italic; }

/* ── REVEAL ANIMATION ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.18s; }
.reveal-d3 { transition-delay: 0.28s; }
.reveal-d4 { transition-delay: 0.38s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: block; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .ruled-grid-3 { grid-template-columns: 1fr; }
  .ruled-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .footer-main { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
}
