/* systoolapp.com site-3d variant
   Palette: dark graphite / near-black, teal accents, white type
   Strong CSS 3D: device stack, layered tiles, isometric process
*/

:root {
  --bg: #07090c;
  --bg-2: #0c1016;
  --bg-elev: #121820;
  --bg-panel: #161d27;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f7fb;
  --text-muted: #9aa6b5;
  --text-soft: #6f7b8c;
  --accent: #2dd4a8;
  --accent-2: #1aa884;
  --accent-dim: rgba(45, 212, 168, 0.14);
  --accent-glow: rgba(45, 212, 168, 0.35);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --header-h: 72px;
  --max: 1180px;
  --focus: 0 0 0 3px rgba(45, 212, 168, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #04120e;
  border-radius: 999px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  outline: none;
  box-shadow: var(--focus);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Background stage */
.stage-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(45, 212, 168, 0.12), transparent 55%),
    radial-gradient(900px 500px at 10% 20%, rgba(56, 120, 255, 0.08), transparent 50%),
    linear-gradient(180deg, #07090c 0%, #0a0e14 40%, #07090c 100%);
}

.mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}

.mesh-a {
  width: 420px;
  height: 420px;
  top: -80px;
  right: 8%;
  background: radial-gradient(circle, rgba(45, 212, 168, 0.35), transparent 70%);
}

.mesh-b {
  width: 360px;
  height: 360px;
  bottom: 10%;
  left: -60px;
  background: radial-gradient(circle, rgba(32, 90, 180, 0.28), transparent 70%);
}

.mesh-c {
  width: 280px;
  height: 280px;
  top: 42%;
  right: -40px;
  background: radial-gradient(circle, rgba(45, 212, 168, 0.18), transparent 70%);
}

.grid-floor {
  position: absolute;
  inset: auto 0 -20% 0;
  height: 55%;
  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: 48px 48px;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: center top;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 85%);
  opacity: 0.55;
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(7, 9, 12, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-cube {
  width: 22px;
  height: 22px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(32deg);
  flex-shrink: 0;
}

.cube-face {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(45, 212, 168, 0.55);
  background: rgba(45, 212, 168, 0.12);
}

.cube-face.front {
  transform: translateZ(7px);
}

.cube-face.side {
  width: 14px;
  transform: rotateY(90deg) translateZ(7px);
  background: rgba(45, 212, 168, 0.22);
}

.cube-face.top {
  transform: rotateX(90deg) translateZ(7px);
  background: rgba(45, 212, 168, 0.32);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.nav-desktop a:not(.btn):hover,
.nav-desktop a:not(.btn):focus-visible {
  color: var(--text);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.nav-toggle-bars {
  width: 18px;
  height: 12px;
  position: relative;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease), opacity 0.25s;
}

.nav-toggle-bars span:first-child {
  top: 2px;
}

.nav-toggle-bars span:last-child {
  top: 9px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child {
  top: 5.5px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child {
  top: 5.5px;
  transform: rotate(-45deg);
}

.nav-mobile {
  border-top: 1px solid var(--line);
  background: rgba(7, 9, 12, 0.96);
  backdrop-filter: blur(16px);
}

.nav-mobile nav {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1rem 0 1.25rem;
  display: grid;
  gap: 0.35rem;
}

.nav-mobile a {
  padding: 0.85rem 0.4rem;
  color: var(--text-muted);
  border-radius: 10px;
}

.nav-mobile a:hover,
.nav-mobile a:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 0.9rem 1.25rem;
  font-size: 0.98rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(180deg, #3ae0b4 0%, var(--accent) 45%, var(--accent-2) 100%);
  color: #042019;
  box-shadow: 0 10px 30px rgba(45, 212, 168, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(45, 212, 168, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.12);
  transition: transform 0.3s var(--ease);
}

.btn-primary:hover .btn-icon {
  transform: translateX(2px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.5rem;
}

.text-link:hover,
.text-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

/* Hero */
.hero {
  min-height: min(100dvh, 920px);
  padding: 1.5rem 0 4rem;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 168, 0.28);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.45rem);
  max-width: 14ch;
  margin-bottom: 0.85rem;
}

.hero-tagline {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 48ch;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* 3D device stage */
.hero-stage {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(45, 212, 168, 0.18);
  pointer-events: none;
}

.ring-outer {
  width: min(92%, 420px);
  aspect-ratio: 1;
  transform: rotateX(68deg) scale(1.05);
  box-shadow: 0 0 60px rgba(45, 212, 168, 0.08);
}

.ring-mid {
  width: min(72%, 320px);
  aspect-ratio: 1;
  transform: rotateX(68deg);
  border-color: rgba(45, 212, 168, 0.28);
}

.device-scene {
  position: relative;
  width: min(100%, 440px);
  height: 340px;
  transform-style: preserve-3d;
  transform: rotateX(12deg) rotateY(-18deg);
  transition: transform 0.45s var(--ease);
}

.device {
  position: absolute;
  transform-style: preserve-3d;
}

/* Laptop */
.laptop {
  left: 8%;
  top: 18%;
  width: 78%;
  z-index: 2;
}

.laptop-lid {
  border-radius: 14px 14px 6px 6px;
  background: linear-gradient(160deg, #2a3340, #151b24);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 30px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateZ(24px);
}

.laptop-bezel {
  border-radius: 8px;
  overflow: hidden;
  background: #0a0e14;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.laptop-screen {
  aspect-ratio: 16 / 10;
  padding: 10px;
  background:
    radial-gradient(circle at 80% 0%, rgba(45, 212, 168, 0.15), transparent 40%),
    linear-gradient(180deg, #101722, #0b1018);
}

.dash-chrome {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.dash-chrome span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.dash-chrome span:first-child {
  background: #ff6b6b;
}

.dash-layout {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  height: calc(100% - 20px);
}

.dash-sidebar {
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(45, 212, 168, 0.2), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-main {
  display: grid;
  grid-template-rows: 16px 1fr 1.2fr;
  gap: 8px;
}

.dash-bar {
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}

.dash-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.dash-cards span {
  border-radius: 6px;
  background: linear-gradient(160deg, rgba(45, 212, 168, 0.18), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-chart {
  border-radius: 8px;
  border: 1px solid rgba(45, 212, 168, 0.18);
  background: rgba(0, 0, 0, 0.25);
  padding: 6px;
  overflow: hidden;
}

.dash-chart svg {
  width: 100%;
  height: 100%;
  min-height: 42px;
}

.laptop-base {
  height: 10px;
  margin: 0 4%;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #2a3340, #11161e);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 0;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  transform: translateZ(8px) rotateX(70deg);
  transform-origin: top center;
}

.laptop-shadow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -28px;
  height: 28px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.55), transparent 70%);
  filter: blur(4px);
  transform: translateZ(-20px);
}

/* Tablet */
.tablet {
  right: 2%;
  top: 8%;
  width: 34%;
  z-index: 3;
  transform: translateZ(60px) rotateY(-12deg) rotateX(4deg);
  animation: float-a 6s ease-in-out infinite;
}

.tablet-body {
  border-radius: 14px;
  padding: 8px;
  background: linear-gradient(145deg, #2b3442, #121820);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.tablet-screen {
  border-radius: 8px;
  aspect-ratio: 3 / 4;
  padding: 10px;
  display: grid;
  gap: 8px;
  background:
    radial-gradient(circle at 30% 20%, rgba(45, 212, 168, 0.2), transparent 50%),
    #0c121a;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.tile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.tile-row.tall {
  grid-template-columns: 1fr;
  min-height: 42%;
}

.tile-row span {
  border-radius: 6px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(45, 212, 168, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 22px;
}

.tile-row.tall span {
  min-height: 100%;
  background: linear-gradient(160deg, rgba(45, 212, 168, 0.22), rgba(255, 255, 255, 0.04));
}

/* Phone */
.phone {
  left: 4%;
  bottom: 6%;
  width: 22%;
  z-index: 4;
  transform: translateZ(90px) rotateY(18deg) rotateX(6deg);
  animation: float-b 5.2s ease-in-out infinite;
}

.phone-body {
  border-radius: 16px;
  padding: 6px;
  background: linear-gradient(160deg, #303948, #121820);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.phone-notch {
  width: 36%;
  height: 5px;
  margin: 2px auto 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
}

.phone-screen {
  border-radius: 10px;
  aspect-ratio: 9 / 16;
  padding: 10px 8px;
  display: grid;
  gap: 7px;
  align-content: start;
  background: linear-gradient(180deg, #101822, #0a0f16);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-bar {
  height: 8px;
  width: 55%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}

.phone-card {
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(45, 212, 168, 0.25), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(45, 212, 168, 0.2);
}

.phone-card.short {
  height: 22px;
  opacity: 0.7;
}

.phone-cta {
  margin-top: auto;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0.9;
}

/* Orbiting modules */
.orbit-module {
  position: absolute;
  z-index: 5;
  transform-style: preserve-3d;
}

.mod-chip {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(12, 18, 24, 0.9);
  border: 1px solid rgba(45, 212, 168, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(45, 212, 168, 0.15);
  backdrop-filter: blur(8px);
}

.mod-a {
  top: 4%;
  left: 18%;
  animation: orbit-float 7s ease-in-out infinite;
}

.mod-b {
  top: 42%;
  right: -2%;
  animation: orbit-float 8s ease-in-out infinite reverse;
}

.mod-c {
  bottom: 10%;
  left: 36%;
  animation: orbit-float 6.4s ease-in-out infinite 0.4s;
}

.hero-stage-caption {
  position: absolute;
  bottom: -0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 36ch);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 0;
}

@keyframes float-a {
  0%, 100% { transform: translateZ(60px) rotateY(-12deg) rotateX(4deg) translateY(0); }
  50% { transform: translateZ(60px) rotateY(-12deg) rotateX(4deg) translateY(-10px); }
}

@keyframes float-b {
  0%, 100% { transform: translateZ(90px) rotateY(18deg) rotateX(6deg) translateY(0); }
  50% { transform: translateZ(90px) rotateY(18deg) rotateX(6deg) translateY(-12px); }
}

@keyframes orbit-float {
  0%, 100% { transform: translateY(0) translateZ(40px); }
  50% { transform: translateY(-12px) translateZ(50px); }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 58ch;
  margin-bottom: 2.5rem;
}

.section-head.narrow {
  max-width: 48ch;
}

.section-head h2,
.stack-copy h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

/* 3D service tiles */
.tile-stage {
  display: grid;
  gap: 1.25rem;
  perspective: 1400px;
}

.service-tile {
  position: relative;
  transform-style: preserve-3d;
  border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease);
}

.tile-depth {
  position: absolute;
  inset: 10px -6px -10px 10px;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(45, 212, 168, 0.12), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(45, 212, 168, 0.12);
  transform: translateZ(-18px);
  filter: blur(0.2px);
}

.tile-face {
  position: relative;
  border-radius: inherit;
  padding: 1.4rem 1.35rem 1.5rem;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04), transparent 40%),
    var(--bg-panel);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateZ(0);
  min-height: 100%;
}

.tile-1 { transform: rotateY(-4deg) rotateX(2deg); }
.tile-2 { transform: rotateY(3deg) rotateX(1deg); }
.tile-3 { transform: rotateY(-2deg) rotateX(3deg); }
.tile-4 { transform: rotateY(4deg) rotateX(2deg); }

.service-tile:hover,
.service-tile:focus-within {
  transform: rotateY(0deg) rotateX(0deg) translateY(-4px) scale(1.01);
  z-index: 2;
}

.tile-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--accent);
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(45, 212, 168, 0.25);
}

.tile-icon svg {
  width: 28px;
  height: 28px;
}

.service-tile h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.service-tile p {
  margin-bottom: 0.9rem;
  font-size: 0.96rem;
}

.service-tile ul {
  display: grid;
  gap: 0.35rem;
}

.service-tile li {
  position: relative;
  padding-left: 0.95rem;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.service-tile li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.8;
}

/* Layer tower */
.stack-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.stack-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0 1rem;
}

.stack-list li {
  position: relative;
  padding: 0.75rem 0.9rem 0.75rem 2.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
}

.stack-list li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.layer-tower {
  position: relative;
  min-height: 0;
  perspective: none;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.85rem;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 0.25rem 0 0.75rem;
  overflow: visible;
}

.layer-plate {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 1.05rem 1.2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(30, 40, 52, 0.95), rgba(14, 18, 26, 0.98));
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: none !important;
  transform-style: flat;
  display: grid;
  gap: 0.2rem;
  position: relative;
}

.plate-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.plate-desc {
  font-size: 0.88rem;
  color: var(--text-soft);
}

.plate-1 {
  transform: none !important;
  z-index: 4;
  border-color: rgba(45, 212, 168, 0.4);
  background: linear-gradient(145deg, rgba(40, 70, 62, 0.55), rgba(14, 18, 26, 0.98));
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 3px 0 0 rgba(45, 212, 168, 0.55);
}

.plate-2 {
  transform: none !important;
  z-index: 3;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 3px 0 0 rgba(45, 212, 168, 0.32);
}

.plate-3 {
  transform: none !important;
  z-index: 2;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 3px 0 0 rgba(45, 212, 168, 0.2);
}

.plate-4 {
  transform: none !important;
  z-index: 1;
  opacity: 1;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 3px 0 0 rgba(45, 212, 168, 0.12);
}

.tower-base {
  width: min(70%, 240px);
  height: 18px;
  margin-top: 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(45, 212, 168, 0.25), transparent 70%);
  filter: blur(2px);
}

/* Isometric process */
.iso-board {
  position: relative;
  padding: 1.5rem 0 0.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 20% 0%, rgba(45, 212, 168, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    var(--bg-2);
  overflow: hidden;
}

.iso-path {
  position: absolute;
  left: 0;
  right: 0;
  top: 12%;
  width: 100%;
  height: 46%;
  opacity: 0.85;
  pointer-events: none;
}

.iso-steps {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  margin: 0;
  list-style: none;
  counter-reset: none;
}

.iso-step {
  transform-style: preserve-3d;
}

.iso-panel {
  position: relative;
  padding: 1.15rem 1.15rem 1.2rem 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(160deg, rgba(45, 212, 168, 0.08), transparent 45%),
    var(--bg-elev);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: rotateX(6deg) rotateY(-4deg);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
  min-height: 100%;
}

.iso-step:nth-child(even) .iso-panel {
  transform: rotateX(6deg) rotateY(4deg);
}

.iso-step:hover .iso-panel,
.iso-step:focus-within .iso-panel {
  transform: rotateX(0) rotateY(0) translateY(-3px);
  border-color: rgba(45, 212, 168, 0.35);
}

.iso-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 0.7rem;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #042019;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent-glow);
}

.iso-panel h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.iso-panel p {
  margin: 0;
  font-size: 0.93rem;
}

/* Patterns */
.pattern-grid {
  display: grid;
  gap: 1.25rem;
}

.pattern-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
  display: grid;
}

.pattern-visual {
  position: relative;
  min-height: 180px;
  background:
    radial-gradient(circle at 70% 20%, rgba(45, 212, 168, 0.16), transparent 45%),
    linear-gradient(160deg, #141b25, #0b1017);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  perspective: 800px;
}

.pattern-portal .pv-frame {
  position: absolute;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(30, 40, 52, 0.9), rgba(12, 16, 22, 0.95));
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.pattern-portal .f1 {
  width: 58%;
  height: 58%;
  left: 12%;
  top: 22%;
  transform: rotateY(18deg) rotateX(8deg);
  opacity: 0.45;
}

.pattern-portal .f2 {
  width: 58%;
  height: 58%;
  left: 20%;
  top: 18%;
  transform: rotateY(18deg) rotateX(8deg) translateZ(20px);
  opacity: 0.7;
}

.pattern-portal .f3 {
  width: 58%;
  height: 58%;
  left: 28%;
  top: 14%;
  transform: rotateY(18deg) rotateX(8deg) translateZ(40px);
  padding: 12px;
  display: grid;
  gap: 8px;
  align-content: start;
}

.pv-row {
  height: 10px;
  width: 70%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.14);
}

.pv-row.short {
  width: 45%;
  opacity: 0.6;
}

.pv-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}

.pv-blocks span {
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(160deg, rgba(45, 212, 168, 0.25), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(45, 212, 168, 0.2);
}

.pattern-funnel .funnel-layer {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) rotateX(60deg);
  border: 1px solid rgba(45, 212, 168, 0.3);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(45, 212, 168, 0.12), rgba(255, 255, 255, 0.03));
}

.pattern-funnel .l1 {
  top: 28%;
  width: 70%;
  height: 42px;
}

.pattern-funnel .l2 {
  top: 42%;
  width: 52%;
  height: 42px;
}

.pattern-funnel .l3 {
  top: 56%;
  width: 34%;
  height: 42px;
}

.funnel-orb {
  position: absolute;
  left: 50%;
  top: 18%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
  animation: pulse-orb 2.8s ease-in-out infinite;
}

@keyframes pulse-orb {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.75; }
}

.pattern-ai .ai-panel {
  position: absolute;
  inset: 22% 18% 24% 18%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(45, 212, 168, 0.08));
  transform: rotateX(12deg) rotateY(-8deg);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.ai-links {
  position: absolute;
  inset: 18% 12% 12% 12%;
  width: auto;
  height: auto;
}

.ai-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pattern-body {
  padding: 1.25rem 1.3rem 1.4rem;
}

.pattern-kind {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.pattern-body h3 {
  font-size: 1.2rem;
}

.pattern-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.pattern-tags li {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

/* CTA */
.cta-band {
  padding-bottom: 4rem;
}

.cta-shell {
  display: grid;
  gap: 1.75rem;
  padding: 1.5rem;
  border-radius: calc(var(--radius-lg) + 4px);
  border: 1px solid rgba(45, 212, 168, 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 212, 168, 0.14), transparent 40%),
    linear-gradient(160deg, rgba(18, 24, 32, 0.95), rgba(10, 14, 20, 0.98));
  box-shadow: var(--shadow);
}

.cta-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-tagline {
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 1rem;
}

.cta-visual {
  display: none;
}

.cta-cube {
  width: 72px;
  height: 72px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-22deg) rotateY(35deg);
  animation: cube-spin 12s linear infinite;
}

.cta-cube .cf {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(45, 212, 168, 0.5);
  background: rgba(45, 212, 168, 0.12);
}

.cta-cube .front { transform: translateZ(24px); }
.cta-cube .right { transform: rotateY(90deg) translateZ(24px); background: rgba(45, 212, 168, 0.2); }
.cta-cube .top { transform: rotateX(90deg) translateZ(24px); background: rgba(45, 212, 168, 0.28); }

@keyframes cube-spin {
  from { transform: rotateX(-22deg) rotateY(35deg); }
  to { transform: rotateX(-22deg) rotateY(395deg); }
}

.contact-form {
  display: grid;
  gap: 0.95rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.28);
  padding: 0.85rem 0.95rem;
  color: var(--text);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-soft);
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(45, 212, 168, 0.55);
  box-shadow: var(--focus);
}

.form-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-soft);
  min-height: 1.25em;
}

.form-note a {
  color: var(--accent);
  text-decoration: underline;
}

.form-note.is-success {
  color: var(--accent);
}

.form-note.is-error {
  color: #ff8f8f;
}

.form-privacy {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.form-privacy a {
  color: var(--accent);
  text-decoration: underline;
}

.optional {
  font-weight: 500;
  color: var(--text-soft);
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Packages */
.package-grid {
  display: grid;
  gap: 1.15rem;
}

.package-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, rgba(22, 29, 39, 0.96), rgba(10, 14, 20, 0.98));
  padding: 1.35rem 1.25rem 1.2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.package-card.is-featured {
  border-color: rgba(45, 212, 168, 0.45);
  box-shadow: 0 0 0 1px rgba(45, 212, 168, 0.18), var(--shadow);
  background:
    radial-gradient(500px 180px at 20% 0%, rgba(45, 212, 168, 0.12), transparent 55%),
    linear-gradient(165deg, rgba(22, 29, 39, 0.98), rgba(10, 14, 20, 0.98));
}

.package-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.package-card h3 {
  margin: 0;
  font-size: 1.35rem;
}


.package-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.35rem 0 0.15rem;
}

.package-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.package-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.package-note {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.package-foot {
  margin: 1.5rem 0 0;
  max-width: 70ch;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 760px;
  margin-inline: auto;
}

.faq-item {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(12, 16, 22, 0.72);
  padding: 0.15rem 0.95rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  padding: 0.95rem 0;
}

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

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-item p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

/* Pattern extras */
.pattern-disclaimer {
  margin: -0.5rem 0 1.25rem;
  max-width: 70ch;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.mock-label {
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #042019;
  background: rgba(45, 212, 168, 0.9);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
}

.pv-chrome {
  display: flex;
  gap: 0.28rem;
  margin-bottom: 0.55rem;
}

.pv-chrome span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.pv-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.pv-table span {
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.funnel-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 247, 251, 0.75);
}

.funnel-layer {
  position: relative;
}

.ai-panel-bar {
  height: 8px;
  width: 42%;
  border-radius: 999px;
  background: rgba(45, 212, 168, 0.45);
  margin: 0.7rem 0.7rem 0.5rem;
}

.ai-panel-lines {
  display: grid;
  gap: 0.35rem;
  padding: 0 0.7rem;
}

.ai-panel-lines span {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.ai-panel-lines span:nth-child(2) { width: 78%; }
.ai-panel-lines span:nth-child(3) { width: 58%; }

.pattern-store .store-shelf {
  position: absolute;
  left: 10%;
  top: 18%;
  display: flex;
  gap: 0.55rem;
  width: 48%;
}

.pattern-store .store-shelf span {
  flex: 1;
  height: 64px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, rgba(40, 52, 68, 0.8), rgba(14, 18, 26, 0.9));
  transform: rotateY(12deg) rotateX(6deg);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.pattern-store .store-card {
  position: absolute;
  right: 12%;
  bottom: 14%;
  width: 42%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(30, 40, 52, 0.95), rgba(12, 16, 22, 0.98));
  padding: 0.7rem;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  transform: rotateY(-12deg) rotateX(8deg);
}

.store-thumb {
  height: 54px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(45, 212, 168, 0.35), rgba(32, 90, 180, 0.25));
  margin-bottom: 0.5rem;
}

.store-lines {
  display: grid;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}

.store-lines span {
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.store-lines span:last-child { width: 60%; }

.store-btn {
  height: 18px;
  width: 48%;
  border-radius: 999px;
  background: rgba(45, 212, 168, 0.75);
}

/* Footer cols */
.footer-cols {
  display: grid;
  gap: 1.25rem;
}

/* Subpages / legal / thank-you */
.subpage .site-header .nav-toggle {
  display: none;
}

.subpage-back {
  margin-left: auto;
}

.subpage-main {
  padding-top: 1rem;
  min-height: 60vh;
}

.narrow-wrap {
  width: min(100% - 2rem, 760px);
  margin-inline: auto;
}

.legal-doc h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.legal-doc h2 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
  margin-bottom: 0.55rem;
}

.legal-meta {
  color: var(--text-soft);
  font-size: 0.92rem;
}

.legal-list {
  display: grid;
  gap: 0.45rem;
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  list-style: disc;
  color: var(--text-muted);
}

.legal-list li {
  padding-left: 0.15rem;
}

.legal-disclaimer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 0.88rem;
}

.thank-you-section h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  max-width: 18ch;
}

.thank-card {
  margin-top: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, rgba(22, 29, 39, 0.96), rgba(10, 14, 20, 0.98));
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
}

.thank-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.thank-steps {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
  display: grid;
  gap: 0.45rem;
}

.thank-steps li {
  padding-left: 0.15rem;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 0.95rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 1.5rem;
  background: rgba(0, 0, 0, 0.25);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.footer-tagline {
  margin: 0.75rem 0 0.5rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
}

.footer-meta {
  max-width: 42ch;
  font-size: 0.92rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  color: var(--text-muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
  outline: none;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.footer-bottom p {
  margin: 0;
  color: inherit;
}

/* Reveal */
[data-reveal] {
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js-ready [data-reveal]:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}

html.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Focus for links in content */
a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

/* Responsive */
@media (min-width: 720px) {
  .tile-stage {
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
  }

  .tile-1 { transform: rotateY(-6deg) rotateX(3deg) translateY(8px); }
  .tile-2 { transform: rotateY(6deg) rotateX(3deg) translateY(8px); }
  .tile-3 { transform: rotateY(-5deg) rotateX(2deg); }
  .tile-4 { transform: rotateY(5deg) rotateX(2deg); }

  .iso-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .iso-step:nth-child(4),
  .iso-step:nth-child(5) {
    grid-column: span 1;
  }

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

  .pattern-card {
    grid-template-rows: 180px 1fr;
  }

  .package-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }

  .cta-shell {
    grid-template-columns: 1.05fr 0.95fr;
    padding: 2rem;
    align-items: start;
  }

  .cta-visual {
    display: block;
    margin-top: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    justify-items: end;
    text-align: right;
  }

  .footer-links {
    justify-items: end;
    text-align: right;
  }
}

@media (min-width: 960px) {
  .nav-desktop {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 2rem;
    min-height: 560px;
  }

  .hero {
    padding-top: 1rem;
    padding-bottom: 5rem;
  }

  .hero-stage {
    min-height: 420px;
  }

  .device-scene {
    height: 380px;
  }

  .stack-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }

  .iso-steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.85rem;
  }

  .iso-panel {
    min-height: 210px;
  }

  .section {
    padding: 6rem 0;
  }

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

@media (min-width: 1100px) {
  .pattern-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 719px) {
  .tile-1,
  .tile-2,
  .tile-3,
  .tile-4 {
    transform: none;
  }

  .tile-depth {
    inset: 8px -4px -8px 8px;
  }

  .device-scene {
    transform: rotateX(8deg) rotateY(-10deg) scale(0.95);
    height: 300px;
  }

  .laptop {
    width: 82%;
    left: 6%;
  }

  .phone {
    width: 24%;
  }

  /* Layer tower: flat vertical glass stack on mobile (no upward tilt/compress) */
  .layer-tower {
    min-height: 0;
    perspective: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    padding: 0.25rem 0 0.75rem;
    overflow: visible;
  }

  .layer-plate {
    width: 100%;
    max-width: 100%;
    margin: 0;
    transform: none !important;
    transform-style: flat;
    padding: 1rem 1.1rem;
    border-radius: 14px;
  }

  .plate-1,
  .plate-2,
  .plate-3,
  .plate-4 {
    transform: none !important;
    opacity: 1;
  }

  /* Soft stacked depth via accent edge + shadow (no rotateX) */
  .plate-1 {
    border-color: rgba(45, 212, 168, 0.4);
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      inset 3px 0 0 rgba(45, 212, 168, 0.55);
  }

  .plate-2 {
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      inset 3px 0 0 rgba(45, 212, 168, 0.32);
  }

  .plate-3 {
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      inset 3px 0 0 rgba(45, 212, 168, 0.2);
  }

  .plate-4 {
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      inset 3px 0 0 rgba(45, 212, 168, 0.12);
  }

  .plate-label {
    font-size: 1rem;
  }

  .plate-desc {
    font-size: 0.86rem;
    line-height: 1.4;
  }

  .tower-base {
    width: min(72%, 220px);
    height: 12px;
    margin: 0.35rem auto 0;
  }

  .iso-panel {
    transform: none !important;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-actions {
    display: grid;
    gap: 0.65rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .package-card,
  .thank-card,
  .cta-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .header-inner {
    gap: 0.75rem;
  }

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

  .section-head p,
  .package-foot,
  .pattern-disclaimer {
    max-width: none;
  }

  .faq-item summary {
    font-size: 0.98rem;
    padding-right: 1.5rem;
  }

  .faq-item summary::after {
    float: none;
    position: absolute;
    right: 0.95rem;
  }

  .faq-item {
    position: relative;
  }

  .mock-label {
    font-size: 0.64rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .tablet,
  .phone,
  .orbit-module,
  .funnel-orb,
  .cta-cube {
    animation: none !important;
  }

  .service-tile,
  .iso-panel,
  .device-scene,
  .btn,
  .btn-icon {
    transition: none !important;
  }

  html.js-ready [data-reveal]:not(.is-visible),
  html.js-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .tile-1,
  .tile-2,
  .tile-3,
  .tile-4 {
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled,
  .nav-mobile,
  .mod-chip {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #0b0f14;
  }
}

