/* InnoSfera — design system · Dark Theme */
:root {
  --bg: #0a0a0c;
  --bg-2: #111114;
  --bg-card: #16161a;
  --ink: #e8e8ec;
  --ink-2: #c4c4ca;
  --muted: #6e6e78;
  --muted-2: #4a4a52;
  --line: #222228;
  --line-2: #1a1a1e;
  --accent: #e8e8ec;
  --accent-ink: #0a0a0c;
  --warn: #e85d4a;
  --ok: #4aba5c;
  --radius: 2px;
  --container: 1320px;

  /* Nowe zmienne (Blog & UI) */
  --primary-color: #3d7ce6;
  --primary-light: rgba(61, 124, 230, 0.12);
  --border-color: var(--line);
  --text-color: var(--ink);
  --bg-color: var(--bg);
  --hero-grad: linear-gradient(135deg, #ffffff 0%, #7a7a9a 100%);
}

.light-theme {
  --bg: #f6f6f3;
  --bg-2: #eeede8;
  --bg-card: #ffffff;
  --ink: #17171a;
  --ink-2: #2b2b2e;
  --muted: #6b6b6e;
  --muted-2: #9a9a9c;
  --line: #dedcd5;
  --line-2: #ececea;
  --accent: #1a1a1a;
  --accent-ink: #f6f6f3;
  --warn: #a63e2a;
  --ok: #2f5c3a;
  --primary-color: #0d47a1;
  --primary-light: rgba(13, 71, 161, 0.1);
  --hero-grad: linear-gradient(135deg, #17171a 0%, #4a4a52 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01","cv11";
  font-size: 16px;
  line-height: 1.5;
}
.mono { font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-feature-settings: "zero","ss01"; letter-spacing: 0.01em; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ---------- Top utility bar ---------- */
.util {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  font-size: 12.5px;
  color: var(--muted);
}
.util-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.util .mono { letter-spacing: 0.04em; }
.util-left, .util-right { display: flex; gap: 22px; align-items: center; }
.util a:hover { color: var(--ink); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,12,0.88);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}
.light-theme .nav {
  background: rgba(246,246,243,0.92);
}
.nav-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; height: 68px; gap: 36px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; font-size: 18px; }
.brand-mark {
  width: 26px; height: 26px; position: relative;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg);
}
.brand-mark::after {
  content: ""; width: 8px; height: 8px; background: var(--ink); border-radius: 50%;
}
.brand-mark::before {
  content: ""; position: absolute; inset: 4px;
  border: 1px dashed var(--ink-2); border-radius: 50%;
  opacity: 0.35;
}
.brand .tm { font-family: 'Geist Mono', monospace; font-size: 10px; color: var(--muted); margin-left: 2px; align-self: start; margin-top: 2px; }
.nav-links { display: flex; gap: 28px; justify-content: center; font-size: 14.5px; color: var(--ink-2); }
.nav-links a { position: relative; padding: 4px 0; }
.nav-links a.active { color: var(--primary-color); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -24px; height: 2px; background: var(--primary-color);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- Buttons ---------- */
.btn { 
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; 
  font-size: 14.5px; font-weight: 500; border-radius: var(--radius); 
  border: 1px solid var(--primary-color); background: var(--primary-color); 
  color: #ffffff; cursor: pointer; transition: all .2s ease; 
  letter-spacing: -0.005em; 
}
.btn:hover { background: #2b66c7; border-color: #2b66c7; color: #ffffff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(61,124,230,0.2); }
.btn .arr { display: inline-block; transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--primary-color); border: 1px solid var(--primary-color); }
.btn-ghost:hover { background: var(--primary-color); color: #ffffff; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 18px 32px; font-size: 16px; }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-line:hover { border-color: var(--primary-color); background: transparent; color: var(--primary-color); }

/* ---------- Kicker / labels ---------- */
.kicker { font-family: 'Geist Mono', monospace; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary-color); display: inline-flex; gap: 8px; align-items: center; font-weight: 500; }
.kicker .dot { width: 5px; height: 5px; background: var(--primary-color); display: inline-block; border-radius: 50%; box-shadow: 0 0 8px var(--primary-color); }
.section-num { font-family: 'Geist Mono', monospace; font-size: 11.5px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }

/* ---------- Section ---------- */
section { border-top: 1px solid var(--line); }
section:first-of-type { border-top: none; }
.sec-pad { padding: 92px 0; }
.sec-pad-lg { padding: 120px 0; }
.sec-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 56px; }
.sec-head h2 { margin: 8px 0 0; font-size: clamp(36px, 4.4vw, 60px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; }
.sec-head p { margin: 0; color: var(--muted); font-size: 17px; max-width: 56ch; line-height: 1.5; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 60px;
  overflow: hidden;
  background: radial-gradient(circle at 15% 50%, rgba(61, 124, 230, 0.06), transparent 25%),
              radial-gradient(circle at 85% 30%, rgba(61, 124, 230, 0.04), transparent 25%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(61,124,230,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(61,124,230,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 40%, transparent 80%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero-meta { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 56px; }
.hero-meta .l, .hero-meta .r { font-family: 'Geist Mono', monospace; font-size: 11.5px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.hero h1 {
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 0;
  max-width: 18ch;
  background: var(--hero-grad, linear-gradient(135deg, #ffffff 0%, #7a7a9a 100%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 em { font-style: normal; color: var(--muted); font-weight: 400; }
.hero-sub { max-width: 56ch; margin: 32px 0 40px; font-size: 19px; color: var(--ink-2); line-height: 1.5; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* data strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 80px; background: var(--bg); }
.strip-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.strip-cell { padding: 24px 22px; border-left: 1px solid var(--line); }
.strip-cell:first-child { border-left: none; }
.strip-cell .label { font-family: 'Geist Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.strip-cell .val { margin-top: 10px; font-size: 22px; letter-spacing: -0.02em; font-weight: 500; }
.strip-cell .sub { margin-top: 4px; font-size: 12.5px; color: var(--muted); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); background: var(--bg-card); }
.pillar { padding: 44px 40px 36px; border-right: 1px solid var(--line); position: relative; min-height: 440px; display: flex; flex-direction: column; }
.pillar:last-child { border-right: none; }
.pillar .pill-num { position: absolute; top: 22px; right: 24px; font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }
.pillar h3 { margin: 28px 0 12px; font-size: 38px; letter-spacing: -0.03em; font-weight: 500; line-height: 1.05; }
.pillar .lead { color: var(--ink-2); font-size: 16px; max-width: 44ch; }
.pillar ul { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 10px; }
.pillar li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; font-size: 14.5px; color: var(--ink-2); align-items: baseline; }
.pillar li::before { content: "—"; color: var(--muted); }
.pillar li span { display: block; }
.pillar .pill-foot { margin-top: auto; padding-top: 28px; display: flex; justify-content: space-between; align-items: end; }
.pillar .pill-foot .count { font-family: 'Geist Mono', monospace; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

.pillar-ico { 
  width: 64px; height: 64px; border: 1px solid var(--line); 
  display: grid; place-items: center; background: var(--bg); 
  color: var(--primary-color);
  position: relative;
  transition: all 0.3s ease;
}
.pillar-ico::after {
  content: ""; position: absolute; inset: -1px; background: var(--primary-color); opacity: 0; filter: blur(10px); transition: opacity 0.3s ease; z-index: -1;
}
.pillar:hover .pillar-ico {
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 0 15px rgba(61,124,230,0.15);
}

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--bg-card); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.card { padding: 32px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; min-height: 260px; display: flex; flex-direction: column; }
.cards .card:nth-child(4n) { border-right: none; }
.cards.c3 .card:nth-child(3n) { border-right: none; }
.cards.c2 .card:nth-child(2n) { border-right: none; }
.card .num { font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--muted); }
.card h4 { margin: 18px 0 10px; font-size: 22px; letter-spacing: -0.02em; font-weight: 500; line-height: 1.2; }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.card .arrow { margin-top: auto; padding-top: 20px; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s ease; }
.card:hover { background: var(--bg-2); cursor: pointer; box-shadow: 0 0 24px rgba(61,124,230,0.06); border-color: var(--primary-color); }
.card:hover .arrow { color: var(--primary-color); }
.card:hover .arrow .arr { transform: translateX(3px); }

/* License / vendor cards */
.vendor-card { padding: 26px 26px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; min-height: 200px; background: var(--bg-card); position: relative; }
.vendor-logo { font-weight: 600; letter-spacing: -0.015em; font-size: 20px; color: var(--ink); }
.vendor-meta { display: flex; justify-content: space-between; margin-top: 8px; font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.vendor-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 20px; }
.tag { font-family: 'Geist Mono', monospace; font-size: 10.5px; padding: 4px 8px; border: 1px solid var(--line); color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Trust block ---------- */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); background: var(--bg-card); }
.logo-cell { padding: 32px 20px; border-right: 1px solid var(--line); display: grid; place-items: center; min-height: 110px; font-weight: 600; letter-spacing: -0.01em; color: var(--muted); font-size: 17px; }
.logo-cell:last-child { border-right: none; }
.logo-cell .lv { opacity: 0.6; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); }
.stat { padding: 36px 28px; border-right: 1px solid var(--line); background: var(--bg-card); }
.stat:last-child { border-right: none; }
.stat .big { font-size: 52px; letter-spacing: -0.04em; font-weight: 500; line-height: 1; }
.stat .lbl { margin-top: 12px; font-size: 13.5px; color: var(--muted); max-width: 26ch; line-height: 1.4; }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: var(--bg-card); }
.quote { padding: 36px 32px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.quote:last-child { border-right: none; }
.quote .q { font-size: 17px; letter-spacing: -0.01em; line-height: 1.45; color: var(--ink); font-weight: 400; }
.quote .q::before { content: "„"; display: block; font-size: 36px; line-height: 0.3; margin-bottom: 16px; color: var(--muted); }
.quote .who { margin-top: auto; padding-top: 28px; font-size: 13.5px; display: flex; gap: 12px; align-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line); display: grid; place-items: center; font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--muted); }
.who-name { color: var(--ink); font-weight: 500; }
.who-role { color: var(--muted); }

/* ---------- Przemek block ---------- */
.expert { display: grid; grid-template-columns: 520px 1fr; gap: 0; border: 1px solid var(--line); background: var(--bg-card); }
.expert-img { position: relative; border-right: 1px solid var(--line); background: var(--bg-2); min-height: 560px; overflow: hidden; }
.expert-img .placeholder-person { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; }
.expert-img .id-card { font-family: 'Geist Mono', monospace; font-size: 10.5px; color: var(--muted); display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.stripes {
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(200,200,220,0.03) 0 14px, transparent 14px 28px);
}
.expert-img .person-silhouette {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--muted);
  font-family: 'Geist Mono', monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
}

.expert-body { padding: 48px 48px 40px; display: flex; flex-direction: column; }
.expert-body .kicker { margin-bottom: 28px; }
.expert-quote { font-size: 32px; letter-spacing: -0.025em; line-height: 1.2; font-weight: 500; color: var(--ink); max-width: 28ch; margin: 0; }
.expert-quote::before { content: "„"; color: var(--muted); margin-right: 2px; }
.expert-sign { margin-top: 32px; font-size: 14px; }
.expert-sign .nm { font-weight: 500; }
.expert-sign .rl { color: var(--muted); }
.expert-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.expert-stats .n { font-size: 44px; letter-spacing: -0.035em; font-weight: 500; line-height: 1; color: var(--primary-color); }
.expert-stats .l { margin-top: 10px; font-size: 13px; color: var(--muted); max-width: 18ch; }
.expert-skills { margin-top: 36px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Case study */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case { border: 1px solid var(--line); background: var(--bg-card); padding: 32px 32px 28px; display: flex; flex-direction: column; min-height: 340px; }
.case .case-tag { font-family: 'Geist Mono', monospace; font-size: 10.5px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.case h4 { font-size: 26px; letter-spacing: -0.025em; font-weight: 500; margin: 14px 0 16px; line-height: 1.15; max-width: 28ch; }
.case-rows { display: grid; grid-template-columns: 80px 1fr; gap: 8px 20px; font-size: 14px; line-height: 1.5; margin-top: 4px; }
.case-rows .k { font-family: 'Geist Mono', monospace; font-size: 10.5px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; padding-top: 3px; }
.case-rows .v { color: var(--ink-2); }
.case-foot { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Final CTA ---------- */
.final-cta {
  background: linear-gradient(135deg, #0a0e1a 0%, #101630 100%);
  color: #e8e8ec;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--primary-color);
}
.light-theme .final-cta {
  background: var(--ink);
  color: var(--bg);
  border-top: none;
}
.light-theme .final-cta h2 { color: var(--bg); }
.light-theme .final-cta p { color: #a4a4a6; }
.light-theme .final-cta .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.light-theme .final-cta .btn:hover { background: #fff; }
.light-theme .final-cta .btn-ghost { background: transparent; color: var(--bg); border-color: #38383b; }
.light-theme .final-cta .btn-ghost:hover { background: var(--bg); color: var(--ink); }
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(61,124,230,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(61,124,230,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 30% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, black 20%, transparent 70%);
}
.final-cta .container { position: relative; }
.final-cta .kicker { color: #7d7d80; }
.final-cta .kicker .dot { background: var(--primary-color); }
.final-cta h2 { font-size: clamp(44px, 6vw, 88px); letter-spacing: -0.04em; line-height: 1; margin: 20px 0 36px; font-weight: 500; max-width: 18ch; color: #fff; }
.final-cta p { color: #9a9aa6; max-width: 54ch; font-size: 18px; margin: 0 0 40px; }
.final-cta .btn { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.final-cta .btn:hover { background: #5090f0; }
.final-cta .btn-ghost { background: transparent; color: #e8e8ec; border-color: #38383b; }
.final-cta .btn-ghost:hover { background: rgba(61,124,230,0.1); color: #fff; border-color: var(--primary-color); }

/* ---------- Footer ---------- */
footer.site {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
  font-size: 14px;
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
.foot-col h5 { margin: 0 0 16px; font-size: 13px; color: var(--muted); font-family: 'Geist Mono', monospace; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 400; }
.foot-col a { display: block; padding: 4px 0; color: var(--ink-2); }
.foot-col a:hover { color: var(--ink); }
.foot-brand p { color: var(--muted); font-size: 14px; max-width: 34ch; margin-top: 16px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Shared: breadcrumbs ---------- */
.crumb { padding: 22px 0; border-bottom: 1px solid var(--line); font-family: 'Geist Mono', monospace; font-size: 11.5px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.crumb .sep { opacity: 0.5; }
.crumb .cur { color: var(--ink); }

/* ---------- Pillar-page hero ---------- */
.page-hero { padding: 80px 0 72px; position: relative; }
.page-hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 64px; align-items: end; }
.page-hero h1 { margin: 16px 0 0; font-size: clamp(48px, 6vw, 96px); letter-spacing: -0.04em; line-height: 0.98; font-weight: 500; max-width: 16ch; }
.page-hero h1 em { font-style: normal; color: var(--muted); font-weight: 400; }
.page-hero .lead { margin: 28px 0 0; font-size: 18px; color: var(--ink-2); max-width: 52ch; line-height: 1.55; }
.page-hero .side { font-size: 13.5px; color: var(--muted); line-height: 1.55; padding-left: 24px; border-left: 1px solid var(--line); }
.page-hero .side strong { color: var(--ink); display: block; margin-bottom: 6px; font-weight: 500; }

/* ---------- Process steps ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--bg-card); }
.step { padding: 32px 28px 28px; border-right: 1px solid var(--line); position: relative; min-height: 240px; }
.step:last-child { border-right: none; }
.step .step-num { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.step h5 { margin: 56px 0 10px; font-size: 20px; letter-spacing: -0.02em; font-weight: 500; }
.step p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); padding: 26px 0; display: grid; grid-template-columns: 60px 1fr auto; gap: 24px; align-items: start; cursor: pointer; }
.faq-item .qn { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: 0.1em; padding-top: 4px; }
.faq-item .qt { font-size: 19px; letter-spacing: -0.015em; font-weight: 500; }
.faq-item .plus { font-family: 'Geist Mono', monospace; color: var(--muted); font-size: 18px; padding-top: 1px; }
.faq-item .qa { grid-column: 2; margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 64ch; display: none; }
.faq-item.open .qa { display: block; }
.faq-item.open .plus { color: var(--ink); transform: rotate(45deg); transition: transform .15s ease; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: span 2; }
.field label { font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  border: 1px solid var(--line); background: var(--bg-card); color: var(--ink);
  font: inherit; padding: 14px 16px; border-radius: 0; outline: none;
  transition: border-color .15s ease;
  font-size: 15px;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.field textarea { resize: vertical; min-height: 140px; }
.radio-group { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio {
  border: 1px solid var(--line); padding: 18px 20px; background: var(--bg-card); cursor: pointer;
  display: flex; align-items: center; gap: 14px;
  transition: border-color .15s ease;
}
.radio:hover { border-color: var(--ink-2); }
.radio.on { border-color: var(--ink); }
.radio .rdo { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; }
.radio.on .rdo::after { content: ""; width: 6px; height: 6px; background: var(--ink); border-radius: 50%; }
.radio .ttl { font-size: 15px; font-weight: 500; }
.radio .sub { font-size: 12.5px; color: var(--muted); }

/* ---------- Product page ---------- */
.product-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; }
.screens {
  background: var(--bg-2); border: 1px solid var(--line); aspect-ratio: 4/3; position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.screens .stripes { opacity: 0.9; }
.screens .hint { position: relative; font-family: 'Geist Mono', monospace; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; background: var(--bg-card); padding: 6px 10px; border: 1px solid var(--line); }
.screens .chrome { position: absolute; top: 0; left: 0; right: 0; height: 28px; background: var(--bg-card); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 5px; padding: 0 10px; }
.screens .chrome .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
.thumb { border: 1px solid var(--line); aspect-ratio: 4/3; position: relative; background: var(--bg-2); cursor: pointer; }
.thumb.on { border-color: var(--ink); }
.thumb .stripes { inset: 0; }
.prop-list { display: grid; grid-template-columns: 140px 1fr; gap: 12px 24px; font-size: 14.5px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prop-list .k { color: var(--muted); font-family: 'Geist Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 3px; }
.prop-list .v { color: var(--ink-2); }

.price-block { border: 1px solid var(--line); background: var(--bg-card); padding: 28px; display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.price-block .badge { display: inline-flex; align-items: center; gap: 8px; font-family: 'Geist Mono', monospace; font-size: 11px; color: #4aba5c; background: rgba(74,186,92,0.1); padding: 6px 10px; border: 1px solid rgba(74,186,92,0.2); align-self: flex-start; letter-spacing: 0.08em; text-transform: uppercase; }
.price-block .ask { font-size: 22px; letter-spacing: -0.02em; }
.price-block .ask strong { font-weight: 500; }
.price-block .save { color: var(--muted); font-size: 13.5px; }
.price-block .btns { display: flex; gap: 10px; }

/* ---------- Utility classes ---------- */
.divider { height: 1px; background: var(--line); margin: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.eyebrow { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* ---------- Mockup placeholders ---------- */
.mock { position: relative; background: var(--bg-2); border: 1px solid var(--line); overflow: hidden; }
.mock .stripes { position: absolute; inset: 0; }
.mock .tag-l { position: absolute; top: 12px; left: 12px; font-family: 'Geist Mono', monospace; font-size: 10.5px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; background: var(--bg-card); padding: 4px 8px; border: 1px solid var(--line); }
.mock .tag-r { position: absolute; bottom: 12px; right: 12px; font-family: 'Geist Mono', monospace; font-size: 10.5px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.mock .crosshair {
  position: absolute; width: 18px; height: 18px; pointer-events: none;
}
.mock .crosshair::before, .mock .crosshair::after { content: ""; position: absolute; background: var(--muted-2); }
.mock .crosshair::before { left: 50%; top: 0; bottom: 0; width: 1px; transform: translateX(-50%); }
.mock .crosshair::after { top: 50%; left: 0; right: 0; height: 1px; transform: translateY(-50%); }
.mock .c-tl { top: 10px; left: 10px; }
.mock .c-tr { top: 10px; right: 10px; }
.mock .c-bl { bottom: 10px; left: 10px; }
.mock .c-br { bottom: 10px; right: 10px; }

/* ---------- Carousel ---------- */
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.carousel-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 24px rgba(61,124,230,0.08);
}
.carousel-card .cc-brand {
  font-family: 'Geist Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.carousel-card h4 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0;
}
.carousel-card .cc-price {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--primary-color);
}

/* ---------- Product Property List ---------- */
.prop-list {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0;
  border: 1px solid var(--line);
}
.prop-list .k, .prop-list .v {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.prop-list .k {
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-card);
  border-right: 1px solid var(--line);
}

/* ---------- Mobile (minimal, desktop-first) ---------- */
@media (max-width: 1000px) {
  .container { padding: 0 20px; }
  .nav-links { display: none; }
  .hero h1 { font-size: 52px; }
  .pillars, .cards, .cards.c3, .cards.c2, .stats, .process, .logos, .form-grid, .product-grid, .grid-2, .grid-3, .quotes, .cases, .expert, .page-hero-grid, .foot-grid, .sec-head { grid-template-columns: 1fr; }
  .card, .pillar, .vendor-card, .step, .stat, .logo-cell, .quote { border-right: none !important; }
  .strip-inner { grid-template-columns: repeat(2, 1fr); }
  .strip-cell { border-left: none; border-top: 1px solid var(--line); }
  .expert-img { min-height: 360px; }
}

/* ---------- Dark Theme Micro-Animations ---------- */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.kicker .dot {
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle glow on vendor cards hover */
.vendor-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(61,124,230,0.06);
}

/* Removed logo invert for dark theme per user request */

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-left: 12px;
}
.theme-toggle:hover {
  background: var(--bg-2);
  color: var(--primary-color);
  border-color: var(--primary-color);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}
.light-theme .icon-sun { display: none; }
.light-theme .icon-moon { display: block; }
html:not(.light-theme) .icon-sun { display: block; }
html:not(.light-theme) .icon-moon { display: none; }

/* ---------- Grid Item Links (Homepage) ---------- */
.grid-item-link:hover img {
  transform: scale(1.05);
  opacity: 0.8 !important;
}
.grid-item-link:hover div:nth-child(2) {
  background: linear-gradient(180deg, rgba(61, 124, 230, 0.2) 0%, rgba(10, 10, 12, 0.8) 100%) !important;
}

/* ---------- Blog Categories (Pills) ---------- */
.cat-pills {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
  justify-content: center;
  flex-wrap: wrap;
}
.cat-pill {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.cat-pill:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(61, 124, 230, 0.05);
}
.cat-pill.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(61, 124, 230, 0.25);
}

/* ---------- Mobile (Smartphones) ---------- */
@media (max-width: 600px) {
  /* 1. Top Bar & Header */
  .util { display: none; }
  .nav-inner { 
    height: 60px; 
    gap: 12px; 
    grid-template-columns: auto 1fr auto; 
  }
  .brand .founder-name, 
  .brand span:nth-child(3) { 
    display: none !important; 
  }
  .nav-cta .btn-line { display: none; }
  .theme-toggle { margin-left: auto; margin-right: 0; }

  /* 2. Hero Section */
  .hero { padding: 80px 0 40px; }
  .hero h1 { 
    font-size: 38px !important; 
    line-height: 1.1; 
  }
  .hero-sub { font-size: 16px; margin: 24px 0; }
  .hero-meta { margin-bottom: 32px; }

  /* 3. Grids & Stripes */
  .strip-inner, .expert-stats { grid-template-columns: 1fr !important; gap: 24px; }
  .strip-cell { padding: 16px 20px; }
  .stat .big { font-size: 42px; }
  .expert-quote { font-size: 24px; }
  
  /* 4. Footer */
  .foot-grid { 
    grid-template-columns: 1fr !important; 
    gap: 32px; 
  }
  .foot-bottom { 
    flex-direction: column; 
    gap: 12px; 
    text-align: center; 
  }
}
