/* =========================================================
   Achievercare Surgical Agency — futuristic theme
   Colours live in :root below. Change them to re-theme.
   ========================================================= */
:root {
  --bg: #050816;
  --bg-2: #0a1030;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(160, 190, 255, 0.16);
  --border-strong: rgba(120, 200, 255, 0.4);
  --text: #eef2ff;
  --muted: #a9b4d8;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --success: #34d399;
  --error: #fb7185;
  --grad: linear-gradient(120deg, var(--cyan), var(--blue) 45%, var(--violet));
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --glow: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 10px 40px -8px rgba(59, 130, 246, 0.6);
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #7ee8fa; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 200; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Animated background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(ellipse at 50% -20%, #13205a 0%, var(--bg) 60%); }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.45; will-change: transform; }
.a1 { width: 520px; height: 520px; background: #1d4ed8; top: -120px; left: -140px; animation: drift1 22s ease-in-out infinite alternate; }
.a2 { width: 460px; height: 460px; background: #7c3aed; top: 30%; right: -160px; animation: drift2 26s ease-in-out infinite alternate; }
.a3 { width: 380px; height: 380px; background: #0891b2; bottom: -140px; left: 30%; opacity: 0.3; animation: drift1 30s ease-in-out infinite alternate-reverse; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(140, 170, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 170, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
@keyframes drift1 { to { transform: translate(120px, 80px) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-100px, 120px) scale(0.9); } }

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.9em 1.6em; border-radius: 999px; font: 600 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.btn-primary { background: var(--grad); color: #04101f; box-shadow: 0 8px 30px -8px rgba(34, 211, 238, 0.6); }
.btn-primary:hover { color: #04101f; transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,255,255,0.3), 0 14px 40px -6px rgba(59, 130, 246, 0.85); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); border-color: var(--cyan); box-shadow: var(--glow); transform: translateY(-2px); }
.btn-sm { padding: 0.65em 1.2em; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); transition: background 0.3s ease, border-color 0.3s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(5, 8, 22, 0.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--border); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.2rem; letter-spacing: -0.01em; }
.brand-text small { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a:not(.btn) { position: relative; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; border-radius: 2px; }
.nav-menu a:not(.btn):hover, .nav-menu a.active { color: var(--text); }
.nav-menu a:not(.btn):hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Eyebrow ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 0.8rem/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px; padding: 8px 14px; border: 1px solid rgba(34, 211, 238, 0.3); border-radius: 999px; background: rgba(34, 211, 238, 0.06); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow-x: clip; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 28px; }
.hero-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-tags li { font-size: 0.85rem; color: var(--muted); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.hero-visual { position: relative; aspect-ratio: 1 / 1.05; max-width: 540px; width: 100%; justify-self: center; }
.orb-art { position: absolute; inset: -8% -12% auto auto; width: 78%; opacity: 0.95; pointer-events: none; }
.hero-photo { position: absolute; inset: 14% 6% 0 12%; margin: 0; padding: 10px; }
.hero-photo .img-wrap { width: 100%; height: 100%; border-radius: calc(var(--radius) - 8px); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::before { content: ""; position: absolute; inset: -1px; border-radius: var(--radius); padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0.7; pointer-events: none; }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.chip .ic { color: var(--cyan); }
.chip-a { left: 0; bottom: 14%; }
.chip-b { right: 0; top: 22%; }
.float { animation: float 6s ease-in-out infinite; }
.float-slow { animation: float 8s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translateY(-14px); } }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--cyan); border-radius: 2px; animation: scrolldot 1.8s ease-in-out infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Images with fallback ---------- */
.img-wrap { position: relative; overflow: hidden; background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.35), transparent 55%), radial-gradient(circle at 75% 70%, rgba(139, 92, 246, 0.4), transparent 55%), linear-gradient(135deg, #0d1640, #111c4f); }
.img-wrap img { transition: transform 0.7s ease, opacity 0.5s ease; }
.img-wrap.img-failed img { opacity: 0; }
.img-wrap.img-failed::after { content: ""; position: absolute; inset: 0; background: url("../assets/fallback.svg") center / 40% no-repeat; opacity: 0.7; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(900px, 90%); height: 1px; background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.45), rgba(139, 92, 246, 0.45), transparent); }
.section-band { background: linear-gradient(180deg, transparent, rgba(20, 30, 80, 0.35), transparent); }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .muted { font-size: 1.1rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.glow-frame { border-radius: var(--radius); aspect-ratio: 1; box-shadow: 0 0 0 1px var(--border-strong), 0 30px 80px -20px rgba(59, 130, 246, 0.5); }
.glow-frame img { width: 100%; height: 100%; object-fit: cover; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.value { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius-sm); box-shadow: none; transition: border-color 0.3s, transform 0.3s; }
.value:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.value .ic { color: var(--cyan); width: 26px; height: 26px; margin-top: 2px; }
.value h3 { font-size: 1.02rem; margin-bottom: 2px; }
.value p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { overflow: hidden; padding: 0; transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease; }
.card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow), 0 20px 50px -20px rgba(34, 211, 238, 0.45); }
.card:hover .card-img img { transform: scale(1.06); }
.card-img { aspect-ratio: 16 / 10; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 40%, rgba(5, 8, 22, 0.85)); pointer-events: none; }
.card-body { padding: 0 26px 28px; }
.card-icon { position: relative; z-index: 2; display: inline-grid; place-items: center; width: 54px; height: 54px; margin-top: -27px; margin-bottom: 16px; border-radius: 16px; background: linear-gradient(135deg, #0f1c4d, #1b1650); border: 1px solid var(--border-strong); color: var(--cyan); box-shadow: 0 0 24px -4px rgba(34, 211, 238, 0.6); }
.card-icon .ic { width: 26px; height: 26px; }
.card p { color: var(--muted); margin: 0; }

.card { position: relative; }
.card-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; padding: 0;
  background: none; border: 0; color: var(--cyan); font: 600 0.95rem var(--font-body); cursor: pointer;
}
.card-more::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: var(--radius); }  /* whole card clickable */
.card-more .ic { transition: transform 0.25s ease; }
.card:hover .card-more .ic, .card-more:focus-visible .ic { transform: translateX(4px); }
.card-more:focus-visible { outline: none; }
.card:has(.card-more:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 3px; }
.card:hover { cursor: pointer; }

/* Product catalogue pop-up */
html.modal-open { overflow: hidden; }
.catalog {
  width: min(1100px, 100% - 32px); max-height: min(88vh, 920px); padding: 0; margin: auto;
  border: 1px solid var(--border-strong); border-radius: 24px; color: var(--text);
  background: linear-gradient(160deg, #0d1538, #070b20 60%);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(34, 211, 238, 0.15);
  overflow: hidden;
}
.catalog::backdrop { background: rgba(3, 5, 15, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.catalog[open] { display: flex; animation: pop 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.98); } }
.catalog-inner { display: flex; flex-direction: column; width: 100%; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; }
.catalog-inner > * { flex-shrink: 0; }
.catalog-head { position: relative; min-height: 220px; display: flex; align-items: flex-end; padding: 32px clamp(20px, 4vw, 40px) 24px; }
.catalog-hero { position: absolute; inset: 0; }
.catalog-hero img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.catalog-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7, 11, 32, 0.2), #0b1234 95%); }
.catalog-head-text { position: relative; z-index: 2; max-width: 680px; padding-right: 48px; }
.catalog-head-text h2 { margin-bottom: 6px; }
.catalog-head-text .muted { margin: 0; }
.catalog-close {
  position: absolute; z-index: 3; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--text);
  background: rgba(5, 8, 22, 0.6); border: 1px solid var(--border-strong); backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
}
.catalog-close:hover { background: rgba(34, 211, 238, 0.2); transform: rotate(90deg); }
.catalog-close .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.catalog-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 4px clamp(20px, 4vw, 40px) 18px; }
.catalog-search { position: relative; flex: 1 1 280px; max-width: 420px; display: block; }
.catalog-search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.catalog-search input {
  width: 100%; font: inherit; color: var(--text); padding: 11px 14px 11px 42px; border-radius: 999px;
  background: rgba(5, 8, 22, 0.6); border: 1px solid var(--border); transition: border-color 0.2s, box-shadow 0.2s;
}
.catalog-search input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15); }
.catalog-count { margin: 0; color: var(--muted); font-size: 0.9rem; }
.catalog-empty { margin: 0 clamp(20px, 4vw, 40px) 24px; padding: 20px; text-align: center; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: 16px; }
.catalog-empty[hidden], .product[hidden] { display: none; }
.catalog-grid { list-style: none; margin: 0; padding: 8px clamp(20px, 4vw, 40px) 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.product {
  display: flex; flex-direction: column; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border); transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  animation: pop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.product:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: 0 18px 40px -18px rgba(34, 211, 238, 0.5); }
.product-media {
  position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, rgba(34, 211, 238, 0.28), transparent 55%), radial-gradient(circle at 75% 80%, rgba(139, 92, 246, 0.32), transparent 55%), linear-gradient(135deg, #0e1846, #141a52);
}
.product-media::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(140, 170, 255, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 170, 255, 0.07) 1px, transparent 1px); background-size: 20px 20px; pointer-events: none; }
.product-media img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.product-icon { width: 46%; height: auto; aspect-ratio: 1; fill: none; stroke: #bff3ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.55)); transition: transform 0.4s ease; position: relative; z-index: 1; }
.product:hover .product-icon { transform: scale(1.08) rotate(-3deg); }
.product-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-body h3 { font-size: 1.02rem; margin: 0; }
.product-body p { margin: 0; color: var(--muted); font-size: 0.88rem; flex: 1; }
.product-enquire {
  align-self: flex-start; margin-top: 10px; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  font: 600 0.85rem var(--font-body); color: var(--text); background: rgba(34, 211, 238, 0.08); border: 1px solid rgba(34, 211, 238, 0.4);
  transition: background 0.2s, box-shadow 0.2s;
}
.product-enquire:hover { background: rgba(34, 211, 238, 0.2); box-shadow: var(--glow); }
.catalog-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px clamp(20px, 4vw, 40px); border-top: 1px solid var(--border); background: rgba(5, 8, 22, 0.5); position: sticky; bottom: 0; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.catalog-foot p { margin: 0; }

@media (max-width: 600px) {
  .catalog { width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; border: 0; }
  .catalog-head { min-height: 180px; padding-top: 72px; }
  .catalog-head-text { padding-right: 0; }
  .catalog-head-text h2 { font-size: 1.7rem; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-body { padding: 12px; }
  .product-body p { font-size: 0.8rem; }
  .product-enquire { padding: 7px 12px; font-size: 0.8rem; }
  .catalog-foot .btn { flex: 1 1 100%; }
}

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { padding: 32px 28px; transition: transform 0.35s ease, border-color 0.35s ease; position: relative; overflow: hidden; }
.feature::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; top: -60px; background: radial-gradient(circle, rgba(34, 211, 238, 0.25), transparent 70%); opacity: 0; transition: opacity 0.4s; }
.feature:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.feature:hover::after { opacity: 1; }
.feat-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px; background: var(--grad); color: #04101f; box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.9); }
.feat-icon .ic { width: 26px; height: 26px; stroke-width: 2; }
.feature p { color: var(--muted); margin: 0; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 46px; left: 8%; right: 8%; height: 2px; background: var(--grad); opacity: 0.5; }
.step { position: relative; padding: 28px 22px; text-align: center; transition: transform 0.35s, border-color 0.35s; }
.step:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.step-num { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%; font: 700 0.95rem var(--font-head); background: var(--bg); border: 2px solid var(--cyan); color: var(--cyan); box-shadow: 0 0 20px -2px rgba(34, 211, 238, 0.7); position: relative; }
.step h3 { font-size: 1.05rem; }
.step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-bottom: 20px; }
.trust-grid:empty { display: none; }
.trust-item { padding: 24px; }
.trust-item small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; margin-bottom: 4px; }
.trust-item strong { font-family: var(--font-head); font-size: 1.15rem; }
.quote { padding: 28px; }
.quote blockquote { margin: 0 0 16px; font-size: 1.05rem; }
.quote figcaption { color: var(--muted); font-size: 0.9rem; }
.trust-empty { max-width: 680px; margin: 0 auto; padding: 24px 28px; text-align: center; color: var(--muted); }
.trust-empty[hidden] { display: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.contact-list li[hidden] { display: none; }
.contact-list small { display: block; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; }
.contact-list a, .contact-list span:not(.ci) { color: var(--text); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--cyan); }
.ci { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; background: var(--surface); border: 1px solid var(--border); color: var(--cyan); }
.form { padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: rgba(5, 8, 22, 0.6);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field select option { background: var(--bg-2); color: var(--text); }
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(160, 190, 255, 0.3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.field-error { margin: 0; color: var(--error); font-size: 0.85rem; min-height: 0; }
.field-error:empty { display: none; }
.consent { grid-template-columns: auto 1fr; align-items: start; column-gap: 12px; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--cyan); padding: 0; }
.consent label { font-weight: 400; color: var(--muted); }
.consent .field-error { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { border-radius: var(--radius-sm); font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status.success { padding: 14px 16px; background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.45); color: #a7f3d0; }
.form-status.error { padding: 14px 16px; background: rgba(251, 113, 133, 0.1); border: 1px solid rgba(251, 113, 133, 0.45); color: #fecdd3; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(4, 16, 31, 0.3); border-top-color: #04101f; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Footer */
.site-footer { position: relative; border-top: 1px solid var(--border); background: rgba(3, 5, 15, 0.7); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-grid h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 14px; }
.footer-grid nav, .footer-grid > div:last-child { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a:not(.brand) { color: var(--text); text-decoration: none; opacity: 0.85; overflow-wrap: anywhere; }
.footer-grid a:not(.brand):hover { color: var(--cyan); opacity: 1; }
.footer-grid .muted { margin-top: 16px; max-width: 32ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.875rem; color: var(--muted); }
.footer-bottom p { margin: 0; }

/* Floating contact button */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #04101f; box-shadow: 0 10px 30px -6px rgba(59, 130, 246, 0.8); transition: transform 0.3s, opacity 0.3s; opacity: 0; transform: translateY(20px) scale(0.9); pointer-events: none; }
.fab.show { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { color: #04101f; transform: scale(1.08); }
.fab .ic { width: 26px; height: 26px; stroke-width: 2; }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

.intro { animation: intro 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.intro-2 { animation-delay: 0.15s; }
@keyframes intro { from { opacity: 0; transform: translateY(24px); } }

/* Simple pages (privacy, 404) */
.page { padding: calc(var(--header-h) + 64px) 0 96px; min-height: 80vh; }
.page .prose { max-width: 760px; padding: clamp(24px, 4vw, 48px); }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--muted); }
.center { text-align: center; }
.prose.credits { max-width: 1100px; }
.credits-table-wrap { overflow-x: auto; margin-top: 24px; border: 1px solid var(--border); border-radius: 12px; }
.credits-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.credits-table th, .credits-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--muted); }
.credits-table th { color: var(--text); background: rgba(255, 255, 255, 0.04); position: sticky; top: 0; }
.credits-table td:first-child { color: var(--text); font-weight: 500; white-space: nowrap; }
.credits-table td:nth-child(2) { word-break: break-word; }
.mx-auto { margin-inline: auto; }
.logo-404 { margin: 0 auto 24px; }
.big-404 { font: 700 clamp(6rem, 20vw, 11rem)/1 var(--font-head); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards, .features { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .timeline::before { top: 0; bottom: 0; left: 41px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--cyan), var(--violet)); }
  .step { text-align: left; display: grid; grid-template-columns: 40px 1fr; column-gap: 20px; padding: 22px; }
  .step-num { grid-row: span 2; margin: 0; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 16px 24px; background: rgba(5, 8, 22, 0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border); transform: translateY(-120%); visibility: hidden; transition: transform 0.35s ease, visibility 0.35s;
  }
  .nav-menu.open { transform: none; visibility: visible; }
  .nav-menu a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 16px; }
  .site-header.menu-open { background: rgba(5, 8, 22, 0.96); }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 40px); }
  .hero-visual { max-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .scroll-hint { display: none; }
}
@media (max-width: 600px) {
  .cards, .features, .values { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .chip { font-size: 0.8rem; padding: 10px 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .fab { right: 16px; bottom: 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
