/* =========================================================
   AURA LABS | style.css
   Premium black and deep-purple theme, glass surfaces,
   3D motion and responsive mobile-first layout.
   ========================================================= */

/* 1. Design tokens -------------------------------------- */
:root {
  --ink: #07050E;
  --ink-2: #0D0A1A;
  --plum: #1A0B2E;
  --plum-2: #2A0B5C;
  --violet: #8B5CF6;
  --glow: #B794FF;
  --mist: #D9CCF5;
  --text: #F1ECFB;
  --muted: #A596C2;

  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(183, 148, 255, 0.16);
  --line-strong: rgba(183, 148, 255, 0.4);

  --display: "Syne", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 68px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

/* 2. Base ----------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(139, 92, 246, 0.28), transparent 70%),
    radial-gradient(50% 40% at 0% 60%, rgba(91, 33, 182, 0.22), transparent 70%),
    var(--ink);
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

[hidden] {
  display: none !important;
}

section:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--glow);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgba(139, 92, 246, 0.45);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--glow);
  color: #0a0614;
  font-weight: 600;
}

.skip-link:focus {
  left: 12px;
}

/* 3. Typography ----------------------------------------- */
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

p {
  margin: 0;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 20ch;
}

.lead {
  margin-top: 20px;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.125rem;
}

/* 4. Header and navigation ------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
}

.site-header.is-scrolled {
  background: rgba(7, 5, 14, 0.6);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
}

.nav-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--glow), var(--violet));
  box-shadow: 0 0 12px var(--violet);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
}

.logo {
  width: 36px;
  height: auto;
  flex: none;
  color: var(--text);
  overflow: visible;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.7));
  animation: logo-in 1.2s var(--ease) both;
}

@keyframes logo-in {
  from {
    opacity: 0;
    transform: perspective(600px) rotateY(-90deg) scale(0.8);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.nav-list {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  position: relative;
  padding: 6px 0;
  color: var(--muted);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.25s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--glow), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 5. Buttons -------------------------------------------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s, background 0.3s;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
  pointer-events: none;
}

.btn:hover::after {
  transform: translateX(120%);
}

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

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--glow), var(--violet));
  color: #0a0614;
  box-shadow: 0 12px 40px -10px rgba(139, 92, 246, 0.75);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px -8px rgba(139, 92, 246, 0.95);
}

.btn-ghost {
  background: var(--glass);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--glow);
  background: var(--glass-strong);
}

/* 6. Hero ----------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 60px) 0 110px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-title {
  font-size: clamp(2.1rem, 7vw, 5.6rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.hero-title-accent {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px var(--glow);
  text-shadow: 0 0 40px rgba(139, 92, 246, 0.35);
}

.hero-sub {
  margin-top: 26px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.tagline {
  margin-top: 34px;
  font-family: var(--display);
  letter-spacing: 0.02em;
  color: var(--mist);
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: perspective(900px) rotateX(18deg) translateY(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-title,
.hero-sub,
.hero-cta,
.tagline {
  animation: hero-in 1s var(--ease) both;
}

.hero-sub { animation-delay: 0.12s; }
.hero-cta { animation-delay: 0.24s; }
.tagline { animation-delay: 0.36s; }

.hero-visual {
  position: relative;
  perspective: 1200px;
}

.orb-scene {
  height: min(520px, 80vw);
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}

.orb {
  position: relative;
  width: min(380px, 74vw);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  animation: orb-tilt 16s ease-in-out infinite;
}

.orb-core {
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ede2ff, var(--violet) 40%, var(--plum-2) 78%);
  box-shadow: 0 0 90px 12px rgba(139, 92, 246, 0.5), inset -24px -24px 60px rgba(0, 0, 0, 0.55);
  animation: core-pulse 5s ease-in-out infinite;
}

.orb-ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--glow);
  border-radius: 50%;
}

.ring-1 {
  opacity: 0.5;
  transform: rotateX(72deg);
  animation: ring-spin-x 18s linear infinite;
}

.ring-2 {
  opacity: 0.3;
  border-style: dashed;
  transform: rotateY(72deg);
  animation: ring-spin-y 24s linear infinite;
}

.ring-3 {
  inset: -10%;
  opacity: 0.2;
  transform: rotateX(22deg) rotateZ(30deg);
  animation: ring-spin-z 30s linear infinite;
}

.orb-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 18px var(--glow);
}

.dot-1 { top: 0; left: 50%; }
.dot-2 { top: 50%; left: 100%; }
.dot-3 { top: 100%; left: 50%; }

@keyframes orb-tilt {
  50% {
    transform: rotateY(18deg) rotateX(-8deg);
  }
}

@keyframes core-pulse {
  50% {
    transform: scale(1.06);
  }
}

@keyframes ring-spin-x {
  from { transform: rotateX(72deg) rotateZ(0); }
  to { transform: rotateX(72deg) rotateZ(360deg); }
}

@keyframes ring-spin-y {
  from { transform: rotateY(72deg) rotateZ(0); }
  to { transform: rotateY(72deg) rotateZ(-360deg); }
}

@keyframes ring-spin-z {
  from { transform: rotateX(22deg) rotateZ(30deg); }
  to { transform: rotateX(22deg) rotateZ(390deg); }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.scroll-cue-line {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--glow);
  animation: cue 2s var(--ease) infinite;
}

@keyframes cue {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* 7. Sections and glass surfaces ------------------------ */
.section {
  position: relative;
  padding: clamp(80px, 12vw, 150px) 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 60px -30px rgba(0, 0, 0, 0.8);
  transition: border-color 0.4s, box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(183, 148, 255, 0.18), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

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

.glass:hover {
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 70px -24px rgba(139, 92, 246, 0.45);
}

.glass > * {
  position: relative;
  z-index: 1;
}

/* 8. Scroll reveal (3D entrance) ------------------------ */
.reveal {
  opacity: 0;
  transform: perspective(1100px) rotateX(14deg) translateY(44px) scale(0.97);
  transform-origin: 50% 0;
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease), border-color 0.4s, box-shadow 0.5s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: perspective(1100px) rotateX(0) translateY(0) scale(1);
}

.glass.is-visible:hover {
  transform: translateY(-4px);
}

/* 9. About ---------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 56px;
}

.about-grid p + p {
  margin-top: 16px;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 72px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 30px 26px;
}

.stat-value {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #ffffff, var(--glow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.stats-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* 10. Services ------------------------------------------ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 34px;
  cursor: pointer;
}

.service-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--glow);
  background: linear-gradient(145deg, rgba(183, 148, 255, 0.22), rgba(91, 33, 182, 0.08));
  box-shadow: 0 0 30px -8px rgba(139, 92, 246, 0.6);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-title {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.service-desc {
  color: var(--muted);
  font-size: 0.975rem;
}

.service-detail {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--mist);
  font-size: 0.95rem;
  animation: detail-in 0.5s var(--ease);
}

@keyframes detail-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.service-toggle {
  margin-top: auto;
  padding: 22px 0 0;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  color: var(--glow);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.service-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.4s var(--ease);
}

.service-card.is-open .service-toggle::after {
  transform: rotate(-135deg) translateY(-2px);
}

/* 11. Expertise ----------------------------------------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  padding: 13px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--mist);
  font-size: 0.975rem;
  transition: border-color 0.3s, color 0.3s, box-shadow 0.4s;
}

.chip:hover {
  border-color: var(--glow);
  color: var(--text);
  box-shadow: 0 0 24px -6px rgba(139, 92, 246, 0.7);
}

/* 12. Projects ------------------------------------------ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.project-preview {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  isolation: isolate;
}

.project-preview-a {
  background:
    radial-gradient(120% 100% at 80% 20%, rgba(233, 220, 255, 0.45), transparent 45%),
    linear-gradient(160deg, var(--violet), var(--plum) 70%);
}

.project-preview-b {
  background:
    radial-gradient(90% 80% at 20% 0%, var(--glow), transparent 60%),
    linear-gradient(200deg, #3b0f7a, var(--ink-2));
}

.project-preview-c {
  background:
    radial-gradient(80% 90% at 90% 100%, var(--violet), transparent 55%),
    linear-gradient(120deg, var(--plum-2), var(--ink));
}

.badge-sample {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 5, 14, 0.7);
  color: var(--mist);
  font-size: 0.75rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.preview-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--glow) 25%, var(--violet) 55%, transparent 72%);
  box-shadow: 0 0 60px 10px rgba(139, 92, 246, 0.45);
  animation: float 6s ease-in-out infinite;
}

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

.preview-bars {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 14%;
  height: 58%;
  display: flex;
  align-items: flex-end;
  gap: 10%;
}

.preview-bars span {
  flex: 1;
  height: var(--h, 50%);
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #ede2ff, rgba(183, 148, 255, 0.25));
  transform-origin: bottom;
  animation: bar 3.6s var(--ease) infinite alternate;
}

.preview-bars span:nth-child(1) { --h: 40%; }
.preview-bars span:nth-child(2) { --h: 70%; animation-delay: 0.3s; }
.preview-bars span:nth-child(3) { --h: 55%; animation-delay: 0.6s; }
.preview-bars span:nth-child(4) { --h: 85%; animation-delay: 0.9s; }
.preview-bars span:nth-child(5) { --h: 62%; animation-delay: 1.2s; }

@keyframes bar {
  from { transform: scaleY(0.55); }
  to { transform: scaleY(1); }
}

.preview-nodes {
  position: absolute;
  inset: 0;
}

.preview-nodes::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glow), transparent);
  opacity: 0.6;
}

.node {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--glow);
  box-shadow: 0 0 18px var(--glow);
}

.n1 { left: 22%; top: 38%; }
.n2 { left: 50%; top: 62%; }
.n3 { left: 78%; top: 34%; }

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 28px 30px;
}

.project-title {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.project-desc {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 5px 11px;
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--glow);
  font-size: 0.8rem;
}

/* 13. Why choose us ------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.why-item {
  padding: 34px 28px 34px 0;
  border-bottom: 1px solid var(--line);
}

.why-item h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  transition: color 0.3s;
}

.why-item:hover h3 {
  color: var(--glow);
}

.why-item p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* 14. Pricing ------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 22px;
  margin-top: 56px;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 38px 32px;
}

.plan-featured {
  border-color: var(--glow);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.24), var(--glass) 60%);
  box-shadow: 0 30px 80px -30px rgba(139, 92, 246, 0.65);
}

.plan-badge {
  align-self: flex-start;
  margin-bottom: 20px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--glow);
  color: #0a0614;
  font-size: 0.75rem;
  font-weight: 600;
}

.plan-tier {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.plan-fit {
  min-height: 3em;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.plan-price {
  margin-bottom: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--mist);
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
}

.plan-list {
  display: grid;
  flex: 1;
  gap: 12px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.plan-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
}

.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--glow);
  border-bottom: 2px solid var(--glow);
  transform: rotate(-45deg);
}

.plan .btn {
  width: 100%;
}

.pricing-note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* 15. Collaboration ------------------------------------- */
.collab {
  padding: clamp(40px, 7vw, 88px);
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(139, 92, 246, 0.45), transparent 60%),
    var(--glass);
}

.collab .section-title {
  max-width: 22ch;
}

.collab .hero-cta {
  margin-top: 36px;
}

/* 16. Contact ------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: 56px;
}

.direct {
  display: grid;
  gap: 22px;
  margin-top: 36px;
}

.direct-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.85rem;
}

.direct-item a {
  color: var(--text);
  font-family: var(--display);
  font-size: 1.15rem;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.3s;
}

.direct-item a:hover {
  color: var(--glow);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: clamp(28px, 4vw, 44px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

label {
  color: var(--mist);
  font-size: 0.9rem;
}

.req {
  color: #f9a8d4;
}

.optional {
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(7, 5, 14, 0.55);
  color: var(--text);
  font: inherit;
  font-size: 16px; /* prevents zoom on mobile browsers */
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--glow);
  background: rgba(7, 5, 14, 0.75);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
}

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #f472b6;
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.12);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.error-msg {
  min-height: 1.2em;
  color: #f9a8d4;
  font-size: 0.85rem;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.char-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 6px;
}

.form-note {
  max-width: 44ch;
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-form .btn {
  min-width: 200px;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 1.3em;
  color: var(--mist);
  font-size: 0.95rem;
}

/* 17. Footer -------------------------------------------- */
.site-footer {
  margin-top: 40px;
  padding: 72px 0 36px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(26, 11, 46, 0.35));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer-tagline {
  max-width: 34ch;
  margin-top: 14px;
  color: var(--muted);
}

.footer-heading {
  margin-bottom: 16px;
  color: var(--text);
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
}

.footer-col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.25s;
}

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

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* 18. Responsive ---------------------------------------- */
@media (max-width: 960px) {
  .services-grid,
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .plans {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

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

@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .orb-scene {
    height: 360px;
  }

  .scroll-cue {
    display: none;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    padding: 12px 24px 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 5, 14, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: perspective(800px) rotateX(-12deg) translateY(-12px);
    transform-origin: top;
    transition: opacity 0.35s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-family: var(--display);
    font-size: 1.4rem;
  }

  .nav-link::after {
    display: none;
  }
}

@media (max-width: 700px) {
  .services-grid,
  .projects-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 80px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* 19. Reduced motion ------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
/* =========================================================
   PERFORMANCE OVERRIDES (paste at the end of style.css)
   Same design, lighter rendering.
   ========================================================= */

/* Background painted once with the page, not as a fixed layer */
body::before {
  display: none;
}

body {
  background:
    radial-gradient(60% 50% at 85% 0%, rgba(139, 92, 246, 0.28), transparent 70%),
    radial-gradient(50% 40% at 0% 60%, rgba(91, 33, 182, 0.22), transparent 70%),
    var(--ink);
}

/* Glass: gradient surfaces on phones, blur kept on desktop only */
.glass {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 30px -22px rgba(0, 0, 0, 0.9);
}

.glass:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 36px -22px rgba(139, 92, 246, 0.5);
}

.btn-ghost {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header.is-scrolled {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.main-nav {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(7, 5, 14, 0.98);
}

@media (min-width: 900px) and (hover: hover) {
  .glass {
    -webkit-backdrop-filter: blur(10px) saturate(1.2);
    backdrop-filter: blur(10px) saturate(1.2);
  }
}

/* Reveal: animate only opacity and transform (GPU-friendly) */
.reveal {
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
}

/* Skip rendering sections that are off-screen */
.section {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* Lighter text and glow effects */
.hero-title-accent {
  text-shadow: none;
}

.orb,
.orb-ring,
.orb-core {
  will-change: transform;
}

.orb-core {
  box-shadow: 0 0 60px 8px rgba(139, 92, 246, 0.45), inset -24px -24px 60px rgba(0, 0, 0, 0.55);
}

/* Pause hero animations when off-screen or when the tab is hidden */
.is-offscreen *,
body.is-hidden * {
  animation-play-state: paused !important;
}

/* Form status colours */
.form-status.is-success {
  color: #9cf0c8;
}

.form-status.is-error {
  color: #f9a8d4;
}

.contact-form .btn[disabled] {
  opacity: 0.7;
  cursor: wait;
  transform: none;
   }
