/* =========================================================
   FAST THUNDER ENGINEERING — Modern stylesheet
   ========================================================= */

:root {
  --bg: #070b14;
  --bg-alt: #0b1220;
  --surface: #101a2e;
  --surface-2: #152240;
  --line: rgba(148, 163, 184, 0.14);
  --text: #e6edf7;
  --muted: #94a3b8;
  --blue: #38bdf8;
  --blue-deep: #2563eb;
  --amber: #fbbf24;
  --green: #34d399;
  --grad: linear-gradient(120deg, #38bdf8 0%, #2563eb 55%, #7c3aed 100%);
  --grad-amber: linear-gradient(120deg, #fbbf24, #f97316);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --font-head: 'Kanit', 'Inter', sans-serif;
  --font-body: 'Inter', 'Kanit', sans-serif;
  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

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

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Top bar ---------- */
.topbar {
  background: #05070d;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  position: relative;
  z-index: 60;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 20px; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; transition: color 0.2s; }
.topbar-item:hover { color: var(--blue); }
.topbar-item svg { width: 14px; height: 14px; color: var(--blue); flex: none; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.navbar.scrolled {
  background: rgba(7, 11, 20, 0.92);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1.5px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-text small { font-size: 9.5px; letter-spacing: 3px; color: var(--muted); }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #cbd5e1;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width 0.3s;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-accent {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.35);
}
.btn-accent:hover { box-shadow: 0 16px 40px rgba(37, 99, 235, 0.5); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: rgba(56, 189, 248, 0.45);
}
.btn-outline:hover { background: rgba(56, 189, 248, 0.1); border-color: var(--blue); box-shadow: 0 10px 30px rgba(56, 189, 248, 0.15); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100vh - 38px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease, transform 7s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(5, 8, 15, 0.96) 8%, rgba(5, 8, 15, 0.72) 45%, rgba(5, 8, 15, 0.35) 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 35%);
}
.hero-content { position: relative; z-index: 2; padding: 90px 0 120px; max-width: 780px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--blue);
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero-badge svg { width: 16px; height: 16px; color: var(--amber); }

.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.05;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-family: var(--font-head);
  font-size: clamp(19px, 2.6vw, 26px);
  font-weight: 400;
  color: var(--amber);
  margin-top: 12px;
}
.hero-desc {
  color: #b8c4d6;
  font-size: 16.5px;
  max-width: 620px;
  margin-top: 18px;
}
.hero-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 44px;
  border: 2px solid rgba(230, 237, 247, 0.4);
  border-radius: 16px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.hero-scroll span {
  width: 4px; height: 9px;
  background: var(--blue);
  border-radius: 3px;
  animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- Stats ---------- */
.stats {
  position: relative;
  z-index: 3;
  margin-top: -60px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat {
  background: linear-gradient(160deg, #0e1730, #0a1122);
  padding: 30px 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 42px;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.stat-suffix {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 26px;
  color: var(--amber);
  margin-left: 3px;
}
.stat-label { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-head.left { text-align: left; margin: 0 0 32px; }
.section-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--blue);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-head);
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700;
  line-height: 1.2;
}
.section-sub { color: var(--muted); margin-top: 14px; font-size: 16px; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.service-card {
  background: linear-gradient(170deg, var(--surface), #0c1428);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 58px; height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--blue);
  margin-bottom: 22px;
  transition: background 0.3s, color 0.3s;
}
.service-card:hover .service-icon {
  background: var(--grad);
  color: #fff;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-family: var(--font-head); font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 14.5px; }
.card-link { display: inline-block; margin-top: 18px; color: var(--blue); font-size: 14px; font-weight: 500; transition: letter-spacing 0.25s; }
.card-link:hover { letter-spacing: 0.5px; }

/* ---------- Exclusive partner ---------- */
.partner {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 320px at 12% 50%, rgba(56, 189, 248, 0.1), transparent 65%),
    radial-gradient(700px 320px at 88% 50%, rgba(18, 185, 129, 0.1), transparent 65%),
    #0a1122;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.partner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), rgba(18, 185, 129, 0.5), transparent);
}
.partner-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 52px;
  align-items: center;
}
.partner-mark {
  position: relative;
  width: 168px; height: 168px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 26px;
  background: linear-gradient(140deg, rgba(56, 189, 248, 0.14), rgba(18, 185, 129, 0.14));
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.05), var(--shadow);
}
.partner-mark img { width: 92px; height: 92px; filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.45)); }
.partner-stamp {
  position: absolute;
  top: -14px; right: -18px;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  line-height: 1.35;
  text-align: center;
  color: #0a1122;
  background: linear-gradient(120deg, var(--amber), #f97316);
  padding: 9px 12px;
  border-radius: 10px;
  transform: rotate(6deg);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}
.partner-name {
  font-family: var(--font-head);
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 4px;
}
.partner-tagline {
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 4px;
}
.partner-desc { color: var(--muted); margin-top: 14px; max-width: 640px; font-size: 15px; }
.partner-bullets { display: flex; flex-wrap: wrap; gap: 14px 26px; margin: 20px 0 26px; }
.partner-bullets span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #cbd5e1;
}
.partner-bullets svg { width: 16px; height: 16px; color: var(--green); flex: none; }
.partner .btn svg { width: 17px; height: 17px; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
}
.about-media { position: relative; }
.about-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about-img-wrap img {
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  width: 100%;
  transition: transform 0.8s ease;
}
.about-media:hover .about-img-wrap img { transform: scale(1.05); }
.about-img-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(5, 8, 15, 0.55), transparent 55%);
}
.about-float {
  position: absolute;
  bottom: 22px; left: 22px;
  z-index: 2;
  background: rgba(10, 17, 34, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.about-float svg { width: 34px; height: 34px; color: var(--amber); flex: none; }
.about-float strong { font-family: var(--font-head); font-size: 17px; display: block; line-height: 1.2; }
.about-float span { color: var(--muted); font-size: 12.5px; }

.about-content > p { color: #b8c4d6; font-size: 15.5px; margin-bottom: 26px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 26px; margin-bottom: 28px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--amber);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  min-width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.feature h4 { font-family: var(--font-head); font-size: 17px; margin-bottom: 4px; }
.feature p { color: var(--muted); font-size: 13.5px; }

.about-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.badge {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  transition: border-color 0.3s;
}
.badge:hover { border-color: rgba(52, 211, 153, 0.45); }
.badge svg { width: 26px; height: 26px; color: var(--green); flex: none; margin-top: 3px; }
.badge strong { font-family: var(--font-head); font-size: 14.5px; display: block; }
.badge span { color: var(--muted); font-size: 12.5px; }

/* ---------- Capabilities ---------- */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 70px;
}
.cap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: transform 0.3s, border-color 0.3s;
}
.cap:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.4); }
.cap-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--grad);
  flex: none;
  margin-top: 7px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}
.cap p { font-size: 14px; color: #cbd5e1; }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.mv-card {
  border-radius: var(--radius);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.mv-card.mission {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(37, 99, 235, 0.05));
  border: 1px solid rgba(56, 189, 248, 0.35);
}
.mv-card.vision {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.12), rgba(249, 115, 22, 0.05));
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.mv-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.mv-card.mission .mv-icon { background: rgba(56, 189, 248, 0.15); color: var(--blue); }
.mv-card.vision .mv-icon { background: rgba(251, 191, 36, 0.15); color: var(--amber); }
.mv-icon svg { width: 26px; height: 26px; }
.mv-card h3 { font-family: var(--font-head); font-size: 21px; margin-bottom: 10px; }
.mv-card p { color: var(--muted); font-size: 15px; }

/* ---------- Projects ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  border-color: rgba(56, 189, 248, 0.4);
}
.project-img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.project-card:hover .project-img img { transform: scale(1.08); }
.project-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 8, 15, 0.6), transparent 50%); }
.project-cat {
  position: absolute;
  bottom: 14px; left: 14px;
  z-index: 2;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #0a1122;
  background: var(--grad);
  padding: 5px 13px;
  border-radius: 999px;
}
.project-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.project-body h3 { font-family: var(--font-head); font-size: 17px; font-weight: 600; line-height: 1.4; margin-bottom: 12px; }
.project-body h3 small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; margin-top: 4px; }
.project-body p, .project-body li { color: var(--muted); font-size: 14px; }
.project-body ul { display: flex; flex-direction: column; gap: 7px; }
.project-body li { position: relative; padding-left: 18px; }
.project-body li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--grad);
}

/* ---------- Products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 46px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  border-color: rgba(56, 189, 248, 0.4);
}
.product-img { background: #fff; padding: 26px; display: flex; align-items: center; justify-content: center; height: 210px; }
.product-img img { max-height: 100%; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-body { padding: 22px 24px 26px; }
.product-brand {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--amber);
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.product-body h3 { font-family: var(--font-head); font-size: 16.5px; margin-bottom: 8px; }
.product-body p { color: var(--muted); font-size: 13.5px; }
.center { text-align: center; }

/* ---------- Clients marquee ---------- */
.clients-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.client-logo {
  width: 168px;
  height: 96px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  flex: none;
  transition: border-color 0.3s, transform 0.3s;
}
.client-logo:hover { border-color: rgba(56, 189, 248, 0.45); transform: translateY(-3px); }
.client-logo img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1) brightness(1.4); opacity: 0.85; transition: filter 0.3s, opacity 0.3s; }
.client-logo:hover img { filter: none; opacity: 1; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 34px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.contact-card {
  display: flex;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  transition: border-color 0.3s, transform 0.3s;
}
.contact-card:hover { border-color: rgba(56, 189, 248, 0.4); transform: translateX(4px); }
.contact-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-card h4 { font-family: var(--font-head); font-size: 15.5px; margin-bottom: 3px; }
.contact-card p { color: var(--muted); font-size: 13.8px; }

.contact-form {
  background: linear-gradient(170deg, var(--surface), #0c1428);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-family: var(--font-head); font-size: 14px; font-weight: 500; margin-bottom: 8px; color: #cbd5e1; }
.form-group input, .form-group textarea {
  width: 100%;
  background: #0a1122;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}
.form-note { margin-top: 16px; font-size: 14px; min-height: 20px; }
.form-note.ok { color: var(--green); }
.form-note.err { color: #f87171; }

.map {
  margin-top: 60px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map iframe { width: 100%; height: 380px; border: 0; display: block; filter: grayscale(0.2) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { background: #04060c; border-top: 1px solid var(--line); padding-top: 70px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr 1.1fr;
  gap: 44px;
  padding-bottom: 50px;
}
.footer-brand { margin-bottom: 16px; }
.footer-partner {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.footer-partner:hover {
  border-color: rgba(56, 189, 248, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.footer-partner img { width: 44px; height: 44px; flex: none; filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.4)); }
.footer-partner span { display: flex; flex-direction: column; line-height: 1.3; }
.footer-partner small {
  font-family: var(--font-head);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--amber);
}
.footer-partner strong {
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--text);
}
.footer-partner em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.footer-col > p { color: var(--muted); font-size: 13.8px; margin-top: 8px; }
.footer-col h4 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
.footer-col a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; transition: color 0.2s, padding-left 0.2s; }
.footer-col a:hover { color: var(--blue); padding-left: 5px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; text-align: center; }
.footer-bottom p { color: var(--muted); font-size: 13px; }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 48px; height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: var(--surface);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, background 0.3s;
  z-index: 40;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--grad); color: #fff; }
.back-top svg { width: 20px; height: 20px; }

/* ---------- Hamburger ---------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 26px; height: 2.5px;
  background: var(--text);
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid, .projects-grid, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-inner { gap: 36px; }
  .caps-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img-wrap img { aspect-ratio: 16 / 10; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar-right { display: none; }
  .partner-inner { grid-template-columns: 1fr; gap: 36px; text-align: center; justify-items: center; }
  .partner-bullets { justify-content: center; }
  .partner-stamp { right: -8px; }
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    right: 0;
    width: min(320px, 82vw);
    height: calc(100vh - var(--nav-h));
    background: rgba(7, 11, 20, 0.98);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 28px 26px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 55;
    overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-link { font-size: 17px; padding: 10px 0; width: 100%; }
  .nav-cta { width: 100%; margin-top: 14px; }
  .services-grid, .projects-grid, .products-grid { grid-template-columns: 1fr; }
  .about-features, .about-badges, .mv-grid, .form-row { grid-template-columns: 1fr; }
  .caps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .section { padding: 80px 0; }
  .hero { min-height: 92vh; }
  .stats { margin-top: 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-actions .btn { width: 100%; }
}
