/* ============================================================
   Trueline Software — site styles
   ============================================================ */

:root {
  color-scheme: dark;

  --bg:            #09090b;
  --bg-alt:        #0f0f13;
  --surface:       #151519;
  --surface-2:     #1d1d24;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);

  --text:        #f5f6f8;
  --text-muted:  #a6abb5;
  --text-faint:  #71757f;

  --accent:       #6b8afd;
  --accent-hover: #8ba3ff;
  --accent-soft:  rgba(107, 138, 253, 0.13);
  --accent-line:  rgba(107, 138, 253, 0.32);
  --ok:           #3ecf8e;

  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --max-width: 1140px;

  --ring:      inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-md: 0 10px 34px -14px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 34px 64px -24px rgba(0, 0, 0, 0.62);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-feature-settings: "cv11", "ss01";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

::selection { background: var(--accent); color: #fff; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.032em;
  color: var(--text);
}
h2, h3 { text-wrap: pretty; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.section-lede {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.section { padding: clamp(72px, 9vw, 116px) 0; }
.section h2 { font-size: clamp(1.95rem, 3.8vw, 2.8rem); letter-spacing: -0.036em; }
main > section + section { border-top: 1px solid var(--border); }

@media (max-width: 768px) {
  .section { padding: 66px 0; }
}

/* ---------- Buttons ---------- */

.btn {
  --btn-py: 12px;
  --btn-px: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--btn-py) var(--btn-px);
  border: 1px solid transparent;
  border-radius: 11px;
  font: inherit;
  font-weight: 560;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease),
              border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}
.btn-lg { --btn-py: 15px; --btn-px: 28px; font-size: 1rem; }
.btn-sm { --btn-py: 9px;  --btn-px: 16px; font-size: 0.875rem; }

.btn-primary {
  background: linear-gradient(180deg, var(--accent-hover), var(--accent));
  color: #fff;
  box-shadow: var(--ring), 0 8px 22px -12px rgba(107, 138, 253, 0.55);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--ring), 0 12px 28px -10px rgba(107, 138, 253, 0.6);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--accent-line);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  --btn-px: 14px;
}
.btn-ghost:hover { color: var(--text); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* ---------- Pill / status ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 11px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(62, 207, 142, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0); }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header[data-scrolled="true"] {
  background: rgba(9, 9, 11, 0.82);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  white-space: nowrap;
}
.logo-mark {
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  color: #fff;
  transition: color 0.2s ease;
}
.logo:hover .logo-mark { color: var(--accent-hover); }
.logo-word {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}
.logo-name {
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.036em;
  color: #fff;
}
.logo-tag {
  margin-top: 3px;
  margin-right: -0.34em;
  font-size: 0.44rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.2s ease;
}
.logo:hover .logo-tag { color: var(--text-muted); }

.site-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 26px;
}
.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--text); }

/* Hamburger toggle — hidden on desktop, shown at <=720px */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 12px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--accent-line); }
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease), background 0.22s var(--ease);
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { content: ""; position: absolute; top: -6px; }
.nav-toggle-bars::after  { content: ""; position: absolute; top: 6px; }

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }

  .site-header[data-nav-open="true"] .nav-toggle-bars { background: transparent; }
  .site-header[data-nav-open="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .site-header[data-nav-open="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

  /* keep the primary CTA pinned right once the nav leaves the flow */
  .header-inner > .btn-primary { margin-left: auto; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 6px 24px 14px;
    background: rgba(9, 9, 11, 0.97);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  }
  .site-header[data-nav-open="true"] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .site-nav a {
    padding: 14px 4px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .site-nav a:last-child { border-bottom: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(120px, 17vw, 176px) 0 clamp(96px, 12vw, 132px);
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 38% at 50% -4%, var(--accent-soft), transparent 72%),
    radial-gradient(24% 30% at 82% 8%, rgba(107, 138, 253, 0.07), transparent 70%),
    radial-gradient(28% 34% at 14% 14%, rgba(120, 90, 240, 0.05), transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.hero-inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  animation: rise 0.7s var(--ease) both;
}
.hero .pill { margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  letter-spacing: -0.042em;
  line-height: 1.04;
}
.hero-sub {
  max-width: 552px;
  margin: 26px auto 40px;
  color: var(--text-muted);
  font-size: clamp(1.06rem, 2vw, 1.24rem);
  line-height: 1.62;
  text-wrap: pretty;
}
.hero .btn-row { justify-content: center; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 768px) {
  .hero { padding: 96px 0 72px; }
}

/* ---------- Proof of work / showcase ---------- */

.work-section { background: var(--bg-alt); }
.work-head { max-width: 640px; }

.showcase {
  position: relative;
  margin-top: 52px;
  overflow: hidden;
  --fade: 7%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
.marquee {
  display: flex;
  width: max-content;
}
.marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: 22px;
  padding: 26px 11px 36px;
}
.showcase.is-live .marquee {
  animation: marquee 78s linear infinite;
}
.showcase.is-live:hover .marquee,
.showcase.is-live:focus-within .marquee {
  animation-play-state: paused;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* No-JS fallback + reduced-motion: horizontal scroll, no visible scrollbar */
.showcase:not(.is-live) {
  overflow-x: auto;
  scrollbar-width: none;
}
.showcase:not(.is-live)::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  .showcase.is-live { overflow-x: auto; scrollbar-width: none; }
  .showcase.is-live::-webkit-scrollbar { display: none; }
  .showcase.is-live .marquee { animation: none; }
  .marquee-group[aria-hidden="true"] { display: none; }
}

.phone {
  position: relative;
  flex: 0 0 auto;
  width: 212px;
  padding: 6px;
  border-radius: 42px;
  background: linear-gradient(155deg, #2a2e36, #111318 62%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 2px 6px rgba(0, 0, 0, 0.4),
    0 46px 66px -30px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s var(--ease);
}
.showcase.is-live:hover .phone:hover { transform: translateY(-6px); }
.phone::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 17px;
  border-radius: 11px;
  background: #000;
  z-index: 3;
}
.phone-screen {
  border-radius: 36px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 720 / 1558;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 640px) {
  .phone { width: 182px; border-radius: 36px; }
  .phone-screen { border-radius: 31px; }
  .phone::after { width: 48px; height: 15px; top: 13px; }
  .marquee-group { gap: 16px; }
}

.showcase-note {
  max-width: 640px;
  margin: 14px 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-faint);
}
.work-section .showcase-note { margin-top: 6px; }

.work-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  margin-top: 20px;
  text-align: center;
}
.work-meta p {
  max-width: 440px;
  margin: 0;
  color: var(--text-muted);
}

.store-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.store-badge:hover { border-color: var(--accent-line); background: var(--surface-2); }
.store-badge svg { flex-shrink: 0; opacity: 0.92; }
.store-badge span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.store-badge strong {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 550;
  font-size: 0.95rem;
  text-decoration: none;
  transition: gap 0.18s var(--ease), color 0.18s ease;
}
.text-link:hover { gap: 9px; color: var(--accent-hover); }

/* Client quote / testimonial */
.quote {
  max-width: 760px;
  margin: 60px auto 0;
  padding: 34px 40px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.quote blockquote {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text);
  letter-spacing: -0.012em;
}
.quote figcaption {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.quote figcaption strong { color: var(--text); font-weight: 600; }

@media (max-width: 560px) {
  .quote { padding: 26px 24px; margin-top: 44px; }
  .quote blockquote { font-size: 1.05rem; }
}

/* ---------- Services ---------- */

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.trust-row li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.trust-row li::before {
  content: "";
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  border-radius: 4px;
  background:
    var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b8cff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 44px;
}
.card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  box-shadow: var(--ring);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--ring), var(--shadow-md);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  border: 1px solid var(--accent-line);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}
.card-icon svg { width: 19px; height: 19px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { margin: 0; color: var(--text-muted); line-height: 1.62; }

.card-facts {
  margin: 20px 0 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 9px;
}
.card-facts div {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  font-size: 0.88rem;
}
.card-facts dt { color: var(--text-faint); }
.card-facts dd { margin: 0; color: var(--text); }
.card .card-link { margin-top: auto; }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 550;
  font-size: 0.92rem;
  text-decoration: none;
  transition: gap 0.18s var(--ease), color 0.18s ease;
}
.card-link:hover { gap: 9px; color: var(--accent-hover); }

@media (max-width: 720px) {
  .cards-grid { grid-template-columns: 1fr; }
}

.capabilities {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 44px;
}
.capability {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.capability:hover { border-color: var(--border-strong); color: var(--text); }
.capability svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
}

@media (max-width: 640px) {
  .capabilities { grid-template-columns: 1fr; }
}

/* ---------- How we work ---------- */

.process-section { background: var(--bg-alt); }
.process-section .section-lede { max-width: 600px; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.process-steps li {
  padding: 26px 22px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
  transition: border-color 0.25s var(--ease);
}
.process-steps li:hover { border-color: var(--border-strong); }
.step-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 650;
}
.process-steps h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.process-steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ---------- Why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.why-item {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.why-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  border: 1px solid var(--accent-line);
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}
.why-icon svg { width: 18px; height: 18px; }
.why-item p { margin: 0; color: var(--text-muted); line-height: 1.6; }
.why-item a { color: var(--accent); text-decoration: none; }
.why-item a:hover { text-decoration: underline; }

@media (max-width: 820px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* ---------- Tech stack ---------- */

.stack-section { background: var(--bg-alt); }
.stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.stack-item {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 15px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s var(--ease);
}
.stack-item:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.stack-item svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--text); }

/* ---------- Team ---------- */

.team-panel {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 44px;
  padding: 32px 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.founder {
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border: 1px solid var(--accent-line);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
  font-size: 1.02rem;
}
.founder h3 { font-size: 1.05rem; }
.role { margin: 2px 0 0; color: var(--text-muted); font-size: 0.9rem; }
.team-note {
  margin: 0;
  padding-left: 40px;
  border-left: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 720px) {
  .team-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 26px;
  }
  .team-note {
    padding: 20px 0 0;
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

/* ---------- Contact ---------- */

.contact-section { padding: 88px 0; }

.contact-panel {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 48px;
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(130% 90% at 50% 0%, rgba(107, 138, 253, 0.14), transparent 58%),
    linear-gradient(180deg, var(--surface), var(--bg-alt));
  box-shadow: var(--ring), var(--shadow-lg);
  overflow: hidden;
}
.contact-panel .pill { margin-bottom: 22px; }
.contact-panel h2 { font-size: clamp(1.9rem, 3.6vw, 2.4rem); }
.contact-panel > p {
  max-width: 440px;
  margin: 16px auto 0;
  color: var(--text-muted);
  line-height: 1.6;
}
.contact-panel .btn-row { justify-content: center; margin-top: 30px; }

.contact-email {
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--text-faint);
}
.contact-email a {
  color: var(--text-muted);
  text-decoration: none;
}
.contact-email a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .contact-panel { padding: 44px 22px; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: var(--text-faint);
  font-size: 0.85rem;
}
.footer-legal { margin: 0; line-height: 1.65; }
.footer-inner a { color: var(--text-muted); text-decoration: none; }
.footer-inner a:hover { color: var(--text); }

/* ---------- Case study page ---------- */

.cs-hero {
  position: relative;
  padding: 128px 0 60px;
  overflow: hidden;
}
.cs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 44% at 20% -10%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.cs-hero .inner { position: relative; max-width: 780px; }
.cs-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3rem);
  letter-spacing: -0.03em;
  margin-top: 14px;
}
.cs-hero p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.6;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-faint);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 26px;
  transition: color 0.15s ease;
}
.back-link:hover { color: var(--text-muted); }

.spec-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 40px;
}
.spec-row div {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.spec-row dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.spec-row dd { margin: 6px 0 0; color: var(--text); font-size: 0.95rem; }
@media (max-width: 720px) { .spec-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .spec-row { grid-template-columns: 1fr; } }

.cs-figures {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.cs-figures::-webkit-scrollbar { display: none; }
.cs-figures .phone { scroll-snap-align: center; }
.cs-figures .phone::after { display: none; }

.cs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 32px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.cs-list li {
  display: flex;
  gap: 11px;
  color: var(--text-muted);
  line-height: 1.5;
}
.cs-list li::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  border-radius: 5px;
  background:
    var(--accent-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b8cff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}
@media (max-width: 640px) { .cs-list { grid-template-columns: 1fr; } }

.decisions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.decision {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.decision h3 { font-size: 1.05rem; margin-bottom: 9px; }
.decision p { margin: 0; color: var(--text-muted); line-height: 1.6; font-size: 0.95rem; }
@media (max-width: 720px) { .decisions { grid-template-columns: 1fr; } }

/* ---------- Guarantee (How we work) ---------- */

.guarantee {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  max-width: 660px;
  margin: 34px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--text);
  line-height: 1.62;
  font-size: 0.98rem;
}
.guarantee svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}
.guarantee strong { font-weight: 600; }

/* ---------- Founder's note (Team) ---------- */

.founder-note {
  max-width: 680px;
  margin: 40px 0 0;
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.founder-note blockquote { margin: 0; }
.founder-note p {
  margin: 0 0 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.founder-note p:last-child { margin-bottom: 0; }
.founder-note .signoff {
  margin-top: 18px;
  color: var(--text);
  font-weight: 550;
  font-size: 0.95rem;
}

@media (max-width: 560px) {
  .founder-note { padding: 24px 22px; }
}

/* ---------- FAQ ---------- */

.faq-section { background: var(--bg-alt); }

.faq {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 4px;
  cursor: pointer;
  font-weight: 550;
  font-size: 1.02rem;
  color: var(--text);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 0;
  padding: 0 4px 24px;
  max-width: 660px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- Contact meta ---------- */

.contact-meta {
  margin-top: 16px;
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-faint);
}

/* ---------- Scroll reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}
