/* ==========================================================================
   Imbug Technologies Design System
   Inspired by StratOps Advisory Group's modern consulting aesthetic:
   dark gradient hero, stat counters, card grids, generous whitespace.
   ========================================================================== */

:root {
  --bg-dark: #090c14;
  --bg-dark-2: #10152400;
  --panel-dark: #10152a;
  --panel-dark-2: #141a33;
  --border-dark: rgba(255, 255, 255, 0.08);
  --text-light: #f4f6fb;
  --text-dim: #9aa4bf;
  --text-dim-2: #6b7590;

  --bg-light: #ffffff;
  --bg-light-2: #f5f7fb;
  --border-light: #e6e9f2;
  --text-dark: #10152a;
  --text-dark-dim: #5a6280;

  --accent: #2f8ae0;
  --accent-2: #38bdf8;
  --accent-3: #7dd3fc;
  --gradient: linear-gradient(120deg, #1f6fd9 0%, #2fa8e8 55%, #6fe0ff 100%);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-lg: 0 30px 60px -20px rgba(10, 14, 30, 0.35);
  --shadow-md: 0 15px 35px -15px rgba(10, 14, 30, 0.25);

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }
.section-head p { margin-top: 16px; color: var(--text-dark-dim); font-size: 17px; }
.section-head.on-dark p { color: var(--text-dim); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

section { padding: 100px 0; }
.section-alt { background: var(--bg-light-2); }
.section-dark {
  background: var(--bg-dark);
  color: var(--text-light);
}
.section-dark .section-head p { color: var(--text-dim); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #ffffff;
  box-shadow: 0 15px 30px -10px rgba(91, 107, 245, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(91, 107, 245, 0.65); }
.btn-ghost-dark {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(255,255,255,0.25);
}
.btn-ghost-dark:hover { border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.06); }
.btn-ghost-light {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--border-light);
}
.btn-ghost-light:hover { border-color: var(--text-dark); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text-light);
}
.brand img { height: 42px; width: auto; }

/* ===== WhatsApp + Chat widget ===== */
.fab-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  z-index: 300;
}
.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fab:hover { transform: translateY(-3px); }
.fab svg { width: 27px; height: 27px; }
.fab-whatsapp { background: #25d366; }
.fab-chat { background: var(--gradient); }

.chat-panel {
  position: fixed;
  right: 22px;
  bottom: 92px;
  width: 320px;
  max-width: calc(100vw - 44px);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  z-index: 300;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.chat-panel.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.chat-panel-header {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14.5px;
}
.chat-panel-header button {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  align-self: flex-start;
}
.chat-panel-title { display: flex; align-items: center; gap: 10px; }
.chat-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gradient); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-avatar svg { width: 16px; height: 16px; }
.chat-title-text { display: flex; flex-direction: column; line-height: 1.3; }
.chat-title-text strong { font-size: 14.5px; letter-spacing: 0.02em; }
.chat-title-text small { font-size: 11px; font-weight: 500; color: var(--text-dim); opacity: 0.85; white-space: nowrap; }
.chat-panel-header button { flex-shrink: 0; }
.chat-panel-body { padding: 14px 16px; }
.chat-messages {
  max-height: 340px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 2px;
}
.chat-msg {
  font-size: 13.5px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 88%;
}
.chat-msg.bot {
  background: var(--bg-light-2);
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg.user {
  background: var(--gradient);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-typing {
  display: flex;
  gap: 4px;
  padding: 12px 14px;
  background: var(--bg-light-2);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: fit-content;
}
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-dim-2);
  animation: chatTypingBounce 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.chat-cta-wrap { align-self: flex-start; }
.chat-wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  background: #25d366;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
}
.chat-wa-cta svg { width: 14px; height: 14px; }
.chat-quick-replies { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-quick-reply {
  border: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
}
.chat-quick-reply:hover { border-color: var(--accent); color: var(--accent); }
.chat-panel-footer {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}
.chat-panel-footer textarea {
  flex: 1;
  resize: none;
  height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-light-2);
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text-dark);
}
.chat-panel-footer button {
  align-self: stretch;
}

@media (max-width: 480px) {
  .fab-stack { right: 14px; bottom: 14px; }
  .chat-panel { right: 14px; left: 14px; width: auto; }
}
.brand small { display: block; font-weight: 500; font-size: 10px; letter-spacing: 0.14em; color: var(--text-dim); text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 600;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-light); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { color: var(--text-dim); font-size: 14px; font-weight: 600; display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text-light); border-radius: 2px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-light);
  overflow: hidden;
  padding: 120px 0 100px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 700px;
  background: radial-gradient(60% 60% at 30% 20%, rgba(47, 138, 224, 0.30), transparent 70%),
              radial-gradient(50% 50% at 80% 10%, rgba(56, 189, 248, 0.28), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -60px;
  width: 620px;
  height: 620px;
  background: url("imbug-icon.png") no-repeat center / contain;
  transform: translateY(-50%);
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 26px;
}
.hero-tag {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}
.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.05;
  max-width: 900px;
  margin: 0 auto;
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  max-width: 620px;
  margin: 26px auto 0;
  color: var(--text-dim);
  font-size: 18px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 38px;
  flex-wrap: wrap;
}

.value-strip {
  position: relative;
  margin-top: 90px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  overflow: hidden;
}
.value-cell {
  background: rgba(255,255,255,0.02);
  padding: 28px 20px;
  text-align: left;
}
.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #2f8ae0;
  background: var(--gradient);
  color: #fff;
  margin-bottom: 14px;
}
.value-icon svg { width: 19px; height: 19px; }
.value-headline { font-size: 15px; font-weight: 800; color: var(--text-light); }
.value-sub { margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }

/* ===== Page hero (inner pages) ===== */
.page-hero {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto -10%;
  height: 500px;
  background: radial-gradient(50% 50% at 25% 30%, rgba(47, 138, 224, 0.28), transparent 70%),
              radial-gradient(45% 45% at 85% 10%, rgba(56, 189, 248, 0.25), transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.breadcrumb { color: var(--text-dim); font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.breadcrumb span { color: var(--text-light); }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 50px); max-width: 720px; }
.page-hero p.lead { max-width: 560px; margin-top: 18px; color: var(--text-dim); font-size: 17px; }

/* ===== Cards / Grids ===== */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card .icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 22px;
}
.card .icon-wrap svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 12px; }
.card p { color: var(--text-dark-dim); font-size: 15px; }
.card ul { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.card ul li {
  font-size: 14px;
  color: var(--text-dark-dim);
  padding-left: 20px;
  position: relative;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient);
}

.card-dark {
  background: var(--panel-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 32px 26px;
}
.card-dark h3 { color: var(--text-light); font-size: 18px; margin-bottom: 10px; }
.card-dark p { color: var(--text-dim); font-size: 14.5px; }
.card-dark .icon-wrap {
  width: 46px; height: 46px; border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.card-dark .icon-wrap svg { width: 22px; height: 22px; }

/* ===== About / values ===== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.value-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--bg-light-2);
  border: 1px solid var(--border-light);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
}
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.mini-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.mini-stat { padding: 20px; border-radius: var(--radius-sm); background: var(--bg-light-2); border: 1px solid var(--border-light); }
.mini-stat .n { font-size: 26px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini-stat .l { font-size: 12.5px; color: var(--text-dark-dim); font-weight: 600; margin-top: 4px; }

/* ===== Clients strip ===== */
.clients-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.client-badge {
  padding: 16px 26px;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--border-light);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark-dim);
  letter-spacing: 0.01em;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.client-badge:hover { color: var(--text-dark); border-color: var(--text-dark); }

/* ===== CTA banner ===== */
.cta-banner {
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: 28px;
  padding: 64px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 50% 0%, rgba(47, 138, 224, 0.28), transparent 70%);
}
.cta-banner h2 { position: relative; font-size: clamp(26px, 3.4vw, 36px); }
.cta-banner p { position: relative; margin-top: 14px; color: var(--text-dim); font-size: 16.5px; }
.cta-banner .hero-actions { position: relative; margin-top: 30px; }

/* ===== Team ===== */
.team-card { text-align: center; }
.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  background: var(--gradient);
}
.team-card h3 { font-size: 17px; }
.team-card .role { margin-top: 4px; color: var(--accent-2); font-weight: 600; font-size: 13.5px; }
.team-card .social { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.team-card .social a {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-light-2); border: 1px solid var(--border-light);
  font-size: 13px; color: var(--text-dark-dim);
}

/* ===== Shop ===== */
.product-card { display: flex; flex-direction: column; }
.product-thumb {
  height: 160px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #eef1fb, #f7f8fc);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-2);
}
.product-thumb svg { width: 46px; height: 46px; }
.product-thumb { overflow: hidden; padding: 0; }
.product-thumb-img { width: 100%; height: 100%; object-fit: contain; background: #fff; display: block; }
.product-thumb + .thumb-row { display: flex; gap: 6px; margin: -12px 0 20px; }
.thumb-dot {
  width: 40px; height: 40px; border-radius: 8px; overflow: hidden;
  border: 2px solid transparent; padding: 0; cursor: pointer;
  background: #fff; flex-shrink: 0;
}
.thumb-dot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-dot.active { border-color: var(--accent); }
.product-card h3 { font-size: 16.5px; }
.product-cat { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim-2); font-weight: 700; margin-bottom: 8px; }
.product-price { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; }
.product-price .amount { font-size: 20px; font-weight: 800; color: var(--text-dark); }
.product-card ul { margin: 4px 0 0; display: flex; flex-direction: column; gap: 7px; }
.product-card ul li { font-size: 13px; color: var(--text-dark-dim); padding-left: 18px; position: relative; }
.product-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gradient);
}

.shop-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}
.filter-pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark-dim);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-pill:hover { border-color: var(--accent); color: var(--text-dark); }
.filter-pill.active { background: var(--gradient); color: #fff; border-color: transparent; }
.product-card.is-hidden { display: none; }
.shop-count { font-size: 13.5px; color: var(--text-dim-2); margin-bottom: 22px; }

/* ===== Contact ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
}
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; color: var(--text-dark); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: var(--bg-light-2);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text-dark);
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.info-card { background: var(--bg-dark); color: var(--text-light); border-radius: var(--radius); padding: 36px 30px; }
.info-row { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.info-row:last-child { border-bottom: none; }
.info-row .icon-wrap {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.info-row .icon-wrap svg { width: 19px; height: 19px; }
.info-row h4 { font-size: 14px; color: var(--text-light); margin-bottom: 4px; }
.info-row p, .info-row a { font-size: 14px; color: var(--text-dim); display: block; }
.map-embed { border-radius: var(--radius); overflow: hidden; margin-top: 24px; border: 1px solid var(--border-dark); }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-dark); color: var(--text-dim); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--text-dim); max-width: 280px; }
.footer-col h4 { color: var(--text-light); font-size: 14px; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a, .footer-col p { font-size: 14px; color: var(--text-dim); }
.footer-col a:hover { color: var(--text-light); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover { color: var(--text-light); border-color: rgba(255,255,255,0.3); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; flex-wrap: wrap; gap: 10px; }

/* ===== Boot screen ===== */
.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.boot-screen.boot-done { opacity: 0; visibility: hidden; pointer-events: none; }

.boot-logo-wrap {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.boot-logo-wrap::before {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.28);
  animation: bootRingPulse 1.8s ease-out infinite;
}
.boot-logo-wrap::after {
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px solid rgba(56, 189, 248, 0.2);
  animation: bootRingPulse 1.8s ease-out 0.5s infinite;
}
.boot-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.5);
  animation: bootLogoIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
             bootLogoGlow 1.8s ease-in-out 1s infinite;
}
.boot-scan {
  position: absolute;
  left: -4px;
  right: -4px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.9), transparent);
  top: 0;
  animation: bootScan 1s ease-in-out forwards;
}
.boot-status {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  animation: bootTextIn 0.5s ease forwards 0.85s;
}
.boot-bar {
  width: 160px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  opacity: 0;
  animation: bootTextIn 0.5s ease forwards 0.85s;
}
.boot-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gradient);
  animation: bootBarFill 1s ease forwards 0.95s;
}
.boot-hint {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-dim-2);
  opacity: 0;
  animation: bootTextIn 0.5s ease forwards 1.4s;
}

@keyframes bootLogoIn {
  0% { opacity: 0; transform: scale(0.5); }
  60% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes bootLogoGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.35)); }
  50% { filter: drop-shadow(0 0 22px rgba(56, 189, 248, 0.75)); }
}
@keyframes bootRingPulse {
  0% { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0; }
}
@keyframes bootScan {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}
@keyframes bootTextIn {
  to { opacity: 1; }
}
@keyframes bootBarFill {
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .boot-screen { display: none !important; }
}

/* ===== Responsive ===== */
@media (min-width: 860px) { .nav-phone { display: block; } }

@media (max-width: 900px) {
  .hero::after { width: 420px; height: 420px; opacity: 0.04; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .about-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  section { padding: 70px 0; }
  .nav-links { position: fixed; top: 66px; left: 0; right: 0; bottom: 0; background: var(--bg-dark); flex-direction: column; align-items: flex-start; padding: 30px 28px; gap: 22px; transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta .btn-primary { padding: 10px 18px; font-size: 13.5px; }
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero { padding: 100px 0 70px; }
  .hero::after { display: none; }
}
