/* ============================================================
   MODICODE — Design System
   ============================================================ */

:root {
  --bg: #070b16;
  --bg-2: #0b1120;
  --surface: #0f1728;
  --surface-2: #141e33;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8ecf4;
  --muted: #94a3b8;
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --violet: #a855f7;
  --grad: linear-gradient(135deg, #6366f1, #22d3ee);
  --grad-2: linear-gradient(135deg, #a855f7, #6366f1);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --container: 1180px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }

a { color: var(--cyan); text-decoration: none; }
p { color: var(--muted); }
img { max-width: 100%; display: block; }

.container { width: min(var(--container), 92%); margin-inline: auto; }

.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-tight { padding: 72px 0; }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  padding: 120px 0 64px;
  background: radial-gradient(900px 420px at 20% -10%, rgba(99,102,241,0.22), transparent 60%),
              radial-gradient(700px 380px at 85% -20%, rgba(34,211,238,0.16), transparent 60%),
              var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero .subtitle { font-size: 1.15rem; max-width: 640px; }

/* ---- Gradient text ---- */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 40px rgba(34, 211, 238, 0.35); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }

.btn-block { width: 100%; justify-content: center; }

/* ---- Header ---- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(7, 11, 22, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--text);
}
.logo span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active { color: var(--text); }
.main-nav a.btn { color: #fff; padding: 9px 16px; font-size: 0.9rem; }
.main-nav a.btn:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--text);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.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 {
  padding: 180px 0 100px;
  position: relative;
}
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(1000px 520px at 15% -10%, rgba(99,102,241,0.25), transparent 60%),
    radial-gradient(800px 480px at 90% 10%, rgba(34,211,238,0.16), transparent 60%),
    radial-gradient(600px 400px at 60% 90%, rgba(168,85,247,0.12), transparent 60%),
    var(--bg);
}
.hero-bg::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1200px;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.6), rgba(34,211,238,0.6), transparent);
}

.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero p.lead { font-size: 1.2rem; margin-bottom: 34px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 40px; display: flex; gap: 40px; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

/* ---- Phone mockup ---- */
.mockup-wrap { position: relative; }
.mockup-glow {
  position: absolute;
  inset: -40px -30px;
  background: radial-gradient(400px 300px at 50% 40%, rgba(99,102,241,0.4), transparent 70%);
  filter: blur(30px);
  z-index: 0;
}
.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  margin-inline: auto;
  background: linear-gradient(180deg, #141e33, #0d1426);
  border: 1px solid var(--border-strong);
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow);
}
.phone-screen {
  border-radius: 26px;
  overflow: hidden;
  background: #0a1020;
}
.phone-notch {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-notch span { width: 90px; height: 18px; background: #05080f; border-radius: 999px; }
.phone-sample { padding: 14px; display: grid; gap: 10px; }
.sample-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 11px;
}
.sample-status { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sample-status.green { background: #34d399; }
.sample-status.blue { background: #38bdf8; }
.sample-status.amber { background: #fbbf24; }
.sample-status.gray { background: #64748b; }
.sample-label { font-size: 0.78rem; font-weight: 600; }
.sample-sub { font-size: 0.68rem; color: var(--muted); }
.sample-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--grad);
  opacity: 0.9;
}
.floating-card {
  position: absolute;
  z-index: 2;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 13px 16px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
}
.floating-card strong { display: block; font-family: var(--font-head); }
.floating-card small { color: var(--muted); }
.fc-provision { top: 12%; right: 2%; animation: floaty 5s ease-in-out infinite; }
.fc-route { bottom: 14%; left: 0; animation: floaty 6s ease-in-out infinite 1s; }

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---- Section headers ---- */
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 14px;
  display: block;
}
.sec-head h2 { margin-bottom: 16px; }
.sec-head p { font-size: 1.05rem; }

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); background: var(--surface-2); }

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

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: var(--grad);
  box-shadow: 0 8px 24px rgba(99,102,241,0.35);
  font-size: 1.3rem;
}
.icon-badge.violet { background: var(--grad-2); }

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

/* ---- Product/feature split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split.flip > *:first-child { order: 2; }
.split .kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 14px;
  display: block;
}
.split h2 { margin-bottom: 18px; }
.split p.lead { font-size: 1.05rem; margin-bottom: 26px; }

.check-list { list-style: none; display: grid; gap: 12px; margin-bottom: 30px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 0.98rem; }
.check-list li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.price-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 26px;
}

/* ---- Chat demo ---- */
.chat-demo {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}
.chat-msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.chat-msg.user { justify-self: start; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.chat-msg.bot {
  justify-self: end;
  background: var(--grad);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg.user { border-bottom-left-radius: 4px; }
.chat-msg.bot { border-bottom-right-radius: 4px; }

/* ---- Metrics ---- */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.metric {
  text-align: center;
  padding: 30px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.metric strong {
  font-family: var(--font-head);
  font-size: 2.2rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.metric span { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 6px; }

/* ---- Portfolio cards ---- */
.port-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s;
}
.port-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.port-preview {
  height: 300px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.port-type {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--grad);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 13px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.tech-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: 999px;
}
.port-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.port-card:hover .port-preview img { transform: scale(1.06); }
.port-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7,11,22,0.65));
  pointer-events: none;
}
.port-preview .ph-letter {
  font-family: var(--font-head);
  font-size: 3.4rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 0 4px 24px rgba(0,0,0,0.3);
  position: relative;
}
.g-tapaloca { background: linear-gradient(135deg, #fb7185, #f43f5e); }
.g-filiz { background: linear-gradient(135deg, #f472b6, #a855f7); }
.g-hartmann { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.g-cafe { background: linear-gradient(135deg, #a16207, #f59e0b); }
.g-fitness { background: linear-gradient(135deg, #22c55e, #15803d); }
.g-dental { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.g-legal { background: linear-gradient(135deg, #fbbf24, #d97706); }

.port-body { padding: 22px 24px 26px; }
.port-body h3 { margin-bottom: 6px; }
.port-body .cat { color: var(--cyan); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.port-body p { font-size: 0.9rem; margin: 10px 0 16px; }
.port-link { font-weight: 600; font-size: 0.9rem; display: inline-flex; gap: 6px; align-items: center; }
.port-link:hover { text-decoration: underline; }

/* ---- Filters ---- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; justify-content: center; }
.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.active { background: var(--grad); color: #fff; border-color: transparent; }

/* ---- Packages ---- */
.package {
  position: relative;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}
.package.popular { border-color: rgba(34,211,238,0.5); }
.package-flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.package .package-name { font-size: 1.15rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; font-family: var(--font-head); }
.package .package-price { font-family: var(--font-head); font-size: 2.8rem; font-weight: 700; }
.package .package-price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.package ul { list-style: none; margin: 26px 0 32px; display: grid; gap: 12px; flex: 1; }
.package ul li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--text); }
.package ul li::before { content: "✓"; color: var(--cyan); font-weight: 700; }
.package .delivery { font-size: 0.8rem; color: var(--muted); margin-top: -18px; margin-bottom: 26px; }

.compare-note { text-align: center; margin-top: 34px; font-size: 0.92rem; }

/* ---- Compare table ---- */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.95rem;
}
.compare-table th { color: var(--muted); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.compare-table td { color: var(--text); }
.compare-table td:not(:first-child), .compare-table th:not(:first-child) { text-align: center; }
.compare-table .yes { color: var(--cyan); font-weight: 700; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step {
  position: relative;
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; }

/* ---- Team ---- */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card { text-align: center; padding: 36px 24px; }
.avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: #fff;
}
.team-card h3 { margin-bottom: 4px; }
.team-card .role { color: var(--cyan); font-size: 0.85rem; font-weight: 600; margin-bottom: 12px; }
.team-card p { font-size: 0.9rem; }

/* ---- Values ---- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---- CTA band ---- */
.cta-band {
  padding: 90px 0;
  background:
    radial-gradient(800px 400px at 50% -20%, rgba(99,102,241,0.3), transparent 65%),
    var(--bg-2);
  border-top: 1px solid var(--border);
  text-align: center;
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band p { margin-bottom: 34px; max-width: 560px; margin-inline: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .ci-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.contact-item strong { display: block; margin-bottom: 2px; }
.contact-item a { color: var(--muted); }
.contact-item a:hover { color: var(--cyan); }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 15px;
  transition: border-color 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.field textarea { resize: vertical; min-height: 130px; }
.field select option { background: var(--bg-2); }
.form-note { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }

/* ---- Cards for services page style ---- */
.service-card { display: flex; flex-direction: column; }
.service-card .btn { margin-top: auto; align-self: flex-start; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--cyan); margin-bottom: 12px; }

/* ---- Timeline ---- */
.timeline { display: grid; gap: 0; max-width: 760px; }
.tl-item { position: relative; padding: 0 0 44px 40px; border-left: 1px solid var(--border-strong); margin-left: 12px; }
.tl-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 4px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--grad);
}
.tl-item time { font-size: 0.85rem; color: var(--cyan); font-weight: 700; }
.tl-item h3 { margin: 6px 0 8px; font-size: 1.1rem; }
.tl-item p { font-size: 0.95rem; }

/* ---- FAQ ---- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 14px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  padding: 20px 22px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q::after { content: "+"; color: var(--cyan); font-size: 1.4rem; transition: transform 0.3s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { padding: 0 22px 20px; font-size: 0.95rem; }

/* ---- Scroll progress ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--grad);
  z-index: 9999;
  width: 0;
  transition: width 0.15s ease;
  pointer-events: none;
}

/* ---- Back to top ---- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 200;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--grad); color: #fff; }

/* ---- SVG icon badge ---- */
.icon-badge svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ci-icon { color: var(--cyan); }
.ci-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Tech tags ---- */

/* ---- Legal page ---- */
.legal { max-width: 820px; }
.legal h2 { margin: 40px 0 14px; font-size: 1.5rem; }
.legal h2:first-child { margin-top: 0; }
.legal p { margin-bottom: 14px; font-size: 0.98rem; }
.legal a { color: var(--cyan); }

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 70px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 50px; }
.footer-grid .logo { margin-bottom: 16px; display: inline-block; }
.footer-grid p { font-size: 0.92rem; }
.footer-grid h4 { font-size: 0.95rem; margin-bottom: 16px; color: var(--text); }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a { color: var(--muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--text); }
.footer-below {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-below a { color: var(--muted); }
.footer-below a:hover { color: var(--text); }
.footer-below .legal-links { display: flex; gap: 22px; }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.2s;
}
.socials a:hover { color: #fff; border-color: var(--cyan); transform: translateY(-2px); }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 1020px) {
  .grid-3, .metrics, .steps, .team-grid, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split.flip > *:first-child { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .grid-3, .grid-2, .metrics, .steps, .team-grid, .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: rgba(7, 11, 22, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    align-items: stretch;
  }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 12px 10px; border-radius: 10px; }
  .main-nav a:hover { background: var(--surface); }
  .main-nav a.btn { justify-content: center; }

  .hero { padding: 140px 0 70px; }
  .hero-meta { gap: 24px; }
  .page-hero { padding: 100px 0 48px; }
  .section { padding: 64px 0; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .port-preview { height: 230px; }
  .phone { width: 260px; }
  .floating-card.fc-provision { right: -4px; }
  .metrics strong { font-size: 1.8rem; }
}