/* ============================================================
   Fortinusa — modern redesign
   ============================================================ */
:root {
  --brand: #0a57d6;
  --brand-2: #4d59e1;
  --brand-dark: #063a96;
  --ink: #071a3d;
  --ink-2: #0d2450;
  --accent: #22d3ee;
  --bg: #f5f8fe;
  --surface: #ffffff;
  --text: #0b1b36;
  --muted: #5a6b87;
  --line: #e2e9f5;
  --soft: #eef4ff;
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 70px -32px rgba(7, 26, 61, 0.45);
  --shadow-sm: 0 10px 30px -18px rgba(7, 26, 61, 0.35);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; }
p { margin: 0; }
::selection { background: var(--brand); color: #fff; }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 92px 0; }
.section-sm { padding: 62px 0; }
.section-tight { padding: 70px 0 40px; }
.bg-white { background: var(--surface); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- top announcement ---------- */
.topbar {
  background: var(--ink);
  color: #d7e2f7;
  font-size: 13px;
  position: relative;
  z-index: 60;
}
.topbar-inner {
  display: flex; align-items: center; gap: 12px;
  min-height: 42px; padding: 7px 0;
}
.topbar .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex: none;
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}
.topbar p { flex: 1; }
.topbar strong { color: #fff; font-weight: 700; }
.topbar-close {
  background: transparent; border: 0; color: #9fb3d4; cursor: pointer;
  font-size: 20px; line-height: 1; padding: 4px 6px; border-radius: 8px;
}
.topbar-close:hover { color: #fff; background: rgba(255,255,255,.08); }
.topbar.is-hidden { display: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 233, 245, 0.85);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.scrolled { box-shadow: 0 12px 30px -24px rgba(7,26,61,.5); background: rgba(255,255,255,.95); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  font-size: 14.5px; font-weight: 600; color: #33455f;
  padding: 9px 13px; border-radius: 10px;
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--brand); background: var(--soft); }
.nav a.active { color: var(--brand); background: var(--soft); }
.header-cta { margin-left: 8px; }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  border: 1px solid var(--line); background: #fff; border-radius: 12px;
  align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 700; font-size: 14.5px; line-height: 1;
  border-radius: 999px; padding: 14px 22px; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  box-shadow: 0 14px 28px -14px rgba(10, 87, 214, .75);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(10, 87, 214, .8); }
.btn-ghost { color: var(--ink); border-color: #cfdbee; background: rgba(255,255,255,.7); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-white { background: #fff; color: var(--brand-dark); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -18px rgba(0,0,0,.5); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.6); }
.btn-sm { padding: 11px 17px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: #071a3d;
  isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/hero.webp") center 35% / cover no-repeat;
  opacity: .42;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 480px at 88% 8%, rgba(77, 89, 225, .5), transparent 65%),
    radial-gradient(700px 400px at 8% 92%, rgba(34, 211, 238, .22), transparent 62%),
    linear-gradient(105deg, #05142f 4%, rgba(7, 26, 61, .92) 42%, rgba(7, 26, 61, .55) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px;
  align-items: center; padding: 88px 0 74px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand);
}
.hero .eyebrow {
  color: #a9c6ff; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  padding: 8px 13px; border-radius: 999px; letter-spacing: .12em;
}
.hero .eyebrow .spark { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.15rem);
  line-height: 1.02; margin: 22px 0 20px; letter-spacing: -.035em;
}
.hero h1 .grad {
  background: linear-gradient(100deg, #7dd3fc 0%, #a5b4fc 48%, #67e8f9 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { font-size: 17.5px; line-height: 1.7; color: #c4d3eb; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: #93a9c9; font-size: 13px; }
.hero-note svg { width: 15px; height: 15px; color: var(--accent); }

.hero-visual { position: relative; }
.hero-frame {
  position: relative; border-radius: 26px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.7);
  aspect-ratio: 4 / 3.35;
  background: #0b2350;
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5, 18, 42, .55));
}
.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 11px;
  background: rgba(255,255,255,.95); color: var(--ink);
  border-radius: 14px; padding: 12px 15px;
  box-shadow: 0 22px 50px -22px rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 700;
}
.float-card small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.float-card .fc-icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--soft); color: var(--brand); flex: none;
}
.float-card .fc-icon svg { width: 18px; height: 18px; }
.fc-1 { top: 26px; left: -26px; animation: floaty 6s ease-in-out infinite; }
.fc-2 { bottom: 74px; right: -22px; animation: floaty 7s ease-in-out .8s infinite; }
.fc-3 { bottom: -22px; left: 34px; animation: floaty 6.5s ease-in-out .4s infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,.12);
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stats > div { padding: 24px 8px 26px; text-align: center; background: rgba(6, 22, 51, .35); }
.hero-stats b { display: block; font-size: clamp(1.45rem, 2.6vw, 2rem); letter-spacing: -.03em; line-height: 1.1; }
.hero-stats span { font-size: 12.5px; color: #9fb4d3; font-weight: 600; letter-spacing: .03em; }

/* ---------- marquee ---------- */
.logo-strip { background: #fff; border-bottom: 1px solid var(--line); padding: 26px 0 24px; overflow: hidden; }
.logo-strip .label {
  text-align: center; font-size: 11.5px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: #8b9bb4; margin-bottom: 18px;
}
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 54px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 40px; width: auto; max-width: 132px; object-fit: contain; filter: grayscale(1); opacity: .62; transition: filter .25s, opacity .25s; }
.marquee img:hover { filter: grayscale(0); opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section headings ---------- */
.section-head { max-width: 680px; margin-bottom: 42px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin: 14px 0 14px; }
.section-head p { color: var(--muted); font-size: 16.5px; }
.section-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 60px; align-items: center; }
.about-media { position: relative; }
.about-media > img {
  width: 100%; aspect-ratio: 4 / 3.15; object-fit: cover;
  border-radius: 24px; box-shadow: var(--shadow);
}
.about-badge {
  position: absolute; right: -18px; bottom: 26px;
  background: var(--ink); color: #fff; border-radius: 18px;
  padding: 18px 20px; box-shadow: 0 24px 50px -24px rgba(7,26,61,.7);
  display: flex; align-items: center; gap: 13px;
}
.about-badge b { font-size: 26px; line-height: 1; display: block; letter-spacing: -.03em; }
.about-badge span { font-size: 11.5px; color: #a9bcd8; font-weight: 600; line-height: 1.35; }
.about-badge .ab-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(34,211,238,.14); color: var(--accent); display: grid; place-items: center; }
.about-badge .ab-icon svg { width: 22px; height: 22px; }
.about-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); margin: 14px 0 16px; }
.about-copy p { color: var(--muted); margin-bottom: 14px; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 22px 0 26px; }
.about-points li { list-style: none; display: flex; gap: 9px; align-items: flex-start; font-size: 14px; font-weight: 600; color: #2a3b56; }
.about-points svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 3px; }
.about-points ul { margin: 0; padding: 0; display: contents; }
.about-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- service cards ---------- */
.card-grid { display: grid; gap: 20px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px 24px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column; min-height: 220px;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c9d9f2; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(145deg, #e8f1ff, #f3f7ff); color: var(--brand);
  border: 1px solid #dbe8fb; margin-bottom: 18px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 18px; margin-bottom: 9px; letter-spacing: -.02em; }
.service-card p { color: var(--muted); font-size: 14px; line-height: 1.62; flex: 1; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  font-size: 13.5px; font-weight: 800; color: var(--brand);
}
.card-link svg { width: 15px; height: 15px; transition: transform .2s; }
.service-card:hover .card-link svg, .product-card:hover .card-link svg { transform: translateX(3px); }
.service-card.featured {
  background: linear-gradient(150deg, #0b2a66 0%, #0a3b93 55%, #2436b8 100%);
  color: #fff; border-color: transparent;
}
.service-card.featured .service-icon { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #8fe9f7; }
.service-card.featured p { color: #c3d4ee; }
.service-card.featured .card-link { color: #8fe9f7; }
.service-card.featured::before { background: linear-gradient(90deg, #67e8f9, #a5b4fc); transform: scaleX(1); }

/* ---------- product cards ---------- */
.products-grid { grid-template-columns: repeat(4, 1fr); }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c9d9f2; }
.product-thumb {
  aspect-ratio: 4 / 3; background: linear-gradient(160deg, #eef5ff, #f8fbff);
  display: grid; place-items: center; padding: 18px; border-bottom: 1px solid var(--line);
}
.product-thumb img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; transition: transform .3s; }
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-body .tag { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--brand); margin-bottom: 6px; }
.product-body h3 { font-size: 15.5px; line-height: 1.32; letter-spacing: -.01em; }
.product-body p { color: var(--muted); font-size: 13px; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-body .card-link { margin-top: auto; padding-top: 14px; }

/* ---------- portfolio ---------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.portfolio-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #0b1b36; aspect-ratio: 4 / 3.05; display: block;
  border: 1px solid rgba(7,26,61,.08);
}
.portfolio-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.portfolio-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,26,61,0) 30%, rgba(7,26,61,.88) 100%);
  transition: background .3s;
}
.portfolio-card:hover img { transform: scale(1.06); }
.portfolio-card:hover::after { background: linear-gradient(180deg, rgba(7,26,61,.05) 10%, rgba(7,26,61,.94) 100%); }
.portfolio-meta { position: absolute; inset: auto 0 0; z-index: 2; padding: 22px; color: #fff; }
.portfolio-meta .cat {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: #bfe9ff; background: rgba(10, 87, 214, .55);
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 4px 9px; margin-bottom: 8px;
  backdrop-filter: blur(4px);
}
.portfolio-meta h3 { font-size: 15.5px; line-height: 1.35; letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.portfolio-meta .client { font-size: 12px; color: #b8c8e2; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.portfolio-card .arrow {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink);
  display: grid; place-items: center; opacity: 0; transform: translateY(-6px);
  transition: opacity .25s, transform .25s;
}
.portfolio-card:hover .arrow { opacity: 1; transform: none; }
.portfolio-card .arrow svg { width: 17px; height: 17px; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter-btn {
  border: 1px solid var(--line); background: #fff; color: #40536f;
  padding: 9px 15px; border-radius: 999px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.filter-btn:hover { border-color: #bcd2f0; color: var(--brand); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-count { font-size: 11px; opacity: .65; margin-left: 4px; }
.filter-empty { display: none; padding: 40px 0; text-align: center; color: var(--muted); }
.filter-empty.show { display: block; }
.is-hidden { display: none !important; }

/* ---------- stats band ---------- */
.stats-band {
  background: var(--ink); color: #fff; position: relative; overflow: hidden;
  border-radius: 28px; padding: 38px 42px;
}
.stats-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 260px at 85% 0%, rgba(77,89,225,.55), transparent 65%),
              radial-gradient(500px 240px at 4% 100%, rgba(34,211,238,.16), transparent 65%);
}
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stats-grid > div { text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stats-grid > div:last-child { border-right: 0; }
.stats-grid b { display: block; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.05; letter-spacing: -.04em; }
.stats-grid span { color: #a9bbd8; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; }

/* ---------- features ---------- */
.features-grid { grid-template-columns: repeat(4, 1fr); }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px; transition: transform .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feature .fi {
  width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 15px;
}
.feature .fi svg { width: 22px; height: 22px; }
.feature h3 { font-size: 15.5px; margin-bottom: 7px; }
.feature p { font-size: 13.5px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px;
  background: linear-gradient(120deg, #071a3d 0%, #0b3282 58%, #3b45cc 100%);
  color: #fff; padding: 54px 56px;
  display: grid; grid-template-columns: 1.4fr .6fr; gap: 30px; align-items: center;
}
.cta-band::before {
  content: ""; position: absolute; right: -80px; top: -100px; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.35), transparent 65%);
}
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin-bottom: 12px; }
.cta-band p { color: #c6d5ee; max-width: 540px; }
.cta-actions { position: relative; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }

/* ---------- page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #fff; padding: 68px 0 62px;
  background: linear-gradient(110deg, #061632 0%, #0a2c6b 55%, #2d39a8 100%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 320px at 88% 10%, rgba(34,211,238,.2), transparent 60%);
}
.page-hero .container { position: relative; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #a9bddc; margin-bottom: 18px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: #7f96b8; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 860px; }
.page-hero p { color: #c3d3ec; margin-top: 14px; max-width: 640px; font-size: 16px; }
.page-hero .eyebrow { color: #8fe9f7; margin-bottom: 10px; }

/* ---------- prose / detail ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.prose { color: #33465f; font-size: 15.5px; }
.prose > * + * { margin-top: 16px; }
.prose p { line-height: 1.8; }
.prose h3 { font-size: 20px; color: var(--ink); margin-top: 30px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 7px 0; line-height: 1.7; }
.prose a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.detail-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #eef4ff; margin-bottom: 30px; }
.detail-cover img { width: 100%; max-height: 520px; object-fit: cover; }
.detail-cover.contain { background: linear-gradient(160deg,#eef5ff,#f9fbff); padding: 40px; }
.detail-cover.contain img { object-fit: contain; max-height: 380px; margin: 0 auto; }

.side-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: 96px;
}
.side-card h3 { font-size: 16px; margin-bottom: 16px; }
.meta-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.meta-list li { font-size: 13.5px; display: grid; gap: 2px; }
.meta-list span { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #8b9bb4; }
.meta-list b { font-weight: 700; color: #253650; line-height: 1.45; }
.side-card .btn { margin-top: 20px; }
.side-note { margin-top: 16px; font-size: 12px; color: var(--muted); display: flex; gap: 7px; }
.side-note svg { width: 15px; height: 15px; color: var(--brand); flex: none; margin-top: 2px; }

.link-dead { color: #7d8ca3; font-weight: 600; }
.link-dead-note {
  display: inline-block; margin-left: 6px; padding: 1px 7px;
  font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: #8b9bb4; border: 1px solid var(--line); border-radius: 999px;
  vertical-align: 1px;
}

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 22px; }
.gallery a { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; gap: 15px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; transition: border-color .2s, box-shadow .2s;
}
.contact-card:hover { border-color: #c9d9f2; box-shadow: var(--shadow-sm); }
.contact-card .ci {
  width: 42px; height: 42px; border-radius: 12px; background: var(--soft); color: var(--brand);
  display: grid; place-items: center; flex: none;
}
.contact-card .ci svg { width: 20px; height: 20px; }
.contact-card h3 { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #8494ad; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 14.5px; font-weight: 600; color: #263750; line-height: 1.55; }
.contact-card a:hover { color: var(--brand); }

.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 30px; box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: 22px; margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: #40536f; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid #d8e2f2; background: #fbfdff; border-radius: 12px;
  padding: 12px 14px; font-size: 14px; color: var(--text); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,87,214,.12); background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 11.5px; color: var(--muted); margin-top: 10px; text-align: center; }

.map-card {
  margin-top: 18px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(145deg,#e8f1ff,#f7fbff); padding: 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.map-card b { display: block; font-size: 15px; }
.map-card span { font-size: 13px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: #061530; color: #b8c7df; padding: 64px 0 0; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr 1fr 1.1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand img { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; max-width: 300px; color: #92a5c3; }
.footer-social { display: flex; gap: 9px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14);
  display: grid; place-items: center; color: #c9d6ea; transition: background .2s, color .2s, border-color .2s;
}
.footer-social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.footer-social svg { width: 17px; height: 17px; }
.site-footer h4 { color: #fff; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-links a { font-size: 13.5px; color: #a3b5d1; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 9px; font-size: 13.5px; line-height: 1.55; color: #a3b5d1; }
.footer-contact svg { width: 16px; height: 16px; color: #7f95b6; flex: none; margin-top: 3px; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: #7f93b3;
}
.footer-bottom a:hover { color: #fff; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(4, 12, 28, .92); padding: 32px;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 88vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox button {
  position: absolute; top: 20px; right: 22px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff;
  font-size: 22px; cursor: pointer;
}

/* ---------- 404 ---------- */
.error-wrap { min-height: 58vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-wrap .code { font-size: clamp(4rem, 12vw, 8rem); font-weight: 800; letter-spacing: -.06em; line-height: 1; color: var(--brand); }
.error-wrap p { color: var(--muted); margin: 14px 0 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .hero-grid { gap: 34px; }
  .fc-1 { left: -10px; } .fc-2 { right: -8px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr 300px; gap: 30px; }
}
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .nav {
    display: flex; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px; box-shadow: 0 24px 40px -24px rgba(7,26,61,.35);
  }
  .site-header.nav-open .nav a { padding: 12px 14px; font-size: 15px; }
  .site-header.nav-open .header-cta { display: flex; margin: 8px 0 0; }
  .site-header.nav-open .header-cta .btn { width: 100%; }
  .hero-grid { grid-template-columns: 1fr; padding: 62px 0 52px; }
  .hero-visual { max-width: 540px; }
  .hero h1 { max-width: 700px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-media { max-width: 560px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; padding: 40px 32px; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .detail-layout { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 10px; }
  .stats-grid > div:nth-child(2) { border-right: 0; }
  .section { padding: 70px 0; }
  .site-footer { margin-top: 70px; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats > div { padding: 18px 6px 20px; }
  .services-grid, .products-grid, .portfolio-grid, .features-grid { grid-template-columns: 1fr; }
  .section-head.row { display: block; }
  .section-head.row .btn { margin-top: 18px; }
  .about-points { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 30px; }
  .section { padding: 56px 0; }
  .topbar p { font-size: 12px; line-height: 1.45; }
  .topbar-inner { min-height: 46px; }
  .brand img { height: 34px; }
  .about-badge { right: 8px; bottom: 12px; padding: 13px 15px; }
  .about-badge b { font-size: 21px; }
  .cta-actions { flex-direction: column; }
  .cta-band { padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .gallery { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
  .detail-cover.contain { padding: 22px; }
  .marquee-track { gap: 36px; }
  .marquee img { height: 32px; }
  .filter-btn { padding: 8px 12px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
