html, body {
  overflow-x: hidden;
}

/* Fonts */
:root { 
  --font-sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
--font-heading: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Light theme (default) */
  --bg: #f6f7f9;
  --bg2: #ffffff;
  --surface: #ffffff;
  --surface2: #f1f3f6;
  --text: #0b1220;
  --muted: #4b5565;
  --muted2: #6b7280;
  --border: rgba(15, 23, 42, 0.12);
  --shadow: 0 10px 30px rgba(0,0,0,0.10);
  --shadow2: 0 6px 18px rgba(2, 8, 20, 0.10);

  --accent: #1c4ed8;       /* navy/blue */
  --accent2: #0b2a6f;      /* deeper navy */
  --ring: rgba(28, 78, 216, 0.35);

  --radius: 18px;
  --radius2: 26px;

  --container: 1120px;
  --header-h: 70px;

  --hex: polygon(50% 0,100% 24%,100% 76%,50% 100%,0 76%,0 24%);
}

/* Dark theme overrides */
html[data-theme="dark"] {
  --bg: #070b12;
  --bg2: #0b1220;
  --surface: rgba(255,255,255,0.06);
  --surface2: rgba(255,255,255,0.04);
  --text: #e7edf8;
  --muted: #b6c0d3;
  --muted2: #9aa6bf;
  --border: rgba(231, 237, 248, 0.14);
  --shadow: 0 16px 40px rgba(0,0,0,0.55);
  --shadow2: 0 10px 26px rgba(0,0,0,0.45);

  --accent: #67a2ff;
  --accent2: #2b5cff;
  --ring: rgba(103, 162, 255, 0.40);
}

/* Prefer system theme unless user sets one explicitly (handled by JS).
   This just helps first paint if JS is blocked. */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) { 
    --bg: #070b12;
    --bg2: #0b1220;
    --surface: rgba(255,255,255,0.06);
    --surface2: rgba(255,255,255,0.04);
    --text: #e7edf8;
    --muted: #b6c0d3;
    --muted2: #9aa6bf;
    --border: rgba(231, 237, 248, 0.14);
    --shadow: 0 16px 40px rgba(0,0,0,0.55);
    --shadow2: 0 10px 26px rgba(0,0,0,0.45);
    --accent: #67a2ff;
    --accent2: #2b5cff;
    --ring: rgba(103, 162, 255, 0.40);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-heading);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(28,78,216,0.12), transparent 60%),
    radial-gradient(900px 500px at 105% 10%, rgba(10,35,90,0.10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  background-attachment: fixed, fixed, fixed;
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }

::selection { background: var(--ring); }

/* Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: var(--shadow2);
  z-index: 1000;
}
.skip-link:focus { left: 12px; }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg2) 74%, transparent);
  border-bottom: 1px solid var(--border);
}

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand__mark {
  width: 38px;
  min-width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 10px 25px rgba(28,78,216,0.25);
  display: grid;
  place-items: center;
}
.brand__mark svg { width: 20px; height: 20px; fill: #fff; opacity: 0.95; }

.brand__text { min-width: 0; }
.brand__name {
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 0.98rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__role {
  font-size: 0.84rem;
  color: var(--muted2);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.social-toggle{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--text);
  display: none;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.social-toggle:hover{
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--surface) 96%, transparent);
}
.social-toggle:focus-visible{ outline: 3px solid var(--ring); outline-offset: 2px; }
.social-toggle svg{ width: 20px; height: 20px; }

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

.icon-link {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.icon-link:hover { 
  transform: translateY(-1px); 
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: color-mix(in srgb, var(--surface) 96%, transparent);
}
.icon-link:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.icon-link svg { width: 18px; height: 18px; fill: currentColor; opacity: 0.9; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 14px;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  text-decoration: none;
  letter-spacing: .005em;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition:
    transform 220ms cubic-bezier(.2,.8,.2,1),
    box-shadow 220ms cubic-bezier(.2,.8,.2,1),
    border-color 220ms cubic-bezier(.2,.8,.2,1),
    background 220ms cubic-bezier(.2,.8,.2,1);
}
.btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.btn--primary {
  position: relative;
  isolation: isolate;
  border-radius: 16px;
  padding: 14px 20px;

  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;

  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);

  background: linear-gradient(
    135deg,
    rgba(28,78,216,0.75),
    rgba(76,201,255,0.65)
  );

  border: 1px solid rgba(255,255,255,0.25);

  box-shadow:
    0 8px 24px rgba(28,78,216,0.35),
    0 0 30px rgba(76,201,255,0.35);

  transition: all 0.25s ease;
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;

  background: linear-gradient(
    120deg,
    rgba(76,201,255,0.9),
    rgba(122,92,255,0.9),
    rgba(76,201,255,0.9)
  );

  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;

  opacity: 0.7;
  pointer-events: none;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 36px rgba(28,78,216,0.45),
    0 0 40px rgba(76,201,255,0.45);
}

html[data-theme="light"] .btn--primary {
  background: linear-gradient(
    135deg,
    rgba(28,78,216,0.85),
    rgba(76,201,255,0.8));
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow:
    0 6px 18px rgba(76,201,255,0.25),
    0 10px 30px rgba(28,78,216,0.15);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset;
  transition: transform .15s ease, border-color .15s ease;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.theme-toggle:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; fill: currentColor; opacity: 0.92; }

.hero {
  padding: 46px 0 26px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 26px;
  align-items: start;
}

.card {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
}

/* Base glass-card (all layouts) */
.glass-card {
  width: 100%;
  /* max-width: 380px; */
  padding: 32px 32px 32px;
  border-radius: 26px;
  position: relative;
  overflow: visible;

  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);

  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    0 12px 36px rgba(0,0,0,0.45),
    0 6px 18px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

html[data-theme="light"] .glass-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow:
    0 4px 12px rgba(76, 201, 255, 0.15),
    0 8px 24px rgba(28, 78, 216, 0.08);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at center, rgba(76,201,255,0.35), rgba(122,92,255,0.25), transparent 65%);
  filter: blur(30px);
  opacity: 0.35;
  animation: energyPulse 8s ease-in-out infinite;
  z-index: -1;
}
.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    120deg,
    rgba(76, 201, 255, 0.3),
    rgba(122, 92, 255, 0.3),
    rgba(76, 201, 255, 0.3)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.35;
  pointer-events: none;
}

.glass-card--xl {
  max-width: 100%;
  margin: 0;
  padding: 42px 48px;
}

.glass-card__note {
  margin-top: 18px;
  line-height: 1.2;
}

.product.glass-card {
  padding: 40px 44px;
}

.grid-2 .glass-card {
  max-width: 100%;
}

/* .grid-3 .glass-card {
  max-width: 380px;
} */

@media (max-width: 860px) {
  .grid-3 .glass-card {
    max-width: 100%;
  }
}

@media (max-width: 440px) {
  .glass-card {
    max-width: 100%;
    padding: 28px;
  }
 
}
.hero-glass {
  width: 100%;
  padding: 32px;
  border-radius: var(--radius2);
  position: relative;
  overflow: hidden;

  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);

  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.18);
    box-shadow:
    0 12px 36px rgba(0,0,0,0.45),
    0 6px 18px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.hero-glass::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at center, rgba(76,201,255,0.35), rgba(122,92,255,0.25), transparent 65%);
  filter: blur(30px);
  opacity: 0.35;
  animation: energyPulse 8s ease-in-out infinite;
  z-index: -1;
}

.hero-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    120deg,
    rgba(76, 201, 255, 0.3),
    rgba(122, 92, 255, 0.3),
    rgba(76, 201, 255, 0.3)
  );

  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;

  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;

  opacity: 0.35;
  pointer-events: none;
}

html[data-theme="light"] .hero-glass {
  background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow:
    0 6px 18px rgba(76,201,255,0.08),
    0 12px 36px rgba(28,78,216,0.04);
}

.icon-box {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--surface2) 74%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: var(--muted);
}
.icon-box i {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
}

.title-row {
  display: flex;
  align-items: center;
  gap: 20px; 
}

.title-row h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}

@media (max-width: 440px) {
  .glass-card {
    width: 100%;
    max-width: none;
    padding: 28px;
  }
}
  .icon-box {
    width: 40px;
    height: 40px;
  }
  .icon-box i {
    width: 18px;
    height: 18px;
  }

html[data-theme="light"] .glass-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
  border: 1px solid rgba(0,0,0,0.08);
    box-shadow:
    0 4px 12px rgba(76, 201, 255, 0.08),
    0 8px 24px rgba(28, 78, 216, 0.04);
}

html[data-theme="light"] .icon-box {
  background: rgba(255,255,255,0.6);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.hero__left {
  padding: 34px;
  position: relative;
  overflow: hidden;
}
.hero__left::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(900px 450px at 10% 10%, rgba(28,78,216,0.16), transparent 55%),
              radial-gradient(800px 450px at 110% 0%, rgba(10,35,90,0.12), transparent 55%);
  pointer-events: none;
}

.hero__left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/bg-1.jpg") center/cover no-repeat;
  opacity: 0.10;
  mix-blend-mode: multiply;
  filter: saturate(0.9) contrast(1.05);
  pointer-events: none;
}
html[data-theme="dark"] .hero__left::after { opacity: 0.06; mix-blend-mode: screen; }

.hero__left > * { position: relative; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted2);
  font-weight: 600;
  letter-spacing: 0.0em;
  text-transform: none;
  font-size: 0.78rem;
  margin-bottom: 12px;
}
.kicker .dot {
  width: 8px; height: 8px; border-radius: 99px;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

body {
  font-family: var(--font-heading);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

.h1 {
  margin: 14px 0 24px;
  font-size: clamp(2.0rem, 2.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.lead {
  margin: 0;
  font-size: 1.07rem;
  line-height: 1.3;
  color: var(--muted);
  max-width: 62ch;
}

.hero__bullets {
  margin: 18px 0 0;
  padding: 0;
  line-height: 1.3;
  list-style: none;
  display: grid;
  gap: 6px;
}
.hero__bullets li {
  display: flex;
  gap: 10px;
  line-height: 1.3;
  align-items: flex-start;
  color: var(--muted);
}
.hero__bullets svg { width: 18px; height: 18px; margin-top: 2px; fill: var(--accent); }

.hero__cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero__right {
  padding: 0px;
  display: grid;
  gap: 22px;
}

.hero__right .stats,
.hero__right .toptal-badge {
  padding: 0 22px 22px;
}

.portrait {
  border-radius: var(--radius2) var(--radius2) 0 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  background: color-mix(in srgb, var(--surface2) 74%, transparent);
  position: relative;
}
.portrait img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(1.05) contrast(1.02) brightness(0.95); 
}
.portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.12),
    rgba(255,255,255,0.04)
  );
  pointer-events: none;
  z-index: 1;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px 280px at 20% 0%,
    rgba(255,255,255,0.10),
    transparent 55%
  );
  pointer-events: none;
  z-index: 2;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.stat {
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  background: color-mix(in srgb, var(--surface2) 74%, transparent);
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  padding: 12px 12px 10px;
}
.stat__k { font-size: 0.78rem; color: var(--muted2); letter-spacing: 0em; text-transform: none; }
.stat__v { margin-top: 6px; font-weight: 600; letter-spacing: 0.0em; font-size: 1.05rem; }
.stat__v span { color: var(--muted2); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.0em;}

.section {
  padding: clamp(40px, 10vw, 100px) 0;
}
.section__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: clamp(24px, 4vw, 48px);
}
.h-section {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.h-card {
  margin: 0 0 14px;
  align-items: flex-start; 
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.h-card--stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.glass-card h2 {
  display: inline-flex; 
  align-items: flex-start;
  gap: 16px; 
  margin: 0 0 12px; 
}

.glass-card h2 .icon-box {
  flex-shrink: 0; 
  margin: 0; 
}

.section__sub {
  margin: 0;
  color: var(--muted2);
  line-height: 1.2;
}

@media (max-width: 768px) {
  .section__sub {
    max-width: 100%;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

ul li {
  margin-bottom: 14px;
  color: var(--muted);
}

ul li:last-child {
  margin-bottom: 0;
}

.glass-card__note {
  margin-top: 16px;
  line-height: 1.6;
}

.reveal {
  opacity: 0;
  transform: translateX(0);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal-left {
  transform: translateX(-100px);
}
.reveal-right {
  transform: translateX(100px);
}

@media (max-width: 768px) {
  .reveal-left,
  .reveal-right {
    transform: translateY(50px);
  }
}

.reveal.active {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

.tile {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow2);
}
.tile h3 { margin: 0 0 12px; font-size: 1.5rem; letter-spacing: -0.01em; }
.tile p { margin: 0 0 14px; color: var(--muted); line-height: 1.2; }
.tile ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.3;
}

.tile ul li {
  margin-bottom: 8px;
}

.tile ul li:last-child {
  margin-bottom: 0;
}

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.pill {
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  background: color-mix(in srgb, var(--surface2) 74%, transparent);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 400;
  font-size: 0.88rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.pill a {
  color: var(--muted);
  text-decoration: none;
  text-underline-offset: 2px;
}
.pill a:hover { color: var(--accent); text-decoration: none; }

.callout {
  padding: 22px;
  border-radius: var(--radius2);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent2) 12%, var(--surface) 88%),
                                   color-mix(in srgb, var(--accent) 8%, var(--surface) 92%));
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}
.callout h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.callout p { margin: 0; color: var(--muted); line-height: 1.45; }

hr.sep {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* Toptal badge (re-implemented; theme-aware) */

/* Engagement options (products) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product {
  display: flex;
  flex-direction: column;
  font-size: 0.92rem;
  gap: 10px;
}

.product__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.product__metaLeft {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.product__id {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  background: color-mix(in srgb, var(--surface2) 74%, transparent);
  color: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.0em;
  font-weight: 400;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.product__id svg,
.product__id i {
  width: 0.72rem;       /* match font-size */
  height: 0.72rem;      /* match font-size */
  margin-right: 4px;    /* space from text */
  vertical-align: text-bottom; 
  stroke-width: 2;    
}

.product__stage {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.3;
}

.product__price {
  text-align: right;
  line-height: 1.05;
  flex: 0 0 auto;
}

.product__priceFrom,
.product__priceNote {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
}

.product__priceVal {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 2px;
}


.product__titleRow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  margin-bottom: 10px;
}

.product__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 14px; 
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--surface2) 74%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: var(--muted);
}

.product__icon svg {
  width: 18px;
  height: 18px;
}

.product__title {
  margin: 0;
  font-size: 1.8 rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.product__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.75 rem;
  line-height: 1.3;
  margin-top: 8px;
  margin-bottom: 16px;
}

.product__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.fact {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  font-size: 0.82rem;
  color: var(--muted);
}

.fact strong {
  color: var(--text);
  font-weight: 600;
}

.product__best {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.product__cta {
  margin-top: auto;
}

.section__note {
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.3;
  font-size: 0.8rem;
}

.toptal-badge {
  display: grid;
  place-items: center;
  padding: 8px 0 2px;
}
.toptal-badge__frame {
  padding: 6px;
  background: #25a9ef;
  clip-path: var(--hex);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.toptal-badge__inner {
  width: 210px;
  padding: 24px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  clip-path: var(--hex);
  box-shadow: 0 28px 50px rgba(6,30,96,.35);
}

/* Light: crisp on white */
html:not([data-theme="dark"]) .toptal-badge__inner,
html[data-theme="light"] .toptal-badge__inner {
  color: #204ecf;
  background:
    radial-gradient(circle at 20% -10%,#00c3ff -80%,#fff 30%),
    radial-gradient(circle at -20% 20%,#00c3ff -80%,#fff 30%),
    radial-gradient(circle at 70% 100%,#00c3ff -80%,#fff 30%),
    radial-gradient(circle at 120% 80%,#00c3ff -80%,#fff 30%);
  background-blend-mode: multiply;
}
html:not([data-theme="dark"]) .toptal-badge__stars path,
html[data-theme="light"] .toptal-badge__stars path { fill: #00c3ff; }
html:not([data-theme="dark"]) .toptal-badge__wordmark path,
html[data-theme="light"] .toptal-badge__wordmark path { fill: #262d3d; }

html[data-theme="dark"] .toptal-badge__inner {
  color: #fff;
  background: linear-gradient(153deg,#0667ff 18%,#204ecf 40%,#0f256e 80%);
}
html[data-theme="dark"] .toptal-badge__stars path { fill: #fff; }
html[data-theme="dark"] .toptal-badge__wordmark path { fill: #fff; }

.toptal-badge__title { margin: 0; font-size: 19px; font-weight: 800; line-height: 1; letter-spacing: 0.02em; }
.toptal-badge__divider { width: 120px; height: 1px; background: #25a9ef; opacity: 0.95; }
.toptal-badge__subtitle { font-size: 16px; opacity: 0.85; margin-bottom: -6px; }
.toptal-badge__cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 20px;
  border-radius: 10px;
  background: #296bff;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  text-decoration: none;
  text-underline-offset: 2px;
}
.toptal-badge__cta:hover { filter: brightness(1.03); }

/* Footer */
.footer {
  padding: 26px 0 34px;
  border-top: 1px solid var(--border);
  margin-top: 18px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}
.footer__meta {
  color: var(--muted2);
  line-height: 1.6;
  font-size: 0.95rem;
}
.footer__meta b { color: var(--text); }
.footer__iconbar { justify-content: flex-end; }

/* Responsiveness */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__iconbar { justify-content: flex-start; }

  /* Mobile header: collapse social icons into a single Social button */
  .social-toggle { display: grid; }
  .header__actions > .iconbar { display: none; }
  .header__actions[data-social-open="1"] > .iconbar { display: flex; }
  .header__actions[data-social-open="1"] > .social-toggle { display: none; }
}
@media (max-width: 520px) {
  .container { width: min(var(--container), calc(100% - 28px)); }
  .hero__left { padding: 24px; }
  .hero__right { padding: 0; }
  .hero__right .stats,
  .hero__right .toptal-badge {
    padding: 0 16px 16px;
  }
  .btn { width: 100%; }
  .iconbar { gap: 8px; }
  .icon-link { width: 38px; height: 38px; border-radius: 14px; }
  .social-toggle { width: 38px; height: 38px; border-radius: 14px; }
  .theme-toggle { width: 42px; height: 42px; }
  .stats { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Testimonials carousel */
.tcarousel{
  --gap: 12px;
  --perView: 1;
}

.tcarousel__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 10px 0 14px;
}

.tcarousel__head--title{
  margin: 0 0 16px;
}

.tcarousel__hint{
  color: var(--muted2);
  font-size: 0.95rem;
}

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

.tcarousel__btn{
  width:40px;
  height:40px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  background: color-mix(in srgb, var(--surface2) 74%, transparent);
  color: var(--muted);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.tcarousel__btn:hover{
  border-color: rgba(90, 130, 255, 0.45);
}

.tcarousel__btn:disabled{
  opacity: .45;
  cursor: default;
}

.tcarousel__btn svg{
  width:20px;
  height:20px;
}

.tcarousel__dots{
  display:flex;
  align-items:center;
  gap:6px;
  max-width: min(520px, 50vw);
  overflow:auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.tcarousel__dots::-webkit-scrollbar{
  display:none;
}

.tcarousel__dot{
  width:8px;
  height:8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  cursor:pointer;
}

.tcarousel__dot[data-active]{
  background: color-mix(in srgb, var(--accent) 26%, var(--border));
  border-color: color-mix(in srgb, var(--accent) 26%, var(--border));
}

.tcarousel__viewport{
  overflow:hidden;
  border-radius: 22px;
}

.tcarousel__track{
  display:flex;
  gap: var(--gap);
  will-change: transform;
  transition: transform 420ms cubic-bezier(.2,.8,.2,1);
  padding: 2px; /* avoid clipping shadow */
}

.testimonial{
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* key */
  padding: clamp(32px, 3vw, 44px);
  border-radius: var(--radius2);
  position: relative;
  background: color-mix(in srgb, var(--surface2) 74%, transparent);
  border: 1px solid var(--border);;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: var(--muted);
}

html[data-theme="light"] .testimonial {
  border: 1px solid rgba(0,0,0,0.08);
}

html[data-theme="dark"] .testimonial {
  border: 1px solid rgba(255,255,255,0.10);
}

.testimonial::before{
  content:none;
}

.testimonial__quote{
  font-size: clamp(1.1rem, 0.8rem + 0.6vw, 1.35rem);
  line-height: 1.75;
  margin: 0;
  max-width: 60ch; 
}

.testimonial__by{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 32px; 
  color: var(--muted2);
}

.testimonial__name{
  font-weight: 600;
  color: var(--fg);
}

.testimonial__role{
  font-size: .95rem;
  color: var(--muted2);
}

@media (max-width: 640px){
  .tcarousel__head{
    align-items:flex-start;
    flex-direction:column;
  }

  .tcarousel__controls{
    width:100%;
    justify-content:space-between;
  }

  .tcarousel__dots{
    max-width: 100%;
  }
}
.partner-cta{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.partner-cta .btn{
  white-space: nowrap;
}

.btn__icon{
  vertical-align: -4px; 
  margin-left: 8px;
}

.contact-meta {
  margin-top: 20px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--muted2);
}

.contact-messengers {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.contact-messengers a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact-messengers a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

@media (max-width: 520px){
  .partner-cta{
    margin: 0 2em;
    flex-direction: column;
    align-items: stretch;
  }
  .partner-cta .btn{
    justify-content: center; 
    width: 100%;
  }
  .cta-sep {
    text-align: center;
    flex-direction: column;
  }
}

/* Performance optimisation for mobile */

@media (max-width: 980px) {
  .glass-card,
  .hero-glass {
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}

@media (max-width: 768px) {
  .glass-card,
  .hero-glass {
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    background: var(--surface);
  }
}
