/* =========================================================
   Jacek Pluszcz — Software design
   Shared stylesheet
   ========================================================= */

:root {
  --ink: #141821;
  --ink-2: #3b414f;
  --muted: #6c7280;
  --line: #e7e8ec;
  --line-strong: #d6d8df;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-softer: #fbfbfc;
  --dark: #0e1016;
  --dark-2: #161922;
  --accent: #c79a3b;
  --accent-2: #e3c06a;
  --accent-ink: #a87d28;
  --accent-soft: #f7efdc;
  --accent-glow: rgba(199, 154, 59, 0.32);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 26px;

  --shadow-sm: 0 1px 2px rgba(20, 24, 33, 0.04), 0 2px 6px rgba(20, 24, 33, 0.04);
  --shadow-md: 0 10px 30px rgba(20, 24, 33, 0.07);
  --shadow-lg: 0 30px 70px rgba(20, 24, 33, 0.12);

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 56px);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.005em;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 470;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  font-optical-sizing: auto;
}

p {
  margin: 0 0 1.1em;
}

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 9vw, 128px);
}

.section--tight {
  padding-block: clamp(48px, 6vw, 88px);
}

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

.section--dark {
  background: var(--dark);
  color: #e9eaef;
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

.section--dark .eyebrow {
  color: #e3c06a;
}

.section--dark .eyebrow::before {
  background: #e3c06a;
}

.lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink-2);
  line-height: 1.6;
}

.section--dark .lead {
  color: #b6bac6;
}

.muted {
  color: var(--muted);
}

.center {
  text-align: center;
}

.section-head {
  max-width: 720px;
}

.section-head.center {
  margin-inline: auto;
}

h2.h-xl {
  font-size: clamp(30px, 4.4vw, 52px);
}

h2.h-lg {
  font-size: clamp(27px, 3.6vw, 42px);
}

h3.h-md {
  font-size: clamp(21px, 2.4vw, 27px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 14px 26px;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn i {
  font-size: 0.85em;
  transition: transform 0.25s var(--ease);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #2a2008;
  box-shadow: 0 8px 22px rgba(199, 154, 59, 0.3);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--accent), var(--accent-ink));
  color: #2a2008;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(199, 154, 59, 0.4);
}

.btn--primary:hover i {
  transform: translateX(4px);
}

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

.btn--ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn--light:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--lg {
  padding: 17px 34px;
  font-size: 16px;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 9px 14px;
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav__links a:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.nav__links a.is-active {
  color: var(--accent-ink);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--ink);
  cursor: pointer;
  padding: 6px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(24px, 3.5vw, 46px);
  padding-bottom: clamp(64px, 9vw, 120px);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(199, 154, 59, 0.08), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(199, 154, 59, 0.05), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero__sub {
  margin-top: 26px;
  font-size: clamp(18px, 2vw, 21px);
  color: var(--ink-2);
  max-width: 52ch;
  line-height: 1.6;
}

.hero__cta {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__meta {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.hero__meta div {
  display: flex;
  flex-direction: column;
}

.hero__meta strong {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hero__meta span {
  font-size: 13.5px;
  color: var(--muted);
}

/* Hero visual card */
.hero__visual {
  position: relative;
}

.hero-card {
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  color: #e9eaef;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 100% 0%, rgba(199, 154, 59, 0.35), transparent 60%);
  pointer-events: none;
}

.hero-card__top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 22px;
  position: relative;
}

.hero-card__top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.hero-card__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  margin-bottom: 12px;
  position: relative;
}

.hero-card__row i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(199, 154, 59, 0.18);
  color: #e3c06a;
  font-size: 15px;
  flex-shrink: 0;
}

.hero-card__row b {
  font-weight: 600;
  font-size: 14.5px;
  color: #fff;
}

.hero-card__row small {
  display: block;
  font-size: 12.5px;
  color: #9a9fae;
  font-weight: 400;
}

.hero-card__row .tick {
  margin-left: auto;
  color: #57d08a;
  background: rgba(87, 208, 138, 0.14);
  width: 26px;
  height: 26px;
  font-size: 11px;
}

/* ---------- Narrative / Story ---------- */
.story__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
}

.story__sticky {
  position: sticky;
  top: 110px;
  align-self: start;
}

.prose p {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-2);
  line-height: 1.72;
}

.prose p.prose-strong {
  color: var(--ink);
  font-size: clamp(19px, 1.8vw, 23px);
  font-family: var(--font-display);
  font-weight: 430;
  letter-spacing: -0.015em;
  line-height: 1.45;
}

/* ---------- Problem list ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.problem {
  display: flex;
  gap: 16px;
  padding: 24px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.problem:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.problem i {
  color: var(--accent);
  font-size: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

.problem p {
  margin: 0;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ---------- About / founder ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

.about__photo {
  position: relative;
}

.about__photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  filter: grayscale(100%) contrast(1.02);
  box-shadow: var(--shadow-lg);
}

.about__photo .badge {
  position: absolute;
  left: -18px;
  bottom: -30px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 260px;
}

.about__photo .badge i {
  color: var(--accent);
  font-size: 22px;
}

.about__photo .badge b {
  font-family: var(--font-display);
  font-size: 22px;
  display: block;
  letter-spacing: -0.02em;
}

.about__photo .badge span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.3;
}

.signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  margin-top: 8px;
}

/* ---------- Capabilities / areas ---------- */
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.area-card {
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.area-card .ico {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 19px;
  margin-bottom: 20px;
}

.area-card h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.area-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Banner line */
.banner-line {
  margin-top: 52px;
  padding: 38px clamp(28px, 4vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.banner-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 120% at 100% 0%, rgba(199, 154, 59, 0.4), transparent 60%);
  pointer-events: none;
}

.banner-line h3 {
  font-size: clamp(24px, 3vw, 34px);
  color: #fff;
  position: relative;
  letter-spacing: -0.02em;
}

.banner-line p {
  margin: 8px 0 0;
  color: #aab0c0;
  position: relative;
  max-width: 50ch;
}

/* ---------- Process steps ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 52px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 0 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.step:first-child {
  border-left: none;
  padding-left: 0;
}

.step__num {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #e3c06a;
  margin-bottom: 18px;
}

.step__ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 19px;
  margin-bottom: 22px;
}

.step h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 14.5px;
  color: #a3a9b8;
  margin: 0;
  line-height: 1.55;
}

/* ---------- Modules ---------- */
.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.module {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.module:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.module i {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 17px;
  flex-shrink: 0;
}

.module b {
  font-weight: 600;
  font-size: 16px;
  display: block;
}

.module small {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Value props (differentiators) ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.value {
  padding: 32px 30px;
  border-radius: var(--radius);
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.value i {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 18px;
}

.value h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.value p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 92px) clamp(28px, 5vw, 72px);
  text-align: center;
  color: #fff;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 80% at 20% 0%, rgba(199, 154, 59, 0.4), transparent 60%),
    radial-gradient(40% 80% at 85% 100%, rgba(199, 154, 59, 0.28), transparent 60%);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  max-width: 680px;
  margin-inline: auto;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(30px, 4.5vw, 50px);
}

.cta-band p {
  color: #b6bac6;
  font-size: 18px;
  margin-top: 18px;
}

.cta-band .hero__cta {
  justify-content: center;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px;
  margin-inline: auto;
  margin-top: 44px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item__q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-sans);
  font-size: clamp(17px, 1.8vw, 20px);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  padding: 26px 48px 26px 0;
  position: relative;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

.faq-item__q:hover {
  color: var(--accent);
}

.faq-item__q i {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--accent);
  transition: transform 0.35s var(--ease);
}

.faq-item.is-open .faq-item__q i {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-item__a p {
  padding: 0 60px 26px 0;
  margin: 0;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.65;
}

/* ---------- Case studies ---------- */
.page-hero {
  padding-block: clamp(28px, 3.5vw, 52px) clamp(36px, 5vw, 60px);
}

.page-hero h1 {
  font-size: clamp(36px, 5.5vw, 66px);
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.page-hero .lead {
  margin-top: 22px;
  max-width: 60ch;
}

.case {
  padding-block: clamp(48px, 6vw, 90px);
  border-top: 1px solid var(--line);
}

.case__grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.case--flip .case__media {
  order: 2;
}

.case__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 14px;
}

.case__tag .code {
  font-family: var(--font-display);
}

.case h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.025em;
  margin-bottom: 26px;
}

.case__block {
  margin-bottom: 24px;
}

.case__block h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 8px;
}

.case__block p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16.5px;
  line-height: 1.7;
}

.case__media {
  position: sticky;
  top: 100px;
}

.case__media-inner {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 34px);
  box-shadow: var(--shadow-md);
}

.case__media img {
  width: 100%;
  border-radius: 8px;
}

.case__media figcaption {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.case__media figcaption i {
  color: var(--accent);
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.contact-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: transform 0.25s var(--ease);
}

.contact-method:last-child {
  border-bottom: none;
}

.contact-method:hover {
  transform: translateX(4px);
}

.contact-method .ico {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
  flex-shrink: 0;
}

.contact-method span {
  display: block;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.contact-method b {
  font-size: clamp(18px, 2.2vw, 23px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.contact-method a:hover b {
  color: var(--accent);
}

.contact__photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  filter: grayscale(100%);
  box-shadow: var(--shadow-lg);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #aab0c0;
  padding-block: clamp(56px, 7vw, 90px) 36px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand .brand__name {
  color: #fff;
  font-size: 24px;
}

.footer__brand .brand__tag {
  color: #7d8499;
}

.footer__brand p {
  margin-top: 18px;
  max-width: 38ch;
  font-size: 15px;
  line-height: 1.6;
  color: #9aa0b2;
}

.footer__col h4 {
  font-family: var(--font-sans);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 600;
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col a,
.footer__col li {
  font-size: 15px;
  color: #9aa0b2;
  transition: color 0.2s var(--ease);
}

.footer__col a:hover {
  color: #fff;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 30px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: #7d8499;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}

.reveal[data-dir="left"] {
  transform: translateX(-36px);
}

.reveal[data-dir="right"] {
  transform: translateX(36px);
}

.reveal[data-dir="scale"] {
  transform: scale(0.93);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Decorative animated graphics ---------- */
.has-deco {
  position: relative;
  overflow: hidden;
}

.has-deco > .container {
  position: relative;
  z-index: 1;
}

.orb {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.55;
  background: radial-gradient(circle at 30% 30%, var(--accent-2), transparent 68%);
  animation: orb-float 16s ease-in-out infinite;
}

.orb--sm {
  width: 240px;
  height: 240px;
}

.orb--md {
  width: 380px;
  height: 380px;
}

.orb--lg {
  width: 520px;
  height: 520px;
}

.orb--delay {
  animation-duration: 21s;
  animation-delay: -6s;
}

.orb--static {
  animation: none;
  will-change: transform;
}

.section--dark .orb,
.cta-band .orb,
.hero-card .orb {
  opacity: 0.4;
  mix-blend-mode: screen;
}

@keyframes orb-float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(26px, -32px) scale(1.08);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}

/* Animated gradient hairline */
.hairline {
  height: 1px;
  border: none;
  margin: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent) 35%,
    var(--accent-2) 50%,
    var(--accent) 65%,
    transparent
  );
  background-size: 200% 100%;
  animation: hairline-pan 6s linear infinite;
  opacity: 0.5;
}

@keyframes hairline-pan {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Floating utility for hero card */
.float-soft {
  animation: float-soft 7s ease-in-out infinite;
}

@keyframes float-soft {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Subtle dotted grid texture */
.dot-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(199, 154, 59, 0.16) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000, transparent 75%);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .orb,
  .hairline,
  .float-soft,
  .flow__conn,
  .flow__conn::after,
  .live-dot::before,
  .flow__chip .conn-dot {
    animation: none !important;
  }

  .bar__fill {
    transform: scaleX(1);
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ---------- App window / data table mockup ---------- */
.app-window {
  max-width: 1020px;
  margin-inline: auto;
  margin-top: 52px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.app-window__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}

.app-window__dots {
  display: flex;
  gap: 7px;
}

.app-window__dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line-strong);
}

.app-window__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.app-window__search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 15px;
  font-size: 12.5px;
  color: var(--muted);
  min-width: 200px;
}

.app-window__body {
  display: grid;
  grid-template-columns: 212px 1fr;
}

.app-sidebar {
  background: var(--dark);
  padding: 22px 14px;
}

.app-sidebar__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #707686;
  padding: 0 12px;
  margin-bottom: 14px;
}

.app-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.app-nav li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #aab0c0;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.app-nav li i {
  width: 16px;
  text-align: center;
  font-size: 14px;
  color: #7d8499;
}

.app-nav li:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.app-nav li.active {
  background: rgba(199, 154, 59, 0.18);
  color: #f2dca0;
}

.app-nav li.active i {
  color: var(--accent-2);
}

.app-main {
  padding: 22px 24px 26px;
}

.app-main__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.app-main__head h4 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #2a2008;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  border: none;
  border-radius: 9px;
  padding: 9px 15px;
}

.app-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.app-stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--bg-softer);
}

.app-stat span {
  font-size: 12px;
  color: var(--muted);
}

.app-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 4px;
}

.app-stat .trend {
  font-size: 12px;
  font-weight: 600;
  color: #2e9e63;
}

.app-table-wrap {
  overflow-x: auto;
}

.app-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 460px;
}

.app-table thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
}

.app-table tbody td {
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

.app-table tbody tr {
  transition: background 0.2s var(--ease);
}

.app-table tbody tr:hover {
  background: var(--bg-soft);
}

.app-table tbody tr:last-child td {
  border-bottom: none;
}

.app-table .td-name {
  font-weight: 600;
  color: var(--ink);
}

.app-table .td-name small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 100px;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.pill--active {
  color: #2e9e63;
  background: rgba(46, 158, 99, 0.12);
}

.pill--hold {
  color: #b5852a;
  background: rgba(199, 154, 59, 0.15);
}

.pill--done {
  color: #5a6275;
  background: rgba(90, 98, 117, 0.12);
}

.bar {
  height: 7px;
  width: 96px;
  max-width: 100%;
  border-radius: 100px;
  background: var(--line);
  overflow: hidden;
}

.bar__fill {
  display: block;
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 1.1s var(--ease);
}

.is-visible .bar__fill,
.app-window.is-visible .bar__fill {
  transform: scaleX(1);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #2e9e63;
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e9e63;
  box-shadow: 0 0 0 0 rgba(46, 158, 99, 0.5);
  animation: live-pulse 2s ease-out infinite;
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 158, 99, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(46, 158, 99, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 158, 99, 0);
  }
}

/* ---------- Integration flow / schema ---------- */
.flow {
  display: grid;
  grid-template-columns: 1fr 92px minmax(170px, 0.9fr) 92px 1fr;
  align-items: center;
  margin-top: 56px;
  gap: 0;
}

.flow__group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow__chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 14px;
  position: relative;
}

.flow__chip i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(199, 154, 59, 0.16);
  color: var(--accent-2);
  font-size: 15px;
  flex-shrink: 0;
}

.flow__chip b {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.flow__chip small {
  display: block;
  font-size: 11.5px;
  color: #99a0b0;
}

.flow__chip .conn-dot {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e9e63;
  box-shadow: 0 0 0 0 rgba(46, 158, 99, 0.5);
  animation: live-pulse 2.4s ease-out infinite;
}

.flow__hub {
  position: relative;
  z-index: 2;
  text-align: center;
  background: linear-gradient(150deg, var(--accent-2), var(--accent-ink));
  border-radius: 18px;
  padding: 26px 18px;
  box-shadow: 0 18px 40px rgba(199, 154, 59, 0.3);
}

.flow__hub i {
  font-size: 26px;
  color: #2a2008;
  margin-bottom: 10px;
}

.flow__hub b {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  color: #2a2008;
  letter-spacing: -0.01em;
}

.flow__hub small {
  font-size: 12px;
  color: rgba(42, 32, 8, 0.7);
}

.flow__conn {
  position: relative;
  height: 2px;
  background-image: linear-gradient(
    90deg,
    var(--accent) 0 8px,
    transparent 8px 16px
  );
  background-size: 16px 2px;
  background-repeat: repeat-x;
  animation: flow-dash 0.7s linear infinite;
  opacity: 0.65;
}

.flow__conn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-2);
  transform: translateY(-50%);
  box-shadow: 0 0 12px var(--accent-2);
  animation: flow-dot 2.4s linear infinite;
}

.flow__conn--2::after {
  animation-delay: 1.2s;
}

/* Flow on light sections */
.section:not(.section--dark) .flow__chip {
  background: var(--bg);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.section:not(.section--dark) .flow__chip b {
  color: var(--ink);
}

.section:not(.section--dark) .flow__chip small {
  color: var(--muted);
}

.section:not(.section--dark) .flow__chip i {
  background: var(--accent-soft);
  color: var(--accent);
}

@keyframes flow-dash {
  to {
    background-position: 16px 0;
  }
}

@keyframes flow-dot {
  0% {
    left: 0;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes flow-dash-v {
  to {
    background-position: 0 16px;
  }
}

@keyframes flow-dot-v {
  0% {
    top: 0;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid,
  .story__grid,
  .about__grid,
  .case__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    display: none;
  }

  .story__sticky {
    position: static;
  }

  .case__grid {
    gap: 32px;
  }

  .case--flip .case__media {
    order: -1;
  }

  .case__media {
    position: static;
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 24px;
  }

  .step {
    border-left: none;
    padding: 0;
  }

  .values {
    grid-template-columns: 1fr;
  }

  .app-window__body {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    display: none;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 0;
    max-width: 380px;
    margin-inline: auto;
  }

  .flow__conn {
    width: 2px;
    height: 46px;
    justify-self: center;
    background-image: linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 16px);
    background-size: 2px 16px;
    background-repeat: repeat-y;
    animation: flow-dash-v 0.7s linear infinite;
    margin: 6px 0;
  }

  .flow__conn::after {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation: flow-dot-v 2.4s linear infinite;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .nav__links,
  .nav .btn {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px var(--gutter) 22px;
    gap: 4px;
    box-shadow: var(--shadow-md);
  }

  .nav.is-open .nav__links a {
    padding: 13px 12px;
    font-size: 17px;
  }

  .nav.is-open .nav__links .btn {
    display: inline-flex;
    margin-top: 8px;
  }

  .hero {
    padding-bottom: clamp(48px, 8vw, 80px);
  }

  .hero__meta {
    gap: 22px;
  }

  .banner-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
