/* ==========================================================================
   Transcode Technologies — Shared Theme
   Blue/white enterprise theme matching template
   ========================================================================== */

:root {
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-600: #475569;
  --ink-500: #64748b;
  --ink-400: #94a3b8;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-softer: #f1f5f9;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 6px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);
  --maxw: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-700);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink-900); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.text-center { text-align: center; }
.muted { color: var(--ink-500); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--blue-600); border-radius: 2px; }
.lead { font-size: 1.12rem; color: var(--ink-600); max-width: 720px; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, .25); }
.btn-primary:hover { background: var(--blue-700); }
.btn-ghost { background: #fff; color: var(--ink-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-400); color: var(--blue-700); }
.btn-light { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-light:hover { background: rgba(255,255,255,.25); }
.btn-arrow::after { content: "→"; }

/* ---------- Header ---------- */
.site-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; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink-900); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.brand .name { font-size: 1.15rem; letter-spacing: -.01em; }
.brand .name small { display: block; font-size: .58rem; letter-spacing: .22em; color: var(--ink-400); font-weight: 600; }
.brand-logo { height: 40px; width: auto; display: block; }
.site-footer .brand-logo { height: 44px; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links > li > a { color: var(--ink-700); font-weight: 500; font-size: .95rem; }
.nav-links > li > a:hover { color: var(--blue-600); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink-900); margin: 5px 0; transition: .2s; }

/* dropdown */
.has-drop { position: relative; }
.drop {
  position: absolute; top: 130%; left: 50%; transform: translateX(-50%) translateY(6px);
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  min-width: 260px; padding: 10px; opacity: 0; visibility: hidden; transition: .18s ease;
}
.has-drop:hover .drop { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink-700); font-size: .9rem; }
.drop a:hover { background: var(--blue-50); color: var(--blue-700); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 56px; background: linear-gradient(180deg, var(--blue-50) 0%, #fff 70%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero h1 .accent { color: var(--blue-600); }
.hero p.lead { margin: 18px 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stat { }
.hero-stat .num { font-size: 1.45rem; font-weight: 800; color: var(--ink-900); }
.hero-stat .lbl { font-size: .8rem; color: var(--ink-500); }

/* ---------- Dashboard mockup ---------- */
.dash {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 18px; overflow: hidden;
}
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dash-title { font-weight: 700; color: var(--ink-900); font-size: .98rem; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--green); font-weight: 600; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,.18); }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.kpi .k-lbl { font-size: .62rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: .04em; }
.kpi .k-num { font-size: 1.1rem; font-weight: 800; color: var(--ink-900); }
.kpi .k-delta { font-size: .62rem; font-weight: 600; }
.k-up { color: var(--green); } .k-down { color: var(--red); }
.dash-panels { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.panel h5 { margin: 0 0 10px; font-size: .72rem; color: var(--ink-600); text-transform: uppercase; letter-spacing: .04em; }

/* fake line chart */
.spark { display: flex; align-items: flex-end; gap: 5px; height: 70px; }
.spark span { flex: 1; background: linear-gradient(180deg, var(--blue-500), var(--blue-100)); border-radius: 4px 4px 0 0; opacity: .9; }

/* donut */
.donut {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto;
  background: conic-gradient(var(--blue-600) 0 36%, #38bdf8 36% 64%, #f59e0b 64% 84%, #10b981 84% 96%, #cbd5e1 96% 100%);
  display: grid; place-items: center; position: relative;
}
.donut::after { content: ""; position: absolute; inset: 22px; background: #fff; border-radius: 50%; }
.donut b { position: relative; z-index: 1; font-size: .9rem; color: var(--ink-900); }
.legend { list-style: none; margin: 10px 0 0; padding: 0; font-size: .68rem; color: var(--ink-600); }
.legend li { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* alerts */
.alert { display: flex; gap: 8px; align-items: flex-start; font-size: .74rem; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.alert:last-child { border-bottom: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; flex: none; }
.dot-red { background: var(--red); } .dot-amber { background: var(--amber); } .dot-blue { background: var(--blue-600); }

/* mini map */
.minimap { height: 130px; border-radius: 8px; background:
  radial-gradient(circle at 20% 30%, rgba(37,99,235,.12), transparent 40%),
  radial-gradient(circle at 70% 60%, rgba(16,185,129,.12), transparent 40%),
  repeating-linear-gradient(0deg, var(--bg-softer) 0 1px, transparent 1px 22px),
  repeating-linear-gradient(90deg, var(--bg-softer) 0 1px, transparent 1px 22px),
  #fff;
  border: 1px solid var(--line); position: relative; overflow: hidden;
}
.pin { position: absolute; width: 10px; height: 10px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: var(--shadow-sm); }

/* ---------- Stat strip ---------- */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 34px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .ti-num { font-weight: 800; color: var(--ink-900); }
.trust-item .ti-lbl { font-size: .8rem; color: var(--ink-500); }
.ti-ico { width: 38px; height: 38px; border-radius: 9px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; flex: none; }

/* ---------- Cards / solutions grid ---------- */
.grid { display: grid; gap: 20px; }
.grid-7 { grid-template-columns: repeat(7, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: .2s ease; box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--blue-100); }
.card .ico {
  width: 46px; height: 46px; border-radius: 11px; background: var(--blue-50); color: var(--blue-600);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card h3 { margin-bottom: 8px; }
.card p { font-size: .9rem; color: var(--ink-500); margin-bottom: 14px; }
.card .more { font-weight: 600; font-size: .88rem; color: var(--blue-600); display: inline-flex; gap: 5px; align-items: center; }
.card.compact { padding: 20px 16px; text-align: center; }
.card.compact .ico { margin: 0 auto 12px; }
.card.compact h3 { font-size: .98rem; }

/* feature row (alternating) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 56px; }
.feature:last-child { margin-bottom: 0; }
.feature.rev .feature-text { order: 2; }
.feature-visual {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px;
}
.feature-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.feature ul.checks { list-style: none; padding: 0; margin: 18px 0 24px; }
.feature ul.checks li { padding: 7px 0 7px 30px; position: relative; color: var(--ink-600); }
.feature ul.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-50); color: var(--blue-600); font-size: .72rem; font-weight: 800; display: grid; place-items: center;
}

/* ---------- Industries ---------- */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ind {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: .2s; box-shadow: var(--shadow-sm);
}
.ind:hover { border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-3px); }
.ind .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; margin-bottom: 14px; }
.ind h3 { font-size: 1.02rem; margin-bottom: 6px; }
.ind p { font-size: .86rem; color: var(--ink-500); margin: 0; }

/* ---------- Logos ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: center; }
.logos .logo-pill {
  font-weight: 800; color: var(--ink-400); font-size: 1.05rem; letter-spacing: .02em;
  padding: 8px 4px; filter: grayscale(1); opacity: .8;
}

/* ---------- Success stories ---------- */
.story { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: .2s; }
.story:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.story .thumb { height: 150px; background: var(--bg-softer); position: relative; overflow: hidden; }
.story .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .24s ease; }
.story:hover .thumb img { transform: scale(1.04); }
.story .body { padding: 18px; }
.story h3 { font-size: 1rem; color: var(--blue-700); }
.story p { font-size: .85rem; color: var(--ink-500); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-700), var(--blue-600));
  color: #fff; border-radius: 20px; padding: 48px; display: grid;
  grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0; }
.cta-actions { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; }

/* contact mini cards in cta */
.contact-mini { display: flex; gap: 28px; flex-wrap: wrap; }
.contact-mini .cm { display: flex; gap: 10px; align-items: flex-start; }
.cm .ico { width: 38px; height: 38px; border-radius: 9px; background: var(--blue-50); color: var(--blue-600); display: grid; place-items: center; flex: none; }
.cm .cm-lbl { font-size: .72rem; color: var(--ink-500); }
.cm .cm-val { font-weight: 600; color: var(--ink-900); font-size: .92rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--blue-50), #fff); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); gap: 48px; align-items: center; }
.page-hero-copy { min-width: 0; }
.page-hero-visual {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
}
.page-hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
}
.breadcrumb { font-size: .82rem; color: var(--ink-500); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-500); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero .lead { margin-top: 12px; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
  font-family: inherit; font-size: .92rem; color: var(--ink-900); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59,130,246,.15); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #cbd5e1; padding: 56px 0 28px; }
.site-footer h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 32px; border-bottom: 1px solid #1e293b; }
.footer-grid a { color: #94a3b8; display: block; padding: 4px 0; font-size: .9rem; }
.footer-grid a:hover { color: #fff; text-decoration: none; }
.footer-brand .brand .name { color: #fff; }
.footer-brand p { font-size: .9rem; color: #94a3b8; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: .82rem; color: #64748b; flex-wrap: wrap; gap: 12px; }
.social { display: flex; gap: 10px; }
.social a { width: 34px; height: 34px; border-radius: 8px; background: #1e293b; display: grid; place-items: center; color: #94a3b8; }
.social a:hover { background: var(--blue-600); color: #fff; text-decoration: none; }

/* ---------- Utilities ---------- */
.tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-7 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-hero-visual { max-width: 620px; }
  .feature, .feature.rev .feature-text { grid-template-columns: 1fr; order: 0; }
  .cta-band { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 4px; align-items: stretch;
    box-shadow: var(--shadow);
  }
  .nav-links.open > li > a { padding: 10px 0; display: block; }
  .nav-links.open .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
}
@media (max-width: 640px) {
  .grid-7, .grid-4, .grid-2, .ind-grid, .kpi-row, .trust-strip, .dash-panels, .field-row { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .section { padding: 52px 0; }
  .cta-band { padding: 32px; }
}
