/* =========================================================
   SOFTBOLT — static site stylesheet
   Brand: SOFT (ink) + BOLT (red). Modern, responsive, no frameworks.
   ========================================================= */

:root {
  --red: #ff2d2d;
  --red-600: #e01414;
  --red-700: #c40d0d;

  --ink: #0d0f14;
  --ink-800: #14171f;
  --ink-700: #1c2029;

  --text: #1b1f27;
  --muted: #5c6673;
  --line: #e7e9ee;

  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef1f5;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(13, 15, 20, .06), 0 1px 3px rgba(13, 15, 20, .08);
  --shadow: 0 10px 30px rgba(13, 15, 20, .10);
  --shadow-lg: 0 24px 60px rgba(13, 15, 20, .18);

  --container: 1140px;
  --gap: 24px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--red-600); text-decoration: none; }
a:hover { color: var(--red-700); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.15;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.22rem; }

p { margin: 0 0 1rem; }

ul { margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--surface { background: var(--surface); }
.section--ink {
  background: var(--ink);
  color: #c9d1dc;
}
.section--ink h2, .section--ink h3 { color: #fff; }

.section-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.left { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 14px;
}
.section--ink .eyebrow { color: var(--red); }

.lead { font-size: 1.12rem; color: var(--muted); }
.section--ink .lead { color: #aeb8c6; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .98rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 45, 45, .30);
}
.btn--primary:hover { background: var(--red-600); color: #fff; box-shadow: 0 10px 26px rgba(255, 45, 45, .40); }

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

.btn--on-dark {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
}
.btn--on-dark:hover { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- brand wordmark ---------- */
.wordmark {
  font-weight: 900;
  letter-spacing: -0.03em;
  font-size: 1.5rem;
  line-height: 1;
  display: inline-flex;
}
.wordmark .soft { color: var(--ink); }
.wordmark .bolt { color: var(--red); }
.wordmark--light .soft { color: #fff; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}
.nav__brand { display: inline-flex; align-items: center; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav__links a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--text);
  font-weight: 600;
  font-size: .96rem;
  border-radius: 8px;
}
.nav__links a:hover { color: var(--ink); background: var(--surface); }
.nav__links a.active { color: var(--red-600); }

.nav__cta { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 75% -10%, #242a39 0%, rgba(36,42,57,0) 60%), var(--ink);
  color: #e8edf4;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255,45,45,.28) 0%, rgba(255,45,45,0) 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  padding: 96px 0 104px;
}
.hero h1 { color: #fff; }
.hero h1 .accent { color: var(--red); }
.hero__lead {
  font-size: 1.18rem;
  color: #aeb8c6;
  max-width: 44ch;
  margin-bottom: 28px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  color: #8e99a9;
  font-size: .92rem;
}
.hero__meta strong { color: #fff; font-size: 1.5rem; font-weight: 800; display: block; letter-spacing: -0.02em; }

.hero__card {
  background: linear-gradient(160deg, var(--ink-700), var(--ink-800));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.hero__card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.hero__list { list-style: none; display: grid; gap: 14px; }
.hero__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #c9d1dc;
  font-size: .98rem;
}
.hero__list .tick {
  flex: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(255,45,45,.15);
  color: var(--red);
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 900;
  margin-top: 2px;
}

/* ---------- generic cards / grids ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #dfe3ea; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,45,45,.10);
  color: var(--red-600);
  margin-bottom: 18px;
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---------- feature rows ---------- */
.feature {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px;
  align-items: center;
}
.feature + .feature { margin-top: 72px; }
.feature__media img,
.feature__media .media-box {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}
.feature .tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; list-style: none; }
.tag {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- checklist ---------- */
.checklist { list-style: none; display: grid; gap: 12px; margin-top: 6px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.checklist .tick {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center;
  font-size: .72rem; font-weight: 900; margin-top: 4px;
}

/* ---------- portfolio ---------- */
.portfolio-grid { grid-template-columns: repeat(4, 1fr); }
.project {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-800);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1 / 1;
  display: block;
}
.project img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.project:hover img { transform: scale(1.06); }
.project__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  background: linear-gradient(to top, rgba(8,10,14,.86) 0%, rgba(8,10,14,.2) 55%, rgba(8,10,14,0) 100%);
  color: #fff;
  opacity: 0;
  transition: opacity .25s ease;
}
.project:hover .project__overlay,
.project:focus-visible .project__overlay { opacity: 1; }
.project__overlay strong { font-size: 1.02rem; }
.project__overlay span { font-size: .82rem; color: #c9d1dc; }

/* ---------- portfolio (detailed list) ---------- */
.project-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.project-card + .project-card { margin-top: 24px; }
.project-card__media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.project-card__media img { width: 100%; height: 100%; object-fit: cover; }
.project-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
  margin-bottom: 6px;
}
.project-card__head h3 { margin: 0; }
.year-pill {
  font-size: .76rem;
  font-weight: 700;
  color: var(--red-600);
  background: rgba(255,45,45,.10);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .02em;
}
.project-card p { color: var(--muted); margin-bottom: 12px; }
.project-card .store-links { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; font-size: .9rem; }
.project-card .store-links a { font-weight: 600; }
.muted-note { color: var(--muted); font-size: .9rem; font-style: italic; }

/* ---------- clients / tech strips ---------- */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.logo-cell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  min-height: 108px;
  display: grid;
  place-items: center;
  padding: 22px 26px;
}
.logo-cell img {
  max-height: 56px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .72;
  transition: filter .25s ease, opacity .25s ease;
}
.logo-cell:hover img { filter: grayscale(0); opacity: 1; }

.tech-stack { display: grid; gap: 18px; justify-items: center; }
.tech-stack img { max-height: 46px; width: auto; }

/* ---------- principles ---------- */
.principle {
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 22px;
}
.principle h3 { color: #fff; margin-bottom: 6px; font-size: 1.1rem; }
.principle p { color: #aeb8c6; margin: 0; font-size: .98rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--red-700), var(--red));
  color: #fff;
  border-radius: 20px;
  padding: 54px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.9); margin: 0; max-width: 52ch; }
.cta-band .btn--primary { background: #fff; color: var(--red-700); box-shadow: none; }
.cta-band .btn--primary:hover { background: #0d0f14; color: #fff; }

/* ---------- careers ---------- */
.careers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.careers__media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- contact ---------- */
.contact-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.office {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.office + .office { margin-top: 20px; }
.office h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.office .flag { font-size: 1.3rem; }
.office address { font-style: normal; color: var(--muted); line-height: 1.8; }
.office a { font-weight: 600; }

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--text); }
.field input,
.field textarea {
  font: inherit;
  font-size: .98rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(255,45,45,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: .86rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--ink);
  color: #9aa5b4;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-footer h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer p { font-size: .95rem; color: #8e99a9; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: #9aa5b4; font-weight: 500; font-size: .95rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: .86rem;
  color: #6b7480;
}
.footer-bottom a { color: #9aa5b4; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; padding: 72px 0 80px; }
  .hero__card { order: 2; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature__media { order: -1; }
  .careers { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; text-align: center; padding: 40px 28px; }
  .cta-band .btn { justify-self: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }

  .nav__links,
  .nav__cta .btn { display: none; }
  .nav__toggle { display: flex; }

  .nav--open .nav__links {
    display: flex;
    position: absolute;
    left: 0; right: 0;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 12px 16px 18px;
  }
  .nav--open .nav__links a { padding: 12px 10px; border-radius: 8px; }
  .nav--open .nav__links .btn {
    display: inline-flex;
    justify-content: center;
    margin-top: 8px;
  }

  .grid-2, .grid-3, .logo-strip { grid-template-columns: 1fr; }
  .logo-strip { grid-template-columns: repeat(2, 1fr); }
  .project-card { grid-template-columns: 1fr; gap: 18px; }
  .project-card__media { max-width: 180px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .project img { transition: none; }
}
