:root {
  --ink: #0d1520;
  --ink-2: #1c2733;
  --steel: #5a6b7b;
  --line: #e6ebf1;
  --bg: #ffffff;
  --bg-2: #f5f8fb;
  --brand: #0a6cff;
  --brand-dark: #0550c4;
  --accent: #ff7a1a;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(13, 21, 32, 0.28);
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff;
  font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 10px;
  border: 0; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 10px 22px -10px rgba(10, 108, 255, .7);
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn.wa { background: #25d366; box-shadow: 0 10px 22px -10px rgba(37, 211, 102, .8); }
.btn.wa:hover { background: #1eb257; }
.btn.light { background: #fff; color: var(--ink); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .55); }
.btn.light:hover { background: #e9f1fa; }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--bg-2); }
.btn.lg { padding: 16px 30px; font-size: 16px; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 42px; width: auto; display: block; }
.logo .mark {
  width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #38b6ff);
  display: grid; place-items: center; color: #fff; font-size: 18px;
  box-shadow: 0 8px 18px -8px rgba(10,108,255,.8);
}
.logo small { display: block; font-size: 11px; font-weight: 600; color: var(--steel); letter-spacing: 2px; }
nav ul { display: flex; gap: 30px; list-style: none; font-weight: 600; font-size: 15px; }
nav ul a { color: var(--ink-2); transition: color .15s; }
nav ul a:hover { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { font-weight: 700; font-size: 15px; }
.menu-btn { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(9,17,30,.94) 0%, rgba(9,17,30,.72) 45%, rgba(9,17,30,.35) 100%),
    linear-gradient(135deg, #16263a, #0d1520);
  min-height: 620px; display: flex; align-items: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 34px 34px; opacity: .5;
}
.hero-img {
  position: absolute; inset: 0;
  background: url("../img/work/hero.jpg") center/cover;
  opacity: .55;
}
.hero .wrap { position: relative; z-index: 2; padding-top: 70px; padding-bottom: 70px; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; color: #7fd0ff;
  background: rgba(10,108,255,.16); border: 1px solid rgba(127,208,255,.3);
  padding: 7px 14px; border-radius: 100px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.05; letter-spacing: -1.5px; max-width: 780px; }
.hero h1 span { color: #ffb066; }
.hero p { font-size: clamp(1rem, 2vw, 1.22rem); color: #c8d3df; max-width: 620px; margin-top: 20px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 38px; margin-top: 54px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.14); }
.hero-stats b { display: block; font-size: 1.9rem; font-weight: 900; letter-spacing: -1px; }
.hero-stats span { font-size: 13px; color: #9fb0c0; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .eyebrow { color: var(--brand); background: #eaf2ff; border-color: #d3e4ff; }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -1px; line-height: 1.12; }
.section-head p { color: var(--steel); margin-top: 14px; font-size: 1.06rem; }

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

#products .grid.cols-3 {
  padding: 24px;
  background: #f5f9ff;
  border: 3px solid var(--brand);
  border-radius: 20px;
  box-shadow: 0 0 0 6px rgba(10,108,255,.15), 0 30px 70px -20px rgba(10,108,255,.45);
}
.card {
  background: #fff; border: 2px solid #e6eeff; border-radius: var(--radius);
  padding: 30px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
  box-shadow: 0 8px 24px -10px rgba(10,108,255,.25);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -15px rgba(10,108,255,.35); border-color: var(--brand); }
.card .ic {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: #eaf2ff; color: var(--brand); font-size: 24px; margin-bottom: 18px;
}
.card h3 { font-size: 1.18rem; margin-bottom: 8px; letter-spacing: -.3px; }
.card p { color: var(--steel); font-size: .96rem; }
.bg-2 { background: var(--bg-2); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery figure {
  position: relative; border-radius: 12px; overflow: hidden; margin: 0;
  aspect-ratio: 4/3; background: #dfe6ee;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 14px 12px; color: #fff; font-size: 13px; font-weight: 700;
  background: linear-gradient(transparent, rgba(6,12,20,.85));
  opacity: 0; transform: translateY(8px); transition: .25s;
}
.gallery figure:hover figcaption { opacity: 1; transform: translateY(0); }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; aspect-ratio: auto; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -1px; line-height: 1.14; margin-bottom: 16px; }
.split p { color: var(--steel); margin-bottom: 14px; }
.checks { list-style: none; margin: 22px 0 30px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.checks li::before {
  content: "✓"; flex: 0 0 22px; height: 22px; border-radius: 50%;
  background: #e6f9ee; color: #17a34a; font-size: 13px; font-weight: 800;
  display: grid; place-items: center; margin-top: 2px;
}

/* ---------- CTA band ---------- */
.cta {
  background: linear-gradient(120deg, #0d1520 0%, #16324f 100%);
  color: #fff; border-radius: 0; text-align: center;
}
.cta h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -1px; }
.cta p { color: #b6c4d4; margin: 14px auto 30px; max-width: 520px; }
.cta .hero-btns { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.info-item .ic { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 11px; background: #eaf2ff; color: var(--brand); display: grid; place-items: center; font-size: 20px; }
.info-item b { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--steel); }
.info-item span { font-size: 1.05rem; font-weight: 600; }
form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; }
input, select, textarea {
  width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 15px; margin-bottom: 18px; background: #fbfdff; transition: border-color .15s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--brand); background: #fff; }
textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
footer { background: var(--ink); color: #93a3b4; padding: 54px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
footer .logo { color: #fff; margin-bottom: 14px; }
footer p { font-size: 14.5px; }
footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1.4px; margin-bottom: 16px; }
footer ul { list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
footer ul a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; }
.socials { display: flex; gap: 12px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: background .15s; }
.socials a:hover { background: var(--brand); }

/* ---------- Demo ribbon ---------- */
.demo-ribbon {
  background: var(--accent); color: #fff; text-align: center;
  font-size: 13.5px; font-weight: 700; padding: 9px 16px; letter-spacing: .3px;
}
.demo-ribbon a { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  nav ul { display: none; }
  .nav-phone { display: none; }
  .menu-btn { display: block; }
  .grid.cols-3 { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .split img { order: -1; }
}
@media (max-width: 620px) {
  section { padding: 58px 0; }
  .grid.cols-3, .grid.cols-2, .foot-grid { grid-template-columns: 1fr; }
  .gallery .wide { grid-column: span 1; }
  .gallery .tall { grid-row: span 1; aspect-ratio: 4/3; }
  .hero { min-height: 540px; }
  .hero-stats { gap: 26px; }
  .foot-bottom { flex-direction: column; }
}

/* ---------- Mobile sticky call bar ---------- */
.mobile-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #0d1520; color: #fff; border-top: 1px solid rgba(255,255,255,.1);
  display: none; align-items: center; justify-content: space-between;
  padding: 10px 14px; font-weight: 700; font-size: 14px;
}
.mobile-sticky a { color: #fff; text-decoration: none; }
.mobile-sticky .btn-sm {
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px;
  font-weight: 700; font-size: 13.5px;
}
@media (max-width: 900px) { .mobile-sticky { display: flex; } }
body { padding-bottom: 0; }
@media (max-width: 900px) { body { padding-bottom: 64px; } }
