/* UI kit — marketing site
   Builds on top of colors_and_type.css from the root design system. */
@import url('../../colors_and_type.css');

html, body { margin: 0; padding: 0; background: var(--bg); color: var(--fg); }
* { box-sizing: border-box; }

.page { position: relative; overflow-x: clip; }

/* Background glow blob, top-right of hero */
.glow-blob {
  position: absolute;
  top: -160px; right: -120px;
  width: 700px; height: 700px;
  background: radial-gradient(closest-side, rgba(0,255,255,0.35), rgba(0,255,255,0) 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 64px;
  backdrop-filter: blur(12px);
  background: rgba(41, 6, 64, 0.55);
}
.header .wordmark { color: var(--fg); height: 28px; }
.header .nav-cta {
  font-size: 13px; letter-spacing: 0.06em;
  color: var(--homium-cyan);
}
.header .nav-cta::before { content: '[ '; }
.header .nav-cta::after { content: ' ]'; }

/* Left rail */
.left-rail {
  position: fixed;
  left: 32px; top: 50%; transform: translateY(-50%);
  z-index: 30;
  display: flex; flex-direction: column; gap: 14px;
  font-size: 11px;
}
.left-rail .item {
  display: flex; align-items: center; gap: 10px;
  color: var(--fg-subtle);
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out);
}
.left-rail .item:hover { color: var(--fg-muted); }
.left-rail .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all var(--dur-fast) var(--ease-out);
}
.left-rail .item.active { color: var(--homium-cyan); }
.left-rail .item.active .dot {
  background: var(--homium-cyan);
  box-shadow: 0 0 12px var(--homium-cyan);
}

/* Page container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
  position: relative;
  z-index: 1;
}

.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }

/* Hero */
.hero {
  padding: 60px 0 80px;
  position: relative;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 32px 0 24px;
  max-width: 14ch;
}
.hero .sub {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.55;
  margin: 0 0 56px;
  padding-bottom: 16px;
}
.hero .dashed-circle {
  width: 110px; height: 110px;
  margin-top: 28px;
}

/* Decorative dashed concentric circles */
.dashed-circle { color: var(--homium-cyan); }
.dashed-circle svg { width: 100%; height: 100%; }

/* Indent rule — display headlines indent from the absolute left, 
   leaving the rail to breathe. */
.indent { padding-left: 80px; }

/* Bracket motif */
.bracket {
  color: var(--homium-cyan);
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.02em;
}
.bracket::before { content: '[ '; }
.bracket::after  { content: ' ]'; }

.italic-accent {
  font-style: italic;
  font-weight: 300;
  color: var(--homium-cyan);
}

.section-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-muted);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px;
}
.section-eyebrow::before { content: '>'; color: var(--homium-cyan); }

/* Display titles */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  max-width: 14ch;
}

/* Clients row */
.clients {
  display: flex; gap: 56px; align-items: center; justify-content: center;
  padding: 56px 0 32px;
  opacity: 0.85;
  flex-wrap: wrap;
}
.clients .logo {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 18px;
  color: var(--fg-muted);
  letter-spacing: -0.01em;
}

/* Service cards grid */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.service-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px 32px;
  background: linear-gradient(180deg, rgba(58,12,90,0.7) 0%, rgba(41,6,64,0.7) 100%);
  display: flex; flex-direction: column; gap: 14px;
  transition: all var(--dur-med) var(--ease-out);
  cursor: pointer;
  position: relative;
}
.service-card:hover {
  border-color: var(--homium-cyan);
  transform: translateY(-2px);
}
.service-card h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.1;
}
.service-card .meta {
  display:flex; align-items: center; justify-content: space-between;
}
.service-card .badge {
  font-size: 11px;
  color: var(--homium-cyan);
  letter-spacing: 0.06em;
  font-style: italic;
}
.service-card .badge::before { content: '['; padding-right: 4px; }
.service-card .badge::after  { content: ']'; padding-left: 4px; }
.service-card .arrow {
  width: 28px; height: 28px;
  border: 1px solid var(--homium-cyan);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--homium-cyan);
  font-size: 13px;
  transition: all var(--dur-fast) var(--ease-out);
}
.service-card:hover .arrow {
  background: var(--homium-cyan);
  color: var(--homium-purple);
}
.service-card p { margin: 0; font-size: 13px; color: var(--fg-muted); line-height: 1.55; }

/* Full-bleed cyan panel — Somos gente seria */
.cyan-panel {
  background: var(--homium-cyan);
  color: var(--homium-purple);
  padding: 80px 64px;
  margin: 96px -120px;
  border-radius: 0;
}
.cyan-panel h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 36px;
  color: var(--homium-purple);
}
.cyan-panel .team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cyan-panel .portrait {
  aspect-ratio: 1 / 1.05;
  border-radius: 4px;
  background: #e8eae6;
  background-size: cover;
  background-position: center;
}
.cyan-panel .caption {
  margin-top: 32px;
  font-style: italic; font-weight: 300;
  font-size: 16px;
  text-align: right;
  max-width: 24ch;
  margin-left: auto;
}
.cyan-panel .caption::before { content: '['; }
.cyan-panel .caption::after  { content: ']'; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font: 500 14px var(--font-sans);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--dur-fast) var(--ease-out);
  text-decoration: none;
}
.btn-primary { background: var(--homium-cyan); color: var(--homium-purple); }
.btn-primary:hover { box-shadow: 0 0 24px rgba(0,255,255,0.45); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost { background: transparent; color: var(--homium-cyan); border-color: var(--homium-cyan); }
.btn-ghost:hover { background: var(--homium-cyan); color: var(--homium-purple); }
.btn-text {
  background: transparent; color: var(--homium-cyan);
  padding: 6px 0; border: 0; border-radius: 0; border-bottom: 1px solid currentColor;
}

/* Tools row */
.tools {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 56px;
  padding-top: 32px;
}
.tools-logos {
  display: flex; gap: 28px; align-items: center;
  background: linear-gradient(180deg, rgba(58,12,90,0.6) 0%, rgba(41,6,64,0.4) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 28px;
  flex-wrap: wrap;
}
.tools-logos .t-logo {
  color: var(--fg-muted);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}

/* Project cards */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}
.project-card {
  border: 1px solid var(--homium-cyan);
  border-radius: 16px;
  padding: 16px 16px 20px;
  background: rgba(0,255,255,0.02);
  display: flex; flex-direction: column; gap: 12px;
  cursor: pointer;
  transition: all var(--dur-med) var(--ease-out);
}
.project-card:hover { background: rgba(0,255,255,0.05); transform: translateY(-2px); }
.project-card .ptitle { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; font-weight: 500; }
.project-card .parrow { color: var(--homium-cyan); }
.project-card .thumb {
  border-radius: 10px;
  height: 200px;
  background-size: cover; background-position: center top;
  background-color: #ddd;
}
.project-card .pcaption { font-size: 12px; color: var(--fg-subtle); line-height: 1.5; }

/* Process / How we do it */
.process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.process-step {
  padding: 28px 32px;
  border-right: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.process-step:nth-child(2n) { border-right: none; }
.process-step:nth-last-child(-n+2) { border-bottom: none; }
.process-step h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.process-step .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--homium-cyan);
  letter-spacing: 0.06em;
}
.process-step p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.55;
  max-width: 32ch;
}
.process-step.highlight {
  background: linear-gradient(180deg, rgba(58,12,90,0.6) 0%, rgba(41,6,64,0) 100%);
}

/* Contact section */
.contact {
  background: linear-gradient(180deg, rgba(80,20,130,0.5) 0%, rgba(41,6,64,0.5) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 80px 80px;
  margin: 96px 0 64px;
  position: relative;
  overflow: hidden;
}
.contact h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 5vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 48px;
  max-width: 12ch;
}
.contact form { display: flex; flex-direction: column; gap: 28px; max-width: 540px; }
.contact .field {
  display: flex; flex-direction: column;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding: 8px 0;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.contact .field:focus-within { border-bottom-color: var(--homium-cyan); }
.contact .field label {
  font-size: 12px;
  color: var(--fg-muted);
}
.contact .field input {
  background: transparent;
  border: none; outline: none;
  font: 400 16px var(--font-sans);
  color: var(--fg);
  padding: 6px 0;
}
.contact .submit-row { display: flex; justify-content: flex-end; margin-top: 8px; }

/* Footer */
.footer {
  padding: 56px 0 36px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 32px;
}
.footer h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 28px;
  line-height: 1.1;
  margin: 0;
  max-width: 12ch;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.footer ul a { color: var(--fg-muted); }
.footer ul a:hover { color: var(--homium-cyan); }
.footer .bottom {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 24px; margin-top: 24px;
  font-size: 11px;
  color: var(--fg-subtle);
}
.footer .bolt {
  width: 28px; height: 28px;
  color: var(--homium-cyan);
  display: inline-block;
}

/* Social row */
.social-row {
  display: flex; align-items: center; gap: 14px;
  padding: 56px 0;
  font-size: 28px;
  font-family: var(--font-display);
  color: var(--fg-muted);
  letter-spacing: -0.01em;
  overflow: hidden;
}
.social-row .pill {
  padding: 6px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.social-row .pill.cyan  { background: var(--homium-cyan); color: var(--homium-purple); }
.social-row .pill.green { background: var(--homium-green); color: var(--homium-purple); }
.social-row .stretch { color: var(--fg); white-space: nowrap;}

/* Projects page chips */
.chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 40px 0 48px;
}
.chip {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--fg);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
  background: transparent;
}
.chip:hover { border-color: var(--fg-muted); }
.chip.active {
  background: var(--purple-500);
  border-color: var(--homium-cyan);
  color: var(--fg);
}

/* Project detail */
.detail-hero {
  border-radius: 18px;
  height: 360px;
  background-size: cover; background-position: center;
  margin: 24px 0 56px;
}
.detail-title-row {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start;
  margin-top: 56px;
}
.detail-title-row h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(56px, 6vw, 88px);
  line-height: 1.0;
  color: var(--homium-cyan);
  margin: 0;
}
.detail-title-row .body {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}
.detail-meta-chips { display: flex; gap: 10px; margin-bottom: 24px;}
.detail-elements {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 40px;
}
.detail-elements .el {
  border-radius: 12px;
  height: 240px;
  background-size: cover; background-position: center;
}
.detail-section-title { font-size: 16px; font-weight: 500; margin: 16px 0 4px; color: var(--fg); }

.tech-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  margin-top: 48px;
}
.tech-grid h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 34px;
  color: var(--homium-cyan);
  margin: 0 0 16px;
}
.tech-grid ul { list-style: disc; padding-left: 18px; color: var(--fg-muted); font-size: 14px; line-height: 1.7; }
.tech-grid p { font-size: 14px; color: var(--fg-muted); line-height: 1.55; }

/* Utility */
.spacer-lg { height: 96px; }
.spacer-md { height: 48px; }
