:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --accent: #0b6bff;
  --accent-ink: #0a4fbf;
  --radius: 14px;
  --maxw: 1120px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { font-weight: 800; letter-spacing: -0.02em; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, #38bdf8, var(--accent)); box-shadow: 0 0 0 4px rgba(11,107,255,0.12); }
.brand small { font-weight: 500; color: var(--ink-soft); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
nav.links { display: flex; gap: 28px; font-size: 15px; color: var(--ink-soft); }
nav.links a:hover { color: var(--ink); }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 15px;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn-accent { background: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 72px;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.88) 42%, rgba(255,255,255,0.55) 72%, rgba(255,255,255,0.30) 100%),
    url("assets/banner.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); background: rgba(11,107,255,0.08); padding: 6px 12px; border-radius: 999px; margin-bottom: 22px; }
h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 20px; font-weight: 800; }
h1 .hl { background: linear-gradient(120deg, var(--accent), #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 2vw, 21px); color: var(--ink-soft); max-width: 660px; margin: 0 0 34px; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Stat bar */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 64px; }
.stat { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.stat span { color: var(--ink-soft); font-size: 14px; }

/* Sections */
section { padding: 84px 0; }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.sec-head .tag { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -0.02em; margin: 12px 0 14px; font-weight: 800; }
.sec-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }

/* Services grid */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,23,42,0.10); }
.card .ico { width: 42px; height: 42px; border-radius: 11px; background: rgba(11,107,255,0.10); display: grid; place-items: center; margin-bottom: 16px; font-size: 20px; }
.card h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { border-top: 3px solid var(--accent); padding-top: 18px; }
.step .n { font-size: 13px; font-weight: 700; color: var(--accent-ink); letter-spacing: 0.06em; }
.step h4 { margin: 6px 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: var(--ink-soft); }

/* Industries pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { border: 1px solid var(--line); background: var(--bg-soft); padding: 9px 16px; border-radius: 999px; font-size: 14px; color: var(--ink-soft); }

/* Contact */
.contact { background: var(--ink); color: #fff; border-radius: 22px; padding: 56px; }
.contact h2 { color: #fff; }
.contact p { color: #cbd5e1; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: #cbd5e1; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #334155;
  background: #0b1220; color: #fff; font-size: 15px; font-family: inherit;
}
.field textarea { min-height: 96px; resize: vertical; }
.btn-accent { background: var(--accent); border: none; cursor: pointer; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { padding: 10px 0; border-bottom: 1px solid #1e293b; color: #cbd5e1; }
.info-list b { color: #fff; }

/* Placeholder image frame */
.ph {
  position: relative; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, #eef2f7, #dce6f2);
  display: grid; place-items: center; color: #94a3b8; font-size: 13px;
}
.ph::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 28% 26%, rgba(11,107,255,0.14), transparent 42%);
}
.ph .lbl { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ph .lbl .ph-ic { font-size: 22px; }

/* Cases */
.sub-h { margin: 0 0 16px; font-size: 20px; font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.case-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,23,42,0.10); }
.case-card .ph { aspect-ratio: 4 / 3; }
.case-card .body { padding: 16px 18px; }
.case-card .cat { font-size: 12px; font-weight: 700; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .06em; }
.case-card h3 { margin: 4px 0 6px; font-size: 17px; }
.case-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* Upload zone */
.upload { border: 2px dashed var(--line); border-radius: var(--radius); padding: 40px; text-align: center; background: var(--bg-soft); transition: border-color .15s, background .15s; cursor: pointer; }
.upload.drag { border-color: var(--accent); background: rgba(11,107,255,0.06); }
.upload .ic { font-size: 30px; }
.upload h3 { margin: 10px 0 6px; font-size: 18px; }
.upload p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.upload-sm { padding: 22px; }
.upload-sm .ic { font-size: 22px; }
.upload-sm h3 { font-size: 16px; }
.filelist { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }
.filelist div { padding: 8px 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-top: 6px; text-align: left; }

/* Certifications */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cert { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; text-align: center; background: #fff; box-shadow: var(--shadow); }
.cert .badge { width: 54px; height: 54px; border-radius: 50%; background: rgba(11,107,255,0.10); display: grid; place-items: center; margin: 0 auto 12px; font-size: 24px; }
.cert h4 { margin: 0 0 4px; font-size: 15px; }
.cert span { font-size: 13px; color: var(--ink-soft); }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; box-shadow: var(--shadow); }
.review .stars { color: #f59e0b; letter-spacing: 2px; margin-bottom: 12px; }
.review .quote { font-size: 15px; color: var(--ink); line-height: 1.6; margin: 0; }
.review .who { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.review .av { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #38bdf8, var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; }
.review .who b { display: block; font-size: 14px; }
.review .who span { font-size: 13px; color: var(--ink-soft); }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,23,42,0.10); }
.post-card .ph { aspect-ratio: 16 / 9; }
.post-card .body { padding: 18px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card .cat { font-size: 12px; font-weight: 700; color: var(--accent-ink); text-transform: uppercase; letter-spacing: .06em; }
.post-card .date { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.post-card h3 { margin: 8px 0 8px; font-size: 18px; line-height: 1.3; }
.post-card p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.post-card .more { margin-top: auto; padding-top: 14px; color: var(--accent); font-weight: 600; font-size: 14px; }
.article { max-width: 760px; margin: 0 auto; }
.article .meta { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.article .cover { width: 100%; border-radius: var(--radius); margin: 18px 0 28px; }
.article p { font-size: 17px; color: #1e293b; margin: 0 0 18px; white-space: pre-wrap; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--ink-soft); font-size: 14px; }
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* Admin */
.admin-wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px 80px; }
.field-row { margin-bottom: 16px; }
.field-row label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field-row input, .field-row textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 15px; font-family: inherit;
}
.field-row textarea { min-height: 160px; resize: vertical; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; box-shadow: var(--shadow); margin-bottom: 24px; }
.notice { font-size: 14px; padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; }
.notice.ok { background: #ecfdf5; color: #047857; }
.notice.err { background: #fef2f2; color: #b91c1c; }
.muted { color: var(--ink-soft); font-size: 14px; }

/* Rich-text editor (admin) */
.rte { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.rte-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); background: #f8fafc; position: sticky; top: 0; }
.rte-toolbar button { font-size: 14px; min-width: 34px; height: 32px; padding: 0 10px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; color: var(--ink); transition: background .15s, border-color .15s; }
.rte-toolbar button:hover { background: #eef2ff; border-color: var(--accent); }
.rte-toolbar .sep { width: 1px; align-self: stretch; background: var(--line); margin: 2px 4px; }
.rte-editor { min-height: 260px; padding: 18px 20px; outline: none; font-size: 16px; line-height: 1.7; color: #1e293b; }
.rte-editor:empty:before { content: attr(data-placeholder); color: #94a3b8; }
.rte-editor h2 { font-size: 24px; margin: 18px 0 10px; }
.rte-editor h3 { font-size: 19px; margin: 16px 0 8px; }
.rte-editor p { margin: 0 0 14px; }
.rte-editor ul, .rte-editor ol { margin: 0 0 14px; padding-left: 24px; }
.rte-editor blockquote { margin: 0 0 14px; padding: 10px 16px; border-left: 4px solid var(--accent); background: #f1f5ff; color: var(--ink-soft); border-radius: 0 8px 8px 0; }
.rte-editor img { max-width: 100%; height: auto; border-radius: 10px; margin: 6px 0; }
.rte-editor a { color: var(--accent); text-decoration: underline; }
.rte-hint { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }

@media (max-width: 900px) {
  nav.links { display: none; }
  .stats, .grid.cols-3, .process, .gallery, .certs, .reviews, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact { padding: 36px 24px; }
}
@media (max-width: 560px) {
  .stats, .grid.cols-3, .process, .gallery, .certs, .reviews, .blog-grid { grid-template-columns: 1fr; }
}
