/* ============================================================
   KRIPTACORP — SHARED DESIGN SYSTEM v2.0
   Sistema Kripta · Ciclo Gaia
   ============================================================ */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* TOKENS */
:root {
  --dark:          #07080f;
  --dark-2:        #0d0f1a;
  --off:           #f4f5f8;
  --white:         #ffffff;
  --accent:        #3D5AF1;
  --accent-dim:    #2e46d6;
  --accent-glow:   rgba(61,90,241,0.18);
  --accent-soft:   rgba(61,90,241,0.10);
  --navy:          #0f1535;
  --navy-mid:      #1a2455;
  --indigo-border: rgba(61,90,241,0.25);
  --muted:         #636880;
  --light:         #9499b8;
  --border-light:  #e2e4ef;
  --border-dark:   rgba(255,255,255,0.07);
  --font-head: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sub:  'Sora', sans-serif;
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.14);
  --shadow-accent: 0 0 40px rgba(61,90,241,0.20);
  --max-content: 1200px;
  --max-wide:    1600px;
  --nav-h:       72px;
}

/* BASE */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
}

/* TIPOGRAFIA */
.page-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--light); margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px); font-weight: 700;
  letter-spacing: -0.5px; color: var(--dark); line-height: 1.1;
}
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
}

/* ══════════════════════════════════════
   NAVEGAÇÃO — preta, fixa, universal
   ══════════════════════════════════════ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  background: #07080f;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.nav-inner {
  max-width: var(--max-wide);
  margin: 0 auto; height: 100%;
  padding: 0 32px;
  display: flex; align-items: center; gap: 28px;
}

.logo { flex-shrink: 0; display: flex; align-items: center; }

.logo-text {
  font-family: var(--font-head);
  font-size: 22px; font-weight: 700; letter-spacing: 0.3px;
  color: #fff;
}
.logo-text em { font-style: italic; color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-item  { position: relative; }

.nav-link {
  font-family: var(--font-sub);
  font-size: 13px; font-weight: 450;
  color: rgba(255,255,255,0.55);
  padding: 8px 12px; border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active {
  color: #fff; background: rgba(255,255,255,0.07);
}

.ch { transition: transform 0.2s; }
.nav-item:hover .ch { transform: rotate(180deg); }

/* Mega-menu base */
.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 1px); left: 0;
  background: #0d0f1a;
  border: 1px solid rgba(255,255,255,0.09);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 28px 32px 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  z-index: 300;
  min-width: 400px;
}
.nav-item:hover .mega-menu { display: block; }

/* Mega-menu fullwidth */
.mega-menu.mega-wide {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  border-radius: 0;
  min-width: 100%;
  padding: 36px 60px 40px;
}

.mega-top-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(255,255,255,0.20);
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mega-cols { display: grid; gap: 0; }

.mega-col-head {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--accent); opacity: 0.75;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid rgba(61,90,241,0.15);
}

.mega-col-items { display: flex; flex-direction: column; gap: 2px; }

.mega-link {
  display: block;
  font-family: var(--font-sub);
  font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,0.50);
  padding: 6px 8px; border-radius: var(--radius-sm);
  transition: color 0.12s, background 0.12s;
  white-space: nowrap;
}
.mega-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.mega-link.featured { color: rgba(255,255,255,0.75); font-weight: 500; }

.tag-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing: 0.5px;
  padding: 2px 6px; border-radius: 100px;
  margin-left: 6px; vertical-align: middle;
}
.tag-pill-live { background: rgba(61,90,241,0.2); color: var(--accent); border: 1px solid rgba(61,90,241,0.3); }
.tag-pill-dev  { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.3); border: 1px solid rgba(255,255,255,0.08); }

.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* BOTÕES */
.btn-ghost {
  font-family: var(--font-sub); font-size: 13px; font-weight: 450;
  color: rgba(255,255,255,0.45); padding: 8px 16px; border-radius: var(--radius-md);
  transition: color 0.15s, background 0.15s;
}
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,0.07); }

.btn-nav-cta {
  font-family: var(--font-sub); font-size: 13px; font-weight: 600;
  color: #fff; background: var(--accent); padding: 9px 18px;
  border-radius: var(--radius-md); transition: background 0.15s, transform 0.12s;
}
.btn-nav-cta:hover { background: var(--accent-dim); transform: translateY(-1px); }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sub); font-size: 15px; font-weight: 600;
  color: #fff; background: var(--accent); padding: 14px 28px;
  border-radius: var(--radius-md); transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
}
.btn-primary:hover { background: var(--accent-dim); transform: translateY(-2px); box-shadow: var(--shadow-accent); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sub); font-size: 15px; font-weight: 500;
  color: var(--dark); background: transparent;
  border: 1px solid var(--border-light); padding: 13px 28px;
  border-radius: var(--radius-md); transition: border-color 0.15s, background 0.15s, transform 0.12s;
}
.btn-secondary:hover { border-color: var(--dark); background: var(--off); transform: translateY(-1px); }

/* TAGS */
.tag {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  padding: 5px 10px; border-radius: 100px; letter-spacing: 0.3px;
}
.tag-accent { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--indigo-border); }
.tag-dark   { background: var(--dark); color: rgba(255,255,255,0.7); }
.tag-muted  { background: var(--off); color: var(--muted); border: 1px solid var(--border-light); }

/* PRINCÍPIOS KRIPTA */
.kripta-principle {
  font-family: var(--font-mono); font-size: 12px;
  color: rgba(255,255,255,0.38); padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05); line-height: 1.5;
}
.kripta-principle:last-child { border-bottom: none; }
.kripta-principle span { color: var(--accent); margin-right: 8px; }

/* FOOTER */
footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,0.05); }
.footer-inner { max-width: var(--max-wide); margin: 0 auto; padding: 64px 32px 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand-desc { font-size: 13px; color: rgba(255,255,255,0.3); line-height: 1.7; max-width: 260px; margin-top: 12px; }
.footer-col-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,0.25); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links li a { font-size: 14px; color: rgba(255,255,255,0.38); transition: color 0.15s; }
.footer-links li a:hover { color: rgba(255,255,255,0.80); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-copy    { font-size: 12px; color: rgba(255,255,255,0.2); }
.footer-version { font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.15); }

/* UTILITÁRIOS */
.container      { max-width: var(--max-content); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--max-wide);    margin: 0 auto; padding: 0 32px; }

/* RESPONSIVO */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .mega-menu.mega-wide { padding: 28px 24px 32px; }
}
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
