/* Duxiway — dark navy / electric blue design system */
:root {
  --bg: #0a0f1e;
  --bg-2: #0d1426;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.28);
  --text: #f4f6fb;
  --muted: #9aa4b8;
  --dim: #6b7489;
  --blue: #1f6bff;
  --blue-2: #3b8bff;
  --teal: #19b3a6;
  --radius: 14px;
  --container: 1336px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; color: inherit; }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 30, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-mark {
  width: 50px; height: 40px; background: #fff; display: grid; place-items: center; border-radius: 2px;
}
.brand-mark svg { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 16px; border-radius: 10px; color: #c9d0dd; font-size: 15px; transition: background .2s, color .2s; }
.nav a:hover { color: #fff; background: var(--surface); }
.nav a.active { background: rgba(255, 255, 255, 0.09); color: #fff; font-weight: 500; }
.header-end { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.lang-switch button {
  border: 0; background: none; cursor: pointer; padding: 6px 10px; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em; color: var(--muted); transition: background .2s, color .2s;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.active { background: rgba(255, 255, 255, 0.12); color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: #fff; margin: 4px auto; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px 28px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.btn-primary { background: linear-gradient(180deg, var(--blue-2), var(--blue)); box-shadow: 0 8px 24px rgba(31, 107, 255, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(31, 107, 255, .5); }
.btn-ghost { border-color: var(--border-strong); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: #fff; background: var(--surface); }
.btn-sm { padding: 12px 28px; font-size: 13.5px; }
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: min(calc(100vh - 76px), 980px); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 70% 45%, rgba(25, 179, 166, .16), transparent 70%),
    radial-gradient(ellipse 50% 50% at 85% 30%, rgba(31, 107, 255, .18), transparent 70%),
    linear-gradient(180deg, transparent 70%, var(--bg));
}
.hero .container { position: relative; z-index: 1; padding: 120px 0 80px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px;
  border: 1px solid var(--border-strong); border-radius: 999px; font-size: 13px; color: #cfd6e3;
  background: rgba(10,15,30,.5);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; line-height: 1.05; }
.hero h1 { font-size: clamp(44px, 6.4vw, 80px); font-weight: 600; margin: 34px 0 30px; }
.grad { background: linear-gradient(90deg, var(--blue), var(--blue-2) 60%, #5aa8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 20px; color: var(--muted); max-width: 470px; line-height: 1.45; }
.actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 42px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); margin-top: 80px; padding-top: 40px; gap: 24px; }
.stat b { display: block; font-family: var(--font-head); font-size: 38px; font-weight: 600; color: var(--blue-2); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 15px; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.eyebrow { color: var(--blue-2); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; display: block; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 56px; flex-wrap: wrap; }
.section-head h2, .page-hero h1 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 600; }
.section-head p { color: var(--muted); max-width: 460px; font-size: 17px; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service {
  padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: border-color .25s, transform .25s, background .25s;
}
.service:hover { border-color: rgba(59, 139, 255, .5); transform: translateY(-4px); background: var(--surface-2); }
.service .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(31,107,255,.14); color: var(--blue-2); margin-bottom: 22px; }
.service .ico svg { width: 24px; height: 24px; }
.service h3 { font-size: 21px; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15px; }

/* Industries */
.chips-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip-lg { padding: 14px 22px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: #d5dbe7; font-size: 15px; }

/* ---------- Page hero (references) ---------- */
.page-hero { position: relative; overflow: hidden; padding: 120px 0 70px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin: 22px 0 20px; }
.page-hero .lead { max-width: 620px; }

/* ---------- Filter toolbar ---------- */
.toolbar { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 40px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: #c9d0dd; font-size: 14px; cursor: pointer; transition: all .2s; display: inline-flex; gap: 8px; align-items: center;
}
.filter small { font-size: 12px; color: var(--dim); background: rgba(255,255,255,.06); padding: 1px 7px; border-radius: 999px; }
.filter:hover { border-color: var(--border-strong); color: #fff; }
.filter.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.filter.active small { background: rgba(255,255,255,.2); color: #fff; }
.tools { display: flex; gap: 10px; align-items: center; }
.search { position: relative; }
.search input {
  width: 260px; padding: 10px 14px 10px 40px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); outline: none; transition: border-color .2s;
}
.search input:focus { border-color: var(--blue); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--dim); }
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.view-toggle button { background: var(--surface); border: 0; padding: 10px 12px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.view-toggle button.active { background: var(--blue); color: #fff; }
.view-toggle svg { width: 18px; height: 18px; }

/* ---------- Reference cards ---------- */
.ref-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.ref-card {
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface);
  display: flex; flex-direction: column; cursor: pointer; transition: border-color .3s, transform .3s, box-shadow .3s;
  text-align: left; animation: rise .5s both;
}
.ref-card:hover { border-color: rgba(59,139,255,.45); transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.ref-body { padding: 28px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.ref-kicker { color: var(--blue-2); font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ref-card h3 { font-size: 30px; margin: 10px 0 6px; }
.ref-tagline { color: #d5dbe7; font-weight: 500; margin-bottom: 12px; }
.ref-desc { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tag { font-size: 12.5px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border); color: #c0c8d6; background: rgba(255,255,255,.03); }
.ref-link { margin-top: auto; display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14.5px; color: #fff; }
.ref-link svg { width: 16px; transition: transform .2s; }
.ref-card:hover .ref-link svg { transform: translateX(4px); }

/* Device mockup (pure CSS — no image assets needed) */
.mock {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, var(--c1), transparent 60%), radial-gradient(ellipse at 90% 90%, var(--c2), transparent 55%), #0b1222;
  display: grid; place-items: center;
}
.mock::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(10,15,30,.6)); }
.laptop { width: 66%; position: relative; transform: translateX(-6%); transition: transform .5s; }
.ref-card:hover .laptop { transform: translateX(-6%) scale(1.03); }
.laptop .screen { aspect-ratio: 16 / 10; border: 7px solid #1b2133; border-bottom-width: 9px; border-radius: 10px 10px 0 0; background: #fff; overflow: hidden; }
.laptop .base { height: 9px; background: linear-gradient(#2b3247, #11151f); border-radius: 0 0 12px 12px; margin: 0 -9%; }
.phone {
  position: absolute; right: 13%; bottom: 13%; width: 15%; aspect-ratio: 9 / 19; border: 4px solid #1b2133; border-radius: 12px;
  background: #fff; overflow: hidden; box-shadow: -10px 14px 30px rgba(0,0,0,.45); z-index: 1; transition: transform .5s;
}
.ref-card:hover .phone { transform: translateY(-6px); }
.ui { height: 100%; display: flex; flex-direction: column; background: var(--ui-bg, #f5f7fb); }
.ui-top { height: 12%; background: var(--c1); display: flex; align-items: center; gap: 4%; padding: 0 5%; }
.ui-top i { display: block; height: 22%; width: 12%; background: rgba(255,255,255,.75); border-radius: 4px; }
.ui-top i:first-child { width: 18%; background: #fff; }
.ui-hero { flex: 0 0 34%; background: linear-gradient(120deg, var(--c1), var(--c2)); padding: 5%; display: flex; flex-direction: column; justify-content: center; gap: 7%; }
.ui-hero i { display: block; height: 10%; background: rgba(255,255,255,.9); border-radius: 3px; width: 55%; }
.ui-hero i:nth-child(2) { width: 38%; opacity: .7; }
.ui-hero i:nth-child(3) { width: 18%; height: 13%; background: #fff; border-radius: 6px; }
.ui-rows { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; padding: 5%; }
.ui-rows i { background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.12); position: relative; }
.ui-rows i::before { content: ""; position: absolute; left: 10%; right: 10%; top: 12%; height: 42%; background: var(--c2); opacity: .25; border-radius: 3px; }
.phone .ui-rows { grid-template-columns: 1fr; }
.phone .ui-hero { flex-basis: 30%; }

/* Table view */
.ref-table { width: 100%; border-collapse: collapse; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ref-table th, .ref-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14.5px; vertical-align: middle; }
.ref-table th { color: var(--dim); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; background: var(--surface); }
.ref-table tr:last-child td { border-bottom: 0; }
.ref-table tbody tr { cursor: pointer; transition: background .2s; }
.ref-table tbody tr:hover { background: var(--surface); }
.ref-table .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 10px; vertical-align: middle; }
.ref-table td.name { font-weight: 600; font-family: var(--font-head); font-size: 16px; }
.table-wrap { overflow-x: auto; }

.empty { text-align: center; padding: 80px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--muted); }
.empty p { font-size: 18px; margin-bottom: 14px; color: #d5dbe7; }
.empty button { background: none; border: 0; color: var(--blue-2); cursor: pointer; font-weight: 600; }

/* ---------- Case study modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; place-items: center; padding: 24px; }
.modal.open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,7,15,.78); backdrop-filter: blur(6px); }
.modal-panel {
  position: relative; width: min(920px, 100%); max-height: 90vh; overflow-y: auto; border-radius: 20px;
  background: var(--bg-2); border: 1px solid var(--border); animation: rise .3s both;
}
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(10,15,30,.7); cursor: pointer; font-size: 20px; }
.modal-body { padding: 36px 40px 40px; }
.modal-body h2 { font-size: 40px; margin: 10px 0 8px; }
.modal-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; margin-top: 26px; }
.modal-cols h4 { font-family: var(--font-head); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); margin-bottom: 12px; }
.modal-cols ul { list-style: none; display: grid; gap: 10px; }
.modal-cols li { padding-left: 22px; position: relative; color: #cfd6e3; font-size: 15px; }
.modal-cols li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--blue); }
.facts { display: grid; gap: 14px; }
.fact { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.fact span { display: block; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.fact b { font-weight: 600; font-size: 15px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 24px; padding: 72px 64px; border: 1px solid rgba(59,139,255,.3);
  background: radial-gradient(ellipse at 85% 20%, rgba(25,179,166,.25), transparent 55%), radial-gradient(ellipse at 10% 100%, rgba(31,107,255,.35), transparent 60%), #0e1830;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta h2 { font-size: clamp(32px, 4vw, 52px); margin: 8px 0 16px; }
.cta p { color: #c3cbda; font-size: 17px; max-width: 520px; }
.cta .actions { margin-top: 0; justify-content: flex-end; }

/* ---------- Footer ---------- */
.contact-strip { padding: 70px 0; border-top: 1px solid var(--border); }
.contact-strip .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.contact-strip h2 { font-size: clamp(30px, 3.6vw, 44px); }
.contact-links { display: flex; gap: 32px; flex-wrap: wrap; font-size: 18px; }
.contact-links a { color: #d5dbe7; border-bottom: 1px solid var(--border-strong); padding-bottom: 2px; }
.contact-links a:hover { color: #fff; border-color: var(--blue); }
.footer { background: #070b16; border-top: 1px solid var(--border); padding: 70px 0 30px; color: var(--muted); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h5 { color: #fff; font-family: var(--font-head); font-size: 15px; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer .brand { margin-bottom: 18px; color: #fff; }
.footer-box { padding: 22px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.footer-box p { margin: 6px 0 16px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13.5px; }
.footer-bottom nav { display: flex; gap: 20px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; padding: 56px 40px; }
  .cta .actions { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .nav, .header .btn-sm { display: none; }
  .menu-btn { display: block; }
  .header.menu-open .nav {
    display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px;
  }
  .ref-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .modal-cols { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .tools { width: 100%; }
  .search { flex: 1; }
  .search input { width: 100%; }
}
@media (max-width: 600px) {
  .services { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero .container { padding-top: 70px; }
  .lead { font-size: 18px; }
  .section { padding: 80px 0; }
  .cta { padding: 44px 24px; }
  .modal-body { padding: 28px 22px; }
  .modal-body h2 { font-size: 30px; }
  .ref-body { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
