/* ===========================================================
   Botify IT — base styles
   =========================================================== */

:root {
  --bg: #090c11;
  --bg-alt: #0d1219;
  --surface: #121822;
  --surface-2: #171f2c;
  --border: #212b3a;
  --border-soft: #1a222f;

  --text: #eaf0f6;
  --text-dim: #9aa7b8;
  --text-faint: #647084;

  --accent: #00e5a0;
  --accent-dim: #05c88c;
  --accent-2: #3ea6ff;
  --accent-warn: #ffb454;

  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.02) inset, 0 20px 40px -24px rgba(0,0,0,0.6);
  --container: 1160px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }

p { margin: 0 0 1em; color: var(--text-dim); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #05130e;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ===================== Buttons ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--grad);
  color: #05130e;
  box-shadow: 0 8px 24px -8px rgba(0,229,160,0.45);
}
.btn-primary:hover { box-shadow: 0 10px 28px -6px rgba(0,229,160,0.6); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2); }

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

.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ===================== Header ===================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(9, 12, 17, 0.72);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand-accent { color: var(--accent); }

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
.main-nav a {
  font-size: 0.92rem;
  color: var(--text-dim);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--text); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== Hero ===================== */

.hero {
  position: relative;
  padding: 132px 0 100px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: -20% -10%;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 20%, black 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 20%, black 10%, transparent 72%);
  z-index: 0;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}
.hero-glow-a {
  width: 480px;
  height: 480px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(0,229,160,0.22), transparent 70%);
}
.hero-glow-b {
  width: 420px;
  height: 420px;
  bottom: -220px;
  left: -160px;
  background: radial-gradient(circle, rgba(62,166,255,0.18), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy, .hero-visual { min-width: 0; }

.eyebrow {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  margin-bottom: 22px;
}

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.08rem;
  max-width: 560px;
  color: var(--text-dim);
  margin-bottom: 30px;
}
.hero-sub strong { color: var(--text); }

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-faint);
  margin: 0;
}
.hero-trust-stars { color: var(--accent-warn); letter-spacing: 1px; }

/* ---- Hero visual: flow panel ---- */

.flow-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px 24px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.flow-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,229,160,0.35), transparent 40%, transparent 60%, rgba(62,166,255,0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.flow-panel-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-faint);
  letter-spacing: 0.02em;
  margin-bottom: 30px;
}
.flow-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,229,160,0.18);
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.flow-track {
  position: relative;
  height: 74px;
  margin-bottom: 22px;
}
.flow-line {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 20px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border) 8%, var(--border) 92%, transparent);
}
.flow-runner {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 9px;
  height: 9px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px 4px rgba(0,229,160,0.55);
  animation: flowRun 4.5s linear infinite;
}
@keyframes flowRun {
  0% { left: 20px; opacity: 0; }
  6% { opacity: 1; }
  94% { opacity: 1; }
  100% { left: calc(100% - 20px); opacity: 0; }
}
.flow-nodes {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 20%;
}
.flow-node-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.flow-node-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  background: var(--grad);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.flow-node span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
}
.flow-node-icon[data-icon="trigger"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E");
}

.flow-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}
.flow-stat dt {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
}
.flow-stat dd {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text-faint);
}

/* ===================== Section shell ===================== */

.section { padding: 96px 0; position: relative; z-index: 1; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}
.section-alt::before,
.section-alt::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  pointer-events: none;
}
.section-alt::before {
  top: -160px;
  right: -110px;
  background: radial-gradient(circle, rgba(0,229,160,0.10), transparent 70%);
}
.section-alt::after {
  bottom: -180px;
  left: -130px;
  background: radial-gradient(circle, rgba(62,166,255,0.09), transparent 70%);
}

.section-kicker {
  font-family: var(--font-mono);
  color: var(--accent-2);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  max-width: 640px;
  margin-bottom: 48px;
}

.section-intro {
  max-width: 640px;
  margin-top: -28px;
  margin-bottom: 40px;
  font-size: 0.98rem;
}

/* ===================== About ===================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.about-copy, .about-card { min-width: 0; }

.about-copy h2 { margin-bottom: 20px; }

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  border: 1px solid rgba(0,229,160,0.3);
  background: rgba(0,229,160,0.06);
  padding: 7px 12px;
  border-radius: 999px;
}

.terminal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}
.terminal::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,229,160,0.3), transparent 45%, transparent 55%, rgba(62,166,255,0.25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.terminal-title {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-faint);
}
.terminal-body {
  margin: 0;
  padding: 22px 20px 26px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--text-dim);
  overflow-x: auto;
}
.tk-prompt { color: var(--accent); }
.tk-cmd { color: var(--accent-2); }
.cursor {
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ===================== Services ===================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.service-card:hover {
  border-color: rgba(0,229,160,0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(0,229,160,0.08), 0 16px 32px -16px rgba(0,229,160,0.25);
}
.service-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.service-card p { font-size: 0.92rem; margin-bottom: 0; }

.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  margin-bottom: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.service-icon::before {
  content: "";
  width: 20px;
  height: 20px;
  background: var(--grad);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.service-icon[data-icon="automation"]::before,
.flow-node-icon[data-icon="automation"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 2v4M12 18v4M4.9 4.9l2.8 2.8M16.3 16.3l2.8 2.8M2 12h4M18 12h4M4.9 19.1l2.8-2.8M16.3 7.7l2.8-2.8'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 2v4M12 18v4M4.9 4.9l2.8 2.8M16.3 16.3l2.8 2.8M2 12h4M18 12h4M4.9 19.1l2.8-2.8M16.3 7.7l2.8-2.8'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E");
}
.service-icon[data-icon="api"]::before,
.flow-node-icon[data-icon="api"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 3H5a2 2 0 0 0-2 2v4M15 3h4a2 2 0 0 1 2 2v4M9 21H5a2 2 0 0 1-2-2v-4M15 21h4a2 2 0 0 0 2-2v-4'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 3H5a2 2 0 0 0-2 2v4M15 3h4a2 2 0 0 1 2 2v4M9 21H5a2 2 0 0 1-2-2v-4M15 21h4a2 2 0 0 0 2-2v-4'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}
.service-icon[data-icon="python"]::before,
.flow-node-icon[data-icon="python"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E");
}
.service-icon[data-icon="shield"]::before,
.flow-node-icon[data-icon="shield"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}
.service-icon[data-icon="cart"]::before,
.flow-node-icon[data-icon="cart"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.7 13.4a2 2 0 0 0 2 1.6h9.7a2 2 0 0 0 2-1.6L23 6H6'/%3E%3C/svg%3E");
}
.service-icon[data-icon="dashboard"]::before,
.flow-node-icon[data-icon="dashboard"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='9'/%3E%3Crect x='14' y='3' width='7' height='5'/%3E%3Crect x='14' y='12' width='7' height='9'/%3E%3Crect x='3' y='16' width='7' height='5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='9'/%3E%3Crect x='14' y='3' width='7' height='5'/%3E%3Crect x='14' y='12' width='7' height='9'/%3E%3Crect x='3' y='16' width='7' height='5'/%3E%3C/svg%3E");
}

/* ===================== Testimonials ===================== */

.testi-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.testi-head h2 { margin-bottom: 10px; }
.section-intro-tight { margin-top: 0; }

.testi-nav-group { display: flex; gap: 8px; flex-shrink: 0; }
.testi-nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.testi-nav:hover { border-color: var(--accent); color: var(--accent); }

.testi-carousel-wrap {
  position: relative;
  margin: 0 -24px;
  padding: 0 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
}

.testi-carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-left: 24px;
  padding: 4px 0 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.testi-carousel::-webkit-scrollbar { display: none; }

.testi-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.testi-card:hover {
  border-color: rgba(0,229,160,0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card), 0 14px 28px -18px rgba(0,229,160,0.3);
}

.testi-stars {
  color: var(--accent-warn);
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.testi-card-quote {
  font-size: 0.94rem;
  color: var(--text);
  margin: 0;
  flex-grow: 1;
  line-height: 1.5;
}

.testi-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 10px;
  border-top: 1px solid var(--border-soft);
  font-size: 0.78rem;
  color: var(--text-faint);
}
.testi-project {
  font-weight: 600;
  color: var(--text-dim);
}

/* ===================== Projects ===================== */

.project-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.project-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover {
  border-color: rgba(62,166,255,0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card), 0 18px 36px -18px rgba(62,166,255,0.3);
}

.project-media {
  position: relative;
  min-height: 220px;
  background: radial-gradient(120% 120% at 20% 15%, rgba(0,229,160,0.16), transparent 55%),
              radial-gradient(120% 120% at 90% 90%, rgba(62,166,255,0.16), transparent 55%),
              var(--surface-2);
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.project-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
                     linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.6;
}
.project-media::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  right: -30px;
  bottom: -30px;
  background: var(--grad);
  filter: blur(46px);
  opacity: 0.35;
}
.project-tag-float {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 6px 11px;
  border-radius: 999px;
  font-weight: 700;
}

.project-body {
  padding: 30px 32px;
}
.project-body h3 { font-size: 1.28rem; margin-bottom: 12px; }
.project-body p { font-size: 0.96rem; }

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 0 0 18px;
  padding: 0;
}
.project-metrics li {
  font-size: 0.86rem;
  color: var(--text-dim);
  position: relative;
  padding-left: 16px;
}
.project-metrics li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.project-metrics strong { color: var(--text); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 999px;
}


/* ===================== Contact ===================== */

.contact-section {
  text-align: center;
}
.contact-inner { max-width: 720px; margin-inline: auto; }
.contact-section h2 { margin-inline: auto; }
.contact-sub { max-width: 560px; margin: 0 auto 40px; }

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.contact-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
  text-align: left;
}
.contact-link:hover { border-color: rgba(0,229,160,0.4); transform: translateY(-2px); }
.contact-link-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
}
.contact-link-value {
  font-size: 0.94rem;
  color: var(--text);
  font-weight: 600;
}

/* ===================== Footer ===================== */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-brand p { margin: 6px 0 0; font-size: 0.85rem; color: var(--text-faint); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.footer-links a { font-size: 0.88rem; color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }
.footer-copy { width: 100%; font-size: 0.8rem; color: var(--text-faint); margin: 20px 0 0; text-align: center; }

/* ===================== Back to top ===================== */

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
  z-index: 90;
}
.to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { border-color: var(--accent); color: var(--accent); }

/* ===================== Reveal-on-scroll ===================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

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

/* ===================== Responsive ===================== */

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .about-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card { grid-template-columns: 1fr; }
  .project-media { min-height: 140px; }
}

@media (max-width: 760px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  .header-inner { flex-wrap: wrap; }

  .site-header.nav-open .main-nav,
  .site-header.nav-open .header-cta {
    display: flex;
    width: 100%;
    order: 3;
    background: var(--bg-alt);
  }

  .site-header.nav-open .main-nav {
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border-soft);
    padding: 8px 0 10px;
  }
  .site-header.nav-open .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--border-soft); }

  .site-header.nav-open .header-cta {
    justify-content: center;
    gap: 10px;
    padding: 0 0 18px;
  }

  .card-grid { grid-template-columns: 1fr; }
  .contact-links { grid-template-columns: 1fr; }
  .hero { padding: 108px 0 56px; }
  .hero-actions { margin-bottom: 20px; }
  .flow-stats { grid-template-columns: repeat(2, 1fr); }
  .testi-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .testi-card { flex-basis: 82vw; }
  .section { padding: 68px 0; }
}

@media (max-width: 520px) {
  .flow-nodes span { display: none; }
}
