* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f7f7f9;
  --surface: #ffffff;
  --text: #1b1d22;
  --muted: #5b6477;
  --muted-strong: #3f4a60;
  --border: #e5e6ea;
  --border-strong: #cad1e1;
  --primary: #2a56f4;
  --primary-contrast: #ffffff;
  --accent: #2a56f4;
  --accent-soft: #eef1ff;
  --eyebrow: #4b5b7b;
  --shadow: rgba(27, 29, 34, 0.08);
  --hero-glow: rgba(42, 86, 244, 0.08);
  --logo-color: #1a2d8f;
  --cta-bg: #1b1d22;
  --cta-text: #ffffff;
  --cta-button-bg: #ffffff;
  --cta-button-text: #1b1d22;
  --footer-bg: #0f1116;
  --footer-text: #d6d9e0;
  --footer-muted: #8f97a8;
}

body[data-theme="onyx"] {
  --bg: #0f1116;
  --surface: #161a22;
  --text: #f5f6f8;
  --muted: #a6adbb;
  --muted-strong: #c8ccd6;
  --border: #2a2f3a;
  --border-strong: #3b4250;
  --primary: #f4c430;
  --primary-contrast: #13161c;
  --accent: #f4c430;
  --accent-soft: #2b2f38;
  --eyebrow: #f2d56b;
  --shadow: rgba(0, 0, 0, 0.4);
  --hero-glow: rgba(244, 196, 48, 0.12);
  --logo-color: #f4c430;
  --cta-bg: #f4c430;
  --cta-text: #12151b;
  --cta-button-bg: #12151b;
  --cta-button-text: #f4c430;
  --footer-bg: #0b0d12;
  --footer-text: #e3e5ea;
  --footer-muted: #9aa3b2;
}

body[data-theme="nebula"] {
  --bg: #f0f4f8;
  --surface: #ffffff;
  --text: #101828;
  --muted: #475467;
  --muted-strong: #2f3a4a;
  --border: #d1d9e6;
  --border-strong: #b8c5d6;
  --primary: #2b4cff;
  --primary-contrast: #ffffff;
  --accent: #5b7cff;
  --accent-soft: #e2e8f0;
  --eyebrow: #475467;
  --shadow: rgba(16, 24, 40, 0.08);
  --hero-glow: rgba(43, 76, 255, 0.08);
  --logo-color: #2b4cff;
  --cta-bg: #0b1f3a;
  --cta-text: #f8fafc;
  --cta-button-bg: #ffffff;
  --cta-button-text: #0b1f3a;
  --footer-bg: #0a1427;
  --footer-text: #e4e7ec;
  --footer-muted: #98a2b3;
}

body[data-theme="aurora"] {
  --bg: #f4f7f6;
  --surface: #ffffff;
  --text: #1a2a2f;
  --muted: #51646c;
  --muted-strong: #3d4f57;
  --border: #d7e2df;
  --border-strong: #c3d2cd;
  --primary: #1f8a70;
  --primary-contrast: #ffffff;
  --accent: #2c6a7a;
  --accent-soft: #e0f0ec;
  --eyebrow: #2c6a7a;
  --shadow: rgba(18, 38, 43, 0.12);
  --hero-glow: rgba(31, 138, 112, 0.12);
  --logo-color: #1f8a70;
  --cta-bg: #183a40;
  --cta-text: #ffffff;
  --cta-button-bg: #ffffff;
  --cta-button-text: #183a40;
  --footer-bg: #12262b;
  --footer-text: #dce7e3;
  --footer-muted: #9bb0aa;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  transition: background 0.35s ease, color 0.35s ease;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--eyebrow);
  margin-bottom: 0.75rem;
}

.site-header {
  background: #dbe9f2;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(16, 24, 40, 0.05);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 6px;
  background: linear-gradient(180deg, rgba(219, 233, 242, 0.9) 0%, rgba(230, 230, 250, 0.4) 100%);
  pointer-events: none;
  z-index: -1;
}

.header-content {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  padding: 0.9rem 0;
  column-gap: 1.15rem;
  min-height: 64px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-logo-img {
  height: 46px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.brand-logo-img:hover {
  transform: translateY(-2px);
}

.footer-logo-img {
  height: 54px;
  margin-bottom: 0.75rem;
}

.site-nav {
  display: flex;
  gap: 1.2rem;
  font-weight: 600;
  color: #101828;
  font-size: 0.95rem;
  justify-self: end;
  white-space: nowrap;
  min-width: 0;
}

.site-nav a {
  position: relative;
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex-direction: column;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.primary-button {
  background: var(--primary);
  color: var(--primary-contrast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.site-header .primary-button {
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  white-space: nowrap;
  justify-self: end;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease,
    color 0.25s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.theme-toggle.is-active {
  background: #12151b;
  color: #f4c430;
  border-color: #2f3744;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  display: block;
}

.ghost-button {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.ghost-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.delay-1 {
  transition-delay: 0.05s;
}

.delay-2 {
  transition-delay: 0.1s;
}

.delay-3 {
  transition-delay: 0.15s;
}

.delay-4 {
  transition-delay: 0.2s;
}

.hero {
  padding: 3.75rem 0 2.75rem;
  background: linear-gradient(180deg, var(--hero-glow), rgba(0, 0, 0, 0));
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-margin-top: 64px;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.92fr);
  gap: 1.35rem;
  align-items: start;
  position: relative;
  z-index: 2;
}

.hero-copy {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.hero h1 {
  font-size: clamp(2.5rem, 3.6vw, 4rem);
  line-height: 1.06;
}

.subhead {
  font-size: 1.05rem;
  color: var(--muted-strong);
  margin-bottom: 0;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.15rem;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.hero-proof-item {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.08);
}

.hero-proof-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.hero-proof-label {
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--muted-strong);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  color: var(--muted-strong);
}

.metric {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.hero-visual {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.hero-support {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.hero-showcase {
  position: relative;
  min-height: 320px;
  border-radius: 28px;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 28px 60px rgba(16, 24, 40, 0.12);
  overflow: hidden;
}

.hero-showcase::before {
  content: "";
  position: absolute;
  inset: auto -20% -25% auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(91, 124, 255, 0.18), rgba(91, 124, 255, 0));
}

.hero-showcase-main {
  position: relative;
  z-index: 1;
  width: min(100%, 385px);
  margin-left: auto;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 22px 48px rgba(16, 24, 40, 0.16);
}

.hero-showcase-image {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.zoomable-image {
  cursor: zoom-in;
}

.zoomable-image:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}

.hero-floating-card {
  position: absolute;
  left: 1rem;
  bottom: 1.15rem;
  z-index: 2;
  width: min(72%, 260px);
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.14);
  backdrop-filter: blur(10px);
}

.hero-floating-card-secondary {
  left: auto;
  right: 1rem;
  top: 1rem;
  bottom: auto;
}

.hero-floating-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
}

.hero-card {
  background: var(--surface);
  padding: 1.55rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px var(--shadow);
  display: grid;
  gap: 0.75rem;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.hero-grid-item {
  background: var(--accent-soft);
  color: var(--accent);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  font-weight: 600;
  text-align: center;
  line-height: 1.35;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
}

.hero-bg {
  position: absolute;
  top: -35%;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-lottie {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.25;
  filter: blur(0.1px);
  z-index: 0;
  display: block;
}

.section {
  padding: 4rem 0;
  scroll-snap-align: start;
  scroll-margin-top: 64px;
}

.section-alt {
  background: var(--surface);
}

.section-header {
  max-width: 640px;
  margin-bottom: 2rem;
  display: grid;
  gap: 0.7rem;
}

.section-subhead {
  color: var(--muted-strong);
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 2.5rem;
  align-items: center;
}

.product-copy {
  display: grid;
  align-content: start;
}

.product-copy h2 {
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  margin-bottom: 1rem;
}

.product-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin: 1.15rem 0 1.6rem;
  color: var(--muted-strong);
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.35;
}

.product-features li::before {
  content: "✓";
  color: var(--primary);
  font-weight: 700;
  line-height: 1.2;
}

.product-detail {
  color: var(--muted-strong);
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}

.product-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.product-visual {
  position: relative;
}

.product-mockup {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 1.2rem;
  box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.product-mockup:hover {
  transform: translateY(-8px);
}

.mockup-label {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.product-screenshot {
  width: 100%;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.product-slider {
  display: grid;
  gap: 1rem;
}

.product-slides {
  position: relative;
  min-height: clamp(420px, 48vw, 520px);
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), transparent);
}

.product-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 340px) auto;
  gap: 1rem;
  opacity: 0;
  transform: translateX(10%) scale(0.98);
  transition: opacity 0.75s ease, transform 0.75s ease;
  pointer-events: none;
  align-content: start;
}

.product-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.product-slide .product-screenshot {
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.slide-caption {
  display: grid;
  gap: 0.35rem;
  padding: 0.25rem 0.35rem 0.4rem;
  background: var(--surface);
  align-self: start;
}

.slide-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.slide-description {
  color: var(--muted);
  font-size: 0.95rem;
}

.product-slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.slider-dot {
  appearance: none;
  border: none;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--border-strong);
  opacity: 0.55;
  transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
}

.slider-dot.is-active {
  background: var(--primary);
  opacity: 1;
  transform: scale(1.15);
}

.trust-section {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), var(--accent-soft));
}

.trust-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.6rem;
  display: grid;
  gap: 0.75rem;
  height: 100%;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.trust-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}

.trust-card h3 {
  font-size: 1.05rem;
}

.trust-card p {
  color: var(--muted-strong);
}

.service-media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  aspect-ratio: 16 / 9;
  margin-bottom: 0.3rem;
}

.service-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}

.service-card:hover .service-image {
  transform: scale(1.04);
}

.service-grid,
.pillar-grid,
.steps-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

.build-grid,
.portfolio-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  align-items: stretch;
}

.service-card,
.pillar-card,
.step-card {
  background: var(--surface);
  padding: 1.8rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  display: grid;
  gap: 0.6rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.build-card {
  background: var(--surface);
  padding: 1.4rem 1.6rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--muted-strong);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.build-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.build-showcase-copy {
  display: grid;
  gap: 0.9rem;
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 20px 48px rgba(16, 24, 40, 0.08);
}

.build-showcase-copy h3 {
  font-size: clamp(1.5rem, 2vw, 2rem);
}

.build-showcase-copy p:last-child {
  color: var(--muted-strong);
}

.build-showcase-points {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  color: var(--muted-strong);
}

.build-showcase-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.45;
}

.build-showcase-points li::before {
  content: "•";
  color: var(--primary);
  font-weight: 700;
}

.build-showcase-media {
  min-width: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 24px 56px rgba(16, 24, 40, 0.1);
}

.build-showcase-image {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.build-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.service-card:hover,
.pillar-card:hover,
.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}

.pillar-card ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
}

.step-index {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.timeline {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.timeline-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.6rem;
  display: grid;
  gap: 0.6rem;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.timeline-step:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}

.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  min-width: 0;
  overflow: hidden;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}

.portfolio-summary {
  color: var(--muted-strong);
}

.portfolio-media {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  min-height: 200px;
  aspect-ratio: 16 / 10;
}

.portfolio-image {
  width: 100%;
  max-width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.portfolio-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 600;
}

.portfolio-note,
.portfolio-link {
  font-weight: 600;
  color: var(--primary);
  margin-top: auto;
}

.portfolio-details {
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
  margin-top: auto;
}

.portfolio-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  list-style: none;
}

.portfolio-details summary::-webkit-details-marker {
  display: none;
}

.portfolio-details summary::after {
  content: " +";
}

.portfolio-details[open] summary::after {
  content: " -";
}

.portfolio-details-body {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.75rem;
  max-height: 170px;
  overflow-y: auto;
  padding-right: 0.35rem;
}

.testimonial-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 48px rgba(16, 24, 40, 0.12);
}

.testimonial-stars {
  color: #16a34a;
  font-size: 1.25rem;
  letter-spacing: 2px;
}

.testimonial-card h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0;
}

.testimonial-quote {
  color: var(--muted-strong);
  font-style: italic;
  flex-grow: 1;
  line-height: 1.6;
}

.testimonial-author {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: block;
  pointer-events: none;
}

.image-lightbox[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 39, 0);
  transition: background 0.28s ease;
}

.lightbox-dialog {
  position: fixed;
  z-index: 1;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  padding: 0.5rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(16, 24, 40, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  opacity: 0;
  transform: translateZ(0);
  transition:
    top 0.34s cubic-bezier(0.2, 0.8, 0.2, 1),
    left 0.34s cubic-bezier(0.2, 0.8, 0.2, 1),
    width 0.34s cubic-bezier(0.2, 0.8, 0.2, 1),
    height 0.34s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.18s ease;
}

.lightbox-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 16px;
  background: #ffffff;
}

.lightbox-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #101828;
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.image-lightbox.is-visible {
  pointer-events: auto;
}

.image-lightbox.is-visible .lightbox-backdrop {
  background: rgba(10, 20, 39, 0.08);
}

.image-lightbox.is-visible .lightbox-dialog {
  opacity: 1;
}

.image-lightbox.is-visible .lightbox-close {
  opacity: 1;
  pointer-events: auto;
}

body.lightbox-open {
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: start;
}

.about-copy p {
  color: var(--muted-strong);
  margin-bottom: 1rem;
}

.about-copy h2 {
  margin-bottom: 1rem;
}

.quote {
  font-style: italic;
  color: var(--text);
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
}

.about-people {
  display: grid;
  gap: 1.5rem;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.6rem;
  display: grid;
  gap: 0.8rem;
  height: 100%;
}

.about-card p {
  color: var(--muted-strong);
}

.about-card-subtitle {
  font-weight: 700;
  color: var(--text);
}

.about-card ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
}

.about-team-card {
  grid-column: 1 / -1;
}

.about-team-card ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 2rem;
  row-gap: 0.7rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  align-items: center;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.8rem;
  display: grid;
  gap: 1rem;
  height: 100%;
}

.section-cta {
  background: var(--cta-bg);
  color: var(--cta-text);
  transition: background 0.35s ease, color 0.35s ease;
}

.cta-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.section-cta .primary-button {
  background: var(--cta-button-bg);
  color: var(--cta-button-text);
  animation: pulse 3.2s ease-in-out infinite;
}

.site-footer {
  padding: 2.5rem 0;
  background: var(--footer-bg);
  color: var(--footer-text);
  transition: background 0.35s ease, color 0.35s ease;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-meta {
  color: var(--footer-muted);
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes drift {
  0% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-18px) translateX(12px);
  }
  100% {
    transform: translateY(0) translateX(0);
  }
}

@keyframes shimmer {
  0% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    opacity: 0.45;
  }
}

@keyframes pulse {
  0% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none;
    transition: none;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 3.5rem 0;
  }

  .hero-content,
  .product-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-team-card ul {
    grid-template-columns: 1fr;
  }

  .header-content {
    grid-template-columns: auto 1fr auto auto;
  }

  .hero-showcase {
    min-height: 280px;
  }

  .hero-floating-card {
    width: min(75%, 240px);
  }

  .hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .build-showcase {
    grid-template-columns: 1fr;
  }

  .build-showcase-media {
    order: -1;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
    white-space: normal;
    z-index: 20;
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a::after {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-header .primary-button {
    display: none;
  }
}

@media (max-width: 1100px) {
  .brand-logo-img {
    height: 40px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 3rem 0;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-content {
    gap: 1.5rem;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    min-height: 0;
    padding: 0.8rem;
  }

  .hero-showcase-main {
    width: 100%;
  }

  .hero-floating-card,
  .hero-floating-card-secondary {
    position: static;
    width: 100%;
    margin-top: 0.85rem;
  }

  .hero-card,
  .build-showcase-copy,
  .service-card,
  .pillar-card,
  .timeline-step,
  .trust-card,
  .about-card,
  .contact-card,
  .portfolio-card,
  .testimonial-card {
    padding: 1.15rem;
  }

  .service-grid,
  .pillar-grid,
  .timeline,
  .trust-grid,
  .build-grid,
  .portfolio-grid,
  .testimonial-grid {
    gap: 1rem;
  }

  .hero-grid-item {
    min-height: 64px;
    padding: 0.9rem;
    font-size: 0.92rem;
  }

  .product-features {
    grid-template-columns: 1fr;
  }

  .product-grid {
    gap: 1.5rem;
  }

  .product-mockup {
    padding: 1rem;
    border-radius: 22px;
  }

  .product-slides {
    min-height: 0;
  }

  .product-slide {
    grid-template-rows: minmax(0, 220px) auto;
  }

  .product-slide .product-screenshot {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .portfolio-card {
    gap: 0.8rem;
  }

  .portfolio-media {
    min-height: 0;
    aspect-ratio: 16 / 11;
  }

  .lightbox-dialog {
    padding: 0.45rem;
    border-radius: 18px;
  }

  .lightbox-image {
    border-radius: 14px;
  }

  .lightbox-close {
    top: 0.45rem;
    right: 0.45rem;
  }
}
