/* MetaGenius AI — style.css */

/* TOKENS */
:root {
  --bg:       #050b14;
  --bg2:      #080f1c;
  --surface:  #0d1828;
  --surface2: #112035;
  --border:   #1a2d45;
  --accent:   #00d4ff;
  --accent2:  #00ff88;
  --text:     #e8f0f8;
  --muted:    #7a96b4;
  --dim:      #3d5a78;
  --grad:     linear-gradient(135deg, #00d4ff, #00ff88);
  --fh:       'Outfit', sans-serif;
  --fu:       'Inter', sans-serif;
  --wrap:     1200px;
  --gap:      clamp(20px, 5vw, 80px);
  --pill:     100px;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; text-rendering: optimizeSpeed; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--fu);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-family: var(--fh); line-height: 1.15; color: var(--text); }
h1 { font-size: clamp(36px, 5.5vw, 72px); font-weight: 800; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p  { font-size: 16px; color: var(--muted); font-weight: 300; line-height: 1.75; }

/* LAYOUT */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.section { padding: 100px 0; position: relative; contain: layout style; }
.section--alt { background: var(--bg2); }

.sec-label {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.sec-hd { margin-bottom: 56px; }
.sec-hd--c { text-align: center; }
.sec-hd--c .sec-desc { margin: 12px auto 0; max-width: 540px; }
.sec-desc { font-size: 16px; color: var(--muted); max-width: 540px; margin-top: 12px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--fu); font-size: 15px; font-weight: 600;
  border-radius: var(--pill); padding: 13px 28px;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  white-space: nowrap; cursor: pointer;
}
.btn--primary {
  background: var(--grad); color: #020b10;
  box-shadow: 0 0 28px rgba(0,212,255,.2);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 48px rgba(0,212,255,.38); }
.btn--ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--accent); background: rgba(0,212,255,.05); }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 64px; display: flex; align-items: center;
  background: rgba(5,11,20,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--wrap); width: 100%; margin: 0 auto; padding: 0 var(--gap);
}
.nav__logo { display: flex; align-items: center; gap: 10px; }
.nav__logo img { width: 32px; height: 32px; }
.nav__logo span {
  font-family: var(--fu); font-size: 17px; font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta {
  background: var(--grad); color: #020b10 !important;
  font-family: var(--fu); font-size: 13px; font-weight: 700;
  padding: 8px 20px; border-radius: var(--pill);
  transition: opacity .2s, transform .2s;
}
.nav__cta:hover { opacity: .85; transform: scale(1.03); }

/* HAMBURGER */
.nav__burger {
  display: none; flex-direction: column; gap: 5px;
  width: 32px; height: 32px; padding: 4px; justify-content: center;
}
.nav__burger span {
  display: block; width: 100%; height: 2px;
  background: var(--muted); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* DRAWER */
.nav__drawer {
  display: none; position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(8,15,28,.97); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 20px var(--gap) 28px;
  flex-direction: column; z-index: 99;
}
.nav__drawer.open { display: flex; }
.nav__drawer a {
  font-size: 16px; font-weight: 500; color: var(--muted);
  padding: 14px 0; border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.nav__drawer a:last-child { border-bottom: none; }
.nav__drawer a:hover { color: var(--accent); }
.nav__drawer .d-cta {
  margin-top: 14px; background: var(--grad); color: #020b10;
  font-weight: 700; font-size: 15px; padding: 13px;
  border-radius: var(--pill); text-align: center; display: block; border-bottom: none;
}

/* FOOTER */
.footer { padding: 60px 0 36px; border-top: 1px solid var(--border); contain: layout style; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__brand img { width: 32px; margin-bottom: 10px; }
.footer__brand p { font-size: 14px; max-width: 220px; line-height: 1.6; }
.footer__brand-name { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.footer__col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--dim); margin-bottom: 16px; }
.footer__col a { display: block; font-size: 14px; color: var(--muted); margin-bottom: 10px; transition: color .2s; }
.footer__col a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--dim); }
.footer__bottom a { color: var(--dim); margin-left: 16px; transition: color .2s; }
.footer__bottom a:hover { color: var(--muted); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1/-1; }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .section { padding: 72px 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand { grid-column: 1/-1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__bottom a { margin-left: 0; margin-right: 12px; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}
