/* Swifty Solutions — site.css
   Single stylesheet for the marketing pages. */

:root {
  --ink: #16181d;
  --ink-soft: #4b5058;
  --ink-faint: #878d96;
  --paper: #ffffff;
  --paper-dim: #f6f7f8;
  --line: #e5e7ea;
  --accent: #2b73b8;
  --accent-ink: #1f5c96;
  --radius: 8px;
  --container: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(43, 115, 184, 0.15); }

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

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand img { height: 28px; width: auto; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.925rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a.active { color: var(--ink); }

.lang-switch {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.8rem !important;
  color: var(--ink-soft);
}
.lang-switch:hover { border-color: var(--ink-faint); }

/* ---------- typographic blocks ---------- */

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }

.section {
  padding: 88px 0;
}
.section + .section { border-top: 1px solid var(--line); }

.section-head { max-width: 560px; margin-bottom: 48px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; }

.muted { color: var(--ink-soft); }
.small { font-size: 0.875rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 0.925rem;
  font-weight: 550;
  border: 1px solid transparent;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2c3038; }

.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-faint); }

.text-link { font-weight: 550; font-size: 0.925rem; }
.text-link::after { content: " \2192"; }

/* ---------- hero ---------- */

.hero { padding: 104px 0 72px; }

.hero-inner { max-width: 720px; }

.hero p.lead {
  margin-top: 24px;
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

/* stats strip */

.stats {
  margin-top: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
}

.stat {
  padding: 24px 20px;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; }

.stat b {
  display: block;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.stat span {
  font-size: 0.8rem;
  color: var(--ink-faint);
}

/* ---------- services ---------- */

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
}

.service {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
}

.service i {
  font-style: normal;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-faint);
  padding-top: 4px;
}

.service p {
  margin-top: 6px;
  font-size: 0.925rem;
  color: var(--ink-soft);
}

/* ---------- portfolio ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 120ms ease;
}
.work-card:hover { border-color: var(--ink-faint); }

.work-card .tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.work-card h3 { margin-bottom: 10px; }

.work-card > p {
  font-size: 0.925rem;
  color: var(--ink-soft);
  flex: 1;
}

.work-facts {
  list-style: none;
  margin: 20px 0 24px;
  border-top: 1px solid var(--line);
}

.work-facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}

.work-facts li span { color: var(--ink-faint); }
.work-facts li b { font-weight: 550; text-align: right; }

/* ---------- open source ---------- */

.repo-list { border-top: 1px solid var(--line); }

.repo {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.repo:hover { text-decoration: none; background: var(--paper-dim); }

.repo b { font-weight: 600; font-size: 0.95rem; }
.repo p { font-size: 0.875rem; color: var(--ink-soft); }
.repo span { font-size: 0.8rem; color: var(--ink-faint); white-space: nowrap; }

/* ---------- principle / about blurb ---------- */

.principle {
  max-width: 720px;
}
.principle blockquote {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.principle p {
  margin-top: 20px;
  color: var(--ink-soft);
}

/* ---------- profiles / links ---------- */

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.profile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--ink);
  transition: border-color 120ms ease;
}
.profile:hover { border-color: var(--ink-faint); text-decoration: none; }

.profile b { display: block; font-weight: 600; margin-bottom: 4px; }
.profile p { font-size: 0.875rem; color: var(--ink-soft); }
.profile span {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 550;
  color: var(--accent-ink);
}
.profile span::after { content: " \2192"; }

/* ---------- CTA ---------- */

.cta {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.cta p { color: var(--ink-soft); margin-top: 12px; }
.cta .hero-actions { justify-content: center; }

/* ---------- two-col (about) ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col figure {
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.two-col figure img { max-width: 240px; }

.kv-list { list-style: none; margin-top: 32px; border-top: 1px solid var(--line); }
.kv-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.925rem;
}
.kv-list span { color: var(--ink-faint); }
.kv-list b { font-weight: 550; text-align: right; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  background: var(--paper-dim);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-grid h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.footer-grid p { font-size: 0.875rem; color: var(--ink-soft); }
.footer-grid img { height: 26px; margin-bottom: 14px; }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--ink-faint);
}

.footer-bottom a { color: var(--ink-faint); }
.footer-bottom nav { display: flex; gap: 20px; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat:nth-child(4) { border-left: none; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+3) { border-top: none; }
  .work-grid, .profile-grid { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .repo { grid-template-columns: 1fr auto; }
  .repo p { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero { padding: 72px 0 56px; }
  .brand span { display: none; }
  .site-nav { gap: 18px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .stat { border-left: none; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: none; }
  .stat:nth-child(2n) { border-left: 1px solid var(--line); }
  .work-grid, .profile-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
