/* =========================================================
   Unique Infosoft — corporate design system
   Dark premium theme (navy / near-black surfaces) with the
   brand palette sampled from the logo:
   coral #FC7854 · amber #FCB43C · cyan #00CCFC · mint #18F0B4
   ========================================================= */

:root {
  /* brand */
  --coral:        #fc7854;
  --coral-deep:   #ff8a68;
  --amber:        #fcb43c;
  --cyan:         #00ccfc;
  --cyan-deep:    #35d4ff;   /* readable on dark */
  --mint:         #18f0b4;
  --mint-deep:    #35f0c0;

  --grad-warm: linear-gradient(120deg, var(--coral) 0%, var(--amber) 100%);
  --grad-cool: linear-gradient(120deg, var(--cyan) 0%, var(--mint) 100%);
  --grad-brand: linear-gradient(100deg, var(--coral) 0%, var(--amber) 32%, var(--mint) 66%, var(--cyan) 100%);

  /* neutrals — dark */
  --navy-900: #050a12;
  --navy-800: #0a1019;
  --navy-700: #101a27;
  --navy-600: #172536;
  --ink:      #f3f7fc;   /* headings */
  --body:     #a9b8cb;   /* body copy */
  --muted:    #7d8ea5;   /* meta text */
  --line:     rgba(255, 255, 255, .10);
  --line-soft:rgba(255, 255, 255, .06);
  --bg:       #070b12;
  --bg-soft:  #0a0f18;
  --bg-tint:  #0c1320;
  --surface:  rgba(255, 255, 255, .045);
  --surface-2:rgba(255, 255, 255, .075);

  --shadow-sm: 0 2px 14px rgba(0, 0, 0, .45);
  --shadow:    0 22px 48px -26px rgba(0, 0, 0, .9);
  --shadow-lg: 0 40px 80px -40px rgba(0, 0, 0, 1);

  --radius:    18px;
  --radius-sm: 12px;
  --radius-lg: 26px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1200px;
  --header-h: 78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 84% -6%, rgba(0, 140, 200, .16), transparent 60%),
    radial-gradient(900px 560px at 0% 8%, rgba(252, 120, 84, .10), transparent 58%),
    var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: var(--cyan-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--amber); }

::selection { background: rgba(252, 120, 84, .35); color: #fff; }

h1, h2, h3, h4, h5 {
  color: var(--ink);
  font-weight: 750;
  line-height: 1.16;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.22rem; letter-spacing: -.014em; }
p  { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid rgba(0, 204, 252, .6);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--cyan); color: #04121b; padding: 10px 18px;
  font-weight: 700; border-radius: 0 0 10px 10px; transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #04121b; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 26px;
}

section { padding: 96px 0; position: relative; }
section.tight { padding: 66px 0; }

section.soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, .012));
  border-block: 1px solid var(--line-soft);
}

section.navy {
  background:
    radial-gradient(900px 480px at 8% 0%, rgba(0, 204, 252, .14), transparent 60%),
    radial-gradient(760px 460px at 96% 100%, rgba(252, 120, 84, .14), transparent 62%),
    linear-gradient(160deg, #04080f, #08111d 60%, #0a1826);
  border-block: 1px solid var(--line);
}
section.navy h2, section.navy h3, section.navy h4 { color: #fff; }
section.navy .eyebrow {
  background: rgba(0, 204, 252, .1);
  border-color: rgba(0, 204, 252, .34);
  color: #7fe4ff;
}
section.navy .section-head p { color: var(--body); }

.section-head { max-width: 760px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.06rem; color: var(--body); }
.section-head.center p { margin-inline: auto; max-width: 640px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--coral-deep);
  background: rgba(252, 120, 84, .1);
  border: 1px solid rgba(252, 120, 84, .34);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad-cool);
  box-shadow: 0 0 10px rgba(0, 204, 252, .9);
}

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.mono { font-family: var(--mono); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--body); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 650;
  font-size: .98rem;
  line-height: 1;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--grad-warm);
  color: #12060a;
  box-shadow: 0 16px 34px -16px rgba(252, 120, 84, .8);
}
.btn-primary:hover { color: #12060a; box-shadow: 0 22px 42px -16px rgba(252, 180, 60, .85); }

.btn-dark {
  background: rgba(255, 255, 255, .06);
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-dark:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .45); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: rgba(0, 204, 252, .6); color: var(--cyan-deep); background: rgba(0, 204, 252, .08); }

.btn-light { background: #fff; color: #08111d; }
.btn-light:hover { color: #08111d; background: #eef4fb; }

/* reference-style pill: outline + circular arrow */
.btn-outline-light {
  background: rgba(255, 255, 255, .04);
  color: #fff;
  border-color: rgba(255, 255, 255, .28);
  padding-right: 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-outline-light::after {
  content: "→";
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  font-size: 15px;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-light:hover::after { transform: translateX(4px); background: var(--grad-warm); color: #12060a; border-color: transparent; }

.btn-sm { padding: 12px 22px; font-size: .9rem; }
.btn-lg { padding: 18px 34px; font-size: 1.03rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(6, 10, 17, .78);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(6, 10, 17, .94);
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 1);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
}
.brand img { height: 42px; width: auto; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5)); }
.brand:hover img { opacity: .88; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative;
  color: #c6d3e2;
  font-size: .94rem;
  font-weight: 550;
  padding: 9px 13px;
  border-radius: 10px;
  transition: color .2s ease, background .2s ease;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.site-nav a.active { color: #fff; font-weight: 700; }
.site-nav a.active::after, .site-nav a:hover::after { transform: scaleX(1); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 0;
  background:
    radial-gradient(1000px 560px at 88% 6%, rgba(0, 140, 200, .3), transparent 62%),
    radial-gradient(760px 480px at 4% 96%, rgba(252, 120, 84, .18), transparent 60%),
    radial-gradient(700px 500px at 52% 40%, rgba(24, 240, 180, .10), transparent 65%),
    linear-gradient(170deg, #04080f 0%, #060c15 45%, #081522 100%);
  color: var(--body);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 66px 66px;
  mask-image: radial-gradient(ellipse 92% 76% at 50% 26%, #000 28%, transparent 86%);
  -webkit-mask-image: radial-gradient(ellipse 92% 76% at 50% 26%, #000 28%, transparent 86%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
  padding-bottom: 72px;
}

/* headline treatment: regular line + italic accent line */
.hero h1 {
  color: #fff;
  margin-bottom: 22px;
  line-height: 1.08;
}
.hero h1 em {
  display: block;
  font-style: italic;
  font-weight: 700;
  background: linear-gradient(100deg, #fff 0%, #9fe9ff 45%, #6ff0cd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead { color: #b6c6d8; font-size: 1.13rem; max-width: 560px; }
.hero .lead strong { color: #fff; font-weight: 650; }
.hero p { color: #97a9bd; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.hero-tags span {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #cfe0ee;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 7px 13px;
  border-radius: 999px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta b { color: #fff; font-size: 1.4rem; font-weight: 750; letter-spacing: -.02em; }
.hero-meta span { font-size: .78rem; color: #8ba0b6; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; }

/* feature strip (reference: three items in a glass row) */
.hero-features {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .08);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.hero-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 30px 34px;
  background: rgba(6, 11, 19, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background .3s ease;
}
.hero-feature:hover { background: rgba(12, 22, 36, .85); }
.hero-feature .ico {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
}
.hero-feature:nth-child(2) .ico { border-color: rgba(252, 120, 84, .45); }
.hero-feature:nth-child(3) .ico { border-color: rgba(24, 240, 180, .4); }
.hero-feature .ico svg { width: 20px; height: 20px; stroke: var(--cyan-deep); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-feature:nth-child(2) .ico svg { stroke: var(--coral-deep); }
.hero-feature:nth-child(3) .ico svg { stroke: var(--mint-deep); }
.hero-feature b { display: block; color: #fff; font-size: .99rem; letter-spacing: -.01em; margin-bottom: 3px; }
.hero-feature span { font-size: .85rem; color: #93a6bb; }

/* hero visual: abstract ribbon + framed architecture */
.hero-visual { position: relative; }
.hero-ribbon {
  position: absolute;
  inset: -18% -22% -14% -14%;
  z-index: 0;
  opacity: .85;
  pointer-events: none;
  animation: ribbonDrift 16s ease-in-out infinite;
}
.hero-visual .hero-ribbon svg { width: 100%; height: 100%; }
@keyframes ribbonDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%      { transform: translate3d(-14px, 16px, 0) rotate(-1.4deg); }
}
.hero-visual .frame {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 50px 100px -55px rgba(0, 0, 0, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 18px;
  overflow: hidden;
}
.hero-visual svg { width: 100%; height: auto; }

.float-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #eaf3fb;
  background: rgba(5, 10, 18, .82);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 8px 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 20px 38px -22px rgba(0, 0, 0, 1);
  animation: floaty 7s ease-in-out infinite;
}
.float-chip i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad-cool);
  box-shadow: 0 0 12px rgba(0, 204, 252, .9);
}
.float-chip.c1 { top: 6%; left: -4%; animation-delay: 0s; }
.float-chip.c2 { bottom: 10%; right: -3%; animation-delay: 1.6s; }
.float-chip.c3 { bottom: -4%; left: 12%; animation-delay: 3.1s; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-13px); }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 82px 0 72px;
  background:
    radial-gradient(820px 400px at 88% 0%, rgba(0, 140, 200, .26), transparent 62%),
    radial-gradient(640px 380px at 4% 100%, rgba(252, 120, 84, .18), transparent 62%),
    linear-gradient(170deg, #04080f, #060d16 55%, #081826);
  color: var(--body);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero h1 .grad-text {
  background: linear-gradient(100deg, #ff9a7d, #ffd07a 45%, #7ff0d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-hero p { max-width: 680px; font-size: 1.08rem; color: #a3b5c9; }
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: #7fe4ff; margin-bottom: 22px;
}
.breadcrumb a { color: #8ba0b6; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity .3s ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1.5px;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  background: var(--surface-2);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}
.card:hover::after { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 15px;
  margin-bottom: 20px;
  background: linear-gradient(140deg, rgba(0, 204, 252, .16), rgba(24, 240, 180, .14));
  border: 1px solid rgba(0, 204, 252, .34);
}
.card-icon.warm {
  background: linear-gradient(140deg, rgba(252, 120, 84, .16), rgba(252, 180, 60, .16));
  border-color: rgba(252, 120, 84, .4);
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--cyan-deep); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-icon.warm svg { stroke: var(--coral-deep); }

.card h3 { margin-bottom: .45em; }
.card p { font-size: .97rem; color: var(--body); }

.cap-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cap-list li {
  font-size: .78rem;
  font-family: var(--mono);
  letter-spacing: .04em;
  color: #cfe0ee;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  font-weight: 650;
  font-size: .9rem;
  color: var(--cyan-deep);
}
.learn-more svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.2; transition: transform .25s ease; }
.card:hover .learn-more svg, a:hover .learn-more svg { transform: translateX(5px); }

.callout {
  font-size: .93rem;
  color: var(--body);
  background: linear-gradient(140deg, rgba(0, 204, 252, .07), rgba(252, 120, 84, .07));
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.callout strong { color: var(--ink); }

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow);
}
.stat { text-align: center; padding: 6px 8px; }
.stat b {
  display: block;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: .84rem; color: var(--muted); font-family: var(--mono); letter-spacing: .05em; text-transform: uppercase; }

/* project cards */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 26px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  color: var(--body);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
  overflow: hidden;
}
.project-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.project-card:hover {
  transform: translateY(-7px);
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 204, 252, .5);
}
.project-card:hover::before { transform: scaleX(1); }

.project-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.project-num { font-family: var(--mono); font-size: .78rem; color: var(--muted); letter-spacing: .1em; }
.badge {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0, 204, 252, .1);
  border: 1px solid rgba(0, 204, 252, .38);
  color: var(--cyan-deep);
}
.badge.warm { background: rgba(252, 120, 84, .12); border-color: rgba(252, 120, 84, .42); color: var(--coral-deep); }
.badge.mint { background: rgba(24, 240, 180, .1); border-color: rgba(24, 240, 180, .38); color: var(--mint-deep); }

.project-card h3 { font-size: 1.28rem; margin-bottom: .3em; color: var(--ink); }
.project-date { font-family: var(--mono); font-size: .76rem; color: var(--muted); letter-spacing: .06em; margin-bottom: 12px; }
.project-card p { font-size: .95rem; color: var(--body); }
.project-card .tags { margin-top: auto; padding-top: 16px; }

.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .05em;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  color: #c8d7e6;
}
.tag.alt  { background: rgba(0, 204, 252, .1); border-color: rgba(0, 204, 252, .32); color: var(--cyan-deep); }
.tag.good { background: rgba(24, 240, 180, .1); border-color: rgba(24, 240, 180, .32); color: var(--mint-deep); }
.tag.warm { background: rgba(252, 120, 84, .1); border-color: rgba(252, 120, 84, .34); color: var(--coral-deep); }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-btn {
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: var(--body);
  cursor: pointer;
  transition: all .22s ease;
}
.filter-btn:hover { border-color: rgba(0, 204, 252, .6); color: var(--cyan-deep); }
.filter-btn.active { background: #fff; border-color: #fff; color: #08111d; }

/* ---------- Architecture diagram ---------- */
.arch {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  position: relative;
}
.arch-node {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.arch-node:hover { transform: translateY(-5px); border-color: rgba(0, 204, 252, .55); background: var(--surface-2); }
.arch-node .ico {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(0, 204, 252, .16), rgba(24, 240, 180, .14));
  border: 1px solid rgba(0, 204, 252, .32);
}
.arch-node:nth-child(2n) .ico { background: linear-gradient(140deg, rgba(252, 120, 84, .16), rgba(252, 180, 60, .16)); border-color: rgba(252, 120, 84, .4); }
.arch-node .ico svg { width: 21px; height: 21px; stroke: var(--cyan-deep); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.arch-node:nth-child(2n) .ico svg { stroke: var(--coral-deep); }
.arch-node b { display: block; font-size: .95rem; color: var(--ink); }
.arch-node span { font-size: .78rem; color: var(--muted); font-family: var(--mono); letter-spacing: .04em; }
.arch-node::after {
  content: "";
  position: absolute;
  top: 50%; right: -15px;
  width: 16px; height: 2px;
  background: linear-gradient(90deg, rgba(0, 204, 252, .1), rgba(0, 204, 252, .9), rgba(0, 204, 252, .1));
  background-size: 200% 100%;
  animation: flow 2.4s linear infinite;
}
.arch-node:last-child::after { display: none; }
@keyframes flow { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

.arch-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Process timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 34px; left: 2%; right: 2%;
  height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--mint), var(--cyan));
  opacity: .5;
}
.step { position: relative; }
.step .dot {
  position: relative;
  z-index: 1;
  width: 68px; height: 68px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #0a1019;
  border: 2px solid var(--line);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan-deep);
  margin-bottom: 18px;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, color .3s ease;
}
.step:hover .dot {
  transform: scale(1.08);
  border-color: transparent;
  background: var(--grad-warm);
  color: #12060a;
  box-shadow: 0 16px 32px -16px rgba(252, 180, 60, .9);
}
.step h3 { font-size: 1.02rem; margin-bottom: .35em; }
.step p { font-size: .87rem; color: var(--body); margin: 0; }

/* ---------- Industries ---------- */
.industry {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.industry:hover { transform: translateY(-4px); background: var(--surface-2); box-shadow: var(--shadow); border-color: rgba(252, 120, 84, .45); }
.industry .ico {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(252, 120, 84, .16), rgba(252, 180, 60, .16));
  border: 1px solid rgba(252, 120, 84, .38);
}
.industry .ico svg { width: 20px; height: 20px; stroke: var(--coral-deep); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.industry b { display: block; color: var(--ink); font-size: .99rem; }
.industry span { font-size: .85rem; color: var(--muted); }

/* ---------- Case studies ---------- */
.case {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.case:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(0, 204, 252, .4); }
.case-head {
  padding: 24px 26px 20px;
  background:
    radial-gradient(420px 160px at 90% -20%, rgba(0, 204, 252, .28), transparent 70%),
    linear-gradient(140deg, #04080f, #0d1c2b);
  color: #cfe0ee;
  border-bottom: 1px solid var(--line-soft);
}
.case-head b { display: block; color: #fff; font-size: 1.2rem; letter-spacing: -.015em; }
.case-head span { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #7fe4ff; }
.case-body { padding: 22px 26px 26px; display: grid; gap: 16px; }
.case-row b {
  display: block;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 5px;
}
.case-row p { margin: 0; font-size: .93rem; color: var(--body); }

/* ---------- Why us ---------- */
.why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 34px; }
.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color .3s ease, transform .3s ease, background .3s ease;
}
.why-item:hover { border-color: rgba(24, 240, 180, .5); transform: translateX(4px); background: var(--surface-2); }
.why-item .check {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--grad-cool);
}
.why-item .check svg { width: 16px; height: 16px; stroke: #04121b; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.why-item b { display: block; color: var(--ink); font-size: 1rem; }
.why-item span { font-size: .9rem; color: var(--body); }

/* ---------- Technology ---------- */
.tech-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tech-group {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.tech-group:hover { transform: translateY(-5px); background: var(--surface-2); border-color: rgba(0, 204, 252, .4); }
.tech-group h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 16px; }
.tech-group h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--grad-warm); }
.tech-group:nth-child(2n) h3::before { background: var(--grad-cool); }
.tech-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.tech-chips li {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .03em;
  color: #c8d7e6;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  transition: all .22s ease;
}
.tech-chips li:hover {
  background: rgba(0, 204, 252, .12);
  border-color: rgba(0, 204, 252, .6);
  color: var(--cyan-deep);
  transform: translateY(-2px);
}
.tech-group p { font-size: .9rem; color: var(--muted); margin: 16px 0 0; }

/* ---------- Mobile video portfolio ---------- */
.video-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.video-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  text-align: left;
  padding: 0;
  font: inherit;
  color: var(--body);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(0, 204, 252, .5); }
.video-thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #04080f;
  overflow: hidden;
}
.video-thumb img, .video-thumb video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease, opacity .35s ease;
}
.video-thumb video { opacity: 0; }
.video-card:hover .video-thumb video.ready { opacity: 1; }
.video-card:hover .video-thumb img { transform: scale(1.06); }
.play-pill {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .9);
  transition: transform .3s ease, background .3s ease;
  z-index: 2;
}
.play-pill svg { width: 20px; height: 20px; fill: #08111d; stroke: none; margin-left: 3px; }
.video-card:hover .play-pill { transform: translate(-50%, -50%) scale(1.1); background: var(--grad-warm); }
.video-meta { padding: 18px 18px 20px; display: grid; gap: 8px; }
.video-meta b { color: var(--ink); font-size: 1rem; }
.video-meta .row { display: flex; flex-wrap: wrap; gap: 7px; }
.video-meta p { margin: 0; font-size: .86rem; color: var(--body); }
.video-platform {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(5, 10, 18, .8);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* ---------- Clients ---------- */
.client-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.client {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius-sm);
  padding: 22px 24px;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.client:nth-child(3n+2) { border-left-color: var(--coral); }
.client:nth-child(3n+3) { border-left-color: var(--mint); }
.client:hover { transform: translateY(-4px); background: var(--surface-2); box-shadow: var(--shadow); }
.client b { color: var(--ink); font-size: 1.05rem; letter-spacing: -.01em; }
.client .rel {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.client p { margin: 0; font-size: .9rem; color: var(--body); }
.client a { font-size: .85rem; font-weight: 600; }

.disclaimer {
  margin-top: 26px;
  font-size: .85rem;
  color: var(--muted);
  background: rgba(255, 255, 255, .03);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.disclaimer strong { color: var(--ink); }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 46px 20px;
  overflow-y: auto;
  background: rgba(2, 5, 9, .8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal.open { display: flex; }
.modal-panel {
  position: relative;
  width: min(920px, 100%);
  background: #0a1019;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 1);
  overflow: hidden;
  animation: modalIn .32s cubic-bezier(.2, .8, .3, 1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 3;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(5, 10, 18, .7);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: grid; place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.modal-close:hover { background: var(--coral); color: #12060a; transform: rotate(90deg); }
.modal-head {
  padding: 34px 38px 28px;
  background:
    radial-gradient(520px 220px at 88% -30%, rgba(0, 204, 252, .3), transparent 70%),
    radial-gradient(420px 200px at 0% 120%, rgba(252, 120, 84, .26), transparent 70%),
    linear-gradient(140deg, #04080f, #0d1c2b);
  color: #cfe0ee;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .3em; }
.modal-head .row { display: flex; flex-wrap: wrap; gap: 10px; }
.modal-head .badge { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .28); color: #dbe8f4; }
.modal-body { padding: 32px 38px 40px; display: grid; gap: 26px; }
.modal-body h4 {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 8px;
}
.modal-body p { margin: 0; font-size: .97rem; color: var(--body); }
.modal-body ul.bullets { display: grid; gap: 9px; }
.modal-body ul.bullets li { position: relative; padding-left: 22px; font-size: .95rem; color: var(--body); }
.modal-body ul.bullets li::before {
  content: "";
  position: absolute; left: 0; top: .6em;
  width: 9px; height: 9px; border-radius: 3px;
  background: var(--grad-cool);
}
.modal-links { display: flex; flex-wrap: wrap; gap: 12px; }
.modal-links a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .88rem; font-weight: 650;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--cyan-deep);
  transition: all .22s ease;
}
.modal-links a:hover { border-color: rgba(0, 204, 252, .6); background: rgba(0, 204, 252, .1); }
.modal-video { width: 100%; border-radius: var(--radius-sm); background: #04080f; aspect-ratio: 16/9; }
.modal-video video { width: 100%; height: 100%; border-radius: var(--radius-sm); }

body.modal-open { overflow: hidden; }

/* ---------- Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 46px;
  align-items: start;
}
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .86rem; font-weight: 650; color: var(--ink); }
.field label span { color: var(--coral-deep); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.field select option { background: #0a1019; color: #eaf2fa; }
.field textarea { resize: vertical; min-height: 132px; }
.field input::placeholder, .field textarea::placeholder { color: #6f8199; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, .08);
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 204, 252, .18);
}
.field .err { font-size: .8rem; color: var(--coral-deep); min-height: 1em; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: var(--coral);
  background: rgba(252, 120, 84, .08);
}
.field.invalid .err { display: block; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  background: rgba(24, 240, 180, .1);
  border: 1px solid rgba(24, 240, 180, .35);
  color: var(--mint-deep);
}
.form-status.show { display: block; }

.contact-aside .info-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-aside .info-item:last-child { border-bottom: 0; }
.contact-aside .ico {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: grid; place-items: center; border-radius: 13px;
  background: linear-gradient(140deg, rgba(0, 204, 252, .16), rgba(24, 240, 180, .14));
  border: 1px solid rgba(0, 204, 252, .32);
}
.contact-aside .ico svg { width: 20px; height: 20px; stroke: var(--cyan-deep); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-aside b { display: block; color: var(--ink); }
.contact-aside span { font-size: .92rem; color: var(--body); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: var(--radius-lg);
  padding: 62px 44px;
  background:
    radial-gradient(600px 300px at 12% 0%, rgba(0, 204, 252, .2), transparent 62%),
    radial-gradient(560px 300px at 92% 100%, rgba(252, 120, 84, .22), transparent 62%),
    linear-gradient(150deg, #04080f, #0a121d 60%, #0b1c2b);
  color: var(--body);
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .7;
  pointer-events: none;
}
.cta-band h2 { color: #fff; margin-bottom: .4em; }
.cta-band p { max-width: 640px; margin-inline: auto; color: #a3b5c9; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer {
  background:
    radial-gradient(700px 340px at 88% 0%, rgba(0, 204, 252, .12), transparent 60%),
    linear-gradient(160deg, #04080f, #060d16 55%, #081826);
  color: #93a8bd;
  padding: 72px 0 30px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
.footer-brand img { height: 46px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: .95rem; color: #93a8bd; max-width: 340px; }
.footer-tagline {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7fe4ff;
}
.footer-col h4 {
  color: #fff;
  font-size: .82rem;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 11px; }
.footer-col a { color: #93a8bd; font-size: .94rem; transition: color .2s ease, transform .2s ease; display: inline-block; }
.footer-col a:hover { color: #fff; transform: translateX(4px); }
.footer-col li { font-size: .94rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: .86rem;
  color: #7a8ea3;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 80;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 16, 25, .9);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  display: grid; place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: all .3s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--cyan); color: #04121b; border-color: var(--cyan); }
.to-top svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
.js .reveal[data-delay="4"] { transition-delay: .32s; }
.js .reveal[data-delay="5"] { transition-delay: .40s; }

/* ---------- Theme toggle ---------- */
:root { color-scheme: dark; }

.theme-toggle {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06);
  color: var(--ink);
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease, transform .3s ease, color .22s ease;
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .4);
  transform: rotate(18deg);
}
.theme-toggle svg {
  width: 19px; height: 19px;
  stroke: currentColor; fill: none;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .site-nav a { padding: 9px 10px; font-size: .9rem; }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 18px; }
  .timeline::before { display: none; }
}

@media (max-width: 1024px) {
  section { padding: 76px 0; }
  .hero { padding-top: 78px; }
  .hero-grid { grid-template-columns: 1fr; gap: 46px; padding-bottom: 56px; }
  .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .arch-node::after { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(7, 12, 20, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -30px rgba(0, 0, 0, 1);
    padding: 12px 20px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 12px; font-size: 1rem; border-radius: 10px; }
  .site-nav a::after { display: none; }
  .site-nav a.active { background: rgba(0, 204, 252, .12); }
  .nav-cta { order: 3; }
  .nav-wrap { gap: 12px; }
  .nav-toggle { order: 4; }
  .hero-features { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .tech-groups, .client-grid { grid-template-columns: minmax(0, 1fr); }
  .why-list { grid-template-columns: minmax(0, 1fr); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arch { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-card { padding: 28px 22px; }
  .modal-head, .modal-body { padding-inline: 24px; }
  .cta-band { padding: 48px 26px; }
  .hero-meta { gap: 18px; }
  .float-chip.c1 { left: 0; }
  .float-chip.c2 { right: 0; }
  .hero-feature { padding: 24px 22px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  body { font-size: 16px; }
  .brand img { height: 36px; }
  .nav-cta { padding: 10px 16px; font-size: .84rem; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .video-grid { grid-template-columns: minmax(0, 1fr); }
  .arch { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .float-chip { font-size: 10px; padding: 6px 11px; }
  .hero-ribbon { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   LIGHT THEME
   Switched with <html data-theme="light"> (theme toggle in
   the header). Tokens first, then every component that used
   hard-coded dark values.
   ========================================================= */
html[data-theme="light"] {
  color-scheme: light;

  --coral-deep: #e0573a;
  --cyan-deep:  #0077a8;
  --mint-deep:  #057a5c;

  --navy-900: #071726;
  --navy-800: #0b2033;
  --navy-700: #123049;
  --navy-600: #1c4463;
  --ink:      #0e1b2a;
  --body:     #46586e;
  --muted:    #7a8aa0;
  --line:     #e4eaf2;
  --line-soft:#eef2f8;
  --bg:       #ffffff;
  --bg-soft:  #f5f8fc;
  --bg-tint:  #eef4fa;
  --surface:  #ffffff;
  --surface-2:#f7fafd;

  --shadow-sm: 0 2px 12px rgba(11, 32, 51, .07);
  --shadow:    0 20px 44px -24px rgba(11, 32, 51, .35);
  --shadow-lg: 0 34px 70px -34px rgba(11, 32, 51, .45);
}

html[data-theme="light"] body {
  background:
    radial-gradient(1100px 620px at 84% -6%, rgba(0, 119, 168, .09), transparent 60%),
    radial-gradient(900px 560px at 0% 8%, rgba(224, 87, 58, .07), transparent 58%),
    var(--bg);
  color: var(--body);
}

html[data-theme="light"] ::selection { background: rgba(224, 87, 58, .22); color: var(--ink); }

/* ---------- Header ---------- */
html[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, .86);
  border-bottom-color: transparent;
}
html[data-theme="light"] .site-header.scrolled {
  background: rgba(255, 255, 255, .95);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 34px -26px rgba(11, 32, 51, .6);
}
html[data-theme="light"] .site-nav a { color: var(--ink); }
html[data-theme="light"] .site-nav a:hover { color: var(--cyan-deep); background: rgba(0, 119, 168, .08); }
html[data-theme="light"] .site-nav a.active { color: var(--ink); }
html[data-theme="light"] .nav-toggle { background: var(--bg-soft); border-color: var(--line); }
html[data-theme="light"] .nav-toggle span { background: var(--ink); }
html[data-theme="light"] .theme-toggle {
  background: var(--bg-soft);
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="light"] .theme-toggle:hover {
  background: #fff;
  border-color: var(--cyan-deep);
  color: var(--cyan-deep);
}
html[data-theme="light"] .brand img { filter: none; }

/* ---------- Hero ---------- */
html[data-theme="light"] .hero {
  background:
    radial-gradient(1000px 560px at 88% 4%, rgba(0, 119, 168, .12), transparent 62%),
    radial-gradient(760px 480px at 4% 96%, rgba(224, 87, 58, .1), transparent 60%),
    radial-gradient(700px 500px at 52% 40%, rgba(5, 150, 105, .08), transparent 65%),
    linear-gradient(170deg, #ffffff 0%, #f5f9fd 48%, #edf4fb 100%);
  color: var(--body);
  border-bottom: 1px solid var(--line-soft);
}
html[data-theme="light"] .hero::before {
  background-image:
    linear-gradient(rgba(11, 32, 51, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 32, 51, .055) 1px, transparent 1px);
}
html[data-theme="light"] .hero h1 { color: var(--ink); }
html[data-theme="light"] .hero h1 em {
  background: linear-gradient(100deg, #e0573a 0%, #e79a1e 40%, #059a72 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .hero .lead { color: var(--body); }
html[data-theme="light"] .hero .lead strong { color: var(--ink); }
html[data-theme="light"] .hero p { color: var(--body); }
html[data-theme="light"] .hero-tags span {
  color: var(--navy-700);
  background: rgba(255, 255, 255, .8);
  border-color: var(--line);
}
html[data-theme="light"] .hero-meta { border-top-color: var(--line); }
html[data-theme="light"] .hero-meta b { color: var(--ink); }
html[data-theme="light"] .hero-meta span { color: var(--muted); }

/* feature strip */
html[data-theme="light"] .hero-features {
  background: var(--line);
  border-top-color: var(--line);
}
html[data-theme="light"] .hero-feature {
  background: rgba(255, 255, 255, .82);
}
html[data-theme="light"] .hero-feature:hover { background: #ffffff; }
html[data-theme="light"] .hero-feature .ico {
  background: var(--bg-soft);
  border-color: var(--line);
}
html[data-theme="light"] .hero-feature:nth-child(1) .ico { border-color: rgba(0, 119, 168, .4); }
html[data-theme="light"] .hero-feature:nth-child(2) .ico { border-color: rgba(224, 87, 58, .4); }
html[data-theme="light"] .hero-feature:nth-child(3) .ico { border-color: rgba(5, 122, 92, .4); }
html[data-theme="light"] .hero-feature b { color: var(--ink); }
html[data-theme="light"] .hero-feature span { color: var(--muted); }

/* hero visual + ribbon */
html[data-theme="light"] .hero-visual .frame {
  background: linear-gradient(160deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .7));
  border-color: rgba(11, 32, 51, .12);
  box-shadow: 0 40px 80px -50px rgba(11, 32, 51, .7);
}
html[data-theme="light"] .hero-ribbon { opacity: .9; }
html[data-theme="light"] #rb1 stop:first-child { stop-color: #0091c7; }
html[data-theme="light"] #rb1 stop:last-child  { stop-color: #0b3f74; }
html[data-theme="light"] #rb2 stop:first-child { stop-color: #0bb489; }
html[data-theme="light"] #rb2 stop:last-child  { stop-color: #0077a8; }
html[data-theme="light"] #rb3 stop:first-child { stop-color: #e0573a; }
html[data-theme="light"] #rb3 stop:last-child  { stop-color: #e79a1e; }
html[data-theme="light"] .float-chip {
  background: rgba(255, 255, 255, .92);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 20px 38px -24px rgba(11, 32, 51, .7);
}

/* diagram inside hero uses light strokes on dark: flip to navy */
html[data-theme="light"] .hero-visual .frame svg .node {
  fill: rgba(255, 255, 255, .9);
  stroke: rgba(11, 32, 51, .3);
}
html[data-theme="light"] .hero-visual .frame svg .lbl { fill: #0e1b2a; }
html[data-theme="light"] .hero-visual .frame svg .sub { fill: #0077a8; }

/* ---------- Page hero ---------- */
html[data-theme="light"] .page-hero {
  background:
    radial-gradient(820px 400px at 88% 0%, rgba(0, 119, 168, .12), transparent 62%),
    radial-gradient(640px 380px at 4% 100%, rgba(224, 87, 58, .1), transparent 62%),
    linear-gradient(170deg, #ffffff, #f5f9fd 55%, #edf4fb);
  color: var(--body);
  border-bottom: 1px solid var(--line);
}
html[data-theme="light"] .page-hero h1 { color: var(--ink); }
html[data-theme="light"] .page-hero h1 .grad-text {
  background: linear-gradient(100deg, #e0573a, #e79a1e 45%, #059a72);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .page-hero p { color: var(--body); }
html[data-theme="light"] .breadcrumb { color: var(--cyan-deep); }
html[data-theme="light"] .breadcrumb a { color: var(--muted); }
html[data-theme="light"] .breadcrumb a:hover { color: var(--ink); }

/* ---------- Sections ---------- */
html[data-theme="light"] section.soft {
  background: linear-gradient(180deg, #f7fafd, #f2f6fb);
  border-block-color: var(--line-soft);
}
html[data-theme="light"] section.navy {
  background:
    radial-gradient(900px 480px at 8% 0%, rgba(0, 119, 168, .16), transparent 60%),
    radial-gradient(760px 460px at 96% 100%, rgba(224, 87, 58, .14), transparent 62%),
    linear-gradient(160deg, #071726, #0d2537 60%, #10314a);
}

/* ---------- Buttons ---------- */
html[data-theme="light"] .btn-dark {
  background: var(--navy-800);
  color: #fff;
  border-color: var(--navy-800);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-theme="light"] .btn-dark:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
html[data-theme="light"] .btn-primary { color: #12060a; }
html[data-theme="light"] .btn-ghost { color: var(--ink); border-color: var(--line); background: #fff; }
html[data-theme="light"] .btn-ghost:hover { color: var(--cyan-deep); border-color: var(--cyan-deep); background: rgba(0, 119, 168, .07); }
html[data-theme="light"] .btn-outline-light {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-theme="light"] .btn-outline-light::after { border-color: var(--line); }
html[data-theme="light"] .btn-outline-light:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
html[data-theme="light"] .btn-outline-light:hover::after { background: var(--grad-warm); color: #12060a; border-color: transparent; }

/* ---------- Cards & chips ---------- */
html[data-theme="light"] .card,
html[data-theme="light"] .project-card,
html[data-theme="light"] .tech-group,
html[data-theme="light"] .industry,
html[data-theme="light"] .why-item,
html[data-theme="light"] .client,
html[data-theme="light"] .case,
html[data-theme="light"] .arch-node,
html[data-theme="light"] .video-card {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-theme="light"] .card:hover,
html[data-theme="light"] .project-card:hover,
html[data-theme="light"] .tech-group:hover,
html[data-theme="light"] .industry:hover,
html[data-theme="light"] .why-item:hover,
html[data-theme="light"] .client:hover,
html[data-theme="light"] .arch-node:hover { background: #fbfdff; }
html[data-theme="light"] .cap-list li,
html[data-theme="light"] .tech-chips li {
  color: var(--navy-700);
  background: var(--bg-soft);
  border-color: var(--line);
}
html[data-theme="light"] .tech-chips li:hover { background: #fff; color: var(--cyan-deep); border-color: var(--cyan-deep); }
html[data-theme="light"] .tag { background: var(--bg-soft); color: var(--navy-700); border-color: var(--line); }
html[data-theme="light"] .tag.alt  { background: rgba(0, 119, 168, .08); border-color: rgba(0, 119, 168, .3); color: var(--cyan-deep); }
html[data-theme="light"] .tag.good { background: rgba(5, 122, 92, .09); border-color: rgba(5, 122, 92, .3); color: var(--mint-deep); }
html[data-theme="light"] .tag.warm { background: rgba(224, 87, 58, .08); border-color: rgba(224, 87, 58, .3); color: var(--coral-deep); }
html[data-theme="light"] .badge { background: rgba(0, 119, 168, .08); border-color: rgba(0, 119, 168, .32); color: var(--cyan-deep); }
html[data-theme="light"] .badge.warm { background: rgba(224, 87, 58, .08); border-color: rgba(224, 87, 58, .34); color: var(--coral-deep); }
html[data-theme="light"] .badge.mint { background: rgba(5, 122, 92, .08); border-color: rgba(5, 122, 92, .34); color: var(--mint-deep); }
html[data-theme="light"] .callout { background: linear-gradient(140deg, rgba(0, 119, 168, .06), rgba(224, 87, 58, .06)); border-color: var(--line); border-left-color: var(--amber); }
html[data-theme="light"] .disclaimer { background: var(--bg-soft); border-color: var(--line); color: var(--muted); }
html[data-theme="light"] .disclaimer strong { color: var(--ink); }
html[data-theme="light"] .stats { background: #fff; }

/* ---------- Filters ---------- */
html[data-theme="light"] .filter-btn { background: #fff; color: var(--body); border-color: var(--line); }
html[data-theme="light"] .filter-btn:hover { color: var(--cyan-deep); border-color: var(--cyan-deep); }
html[data-theme="light"] .filter-btn.active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* ---------- Timeline ---------- */
html[data-theme="light"] .step .dot { background: #fff; border-color: var(--line); color: var(--cyan-deep); }

/* ---------- Video cards ---------- */
html[data-theme="light"] .video-thumb { background: var(--navy-900); }
html[data-theme="light"] .video-platform { background: rgba(7, 23, 38, .8); }
html[data-theme="light"] .play-pill { background: rgba(255, 255, 255, .96); box-shadow: 0 14px 30px -14px rgba(11, 32, 51, .8); }
html[data-theme="light"] .play-pill svg { fill: var(--navy-900); }

/* ---------- Modal ---------- */
html[data-theme="light"] .modal { background: rgba(9, 17, 28, .55); }
html[data-theme="light"] .modal-panel { background: #fff; border-color: var(--line); }
html[data-theme="light"] .modal-close { background: rgba(7, 23, 38, .75); color: #fff; }
html[data-theme="light"] .modal-body p { color: var(--body); }
html[data-theme="light"] .modal-body ul.bullets li { color: var(--body); }
html[data-theme="light"] .modal-links a { color: var(--cyan-deep); border-color: var(--line); }
html[data-theme="light"] .modal-links a:hover { border-color: var(--cyan-deep); background: rgba(0, 119, 168, .08); }
html[data-theme="light"] .modal-video { background: var(--navy-900); }

/* ---------- Forms ---------- */
html[data-theme="light"] .form-card {
  background: #fff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-theme="light"] .field input,
html[data-theme="light"] .field select,
html[data-theme="light"] .field textarea {
  background: var(--bg-soft);
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="light"] .field input::placeholder,
html[data-theme="light"] .field textarea::placeholder { color: #94a3b8; }
html[data-theme="light"] .field input:focus,
html[data-theme="light"] .field select:focus,
html[data-theme="light"] .field textarea:focus {
  background: #fff;
  border-color: var(--cyan-deep);
  box-shadow: 0 0 0 4px rgba(0, 119, 168, .16);
}
html[data-theme="light"] .field.invalid input,
html[data-theme="light"] .field.invalid select,
html[data-theme="light"] .field.invalid textarea {
  border-color: var(--coral-deep);
  background: rgba(224, 87, 58, .06);
}
html[data-theme="light"] .field select option { background: #fff; color: var(--ink); }
html[data-theme="light"] .form-status {
  background: rgba(5, 122, 92, .09);
  border-color: rgba(5, 122, 92, .35);
  color: var(--mint-deep);
}

/* ---------- Back to top ---------- */
html[data-theme="light"] .to-top {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
html[data-theme="light"] .to-top:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }

/* Note: hero diagram frame, CTA band, case-study heads, page-hero
   accents, footer and section.navy stay dark in both themes by
   design — they are the brand's dark bands. */

/* =========================================================
   MOBILE VIDEO PORTFOLIO — phone-framed cards + screen gallery
   ========================================================= */
.video-stage {
  position: relative;
  padding: 24px 18px 18px;
  background:
    radial-gradient(240px 160px at 80% 0%, rgba(0, 204, 252, .22), transparent 70%),
    radial-gradient(220px 150px at 10% 100%, rgba(252, 120, 84, .2), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border-bottom: 1px solid var(--line);
  transition: background .3s ease;
}
html[data-theme="light"] .video-stage {
  background:
    radial-gradient(240px 160px at 80% 0%, rgba(0, 119, 168, .14), transparent 70%),
    radial-gradient(220px 150px at 10% 100%, rgba(224, 87, 58, .12), transparent 70%),
    linear-gradient(160deg, #f5f9fd, #eef4fa);
}

.phone {
  position: relative;
  width: min(76%, 178px);
  margin: 0 auto;
  padding: 9px 7px 11px;
  border-radius: 26px;
  background: linear-gradient(160deg, #22303f 0%, #0d1622 55%, #16222f 100%);
  box-shadow:
    0 30px 55px -28px rgba(0, 0, 0, .95),
    inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: transform .35s cubic-bezier(.2, .8, .3, 1), box-shadow .35s ease;
}
.video-card:hover .phone {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 40px 65px -30px rgba(0, 0, 0, 1), inset 0 0 0 1px rgba(0, 204, 252, .5);
}
.phone-notch {
  position: absolute;
  top: 3px; left: 50%;
  transform: translateX(-50%);
  width: 42%; height: 6px;
  border-radius: 0 0 7px 7px;
  background: #060c14;
  z-index: 4;
}

.video-thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: #04080f;
}
.video-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(4, 8, 15, .6) 0%, rgba(4, 8, 15, 0) 32%, rgba(4, 8, 15, 0) 58%, rgba(4, 8, 15, .78) 100%);
  pointer-events: none;
}
.video-duration {
  position: absolute;
  top: 12px; right: 10px;
  z-index: 3;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .06em;
  color: #fff;
  background: rgba(5, 10, 18, .72);
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 4px 8px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.video-thumb .video-platform { top: 12px; left: 10px; z-index: 3; }

.video-card .play-pill {
  width: 52px; height: 52px;
  z-index: 3;
  opacity: .96;
}
.video-card:hover .play-pill { transform: translate(-50%, -50%) scale(1.12); }

.screen-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.screen-row img {
  width: 26px; height: auto;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .9);
  opacity: .85;
  transition: transform .3s ease, opacity .3s ease;
}
.video-card:hover .screen-row img { opacity: 1; transform: translateY(-3px); }
html[data-theme="light"] .screen-row img { border-color: rgba(11, 32, 51, .25); }

.video-meta { padding: 18px 18px 22px; display: grid; gap: 9px; }
.video-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.video-cat {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral-deep);
  background: rgba(252, 120, 84, .1);
  border: 1px solid rgba(252, 120, 84, .32);
  padding: 4px 9px;
  border-radius: 999px;
}
.video-len {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .05em;
  color: var(--muted);
  white-space: nowrap;
}
.video-meta b { color: var(--ink); font-size: 1.06rem; letter-spacing: -.012em; }
.video-meta p { margin: 0; font-size: .87rem; color: var(--body); }
.video-meta .learn-more { margin-top: 4px; font-size: .85rem; }

/* ---------- App detail modal ---------- */
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.fact-grid > div {
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
html[data-theme="light"] .fact-grid > div { background: var(--bg-soft); border-color: var(--line); }
.fact-grid dt {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 6px;
}
.fact-grid dd { margin: 0; font-size: .92rem; color: var(--ink); font-weight: 600; }

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.screen-gallery figure { margin: 0; }
.screen-gallery img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #04080f;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.screen-gallery img:hover { transform: translateY(-5px) scale(1.015); box-shadow: var(--shadow-lg); }

.modal-note {
  font-size: .86rem;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  border: 1px dashed var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
html[data-theme="light"] .modal-note { background: var(--bg-soft); }

@media (max-width: 768px) {
  .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 480px) {
  .fact-grid { grid-template-columns: minmax(0, 1fr); }
  .phone { width: min(70%, 168px); }
}

