/* Universally Thinking — modern agency redesign */
:root {
  --navy: #06101c;
  --navy-2: #0b1a2c;
  --navy-3: #122438;
  --ink: #e8eef6;
  --muted: #8fa3bb;
  --line: rgba(232, 238, 246, 0.12);
  --cyan: #1ec8ff;
  --cyan-2: #5ad8ff;
  --accent: #ff6a3d;
  --ok: #3dd68c;
  --danger: #ff6b6b;
  --card: rgba(18, 36, 56, 0.72);
  --chrome: rgba(6, 16, 28, 0.82);
  --chrome-solid: rgba(6, 16, 28, 0.96);
  --heading: #ffffff;
  --ghost-border: rgba(255, 255, 255, 0.28);
  --ghost-fg: #ffffff;
  --surface: #0f1a28;
  --surface-2: #111a28;
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.4);
  --theme-meta: #06101c;
  --radius: 4px;
  --font-display: "Outfit", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1180px;
  --nav-h: 72px;
  color-scheme: dark;
}

html[data-theme="light"] {
  --navy: #f3f6fa;
  --navy-2: #e8eef5;
  --navy-3: #dde6f0;
  --ink: #122033;
  --muted: #5c6d82;
  --line: rgba(18, 32, 51, 0.12);
  --cyan: #0a9fd4;
  --cyan-2: #0789b8;
  --accent: #e4572e;
  --card: rgba(255, 255, 255, 0.92);
  --chrome: rgba(255, 255, 255, 0.92);
  --chrome-solid: #ffffff;
  --heading: #122033;
  --ghost-border: rgba(18, 32, 51, 0.18);
  --ghost-fg: #122033;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --shadow-lg: 0 20px 48px rgba(18, 32, 51, 0.12);
  --theme-meta: #f3f6fa;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body, * { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }

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

img { max-width: 100%; display: block; }
a { color: var(--cyan-2); text-decoration: none; }
a:hover { color: var(--heading); }
button, input, textarea, select { font: inherit; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: #fff;
  color: #111;
  padding: 8px 12px;
}

.wrap {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* ——— Nav ——— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100% - 40px, var(--max));
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.nav-tools-start {
  margin-right: 4px;
  order: 0;
}
.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  opacity: 0.82;
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-links a:hover { color: var(--heading); opacity: 1; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: 1px solid var(--ghost-border);
  border-radius: var(--radius);
  color: var(--ghost-fg) !important;
  opacity: 1 !important;
  font-weight: 700;
  font-size: 0.88rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-cta:hover {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border-color: var(--heading);
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--ghost-border);
  background: transparent;
  color: var(--ghost-fg);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover {
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  border-color: var(--heading);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }
.nav-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ghost-fg);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ghost-fg);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; }
  .nav-tools-start { order: 0; }
  .nav-brand { order: 1; margin-right: 0; flex: 1 1 auto; min-width: 0; }
  .nav-tools { order: 2; margin-left: 0; }
  .nav-links {
    order: 3;
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: var(--chrome-solid);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease;
  }
  body.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }
  .nav-cta { margin-top: 10px; justify-content: center; }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--cyan);
  color: #041018;
}
.btn-primary:hover { background: var(--cyan-2); color: #041018; }
.btn-ghost {
  background: #081a31;
  border-color: var(--ghost-border);
  color: var(--ghost-fg);
}
.btn-ghost:hover {
  border-color: var(--heading);
  color: var(--heading);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
}
.hero-tiles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-tile {
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 64px;
  background: url("/mainsite/assets/images/ut.webp") center / cover no-repeat;
  opacity: 0.72;
  will-change: transform;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease;
}
.hero-tile.is-settling {
  opacity: 0.35;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(30, 200, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(255, 106, 61, 0.12), transparent 50%),
    linear-gradient(165deg, rgba(6, 16, 28, 0.92) 0%, rgba(10, 28, 50, 0.88) 45%, rgba(7, 20, 34, 0.95) 100%);
  z-index: -2;
  animation: heroGlow 12s ease-in-out infinite alternate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  z-index: -1;
}
@keyframes heroGlow {
  from { filter: saturate(1); }
  to { filter: saturate(1.15) brightness(1.05); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 40px;
  max-width: 820px;
}
.hero-stats {
  position: relative;
  z-index: 2;
  width: 85%;
  padding-bottom: 28px;
}
.hero-brand {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--heading);
  animation: riseIn 0.8s ease both;
}
.hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
  max-width: 36ch;
  animation: riseIn 0.8s ease 0.08s both;
}
.hero-lead {
  margin: 0 0 28px;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 46ch;
  animation: riseIn 0.8s ease 0.16s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
  animation: riseIn 0.8s ease 0.24s both;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  animation: riseIn 0.8s ease 0.32s both;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  background: rgb(14 32 50);
}
.trust-pill em {
  font-style: normal;
  color: var(--cyan-2);
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ——— Sections ——— */
.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}
.section-muted { background: rgba(255, 255, 255, 0.015); }

/* Section color bands — alternate surfaces so each block reads clearly */
#method {
  background:
    radial-gradient(ellipse 70% 55% at 0% 0%, rgba(30, 200, 255, 0.16), transparent 55%),
    linear-gradient(180deg, rgba(10, 28, 46, 0.85), rgba(6, 16, 28, 0.35));
}
#software {
  background:
    radial-gradient(ellipse 60% 50% at 100% 10%, rgba(255, 106, 61, 0.16), transparent 50%),
    linear-gradient(180deg, rgba(28, 14, 10, 0.55), rgba(255, 255, 255, 0.02));
}
#past {
  background:
    radial-gradient(ellipse 55% 45% at 15% 100%, rgba(61, 214, 140, 0.14), transparent 50%),
    linear-gradient(180deg, rgba(8, 22, 28, 0.7), rgba(6, 16, 28, 0.2));
}
#services {
  background:
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(122, 162, 255, 0.18), transparent 55%),
    linear-gradient(180deg, rgba(12, 16, 36, 0.55), rgba(255, 255, 255, 0.02));
}
#mvp {
  background:
    radial-gradient(ellipse 65% 50% at 50% 0%, rgba(30, 200, 255, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(10, 30, 48, 0.65), rgba(6, 16, 28, 0.25));
}
#clients {
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(255, 106, 61, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(26, 14, 12, 0.5), rgba(255, 255, 255, 0.015));
}
#reviews {
  background:
    radial-gradient(ellipse 50% 45% at 0% 50%, rgba(61, 214, 140, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(8, 24, 30, 0.7), rgba(6, 16, 28, 0.2));
}
#contact {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(30, 200, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 40% 40% at 0% 100%, rgba(255, 106, 61, 0.12), transparent 50%),
    linear-gradient(180deg, rgba(10, 24, 40, 0.6), rgba(255, 255, 255, 0.02));
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}
.section-kicker {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.section-head h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.8vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--heading);
  font-stretch: normal;
  transform: none;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ——— Stats ——— */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}
.stat-card {
  padding: 22px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}
.stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--heading);
  margin-bottom: 4px;
}
.stat-card span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .hero-inner { padding: 56px 0 28px; }
  .hero-stats { padding-bottom: 22px; }
}

/* ——— Method ——— */
.method-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}
.method-card {
  padding: 26px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
  min-height: 100%;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.method-card:hover {
  border-color: rgba(30, 200, 255, 0.45);
  transform: translateY(-3px);
}
.method-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-body);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--heading);
}
.method-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.method-note {
  display: block;
  margin-top: 12px;
  font-size: 0.82rem;
  color: rgba(143, 163, 187, 0.9);
}
.method-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  padding: 0 2px;
  animation: arrowPulse 2.4s ease-in-out infinite;
}
.method-card-impact {
  border-color: rgba(30, 200, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(30, 200, 255, 0.08), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}
@keyframes arrowPulse {
  0%, 100% { transform: translateX(0); opacity: 0.75; }
  50% { transform: translateX(4px); opacity: 1; }
}
/* Side-by-side until it no longer fits, then fully stacked — never a 2-col gap */
@media (max-width: 900px) {
  .method-row {
    grid-template-columns: 1fr;
  }
  .method-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
    animation: arrowPulseDown 2.4s ease-in-out infinite;
  }
}
@keyframes arrowPulseDown {
  0%, 100% { transform: rotate(90deg) translateX(0); opacity: 0.75; }
  50% { transform: rotate(90deg) translateX(4px); opacity: 1; }
}

.visual-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(30, 200, 255, 0.1), transparent 35%, transparent 65%, rgba(255, 106, 61, 0.1));
}
.visual-band-cell {
  position: relative;
  min-height: 0;
  overflow: hidden;
}
.visual-band-cell img {
  display: block;
  width: 100%;
  filter: saturate(0.85) brightness(0.75);
}
/* UT image defines band height and stays fully visible */
.visual-band-cell-main img {
  height: auto;
  filter: saturate(0.95) brightness(0.92);
}
/* Side images fill that height and clip */
.visual-band-cell:not(.visual-band-cell-main) img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 520px) {
  .visual-band { grid-template-columns: 1fr; }
  .visual-band-cell:not(.visual-band-cell-main) {
    height: 160px;
  }
}

/* ——— Products / track record ——— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.product-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(30, 200, 255, 0.08), transparent 40%),
    var(--card);
}
.product-card-full {
  grid-column: 1 / -1;
}
.product-card-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a1522;
}
.product-card-media img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
}
.product-card.featured .product-card-media {
  background: transparent;
  border: none;
}
.product-card.featured .product-card-media img {
  object-fit: contain;
  background: transparent;
  padding: 8px;
  min-height: 180px;
}
.product-card-media.tall {
  margin: -28px -28px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  max-height: 220px;
}
.product-card-media.tall img {
  min-height: 220px;
  max-height: 220px;
  object-position: center;
}
.product-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--heading);
}
.product-meta {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan);
}
.product-card p {
  margin: 0 0 14px;
  color: var(--muted);
}
.product-list-intro {
  margin: 0 0 18px !important;
}
.app-desc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.app-desc-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.app-desc-list li:first-child { border-top: none; padding-top: 0; }
.app-desc-list-text {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.app-desc-list-text li {
  grid-template-columns: minmax(0, 1fr);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--line);
  height: 100%;
}
.app-desc-list-text li:first-child {
  padding-top: 16px;
}
@media (max-width: 900px) {
  .app-desc-list-text {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .app-desc-list-text {
    grid-template-columns: 1fr;
  }
}
.app-desc-list img,
.enterprise-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #111a28;
  border: 1px solid var(--line);
}
.enterprise-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--cyan-2);
  background: rgba(30, 200, 255, 0.08);
}
.app-desc-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--heading);
  font-size: 0.98rem;
}
.app-desc-list span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.metric {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}
.metric b { color: var(--cyan-2); }
@media (max-width: 700px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card.featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

/* ——— Tech stack ——— */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.stack-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.stack-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--heading);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}
@media (max-width: 800px) {
  .stack-grid { grid-template-columns: 1fr; }
}

/* ——— Concepts ——— */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.concept-card {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease;
  overflow: hidden;
}
.concept-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
}
.concept-thumb {
  height: 150px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #0f1a28;
}
.concept-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) brightness(0.95);
  transition: transform 0.35s ease;
}
.concept-card:hover .concept-thumb img {
  transform: scale(1.04);
}
.concept-card h3 {
  margin: 0;
  padding: 16px 16px 8px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--heading);
}
.concept-card p {
  margin: 0;
  padding: 0 16px 18px;
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 980px) {
  .concept-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .concept-grid { grid-template-columns: 1fr; }
}

/* ——— Services ——— */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.service-card {
  text-align: left;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 200, 255, 0.5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.service-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--heading);
}
.service-card p {
  margin: 0;
  color: var(--muted);
}
.service-card .more {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
}
@media (max-width: 700px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ——— MVP ——— */
.mvp-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 28px;
  align-items: start;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(30, 200, 255, 0.08), transparent 45%),
    var(--card);
}
.mvp-panel h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--heading);
}
.mvp-panel p { color: var(--muted); }
.mvp-price {
  display: inline-block;
  margin: 8px 0 16px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan-2);
}
.mvp-form label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
}
.mvp-form input {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
}
.mvp-form .btn { width: 100%; margin-top: 8px; }
.form-msg {
  margin-top: 10px;
  font-size: 0.9rem;
  display: none;
}
@media (max-width: 800px) {
  .mvp-panel { grid-template-columns: 1fr; padding: 22px; }
}

/* ——— Clients ——— */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.client-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 120px;
  padding: 22px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.client-logo:hover {
  border-color: rgba(30, 200, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  color: var(--heading);
}
.client-logo img {
  width: auto;
  max-width: 140px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.client-logo img.client-logo-color {
  filter: none;
  border-radius: 8px;
}
.client-logo-text span {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--heading);
}
.client-logo span {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--muted);
}
@media (max-width: 900px) {
  .clients-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ——— Reviews ——— */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.review-card {
  margin: 0;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.review-stars {
  color: var(--cyan-2);
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.review-card p {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
  flex: 1;
}
.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.review-card strong {
  color: var(--heading);
  font-size: 0.95rem;
}
.review-card footer span {
  color: var(--muted);
  font-size: 0.85rem;
}
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ——— Apps (legacy / myapps) ——— */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.app-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-card img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  background: #111;
}
.app-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--heading);
}
.app-card p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .app-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .app-grid { grid-template-columns: 1fr; }
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.contact-card,
.contact-form-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.contact-card h3,
.contact-form-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--heading);
}
.contact-card p { color: var(--muted); }
.founder {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 20px 0;
}
.founder img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.founder strong { display: block; color: var(--heading); }
.founder span { color: var(--muted); font-size: 0.9rem; }
.map-frame {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0a1522;
}
.map-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-form-card label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.88rem;
  font-weight: 650;
}
.contact-form-card input,
.contact-form-card textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
}
.contact-form-card textarea { min-height: 120px; resize: vertical; }
.captcha-container { margin: 12px 0; }
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  background: #040b14;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.footer-grid h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--heading);
}
.footer-grid p,
.footer-grid a {
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-grid a { display: block; margin-bottom: 8px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.75); display: inline; margin: 0; }
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ——— Modals ——— */
.app-modal,
.service-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  padding: 20px;
}
.app-modal-content,
.service-modal-content {
  background: #0f1c2c;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.app-modal-header,
.service-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 12px;
  border-bottom: 1px solid var(--line);
}
.app-modal-header h2,
.service-modal-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--heading);
}
.app-modal-close,
.service-modal-close {
  font-size: 28px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.app-modal-body,
.service-modal-body { padding: 20px 24px 28px; }
.app-modal-description,
.service-modal-description {
  color: var(--muted);
  margin-bottom: 16px;
}
.service-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.service-features-list li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.service-features-list li:last-child { border-bottom: none; }
.service-features-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 1.3rem;
  line-height: 1.1;
}
.app-icons-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.app-icon-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.app-icon-item img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin-bottom: 10px;
}
.app-icon-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--heading);
}
.app-icon-item p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
}
.app-download-btn,
.app-modal-footer button {
  background: #0d4f86;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
}
.app-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 24px 22px;
  border-top: 1px solid var(--line);
}
@media (max-width: 600px) {
  .app-icons-container { grid-template-columns: 1fr; }
}

/* Floating actions */
.floating-actions {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2001;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  color: #fff !important;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.floating-btn-ideas {
  background: #0d4f86;
}
.floating-btn-ideas:hover { background: #1467a8; transform: translateY(-1px); }
.floating-btn-top {
  background: rgba(15, 28, 44, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.floating-btn-top:hover { background: #1a2d44; transform: translateY(-1px); }
.floating-btn-top[hidden] {
  display: none !important;
}

/* Ideas community popover */
.ideas-community-popover {
  position: fixed;
  top: calc(var(--nav-h) + 16px);
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: auto;
  z-index: 2000;
  width: min(360px, calc(100vw - 32px));
  padding: 22px;
  border-radius: 8px;
  background: #0f1c2c;
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
}
.ideas-community-popover[hidden] { display: none !important; }
.ideas-community-popover__close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}
.ideas-community-popover__eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}
.ideas-community-popover__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--heading);
}
.ideas-community-popover__copy {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
}
.ideas-community-popover__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ideas-community-popover__cta {
  display: inline-flex;
  padding: 10px 14px;
  background: var(--cyan);
  color: #041018 !important;
  font-weight: 700;
  border-radius: var(--radius);
}
.ideas-community-popover__dismiss {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 650;
}

/* Page variants (myapps) */
.page-hero {
  padding: 72px 0 40px;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(30, 200, 255, 0.14), transparent 55%),
    var(--navy);
}
.page-hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  color: var(--heading);
}
.page-hero p { color: var(--muted); max-width: 54ch; }


/* ——— Light theme surface overrides ——— */
html[data-theme="light"] .btn-ghost {
  background: #edf3f8;
}
html[data-theme="light"] .hero-tile { opacity: 0.58; }
html[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(10, 159, 212, 0.2), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(228, 87, 46, 0.12), transparent 50%),
    linear-gradient(165deg, rgba(243, 246, 250, 0.72) 0%, rgba(232, 238, 245, 0.62) 45%, rgba(243, 246, 250, 0.8) 100%);
}
html[data-theme="light"] .hero::after {
  background-image:
    linear-gradient(rgba(18, 32, 51, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 32, 51, 0.08) 1px, transparent 1px);
}
html[data-theme="light"] .section-title,
html[data-theme="light"] .section-head h2,
html[data-theme="light"] .section h2,
html[data-theme="light"] .app-card h3,
html[data-theme="light"] .hero-lead,
html[data-theme="light"] .method-card h3,
html[data-theme="light"] .service-card h3,
html[data-theme="light"] .software-card h3,
html[data-theme="light"] .past-card h3,
html[data-theme="light"] .client-card h3,
html[data-theme="light"] .mvp-panel h3,
html[data-theme="light"] .contact-card h3,
html[data-theme="light"] .founder strong,
html[data-theme="light"] .page-hero h1,
html[data-theme="light"] .ideas-community-popover__title,
html[data-theme="light"] .service-modal-header h3,
html[data-theme="light"] .app-modal-header h3 {
  color: var(--heading);
}
html[data-theme="light"] .section-muted { background: rgba(18, 32, 51, 0.025); }
html[data-theme="light"] #method {
  background:
    radial-gradient(ellipse 70% 55% at 0% 0%, rgba(10, 159, 212, 0.1), transparent 55%),
    linear-gradient(180deg, #eef3f7, #f3f6fa);
}
html[data-theme="light"] #software {
  background:
    radial-gradient(ellipse 60% 50% at 100% 10%, rgba(10, 159, 212, 0.06), transparent 50%),
    linear-gradient(180deg, #f5f7fa, #f3f6fa);
}
html[data-theme="light"] #past {
  background:
    radial-gradient(ellipse 55% 45% at 15% 100%, rgba(70, 110, 160, 0.08), transparent 50%),
    linear-gradient(180deg, #eef2f6, #f3f6fa);
}
html[data-theme="light"] #services {
  background:
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(70, 110, 200, 0.08), transparent 55%),
    linear-gradient(180deg, #f4f6fa, #f3f6fa);
}
html[data-theme="light"] #mvp {
  background:
    radial-gradient(ellipse 65% 50% at 50% 0%, rgba(10, 159, 212, 0.09), transparent 60%),
    linear-gradient(180deg, #eef3f7, #f3f6fa);
}
html[data-theme="light"] #clients {
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(70, 110, 160, 0.07), transparent 55%),
    linear-gradient(180deg, #f2f5f8, #f3f6fa);
}
html[data-theme="light"] #reviews {
  background:
    radial-gradient(ellipse 50% 45% at 0% 50%, rgba(10, 159, 212, 0.07), transparent 50%),
    linear-gradient(180deg, #eef3f7, #f3f6fa);
}
html[data-theme="light"] #contact {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(10, 159, 212, 0.1), transparent 55%),
    radial-gradient(ellipse 40% 40% at 0% 100%, rgba(70, 110, 160, 0.06), transparent 50%),
    linear-gradient(180deg, #eef3f7, #f3f6fa);
}
html[data-theme="light"] .visual-band {
  background:
    linear-gradient(90deg, rgba(10, 159, 212, 0.06), transparent 40%, rgba(70, 110, 160, 0.06));
}
html[data-theme="light"] .chip,
html[data-theme="light"] .stack-chip,
html[data-theme="light"] .tag {
  color: var(--ink);
  background: rgba(18, 32, 51, 0.05);
  border-color: var(--line);
}
html[data-theme="light"] .software-card,
html[data-theme="light"] .service-card,
html[data-theme="light"] .method-card,
html[data-theme="light"] .past-card,
html[data-theme="light"] .concept-card,
html[data-theme="light"] .mvp-panel,
html[data-theme="light"] .contact-card,
html[data-theme="light"] .clients-strip,
html[data-theme="light"] .client-logo,
html[data-theme="light"] .review-card,
html[data-theme="light"] .site-footer {
  background: var(--surface);
  color: var(--ink);
}
html[data-theme="light"] .client-logo img:not(.client-logo-color) {
  filter: brightness(0);
  opacity: 0.78;
}
html[data-theme="light"] .client-logo:hover {
  background: var(--surface-2);
  border-color: rgba(10, 159, 212, 0.4);
}
html[data-theme="light"] .mvp-form input,
html[data-theme="light"] .contact-form-card input,
html[data-theme="light"] .contact-form-card textarea {
  background: #fff;
  color: var(--ink);
}
html[data-theme="light"] .metric {
  background: rgba(18, 32, 51, 0.05);
  color: var(--ink);
}
html[data-theme="light"] .site-footer,
html[data-theme="light"] .site-footer a {
  color: var(--ink);
}
html[data-theme="light"] .ideas-community-popover {
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
html[data-theme="light"] .ideas-community-popover__dismiss {
  color: var(--ink);
}
html[data-theme="light"] .floating-btn-top {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--line);
  color: var(--ink) !important;
}
html[data-theme="light"] .floating-btn-top:hover { background: #fff; }
html[data-theme="light"] .service-modal,
html[data-theme="light"] .app-modal {
  background: rgba(18, 32, 51, 0.35);
}
html[data-theme="light"] .service-modal-dialog,
html[data-theme="light"] .app-modal-dialog {
  background: var(--surface);
  color: var(--ink);
}
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

html[data-theme="light"] .trust-pill,
html[data-theme="light"] .stat-card,
html[data-theme="light"] .hero-trust .trust-pill,
html[data-theme="light"] .stack-list li,
html[data-theme="light"] .client-logo-wrap,
html[data-theme="light"] .past-card,
html[data-theme="light"] .app-card {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}
html[data-theme="light"] .stat-card strong,
html[data-theme="light"] .trust-pill em {
  color: var(--heading);
}
html[data-theme="light"] a:hover { color: var(--cyan); }
