/* Simsalabim Solutions — landing page styles (C · Bracket) */

:root {
  --ink: #0F172A;
  --ink-soft: #1E293B;
  --muted: #475569;
  --mist: #E2E8F0;
  --mist-2: #F1F5F9;
  --paper: #FAFAFA;
  --indigo: #4F46E5;
  --indigo-soft: #6366F1;
  --indigo-12: rgba(79, 70, 229, 0.12);
  --indigo-24: rgba(79, 70, 229, 0.24);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.site { min-height: 100vh; }

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: white;
  padding: 10px 18px; border-radius: 8px; border: 1px solid var(--ink);
  font-weight: 500; font-size: 14px;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary:hover { transform: translateY(-1px); background: var(--indigo); border-color: var(--indigo); }
.btn-primary.lg { padding: 14px 22px; font-size: 15px; border-radius: 10px; }
.btn-primary.light { background: white; color: var(--ink); border-color: white; }
.btn-primary.light:hover { background: var(--paper); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink);
  padding: 10px 18px; border-radius: 8px; border: 1px solid var(--mist);
  font-weight: 500; font-size: 14px;
  transition: border-color .15s ease, color .15s ease;
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.lg { padding: 14px 22px; font-size: 15px; border-radius: 10px; }
.btn-ghost.dark { color: white; border-color: rgba(255,255,255,0.25); }
.btn-ghost.dark:hover { border-color: white; }

.link-quiet {
  color: var(--muted); font-size: 13px;
  transition: color .15s ease;
}
.link-quiet:hover { color: var(--ink); }

/* ─── Nav ────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 56px;
  background: rgba(250, 250, 250, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--mist);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
}
.nav-wordmark {
  font-weight: 600; font-size: 17px; letter-spacing: -0.03em;
}
.nav-wordmark .dot { color: var(--indigo); }
.nav-links {
  display: flex; gap: 28px;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 18px; }

/* ─── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 96px 56px 64px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,23,42,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,23,42,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 30% 40%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, black 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 600px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--muted);
  padding: 6px 12px;
  background: white; border: 1px solid var(--mist); border-radius: 999px;
}
.dot-led {
  width: 6px; height: 6px; border-radius: 50%; background: var(--indigo);
  box-shadow: 0 0 0 3px var(--indigo-12);
}
.hero-title {
  font-size: 76px; line-height: 0.98; letter-spacing: -0.04em;
  font-weight: 600; margin: 24px 0 20px;
  text-wrap: balance;
}
.accent { color: var(--indigo); }
.accent-l { color: #A5B4FC; }
.hero-sub {
  font-size: 18px; line-height: 1.55; color: var(--muted); margin: 0 0 32px;
  text-wrap: pretty; max-width: 520px;
}
.hero-actions { display: flex; gap: 12px; }
.hero-meta {
  display: flex; gap: 40px; margin-top: 56px;
  padding-top: 28px; border-top: 1px solid var(--mist);
}
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta strong {
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em;
}
.hero-meta span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted); letter-spacing: 0.04em;
}

.hero-code {
  position: relative;
  background: #0F172A; color: #E2E8F0;
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(15,23,42,0.35), 0 0 0 1px rgba(79,70,229,0.18);
  font-family: 'JetBrains Mono', monospace;
  transform: rotate(0.6deg);
}
.code-chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: #1E293B;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.code-chrome .dots { display: flex; gap: 6px; }
.code-chrome .dots i {
  width: 10px; height: 10px; border-radius: 50%; background: #475569;
}
.code-chrome .dots i:nth-child(1) { background: #EF4444; }
.code-chrome .dots i:nth-child(2) { background: #F59E0B; }
.code-chrome .dots i:nth-child(3) { background: #10B981; }
.code-chrome .tab {
  font-size: 12px; color: #94A3B8;
  margin-left: 10px;
  padding: 4px 10px; background: #0F172A; border-radius: 4px;
}
.code-body {
  margin: 0; padding: 24px 28px;
  font-size: 13.5px; line-height: 1.7;
  white-space: pre-wrap;
}
.code-body .cm-c { color: #6B7280; }
.code-stamp {
  position: absolute; bottom: 14px; right: 18px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: rgba(226,232,240,0.35);
}
.code-stamp .dot { color: var(--indigo); }

/* ─── Logos ──────────────────────────────────────────────────────────── */
.logos {
  padding: 32px 56px 24px;
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
  display: flex; align-items: center; gap: 48px;
}
.logos-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted); letter-spacing: 0.06em;
  white-space: nowrap;
}
.logos-row { display: flex; gap: 36px; flex-wrap: wrap; flex: 1; }
.logo-chip {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500; font-size: 17px; color: var(--muted);
  letter-spacing: -0.01em;
  opacity: 0.7;
}

/* ─── Section common ─────────────────────────────────────────────────── */
section { padding: 96px 56px; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 56px; gap: 32px;
}
.section-head-text { max-width: 640px; }
.section-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--indigo);
  margin-bottom: 12px;
}
.section-title {
  font-size: 48px; line-height: 1.05; letter-spacing: -0.03em;
  font-weight: 600; margin: 0;
  text-wrap: balance;
}
.section-sub {
  font-size: 17px; line-height: 1.55; color: var(--muted);
  margin: 16px 0 0; text-wrap: pretty;
}

/* ─── Services ───────────────────────────────────────────────────────── */
.services { background: white; border-top: 1px solid var(--mist); }
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--mist);
  border: 1px solid var(--mist); border-radius: 14px; overflow: hidden;
}
.service {
  background: white; padding: 36px 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.service-head {
  display: flex; align-items: baseline; gap: 16px;
}
.service-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--indigo);
}
.service h3 {
  font-size: 24px; font-weight: 600; margin: 0; letter-spacing: -0.02em;
}
.service p {
  margin: 0; color: var(--muted); line-height: 1.55;
}
.service ul {
  list-style: none; margin: auto 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.service ul li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
}
.service .check { color: var(--indigo); font-size: 12px; }

/* ─── Work / case ────────────────────────────────────────────────────── */
.work { background: var(--paper); }
.work-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
}
.case {
  position: relative;
  color: white;
  border-radius: 14px;
  padding: 28px;
  min-height: 380px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
  transition: transform .25s ease;
}
.case:hover { transform: translateY(-3px); }
.case-meta {
  display: flex; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: rgba(255,255,255,0.65);
}
.case-title {
  font-size: 24px; font-weight: 600; line-height: 1.15; letter-spacing: -0.02em;
  margin: 18px 0; text-wrap: balance;
}
.case-vis {
  margin: 0 -28px;
}
.case-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500;
  margin-top: 18px;
}
.dot-sep { opacity: 0.6; }

/* ─── Quote ──────────────────────────────────────────────────────────── */
.quote {
  background: white;
  padding: 80px 56px;
  text-align: center;
  position: relative;
  border-top: 1px solid var(--mist);
  border-bottom: 1px solid var(--mist);
}
.quote-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 140px; line-height: 0.8; color: var(--indigo-12);
  position: absolute; top: 40px; left: 50%; transform: translateX(-50%);
}
.quote blockquote {
  position: relative; z-index: 1;
  max-width: 800px; margin: 0 auto;
  font-size: 28px; line-height: 1.35; letter-spacing: -0.015em;
  font-weight: 500;
  text-wrap: balance;
}
.quote-by {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 28px;
}
.quote-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 13px; font-weight: 600; letter-spacing: -0.02em;
}
.quote-name { font-weight: 500; font-size: 14px; }
.quote-role { font-size: 13px; color: var(--muted); }

/* ─── Process ────────────────────────────────────────────────────────── */
.process { background: var(--paper); }
.process-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
  counter-reset: step;
  position: relative;
}
.step {
  position: relative;
  background: white;
  border: 1px solid var(--mist);
  border-radius: 12px;
  padding: 28px 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.step-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--indigo);
  display: inline-flex; align-items: center; gap: 8px;
}
.step-n::after {
  content: ""; width: 28px; height: 1px; background: var(--mist);
}
.step h4 {
  font-size: 19px; font-weight: 600; margin: 0; letter-spacing: -0.02em;
}
.step p {
  margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted);
}
.step-line {
  position: absolute; top: 40px; right: -8px; width: 8px; height: 1px;
  background: var(--mist);
}

/* ─── Stack ──────────────────────────────────────────────────────────── */
.stack {
  background: white; border-top: 1px solid var(--mist);
}
.stack-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px;
}
.stack-col { display: flex; flex-direction: column; gap: 14px; }
.stack-h {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--indigo);
  padding-bottom: 12px; border-bottom: 1px solid var(--mist);
}
.stack-col ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.stack-col li {
  font-size: 15px; font-weight: 500;
}

/* ─── Customers ──────────────────────────────────────────────────────── */
.customers { background: white; border-top: 1px solid var(--mist); }
.customers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.customer-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--mist); border-radius: 14px; overflow: hidden;
  background: white;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.customer-card:hover {
  transform: translateY(-2px); border-color: var(--indigo-24);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}
/* Logo box — leaves room for a logotype; falls back to the name as placeholder */
.customer-logo {
  display: flex; align-items: center; justify-content: center;
  height: 132px; padding: 24px;
  background: var(--mist-2); border-bottom: 1px solid var(--mist);
}
.customer-logo img { max-height: 84px; max-width: 100%; object-fit: contain; }
.customer-logo-ph {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; color: var(--muted); text-align: center;
  letter-spacing: -0.01em;
}
.customer-card-body {
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px 24px 28px;
}
.customer-card-body h3 {
  font-size: 20px; font-weight: 600; margin: 0; letter-spacing: -0.02em;
}
.customer-card-body p {
  margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55;
}
.customer-link {
  margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--indigo);
  display: inline-flex; align-items: center; gap: 6px;
}
.customer-card:hover .customer-link span { transform: translateX(3px); }
.customer-link span { transition: transform .15s ease; }

/* ─── Customer detail page ───────────────────────────────────────────── */
.customer-detail { max-width: 920px; margin: 0 auto; }
.customer-back {
  display: inline-block; margin-bottom: 32px;
  font-size: 14px; color: var(--muted); transition: color .15s ease;
}
.customer-back:hover { color: var(--ink); }
.customer-detail-head {
  display: flex; gap: 32px; align-items: center;
  padding-bottom: 32px; margin-bottom: 32px;
  border-bottom: 1px solid var(--mist);
}
.customer-detail-head .customer-logo {
  flex: 0 0 200px; height: 160px; border-radius: 14px; border: 1px solid var(--mist);
}
.customer-detail-title {
  font-size: 40px; line-height: 1.05; letter-spacing: -0.03em;
  font-weight: 600; margin: 10px 0 0;
}
.customer-detail-intro {
  font-size: 18px; line-height: 1.55; color: var(--muted); margin: 16px 0 0;
}
.customer-detail-body p {
  font-size: 16px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 18px;
}
.customer-gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-top: 32px;
}
.customer-gallery img {
  width: 100%; border-radius: 12px; border: 1px solid var(--mist);
}

/* ─── About ──────────────────────────────────────────────────────────── */
.about { background: var(--paper); }
.team-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.member {
  background: white; border: 1px solid var(--mist); border-radius: 12px;
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.avatar {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 600; letter-spacing: -0.02em; font-size: 18px;
}
.member-name {
  font-size: 17px; font-weight: 600; letter-spacing: -0.015em;
  margin-top: 4px;
}
.member-role { font-size: 13px; color: var(--muted); }

/* ─── CTA ────────────────────────────────────────────────────────────── */
.cta {
  background: var(--ink); color: white;
  text-align: center;
  position: relative;
  padding: 120px 56px;
  overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 80%, rgba(79,70,229,0.4) 0%, transparent 50%),
    radial-gradient(circle at 20% 20%, rgba(124,58,237,0.25) 0%, transparent 50%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.cta-spark {
  display: inline-flex; padding: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  margin-bottom: 28px;
}
.cta h2 {
  font-size: 64px; line-height: 1; letter-spacing: -0.035em;
  font-weight: 600; margin: 0 0 24px;
  text-wrap: balance;
}
.cta p {
  font-size: 18px; line-height: 1.55; color: rgba(255,255,255,0.72);
  max-width: 540px; margin: 0 auto 40px;
}
.cta-actions {
  display: flex; justify-content: center; gap: 12px; margin-bottom: 32px;
}
.cta-meta {
  display: flex; justify-content: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: rgba(255,255,255,0.5);
}

/* ─── Footer ─────────────────────────────────────────────────────────── */
.footer {
  background: var(--paper);
  padding: 64px 56px 32px;
  border-top: 1px solid var(--mist);
}
.footer-top {
  display: grid; grid-template-columns: 1fr 2fr; gap: 56px;
  padding-bottom: 48px; border-bottom: 1px solid var(--mist);
}
.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.footer-h {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--indigo);
  margin-bottom: 16px;
}
.footer-cols a {
  display: block;
  font-size: 14px; color: var(--muted);
  padding: 4px 0;
  transition: color .15s ease;
}
.footer-cols a:hover { color: var(--ink); }
.footer-bot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; color: var(--muted);
}
.footer-bot .mono { color: var(--indigo); }

/* ─── Responsive nudge ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 64px 32px; }
  .hero-title { font-size: 56px; }
  section { padding: 64px 32px; }
  .services-grid, .work-grid, .team-grid { grid-template-columns: 1fr 1fr; }
  .stack-grid, .process-list { grid-template-columns: 1fr 1fr; }
  .customers-grid { grid-template-columns: 1fr 1fr; }
  .cta h2 { font-size: 44px; }
  .nav { padding: 14px 24px; }
  .logos { padding: 24px 32px; flex-wrap: wrap; }
  .footer { padding: 48px 32px 24px; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .customers-grid { grid-template-columns: 1fr; }
  .customer-detail-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .customer-detail-head .customer-logo { flex-basis: auto; width: 100%; }
  .customer-gallery { grid-template-columns: 1fr; }
}
