/* ═══════════════════════════════════════
   iGPT — Shared Styles
═══════════════════════════════════════ */

:root {
  --bg:      #080808;
  --bg2:     #0f0f0f;
  --bg3:     #161616;
  --border:  rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --text:    #ffffff;
  --text2:   #888888;
  --text3:   #444444;
  --green:   #22c55e;
  --font:    'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --max:     1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* ── TYPOGRAPHY ── */
h1, h2, h3 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}
p { color: var(--text2); line-height: 1.7; }
a { text-decoration: none; color: inherit; }

/* ── LAYOUT ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 5%; }
.section { padding: 80px 5%; }
.section-inner { max-width: var(--max); margin: 0 auto; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  background: rgba(8,8,8,0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-brand {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-img {
  height: 26px; width: 26px;
  object-fit: contain; mix-blend-mode: screen; display: block;
}
.nav-logo-text {
  font-family: var(--font); font-size: 16px; font-weight: 700;
  color: var(--text); letter-spacing: -0.04em;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 14px; font-weight: 400; color: var(--text2);
  text-decoration: none; transition: color 0.15s; letter-spacing: -0.01em;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta {
  background: transparent !important;
  color: var(--text) !important;
  padding: 7px 18px !important;
  border-radius: 100px !important;
  border: 1px solid var(--border2) !important;
  font-weight: 500 !important; font-size: 13px !important;
  transition: background 0.15s !important;
}
.nav-cta:hover { background: rgba(255,255,255,0.07) !important; }
.nav-mobile-btn {
  display: none; background: none;
  border: 1px solid var(--border2); border-radius: 6px;
  padding: 6px 10px; color: var(--text2);
  cursor: pointer; font-size: 16px; line-height: 1;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--text); color: var(--bg);
  padding: 11px 24px; border-radius: 100px;
  font-weight: 600; font-size: 14px;
  text-decoration: none; border: none; cursor: pointer;
  font-family: var(--font); letter-spacing: -0.01em;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.btn-primary:hover { opacity: 0.84; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent; color: var(--text2);
  padding: 11px 24px; border-radius: 100px;
  font-weight: 500; font-size: 14px;
  text-decoration: none; border: 1px solid var(--border2);
  cursor: pointer; font-family: var(--font); letter-spacing: -0.01em;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn-secondary:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* ── MARQUEE ── */
.marquee-wrap {
  overflow: hidden; padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee-track {
  display: flex; gap: 56px;
  animation: marquee 40s linear infinite; white-space: nowrap;
}
.marquee-item {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text3); letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.marquee-item::before { content: '◆'; font-size: 5px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── BOTTOM CTA (shared, all pages except contact) ── */
.bottom-cta {
  padding: 120px 5%;
  text-align: center;
  border-top: 1px solid var(--border);
}
.bottom-cta h2 {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 700; letter-spacing: -0.04em;
  color: var(--text); margin-bottom: 12px; line-height: 1.08;
}
.bottom-cta p { font-size: 15px; color: var(--text2); margin-bottom: 36px; }
.bottom-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 56px 5% 32px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-logo-img {
  height: 22px; width: 22px; object-fit: contain;
  mix-blend-mode: screen; display: block;
}
.footer-brand-text {
  font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.04em;
}
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-col-title {
  font-size: 11px; font-weight: 600; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 14px; font-family: var(--font-mono);
}
.footer-col a {
  display: block; font-size: 13px; color: var(--text3);
  text-decoration: none; margin-bottom: 9px;
  transition: color 0.15s; letter-spacing: -0.01em;
}
.footer-col a:hover { color: var(--text2); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 24px;
}
.footer-copy { font-size: 12px; color: var(--text3); }
.footer-legal { font-size: 11px; color: var(--text3); font-family: var(--font-mono); letter-spacing: 0.06em; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.07s; }
.d2 { transition-delay: 0.14s; }
.d3 { transition-delay: 0.21s; }

/* ── SHARED ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.25; } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  nav { padding: 0 4%; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(8,8,8,0.98); backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 24px; gap: 18px; z-index: 99;
  }
  .nav-mobile-btn { display: block; }
  .bottom-cta { padding: 80px 4%; }
  .bottom-cta h2 { font-size: 2rem; }
  footer { padding: 48px 4% 28px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
  .bottom-cta-btns { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
}
