/* ============================================================
   KUIA LAB — Arte. Tecnologia. Experiência.
   Identidade visual: azul-profundo + circuitos + letra clara
   ============================================================ */

:root {
  --bg: #07121f;            /* azul quase preto */
  --bg-2: #0a1a2e;          /* azul profundo */
  --bg-3: #0e2238;          /* painel */
  --line: rgba(90, 160, 240, 0.18);
  --blue: #3f9bff;          /* azul vibrante */
  --blue-dim: #1e6fe0;
  --cyan: #7fd4ff;
  --text: #f2f6fb;
  --muted: #9fb6d0;
  --green: #3fbf9b;         /* acento amazônico */
  --gold: #e8c37a;

  --font-head: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Space Grotesk', 'Inter', 'Segoe UI', system-ui, sans-serif;

  --maxw: 1200px;
  --radius: 16px;
  --shadow: 0 24px 60px -30px rgba(0,0,0,0.8);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 600px at 85% -10%, rgba(63,155,255,0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(39,90,160,0.18), transparent 60%),
    var(--circuit);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* circuito de fundo (SVG data-uri) */
:root {
  --circuit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23104080' stroke-opacity='0.16' stroke-width='1'%3E%3Cpath d='M10 10h30M90 10h20M10 60h40M70 60h40M10 110h60M90 110h20M20 10v40M50 40V10M90 10v40M70 60v40M50 100V60'/%3E%3Ccircle cx='10' cy='10' r='3'/%3E%3Ccircle cx='90' cy='10' r='3'/%3E%3Ccircle cx='50' cy='60' r='3'/%3E%3Ccircle cx='10' cy='110' r='3'/%3E%3Ccircle cx='90' cy='110' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

::selection { background: rgba(63,155,255,0.35); }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--cyan); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; }

.section { padding: 96px 24px; max-width: var(--maxw); margin: 0 auto; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.78rem;
  color: var(--blue); font-weight: 600; margin-bottom: 14px;
}
h2.title { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 20px; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 720px; }
.section-head { max-width: 820px; margin-bottom: 44px; }

/* ---------------- Header / nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(7,18,31,0.72);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 40px; width: auto; display: block; }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a {
  color: var(--muted); padding: 8px 13px; border-radius: 10px; font-size: 0.95rem; font-weight: 500;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--text); background: rgba(63,155,255,0.12); }
.nav a.active { color: var(--text); background: rgba(63,155,255,0.18); }
.nav .cta { background: var(--blue); color: #04131f; font-weight: 700; }
.nav .cta:hover { background: var(--cyan); color: #04131f; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); font-size: 1.4rem; padding: 6px 12px; border-radius: 10px; cursor: pointer; }

/* ---------------- Hero ---------------- */
.hero {
  min-height: 92vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 400px at 50% 60%, rgba(127,212,255,0.12), transparent 70%);
}
.hero .inner { position: relative; z-index: 2; max-width: 900px; }
.hero .brand-mark { height: 120px; width: auto; margin: 0 auto 10px; display: block; }
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem); margin: 22px 0 18px;
  background: linear-gradient(180deg, #ffffff, #9fc4ef);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .tagline { color: var(--muted); font-size: clamp(1rem, 2vw, 1.3rem); letter-spacing: 0.16em; text-transform: uppercase; max-width: 640px; margin: 0 auto 34px; }
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  border-radius: 999px; padding: 15px 30px; font-weight: 700; font-size: 0.98rem;
  letter-spacing: 0.04em; transition: transform .18s, box-shadow .18s, background .18s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: var(--blue); color: #04131f; }
.btn-primary:hover { background: var(--cyan); color: #04131f; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(63,155,255,0.6); }
.btn-ghost { border: 1px solid rgba(242,246,251,0.35); color: var(--text); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; z-index: 2; animation: float 2.4s ease-in-out infinite; }
@keyframes float { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,-8px)} }

/* ---------------- Cards ---------------- */
.grid { display: grid; gap: 22px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: linear-gradient(180deg, rgba(14,34,56,0.9), rgba(10,26,46,0.9));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: block; color: inherit;
}
.card:hover { transform: translateY(-4px); border-color: rgba(63,155,255,0.5); box-shadow: var(--shadow); color: inherit; }
.card .ico { font-size: 1.9rem; margin-bottom: 14px; }
.card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card .tag { display: inline-block; margin-top: 14px; color: var(--blue); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.06em; }

/* ---------------- Timeline ---------------- */
.timeline { list-style: none; position: relative; margin-top: 20px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--blue), transparent); }
.timeline li { position: relative; padding: 0 0 30px 46px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 3px solid var(--blue); }
.timeline .year { color: var(--blue); font-weight: 800; font-family: var(--font-head); }
.timeline p { color: var(--muted); margin-top: 4px; }

/* ---------------- Manifesto / splits ---------------- */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.split p { color: var(--muted); margin-bottom: 16px; }
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill-list li { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.9rem; background: rgba(14,34,56,0.5); }
.pill-list li.hot { border-color: var(--blue); color: var(--cyan); }

/* ---------------- Case cards ---------------- */
.case .case-meta { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.chip { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.chip.blue { color: var(--cyan); border-color: rgba(63,155,255,0.5); }
.chip.green { color: var(--green); border-color: rgba(63,191,155,0.5); }

/* ---------------- Form ---------------- */
form.contact { display: grid; gap: 16px; max-width: 620px; }
.field label { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); color: var(--text);
  padding: 14px 16px; border-radius: 12px; font-family: var(--font-body); font-size: 1rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
textarea { resize: vertical; min-height: 130px; }
form .btn { border: none; cursor: pointer; }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(5,13,24,0.6); padding: 60px 24px 30px; margin-top: 40px; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--muted); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--cyan); }
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 320px; margin-top: 6px; }
.footer-bottom { max-width: var(--maxw); margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------------- Página comum ---------------- */
.page-hero { padding: 90px 24px 30px; max-width: var(--maxw); margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 14px 0 14px; }

/* ---------------- Responsivo ---------------- */
@media (max-width: 960px) {
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-wrap { flex-wrap: wrap; }
  .nav-toggle { display: inline-block; order: 2; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; order: 3; padding-top: 8px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .cards-3, .cards-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { min-height: 84vh; }
}
