/* =============================================================
   GULUNGOLABS V1 — landing
   Stack: vanilla HTML + CSS, no build.
   Palette: yellow (#FFEB3B) + near-black (#0F0F12) + warm whites
   ============================================================= */

:root {
  --yellow: #FFEB3B;
  --yellow-soft: #FFF59D;
  --yellow-dark: #FBC02D;
  --ink: #0F0F12;
  --ink-2: #1f1f24;
  --muted: #5a5a63;
  --line: #e8e6df;
  --bg: #fafaf7;
  --surface: #ffffff;
  --accent: #0F0F12;
  --radius: 10px;
  --radius-lg: 18px;
  --nav-h: 68px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-w: 1180px;
  --shadow-sm: 0 1px 2px rgba(15,15,18,0.04), 0 1px 8px rgba(15,15,18,0.04);
  --shadow-md: 0 2px 6px rgba(15,15,18,0.05), 0 8px 32px rgba(15,15,18,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body {
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(250,250,247,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img { height: 32px; width: auto; border-radius: 6px; }
.nav-brand strong { font-weight: 800; letter-spacing: -0.5px; }
.nav-brand span { font-weight: 300; color: var(--muted); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: opacity 0.2s ease;
}
.nav-link:hover { opacity: 0.65; }
.nav-cta {
  background: var(--ink);
  color: var(--yellow);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); }
@media (max-width: 720px) { .nav-links .nav-link { display: none; } }

/* ===== HERO ===== */
.hero {
  margin-top: var(--nav-h);
  padding: 80px 0 100px;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255,235,59,0.25), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255,235,59,0.15), transparent 60%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--yellow);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 60%, var(--yellow) 60%);
  padding: 0 4px;
}
.hero p.lede {
  font-size: 19px;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--ink); color: var(--yellow); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--yellow); }

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, var(--yellow) 0%, var(--yellow-dark) 100%);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 24px, rgba(15,15,18,0.04) 24px, rgba(15,15,18,0.04) 25px);
}
.hero-visual-inner {
  position: relative;
  background: var(--ink);
  color: var(--yellow);
  padding: 28px 32px;
  border-radius: var(--radius);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13.5px;
  line-height: 1.8;
  box-shadow: 0 18px 50px rgba(15,15,18,0.35);
  max-width: 88%;
}
.hero-visual-inner .prompt { color: #888; }
.hero-visual-inner .out { color: var(--yellow); }
.hero-visual-inner .ok { color: #4ade80; }

/* ===== SECTION SHELL ===== */
section { padding: 96px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-head p {
  color: var(--muted);
  font-size: 17px;
}

/* ===== WHAT WE DO (3 pillars) ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pillar:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--ink);
}
.pillar-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--yellow);
  display: grid; place-items: center;
  margin-bottom: 18px;
  font-size: 22px;
}
.pillar h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.3px; }
.pillar p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.pillar ul { margin-top: 14px; }
.pillar li {
  font-size: 14px;
  color: var(--ink-2);
  padding: 6px 0;
  border-top: 1px dashed var(--line);
}
.pillar li:first-child { border-top: none; }
.pillar li::before { content: '→ '; color: var(--yellow-dark); font-weight: 700; }

/* ===== VERTICALS ===== */
.verticals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 720px) { .verticals { grid-template-columns: 1fr; } }
.vertical {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.vertical.live { border: 1.5px solid var(--ink); background: var(--yellow-soft); }
.vertical-mark {
  width: 36px; height: 36px;
  background: var(--ink);
  color: var(--yellow);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.vertical h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.vertical small { font-size: 12px; color: var(--muted); }
.vertical.live small { color: var(--ink-2); font-weight: 600; }

/* ===== CASE STUDY (Coservicios) ===== */
.case {
  background: var(--ink);
  color: #fafaf7;
  padding: 96px 0;
  border-radius: 0;
}
.case .eyebrow {
  background: var(--yellow);
  color: var(--ink);
}
.case h2 {
  color: #fff;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.case .section-head p { color: rgba(250,250,247,0.7); }
.case-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 24px;
}
@media (max-width: 880px) { .case-stack { grid-template-columns: 1fr; } }
.case-points h3 { font-size: 22px; font-weight: 700; margin-bottom: 18px; color: var(--yellow); letter-spacing: -0.3px; }
.case-points ul { display: grid; gap: 18px; }
.case-points li {
  padding: 16px 18px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  border-left: 3px solid var(--yellow);
}
.case-points li b { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; color: #fff; }
.case-points li span { font-size: 14px; color: rgba(250,250,247,0.7); line-height: 1.55; }

.case-shots { display: grid; gap: 18px; }
.case-shot {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
}
.case-shot img { width: 100%; display: block; }
.case-shot::after {
  content: attr(data-label);
  position: absolute;
  bottom: 10px; left: 10px;
  background: rgba(15,15,18,0.85);
  color: var(--yellow);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.case-meta {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 720px) { .case-meta { grid-template-columns: repeat(2, 1fr); } }
.case-stat { text-align: left; }
.case-stat b { display: block; color: var(--yellow); font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1; margin-bottom: 6px; }
.case-stat span { color: rgba(250,250,247,0.65); font-size: 13px; }

/* ===== HOW WE WORK ===== */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
@media (max-width: 880px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .how-grid { grid-template-columns: 1fr; } }
.how-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  counter-increment: step;
  position: relative;
}
.how-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 13px;
  color: var(--yellow-dark);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.how-step h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.how-step p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ===== CONTACT ===== */
.contact-card {
  background: var(--ink);
  color: #fafaf7;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(ellipse, rgba(255,235,59,0.18), transparent 60%);
  pointer-events: none;
}
.contact-card h2 {
  position: relative;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 14px;
}
.contact-card p {
  position: relative;
  color: rgba(250,250,247,0.7);
  font-size: 17px;
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto; margin-right: auto;
}
.contact-card .btn-primary {
  background: var(--yellow);
  color: var(--ink);
  position: relative;
}

/* ===== FOOTER ===== */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner small { color: var(--muted); font-size: 13px; }
.footer-inner .footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-inner .footer-brand img { height: 26px; border-radius: 5px; }
.footer-inner .footer-brand strong { font-weight: 700; font-size: 14px; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 13px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--ink); }
