/* ============================================
   Nexxura — Marketing Site
   ============================================ */

:root {
  /* Color palette */
  --ink: #0F172A;
  --ink-2: #1E293B;
  --ink-3: #334155;
  --muted: #64748B;
  --muted-2: #94A3B8;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --surface: #F8FAFC;
  --surface-2: #F1F5F9;
  --bg: #FFFFFF;

  --accent: #0EA5E9;
  --accent-hover: #0284C7;
  --accent-soft: rgba(14, 165, 233, 0.08);
  --accent-2: #38BDF8;
  --accent-deep: #1F5DA8;

  --success: #10B981;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-2xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 10px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, 0.18), 0 8px 16px -8px rgba(15, 23, 42, 0.08);
  --shadow-accent: 0 12px 28px -10px rgba(14, 165, 233, 0.45);

  /* Container */
  --container: 1200px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 600;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

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

/* ============================================
   Header
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.header.is-scrolled {
  border-bottom-color: var(--line);
}
.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}
.logo-img {
  display: block;
  height: 40px;
  width: auto;
}
.logo-footer .logo-img { height: 44px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface); }

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

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px;
  cursor: pointer;
  color: var(--ink);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12) inset, 0 1px 2px rgba(15,23,42,0.2);
}
.btn-primary:hover {
  background: var(--accent);
  box-shadow: var(--shadow-accent);
}
.btn-secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--ink-3);
  background: var(--surface);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 8px 12px;
}
.btn-ghost:hover { color: var(--accent); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

.btn .arrow {
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: 96px 0 64px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(14, 165, 233, 0.12), transparent 60%),
    radial-gradient(700px 400px at 0% 30%, rgba(31, 93, 168, 0.08), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 0%, transparent 70%);
  opacity: 0.55;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}
.eyebrow strong { color: var(--ink); font-weight: 600; }

.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin: 24px 0 20px;
  max-width: 920px;
}
.hero h1 .highlight {
  background: linear-gradient(120deg, var(--accent-deep) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-3);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 24px 28px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}
.trust-strip > div {
  padding: 0 20px;
  border-right: 1px solid var(--line);
}
.trust-strip > div:last-child { border-right: none; }
.trust-strip > div:first-child { padding-left: 0; }
.trust-strip .num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
}
.trust-strip .label {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

/* ============================================
   Sections
   ============================================ */
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head.left { text-align: left; margin-left: 0; }
.kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.55;
}

/* ============================================
   Logo bar
   ============================================ */
.logos {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.logos-label {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.logos-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  align-items: center;
}
.logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  color: var(--muted-2);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  filter: grayscale(1);
  opacity: 0.65;
  transition: opacity 0.2s ease;
}
.logo-placeholder:hover { opacity: 1; }
.logo-placeholder svg { height: 100%; width: auto; }
.logo-placeholder .lp-mark {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   Services grid
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--accent-soft) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.service-card:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; }

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--surface) 0%, white 100%);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.service-card h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.service-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  flex: 1;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-top: auto;
}
.service-link:hover { color: var(--accent); }
.service-link .arrow { transition: transform 0.2s ease; }
.service-link:hover .arrow { transform: translateX(3px); }

/* ============================================
   Why us
   ============================================ */
.why {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
.why-points {
  display: grid;
  gap: 8px;
}
.why-point {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.why-point:hover {
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.why-point-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-point h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.why-point p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  background: white;
  padding: 32px 28px;
}
.stat .num {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.stat .num .unit { color: var(--accent); font-weight: 500; }
.stat .label {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================
   Case studies
   ============================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-2);
}
.case-visual {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.case-visual-1 {
  background:
    radial-gradient(600px 200px at 80% 30%, rgba(14, 165, 233, 0.55), transparent 60%),
    radial-gradient(400px 200px at 10% 80%, rgba(56, 189, 248, 0.35), transparent 60%),
    linear-gradient(135deg, #0F172A 0%, #1F3A6B 100%);
}
.case-visual-2 {
  background:
    radial-gradient(500px 250px at 30% 30%, rgba(56, 189, 248, 0.55), transparent 65%),
    radial-gradient(400px 200px at 90% 80%, rgba(31, 93, 168, 0.55), transparent 60%),
    linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
}
.case-visual-3 {
  background:
    radial-gradient(500px 250px at 50% 100%, rgba(14, 165, 233, 0.55), transparent 60%),
    radial-gradient(400px 200px at 20% 20%, rgba(31, 93, 168, 0.45), transparent 60%),
    linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
}
.case-visual-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, black 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 30%, transparent 100%);
}
.case-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-pill);
  font-size: 12px;
  color: white;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.case-metric {
  position: relative;
  font-family: var(--font-mono);
  font-size: 52px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.04em;
  line-height: 1;
}
.case-metric .unit {
  background: linear-gradient(120deg, #7DD3FC 0%, #38BDF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.case-metric .caption {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 10px;
}
.case-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.case-body h3 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
.case-body .case-industry {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.case-body .problem {
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.55;
}
.case-body .outcome {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.case-body .outcome svg { color: var(--success); flex-shrink: 0; }

/* ============================================
   Process timeline
   ============================================ */
.process {
  background: var(--ink);
  color: white;
  position: relative;
  overflow: hidden;
}
.process::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(14, 165, 233, 0.28), transparent 60%),
    radial-gradient(600px 400px at 80% 100%, rgba(31, 93, 168, 0.22), transparent 60%);
  pointer-events: none;
}
.process .container { position: relative; }
.process h2 { color: white; }
.process .section-sub { color: rgba(255,255,255,0.65); }
.process .kicker { color: #38BDF8; }

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.18) 15%, rgba(255,255,255,0.18) 85%, transparent 100%);
}
.tl-step {
  text-align: center;
  padding: 0 12px;
  position: relative;
}
.tl-step .dot {
  width: 44px;
  height: 44px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--ink-2);
  border: 1px solid rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  color: white;
  position: relative;
  z-index: 1;
}
.tl-step.active .dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.22);
}
.tl-step h4 {
  color: white;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}
.tl-step p {
  font-size: 13.5px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

/* ============================================
   Tech stack
   ============================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.tech-item {
  aspect-ratio: 1 / 1;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.tech-item:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.tech-item svg { color: var(--ink-2); }
.tech-item .name {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

/* ============================================
   Portfolio
   ============================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Thumbnail */
.pf-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pf-thumb:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pf-visual-1 {
  background:
    radial-gradient(600px 240px at 80% 20%, rgba(14, 165, 233, 0.55), transparent 60%),
    radial-gradient(420px 220px at 10% 90%, rgba(56, 189, 248, 0.35), transparent 60%),
    linear-gradient(135deg, #0F172A 0%, #1F3A6B 100%);
}
.pf-visual-2 {
  background:
    radial-gradient(520px 260px at 25% 25%, rgba(56, 189, 248, 0.55), transparent 65%),
    radial-gradient(420px 220px at 90% 85%, rgba(31, 93, 168, 0.55), transparent 60%),
    linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
}
.pf-visual-3 {
  background:
    radial-gradient(460px 240px at 75% 20%, rgba(14, 165, 233, 0.5), transparent 60%),
    radial-gradient(380px 220px at 12% 90%, rgba(31, 93, 168, 0.45), transparent 60%),
    linear-gradient(135deg, #0F172A 0%, #16243F 100%);
}
.pf-visual-4 {
  background:
    radial-gradient(460px 240px at 20% 25%, rgba(56, 189, 248, 0.5), transparent 65%),
    radial-gradient(380px 220px at 85% 90%, rgba(14, 165, 233, 0.4), transparent 60%),
    linear-gradient(135deg, #1E293B 0%, #0B1220 100%);
}
.pf-visual-5 {
  background:
    radial-gradient(460px 240px at 60% 100%, rgba(14, 165, 233, 0.5), transparent 60%),
    radial-gradient(380px 220px at 18% 12%, rgba(31, 93, 168, 0.5), transparent 60%),
    linear-gradient(135deg, #0F172A 0%, #1F3A6B 100%);
}
.pf-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, black 20%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, black 20%, transparent 100%);
}
.pf-icon {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.25s ease;
}
.pf-thumb:hover .pf-icon { transform: scale(1.06); }
/* Project-name tile (shown instead of a screenshot) */
.pf-thumb-title {
  position: relative;
  z-index: 1;
  font-family: "Space Grotesk", var(--font-sans);
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
  padding: 0 24px;
  transition: transform 0.25s ease;
}
.pf-thumb:hover .pf-thumb-title { transform: scale(1.04); }
/* Real screenshot inside a card thumbnail */
.pf-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}
.pf-thumb:hover .pf-shot { transform: scale(1.04); }

/* Meta row below the thumbnail */
.pf-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pf-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
  letter-spacing: -0.01em;
}
.pf-avatar-1 { background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent-2) 100%); }
.pf-avatar-2 { background: linear-gradient(135deg, var(--ink-2) 0%, var(--accent) 100%); }
.pf-avatar-3 { background: linear-gradient(135deg, #1F5DA8 0%, #38BDF8 100%); }
.pf-avatar-4 { background: linear-gradient(135deg, #0EA5E9 0%, #1E293B 100%); }
.pf-avatar-5 { background: linear-gradient(135deg, #334155 0%, #0EA5E9 100%); }
.pf-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.pf-badges {
  display: inline-flex;
  gap: 6px;
  margin-left: 4px;
}
.pf-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 2px 6px;
  line-height: 1.4;
}
.pf-badge.pro {
  color: var(--accent);
  border-color: rgba(14, 165, 233, 0.35);
  background: var(--accent-soft);
}
.pf-badge.dev {
  color: #2563EB;
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.08);
}
.pf-badge.sotd {
  color: #B45309;
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(245, 158, 11, 0.1);
}
.pf-name { transition: color 0.15s ease; }
.pf-name:hover { color: var(--accent); }

/* ============================================
   Project detail page
   ============================================ */
.proj-hero {
  padding: 48px 0 32px;
}
.proj-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 28px;
  transition: color 0.15s ease;
}
.proj-back:hover { color: var(--ink); }
.proj-back svg { transition: transform 0.2s ease; }
.proj-back:hover svg { transform: translateX(-3px); }

.proj-head {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: end;
}
.proj-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.proj-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
}
.proj-badge.sot {
  color: #B45309;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}
.proj-badge.pro {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(14, 165, 233, 0.3);
}
.proj-title {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 600;
}
.proj-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-3);
  margin-top: 18px;
}
.proj-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.proj-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.proj-author .pf-avatar { width: 40px; height: 40px; font-size: 15px; }
.proj-author .who .name { font-size: 15px; font-weight: 600; color: var(--ink); }
.proj-author .who .role { font-size: 13px; color: var(--muted); }

.proj-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 40px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.proj-fact {
  background: white;
  padding: 20px 22px;
}
.proj-fact .k {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}
.proj-fact .v {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

/* Gallery */
.proj-gallery {
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.proj-gallery-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* Real screenshot in the gallery */
.shot-img {
  width: 100%;
  display: block;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
/* Equalize the side-by-side pair so tops align and heights match */
.proj-gallery-2 .shot-img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

/* Browser-window mockup "screenshot" */
.shot {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: #0F172A;
}
.shot-chrome {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  background: #1E293B;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.shot-chrome i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  flex-shrink: 0;
}
.shot-chrome .url {
  margin-left: 14px;
  height: 20px;
  flex: 1;
  max-width: 360px;
  border-radius: 6px;
  background: rgba(255,255,255,0.07);
}
.shot-screen {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}
.shot-1 {
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(14,165,233,0.25), transparent 60%),
    linear-gradient(160deg, #0B1220 0%, #111E36 100%);
}
.shot-2 {
  background:
    radial-gradient(500px 260px at 20% 100%, rgba(56,189,248,0.22), transparent 60%),
    linear-gradient(160deg, #0F172A 0%, #0B1220 100%);
}

/* Mock app inside the screen */
.app {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 64px 1fr;
}
.app-side {
  background: rgba(255,255,255,0.03);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 0;
}
.app-side b {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: rgba(255,255,255,0.07);
}
.app-side b:first-child { background: var(--accent); }
.app-main {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.app-top .t1 { width: 150px; height: 14px; border-radius: 5px; background: rgba(255,255,255,0.14); }
.app-top .t2 { width: 92px; height: 30px; border-radius: 8px; background: var(--accent); opacity: 0.85; }
.app-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.app-stat {
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.app-stat .s1 { width: 55%; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.16); }
.app-stat .s2 { width: 72%; height: 16px; border-radius: 5px; background: rgba(56,189,248,0.55); }
.app-chart {
  flex: 1;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 16px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.app-chart i {
  flex: 1;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--accent-2) 0%, rgba(14,165,233,0.15) 100%);
}
.app-chart i:nth-child(1) { height: 45%; }
.app-chart i:nth-child(2) { height: 70%; }
.app-chart i:nth-child(3) { height: 35%; }
.app-chart i:nth-child(4) { height: 85%; }
.app-chart i:nth-child(5) { height: 55%; }
.app-chart i:nth-child(6) { height: 95%; }
.app-chart i:nth-child(7) { height: 60%; }
.app-chart i:nth-child(8) { height: 78%; }

/* Table-style mock */
.app-rows {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.app-rows .row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 0.6fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
}
.app-rows .row span { height: 8px; border-radius: 4px; background: rgba(255,255,255,0.14); }
.app-rows .row span.pill { height: 16px; border-radius: var(--r-pill); background: rgba(56,189,248,0.4); }

.shot-caption {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--muted);
}

/* Overview */
.proj-overview {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  padding-top: 24px;
}
.proj-overview h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.proj-overview .body p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.proj-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.proj-result .num {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}
.proj-result .num .unit { color: var(--accent); }
.proj-result .label {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* Surface feature lists (What we built) */
.surface-feats {
  list-style: none;
  margin: 4px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.surface-feats li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-3);
}
.surface-feats li svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Impact band (dark) */
.proj-impact {
  background: var(--ink);
  color: white;
  position: relative;
  overflow: hidden;
}
.proj-impact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 15% 0%, rgba(14, 165, 233, 0.26), transparent 60%),
    radial-gradient(600px 400px at 90% 100%, rgba(31, 93, 168, 0.22), transparent 60%);
  pointer-events: none;
}
.proj-impact .container { position: relative; z-index: 1; }
.proj-impact h2 { color: white; }
.proj-impact .kicker { color: #38BDF8; }
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.impact-cell {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--r-lg);
  padding: 28px 24px;
}
.impact-cell .num {
  font-family: var(--font-mono);
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: white;
}
.impact-cell .num .unit { color: var(--accent-2); }
.impact-cell .label {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

/* Pull quote */
.proj-quote {
  padding: 80px 0;
  text-align: center;
}
.proj-quote-mark {
  width: 36px;
  height: 36px;
  color: var(--accent);
  opacity: 0.55;
  margin: 0 auto 20px;
}
.proj-quote blockquote {
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: var(--ink);
}
.proj-quote .cite {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Next project */
.proj-next {
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.proj-next a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 0;
}
.proj-next .lbl {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 8px;
}
.proj-next .nm {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  transition: color 0.15s ease;
}
.proj-next a:hover .nm { color: var(--accent); }
.proj-next .arrow-lg {
  flex-shrink: 0;
  color: var(--ink-3);
  transition: transform 0.2s ease, color 0.15s ease;
}
.proj-next a:hover .arrow-lg { transform: translateX(6px); color: var(--accent); }

@media (max-width: 860px) {
  .proj-head { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .proj-facts { grid-template-columns: repeat(2, 1fr); }
  .proj-gallery-2 { grid-template-columns: 1fr; }
  .proj-overview { grid-template-columns: 1fr; gap: 28px; }
  .proj-results { grid-template-columns: 1fr; gap: 16px; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   Testimonials
   ============================================ */
.testimonials {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.test-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow 0.2s ease;
}
.test-card:hover { box-shadow: var(--shadow-md); }
.test-quote-mark {
  width: 28px;
  height: 28px;
  color: var(--accent);
  opacity: 0.6;
}
.test-quote {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  flex: 1;
  letter-spacing: -0.005em;
}
.test-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.test-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink-2) 0%, var(--accent) 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.test-author-info .name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.test-author-info .role {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================
   Trust band
   ============================================ */
.trust-band {
  padding: 40px 0;
}
.trust-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 28px 32px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.trust-band-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.trust-band-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}
.trust-badge svg { color: var(--accent); }

/* ============================================
   About
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-body p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.about-body p:last-of-type { margin-bottom: 28px; }
.about-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.about-meta-item .num {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.04em;
}
.about-meta-item .label {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px;
}

.team-card {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  overflow: hidden;
}
.team-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 2px;
  padding: 24px;
  z-index: 0;
}
.team-cell {
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  font-weight: 500;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
}
.team-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(15, 23, 42, 0.04) 6px 7px);
}
.team-cell.accent { background: var(--ink); color: rgba(255,255,255,0.7); }
.team-cell.accent::before { background: repeating-linear-gradient(45deg, transparent 0 6px, rgba(255,255,255,0.06) 6px 7px); }
.team-cell .role {
  position: relative;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.team-card-label {
  position: absolute;
  bottom: 20px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
}

/* ============================================
   CTA section
   ============================================ */
.cta-section {
  padding: 64px 0;
}
.cta-card {
  position: relative;
  padding: 64px;
  background: var(--ink);
  border-radius: var(--r-2xl);
  color: white;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: center;
}
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 400px at 90% 100%, rgba(14, 165, 233, 0.42), transparent 60%),
    radial-gradient(500px 300px at 10% 0%, rgba(31, 93, 168, 0.25), transparent 60%);
}
.cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(135deg, black 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(135deg, black 0%, transparent 70%);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 {
  color: white;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  margin-bottom: 16px;
}
.cta-card p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  max-width: 440px;
}
.cta-card .cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}
.cta-card .btn-primary {
  background: white;
  color: var(--ink);
}
.cta-card .btn-primary:hover { background: var(--accent); color: white; }
.cta-card .btn-secondary {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.2);
}
.cta-card .btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
}
.cta-note {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================
   Contact
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.contact-info h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 4px;
}
.contact-info p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 12px;
}
.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
}
.contact-method:last-child { border-bottom: none; }
.contact-method svg {
  flex-shrink: 0;
  color: var(--accent);
  padding: 8px;
  background: var(--accent-soft);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  box-sizing: border-box;
}
.contact-method strong { color: var(--ink); font-weight: 600; margin-right: 6px; }

.reassurance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--r-pill);
  font-size: 13.5px;
  color: #047857;
  font-weight: 500;
}

.contact-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.field input, .field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: white;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field .error-msg {
  font-size: 12.5px;
  color: #DC2626;
  display: none;
}
.field.has-error input, .field.has-error textarea {
  border-color: #DC2626;
}
.field.has-error .error-msg { display: block; }
.form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
}
.form-foot small {
  font-size: 12.5px;
  color: var(--muted);
}
.form-success {
  display: none;
  padding: 20px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--r-md);
  color: #047857;
  font-size: 14.5px;
  font-weight: 500;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.form-success.is-shown { display: flex; }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer .logo,
.footer .logo-word { color: white; }
.footer-tagline {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 320px;
  color: rgba(255,255,255,0.55);
}
.footer h5 {
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.15s ease;
}
.footer-links a:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: white; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .test-grid { grid-template-columns: 1fr 1fr; }
  .test-grid > :last-child { grid-column: 1 / -1; }
  .tech-grid { grid-template-columns: repeat(6, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .cta-card { grid-template-columns: 1fr; gap: 28px; padding: 48px; }
  .cta-card .cta-actions { align-items: flex-start; }
  .timeline { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .logos-row { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .header-cta .btn-secondary { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 48px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); row-gap: 20px; padding: 20px; }
  .trust-strip > div { border-right: none; padding: 0 12px; }
  .trust-strip > div:nth-child(2n-1) { border-right: 1px solid var(--line); }
  .services-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .test-grid { grid-template-columns: 1fr; }
  .test-grid > :last-child { grid-column: auto; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { display: none; }
  .tl-step { text-align: left; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .tl-step:last-child { border-bottom: none; }
  .tl-step .dot { margin: 0; }
  .form-row { grid-template-columns: 1fr; }
  .cta-card { padding: 32px; }
  .trust-band-inner { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
}
