:root {
  color-scheme: dark;
  --radius: 1rem;
  --background: oklch(0.105 0.012 75);
  --foreground: oklch(0.92 0.035 82);
  --surface: oklch(0.155 0.016 75);
  --surface-elevated: oklch(0.205 0.025 75);
  --muted: oklch(0.22 0.02 75);
  --muted-foreground: oklch(0.72 0.04 78);
  --primary: oklch(0.66 0.12 74);
  --primary-foreground: oklch(0.12 0.014 75);
  --primary-glow: oklch(0.83 0.16 78);
  --bronze: oklch(0.54 0.08 68);
  --border: oklch(0.46 0.06 70 / 50%);
  --input: oklch(0.24 0.025 75);
  --gradient-hero:
    radial-gradient(
      ellipse at 58% 18%,
      oklch(0.54 0.12 72 / 0.24),
      transparent 60%
    ),
    linear-gradient(180deg, oklch(0.15 0.014 75) 0%, oklch(0.08 0.01 75) 100%);
  --gradient-primary: linear-gradient(
    135deg,
    oklch(0.54 0.08 68),
    oklch(0.86 0.15 78)
  );
  --gradient-card: linear-gradient(
    160deg,
    oklch(0.24 0.026 72 / 0.76),
    oklch(0.13 0.016 75 / 0.62)
  );
  --gradient-glow: radial-gradient(
    circle at center,
    oklch(0.8 0.16 76 / 0.34),
    transparent 70%
  );
  --shadow-glow: 0 0 60px -12px oklch(0.8 0.16 76 / 0.55);
  --shadow-elevated: 0 20px 60px -20px oklch(0.03 0.01 75 / 0.72);
  --font-sans: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      circle at 12% 5%,
      oklch(0.58 0.08 68 / 0.18),
      transparent 35%
    ),
    radial-gradient(
      circle at 85% 12%,
      oklch(0.82 0.14 78 / 0.12),
      transparent 28%
    ),
    var(--background);
  content: "";
}

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

img,
svg {
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 3rem, 80rem);
  margin-inline: auto;
}

.glass {
  border: 1px solid oklch(0.54 0.07 70 / 0.28);
  background: oklch(0.14 0.014 75 / 0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.grid-pattern {
  background-image:
    linear-gradient(oklch(0.62 0.08 72 / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.62 0.08 72 / 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
}

.text-gradient {
  background: linear-gradient(
    135deg,
    oklch(0.96 0.035 82),
    oklch(0.83 0.16 78)
  );
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-kicker {
  color: var(--primary-glow);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  max-width: 45rem;
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.65rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.05;
}

.section-copy {
  max-width: 41rem;
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: 1.05rem;
  line-height: 1.75;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-1px) scale(1.01);
}

.button-primary {
  background: var(--gradient-primary);
  box-shadow: var(--shadow-glow);
  color: var(--primary-foreground);
  padding: 0.85rem 1.45rem;
}

.button-ghost {
  border: 1px solid oklch(0.54 0.07 70 / 0.3);
  background: oklch(0.14 0.014 75 / 0.62);
  color: var(--foreground);
  padding: 0.8rem 1.35rem;
}

.button-ghost:hover {
  background: var(--surface-elevated);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}

.nav-shell {
  border-top: 0;
  border-right: 0;
  border-left: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 3rem, 80rem);
  margin-inline: auto;
  padding: 1rem 0;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo,
.footer-logo {
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid oklch(0.65 0.09 74 / 0.32);
  border-radius: 0.5rem;
  box-shadow: 0 0 24px -10px oklch(0.83 0.16 78 / 0.85);
  object-fit: cover;
  object-position: center;
  transition:
    transform 350ms ease,
    box-shadow 350ms ease;
}

.brand:hover .brand-logo {
  box-shadow: 0 0 34px -8px oklch(0.83 0.16 78 / 0.95);
  transform: scale(1.06);
}

.brand-text {
  font-size: 1.12rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  display: inline-flex;
  border-radius: 0.55rem;
  color: var(--muted-foreground);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.6rem 0.95rem;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.nav-link:hover,
.nav-link.active {
  background: oklch(0.24 0.026 72 / 0.62);
  color: var(--foreground);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-glow);
  color: var(--primary-foreground);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.65rem 1.15rem;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-elevated), var(--shadow-glow);
}

.menu-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.3rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: oklch(0.14 0.014 75 / 0.62);
  color: var(--foreground);
}

.menu-toggle span:not(.sr-only) {
  width: 1.1rem;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: 42rem;
  overflow: hidden;
  background: var(--gradient-hero);
}

.hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent 18%,
      oklch(0.08 0.01 75 / 0.28) 44%,
      oklch(0.08 0.01 75 / 0.88) 86%
    ),
    linear-gradient(
      180deg,
      oklch(0.08 0.01 75 / 0.12),
      oklch(0.08 0.01 75 / 0.42) 72%,
      oklch(0.08 0.01 75 / 0.18)
    ),
    radial-gradient(
      circle at 28% 48%,
      oklch(0.76 0.13 76 / 0.16),
      transparent 22%
    );
  content: "";
}

.hero::before {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  content: "";
}

.hero > .grid-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.34;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center left;
  opacity: 0.64;
  filter: brightness(1.2) contrast(1.08) saturate(1.05);
  mask-image:
    linear-gradient(
      to right,
      black 0%,
      black 18%,
      rgb(255 255 255 / 0.82) 38%,
      rgb(255 255 255 / 0.22) 58%,
      transparent 78%
    ),
    linear-gradient(to bottom, black 76%, rgb(255 255 255 / 0.9) 100%);
}

.hero-glow,
.page-glow {
  position: absolute;
  width: 31rem;
  height: 31rem;
  border-radius: 999px;
  background: var(--gradient-glow);
  animation: pulse-glow 4s ease-in-out infinite;
}

.hero-glow {
  top: -10rem;
  left: -10rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 3rem, 80rem);
  margin-inline: auto;
  padding: clamp(6rem, 13vw, 9rem) 0 clamp(7rem, 14vw, 11rem);
}

.hero-inner {
  max-width: 47rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 999px;
  color: var(--muted-foreground);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.8rem;
}

.pill-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: var(--primary-glow);
  box-shadow: 0 0 0 6px oklch(0.83 0.16 78 / 0.14);
}

.hero h1,
.page-hero h1 {
  margin-top: 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.9rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero p {
  max-width: 39rem;
  margin-top: 1.35rem;
  color: var(--muted-foreground);
  font-size: clamp(1.06rem, 2vw, 1.25rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 2.4rem;
}

.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted-foreground);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color 160ms ease;
}

.section-link:hover {
  color: var(--foreground);
}

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

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--gradient-card);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.card::before {
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: var(--gradient-glow);
  opacity: 0;
  transition: opacity 500ms ease;
  content: "";
}

.card:hover {
  border-color: oklch(0.78 0.12 76 / 0.55);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.card:hover::before {
  opacity: 1;
}

.service-card {
  min-height: 11.25rem;
  padding: 1.5rem;
}

.service-card.tall {
  grid-column: span 2;
  grid-row: span 2;
}

.service-card.wide {
  grid-column: span 2;
}

.service-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.icon {
  color: var(--primary-glow);
}

.service-card h3,
.industry-card h3,
.process-card h3,
.info-card h3,
.service-detail h2,
.contact-card h2,
.contact-card h3 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: 0;
}

.service-card h3 {
  font-size: 1.3rem;
}

.service-card p,
.industry-card p,
.process-card p,
.info-card p,
.service-detail p,
.contact-card p {
  color: var(--muted-foreground);
  line-height: 1.65;
}

.service-card p {
  margin-top: 0.55rem;
  font-size: 0.92rem;
}

.band {
  border-block: 1px solid oklch(0.46 0.06 70 / 36%);
  background: oklch(0.15 0.014 75 / 0.5);
}

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

.industry-card {
  min-height: 9.5rem;
  padding: 1.3rem;
}

.industry-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  font-size: 0.98rem;
}

.process-grid,
.stats-grid,
.values-grid,
.service-detail-grid {
  display: grid;
  gap: 1.5rem;
}

.process-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 3.4rem;
}

.process-number,
.stat-number {
  background: linear-gradient(
    135deg,
    oklch(0.96 0.035 82),
    oklch(0.83 0.16 78)
  );
  background-clip: text;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 0;
  -webkit-text-fill-color: transparent;
}

.process-card h3 {
  margin-top: 0.8rem;
  font-size: 1.28rem;
}

.process-card p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.cta-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.8rem;
  background: var(--gradient-card);
  padding: clamp(2.4rem, 6vw, 4rem);
  text-align: center;
}

.cta-panel::before {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  content: "";
}

.cta-panel::after {
  position: absolute;
  top: -9rem;
  left: 50%;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  background: var(--gradient-glow);
  transform: translateX(-50%);
  content: "";
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-panel h2 {
  max-width: 46rem;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.08;
}

.cta-panel p {
  max-width: 38rem;
  margin: 1rem auto 0;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.cta-panel .button {
  margin-top: 2rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid oklch(0.46 0.06 70 / 36%);
  background: var(--gradient-hero);
}

.page-hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      oklch(0.08 0.01 75 / 0.9),
      oklch(0.08 0.01 75 / 0.54)
    ),
    url("/assets/stacklion-logo.png") right center / min(42rem, 72vw) auto
      no-repeat;
  opacity: 0.55;
  content: "";
}

.page-hero .container {
  position: relative;
  z-index: 1;
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.page-hero h1 {
  max-width: 56rem;
  font-size: clamp(3rem, 7vw, 5.5rem);
}

.page-hero p {
  max-width: 44rem;
  margin-top: 1.35rem;
  color: var(--muted-foreground);
  font-size: 1.12rem;
  line-height: 1.75;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.82fr);
  gap: 4rem;
  align-items: start;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 650;
  letter-spacing: 0;
}

.prose p {
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: 1.02rem;
  line-height: 1.8;
}

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

.info-card {
  padding: 1.5rem;
}

.info-card h3 {
  margin-top: 1rem;
  font-size: 1.1rem;
}

.info-card p {
  margin-top: 0.55rem;
  font-size: 0.94rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.demo-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: oklch(0.16 0.016 75 / 0.58);
  color: var(--muted-foreground);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
}

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

.demo-card {
  scroll-margin-top: 6rem;
  padding: clamp(0.85rem, 2vw, 1rem);
}

.demo-preview {
  display: block;
  overflow: hidden;
  border: 1px solid oklch(0.54 0.07 70 / 0.32);
  border-radius: 0.9rem;
  background: oklch(0.09 0.01 75);
}

.demo-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  transition:
    filter 180ms ease,
    transform 220ms ease;
}

.demo-preview:hover img {
  filter: brightness(1.08);
  transform: scale(1.015);
}

.demo-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.2rem 0;
}

.demo-card-top span {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-foreground);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
}

.demo-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 650;
}

.demo-card p {
  margin-top: 0.8rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

.demo-does {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.demo-does h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 650;
}

.demo-does p {
  margin-top: 0.45rem;
  font-size: 0.95rem;
}

.demo-card .demo-summary {
  color: var(--foreground);
  font-size: 1.02rem;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.demo-card .button {
  min-height: 2.75rem;
  padding: 0.72rem 1.1rem;
}

.demo-link {
  margin-top: 0;
}

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

.stat-card {
  padding: 1.5rem;
}

.stat-card p {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

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

.service-detail {
  padding: 2rem;
}

.service-detail h2 {
  margin-top: 1.2rem;
  font-size: 1.65rem;
}

.service-detail p {
  margin-top: 0.7rem;
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.55;
}

.check-list svg {
  flex: 0 0 auto;
  margin-top: 0.1rem;
  color: var(--primary-glow);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(17rem, 0.72fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: start;
}

.contact-stack {
  display: grid;
  gap: 1.5rem;
}

.contact-card {
  padding: 1.5rem;
}

.contact-card h2,
.contact-card h3 {
  font-size: 1.2rem;
}

.contact-links {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.contact-links a,
.contact-links span {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  transition: color 160ms ease;
}

.contact-links a:hover {
  color: var(--foreground);
}

.steps {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.steps li {
  color: var(--muted-foreground);
  line-height: 1.6;
}

.steps strong {
  color: var(--primary-glow);
}

.mail-panel {
  padding: clamp(1.5rem, 4vw, 2rem);
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.brief-item,
.brief-message {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: oklch(0.11 0.012 75 / 0.55);
  color: var(--muted-foreground);
  padding: 1rem;
}

.brief-message {
  margin-top: 1rem;
}

.brief-item span,
.brief-message span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--foreground);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mail-panel .button {
  margin-top: 1.5rem;
}

.footer {
  margin-top: 6rem;
  border-top: 1px solid oklch(0.46 0.06 70 / 36%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
}

.footer-intro p {
  max-width: 24rem;
  margin-top: 1rem;
  color: var(--muted-foreground);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer h2 {
  margin-bottom: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 650;
}

.footer ul {
  display: grid;
  gap: 0.55rem;
}

.footer li,
.footer a {
  color: var(--muted-foreground);
  font-size: 0.92rem;
}

.footer a:hover {
  color: var(--foreground);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid oklch(0.46 0.06 70 / 36%);
  color: var(--muted-foreground);
  font-size: 0.8rem;
  padding: 1.5rem 0;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.9;
  }
}

@media (max-width: 960px) {
  .container,
  .nav,
  .hero-content {
    width: min(100% - 2rem, 80rem);
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: none;
    width: min(100% - 2rem, 80rem);
    margin-inline: auto;
    border-top: 1px solid oklch(0.46 0.06 70 / 36%);
    padding: 0.85rem 0 1rem;
  }

  .mobile-menu[data-open="true"] {
    display: grid;
    gap: 0.35rem;
  }

  .mobile-link,
  .mobile-cta {
    display: block;
    border-radius: 0.65rem;
    color: var(--muted-foreground);
    font-weight: 700;
    padding: 0.75rem;
  }

  .mobile-link.active,
  .mobile-link:hover {
    background: oklch(0.24 0.026 72 / 0.62);
    color: var(--foreground);
  }

  .mobile-cta {
    margin-top: 0.25rem;
    background: var(--gradient-primary);
    color: var(--primary-foreground);
    text-align: center;
  }

  .hero-image {
    width: 100%;
    opacity: 0.28;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
  }

  .section-header,
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    display: grid;
    align-items: start;
  }

  .bento-grid,
  .industry-grid,
  .process-grid,
  .stats-grid,
  .service-detail-grid,
  .demo-grid,
  .brief-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card.tall,
  .service-card.wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.85rem, 16vw, 4.25rem);
  }

  .hero-actions,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .bento-grid,
  .industry-grid,
  .process-grid,
  .stats-grid,
  .service-detail-grid,
  .demo-grid,
  .brief-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .bento-grid {
    grid-auto-rows: auto;
  }

  .service-card {
    min-height: 13rem;
  }

  .footer {
    margin-top: 3rem;
  }
}
