/* Gefinity — corporate site */
:root {
  --bg: #0a0c10;
  --bg-elevated: #12151c;
  --surface: #1a1f2a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f2f4f8;
  --text-muted: #9ba3b4;
  --accent: #b46cff;
  --accent-dim: rgba(180, 108, 255, 0.18);
  --accent-hover: #d4a8ff;
  --gradient-mesh: radial-gradient(ellipse 85% 55% at 50% -15%, rgba(180, 108, 255, 0.2), transparent),
    radial-gradient(ellipse 55% 45% at 100% 5%, rgba(147, 51, 234, 0.14), transparent),
    radial-gradient(ellipse 50% 35% at 0% 30%, rgba(192, 132, 252, 0.08), transparent);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --space: clamp(1.25rem, 5vw, 3rem);
  --max: 1120px;
  --header-pad-y: clamp(1.15rem, 2.5vw, 1.5rem);
}

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

html {
  scroll-behavior: smooth;
}

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

  body::before {
    animation: none;
  }

  body::after {
    opacity: 0.02;
  }

  .hero-h1-line {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
    color: var(--text);
    background: none;
    -webkit-text-fill-color: unset;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none;
  }

  .tech-marquee-track {
    animation: none;
  }

  .tech-marquee {
    mask-image: none;
  }

  .fx-logo-tilt:hover {
    transform: none;
  }

  .hero-visual.fx-parallax-phone {
    transform: none !important;
  }

  .hero.fx-hero-spot::after,
  .about-hero.fx-hero-spot::after {
    opacity: 0 !important;
  }

  .about-scratch-hint-shimmer {
    animation: none;
    transform: none;
    opacity: 0.55;
  }

  .about-scratch-hint-hand {
    animation: none;
    transform: translate(2px, 0);
  }

  .about-scratch-hint-label {
    animation: none;
    opacity: 0.92;
  }
}

body {
  margin: 0;
  padding-top: env(safe-area-inset-top, 0);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

/* Ambient mesh — slow drift */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--gradient-mesh);
  background-repeat: no-repeat;
  background-size: 140% 140%, 120% 120%, 130% 130%;
  background-position: 40% -10%, 90% 20%, 5% 60%;
  animation: fx-mesh-drift 42s ease-in-out infinite alternate;
}

/* Film grain — subtle depth */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

@keyframes fx-mesh-drift {
  0% {
    background-position: 40% -10%, 90% 20%, 5% 60%;
  }
  100% {
    background-position: 55% 5%, 70% 35%, 25% 40%;
  }
}

main,
.site-footer {
  position: relative;
  z-index: 2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(12px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--header-pad-y) var(--space);
  max-width: calc(var(--max) + var(--space) * 2);
  margin-inline: auto;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.15em;
}

.logo span {
  color: var(--accent);
}

a.logo.fx-logo-tilt {
  display: flex;
}

.site-logo {
  width: 100px;
  height: auto;
  display: block;
}

.footer-brand .site-logo {
  width: 100px;
  height: auto;
}

.fx-logo-tilt {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.fx-logo-tilt:hover {
  transform: rotate(-2deg) scale(1.04);
}

/* Scroll-triggered entrance */
.reveal {
  opacity: 0;
  transform: translateY(1.75rem);
  filter: blur(10px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.65s ease;
}

.reveal.is-revealed {
  opacity: 1;
  transform: none;
  filter: none;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}

.nav-list {
  display: flex;
  gap: 0.5rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--text);
}

/* Nav CTA: .nav-list a out-specified .btn-primary — keep dark text on accent for contrast */
.nav-list a.btn-primary,
.nav-list a.btn-primary:hover {
  color: var(--bg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 10px 32px rgba(180, 108, 255, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 1rem var(--space) 1.5rem;
    display: none;
  }

  .nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list .btn {
    margin-top: 0.5rem;
    width: 100%;
  }
}

/* Hero */
.hero {
  padding: clamp(3rem, 8vw, 5.5rem) var(--space) clamp(5rem, 12vw, 8.5rem);
}

.hero.fx-hero-spot,
.about-hero.fx-hero-spot {
  position: relative;
  isolation: isolate;
}

.hero.fx-hero-spot::after,
.about-hero.fx-hero-spot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  background: radial-gradient(
    520px circle at var(--hero-spot-x, 50%) var(--hero-spot-y, 32%),
    rgba(180, 108, 255, 0.16),
    transparent 72%
  );
}

.hero.fx-hero-spot.is-spot-active::after,
.about-hero.fx-hero-spot.is-spot-active::after {
  opacity: 1;
}

.hero.fx-hero-spot > .container,
.about-hero.fx-hero-spot > .container {
  position: relative;
  z-index: 1;
}

/* About page hero + scratch card */
.about-hero {
  padding: clamp(4.75rem, 12vw, 7.5rem) var(--space) clamp(2.75rem, 5vw, 3.75rem);
  border-bottom: 1px solid var(--border);
}

.about-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.15rem);
  margin: 0 0 1.35rem;
  line-height: 1.22;
  max-width: min(100%, 38rem);
  padding-bottom: 0.04em;
}

.about-hero .lead {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.3vw, 1.2rem);
  max-width: 56ch;
  margin: 0;
  line-height: 1.65;
}

.about-hero-grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .about-hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(3.5rem, 7vw, 5.5rem);
  }
}

.about-hero-visual {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-scratch-glow {
  position: absolute;
  width: min(320px, 90%);
  aspect-ratio: 9 / 18;
  border-radius: 40px;
  background: radial-gradient(
    ellipse 70% 55% at 50% 38%,
    rgba(180, 108, 255, 0.22),
    transparent 68%
  );
  filter: blur(22px);
  pointer-events: none;
  z-index: 0;
}

.about-scratch-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

.about-scratch-bezel {
  position: relative;
  width: min(280px, 85%);
  aspect-ratio: 9 / 18;
  background: linear-gradient(165deg, var(--surface) 0%, #0d1117 100%);
  border-radius: 36px;
  border: 3px solid var(--border);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.about-scratch-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 24px;
  background: var(--bg);
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
}

.about-scratch-screen {
  position: absolute;
  inset: 48px 12px 16px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(
    145deg,
    rgba(180, 108, 255, 0.14) 0%,
    var(--bg) 50%,
    rgba(147, 51, 234, 0.12) 100%
  );
}

.about-scratch-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  pointer-events: none;
  padding: 0.5rem 0.85rem 1.25rem;
}

.about-scratch-logo {
  width: min(180px, 72%);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 22px rgba(180, 108, 255, 0.28));
}

.about-scratch-infinity {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 18vw, 4.25rem);
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 36px rgba(180, 108, 255, 0.45);
  letter-spacing: -0.04em;
  user-select: none;
}

.about-scratch-brand {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  user-select: none;
}

.about-scratch-tagline {
  margin: 0.35rem 0 0;
  max-width: 12.5rem;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  user-select: none;
}

.about-scratch-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
  border-radius: 22px;
}

.about-scratch-hint {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: 22px;
  overflow: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.about-scratch-hint.is-dismissed {
  opacity: 0;
  visibility: hidden;
}

.about-scratch-hint-shimmer {
  position: absolute;
  inset: -35% -60%;
  background: linear-gradient(
    100deg,
    transparent 36%,
    rgba(255, 255, 255, 0.22) 48%,
    rgba(255, 255, 255, 0.42) 52%,
    rgba(255, 255, 255, 0.2) 56%,
    transparent 68%
  );
  mix-blend-mode: soft-light;
  animation: about-scratch-shimmer 3.2s ease-in-out infinite;
}

@keyframes about-scratch-shimmer {
  0% {
    transform: translateX(-18%) skewX(-12deg);
  }

  100% {
    transform: translateX(42%) skewX(-12deg);
  }
}

.about-scratch-hint-hand {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 34px;
  height: 34px;
  margin-left: -17px;
  color: rgba(255, 255, 255, 0.82);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  animation: about-scratch-hand-nudge 1.85s ease-in-out infinite;
}

.about-scratch-hint-svg {
  display: block;
  width: 100%;
  height: 100%;
}

@keyframes about-scratch-hand-nudge {
  0%,
  100% {
    transform: translate(-7px, 2px);
  }

  50% {
    transform: translate(9px, -1px);
  }
}

.about-scratch-hint-label {
  position: absolute;
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  animation: about-scratch-label-pulse 2.2s ease-in-out infinite;
}

@keyframes about-scratch-label-pulse {
  0%,
  100% {
    opacity: 0.65;
  }

  50% {
    opacity: 1;
  }
}

.about-scratch-canvas--skip {
  opacity: 0;
  pointer-events: none;
}

.about-scratch-canvas--skip ~ .about-scratch-hint {
  display: none;
}

.hero-grid {
  display: grid;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(4rem, 7vw, 6rem);
  }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.35rem;
}

.hero h1,
.hero .hero-h1 {
  font-size: clamp(2.35rem, 5.5vw, 3.85rem);
  margin: 0 0 1.5rem;
  line-height: 1.2;
}

.hero-h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.08em;
  max-width: min(100%, 15rem);
}

.hero-h1-line {
  display: block;
  line-height: 1.25;
  padding-bottom: 0.06em;
  opacity: 0;
  transform: translateY(0.85rem);
  filter: blur(8px);
  animation: hero-h1-in 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-h1-line:nth-child(1) {
  animation-delay: 0.06s;
}

.hero-h1-line:nth-child(2) {
  animation-delay: 0.22s;
  background: linear-gradient(105deg, var(--text) 0%, var(--accent-hover) 52%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@keyframes hero-h1-in {
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.hero-lead {
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 2.2vw, 1.2rem);
  max-width: 44ch;
  margin: 0 0 2.35rem;
  line-height: 1.65;
}

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

.hero-slogan {
  margin: 2.25rem 0 0;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.42;
  color: var(--text);
  max-width: min(100%, 46rem);
  letter-spacing: -0.02em;
  padding-bottom: 0.06em;
}

.hero-slogan em {
  font-style: normal;
  color: var(--accent);
}

.hero-visual {
  position: relative;
  min-height: 280px;
}

.hero-visual.fx-parallax-phone {
  transition: transform 0.18s ease-out;
  will-change: transform;
}

.phone-mock {
  position: relative;
  margin: 0 auto;
  width: min(280px, 85%);
  aspect-ratio: 9 / 18;
  background: linear-gradient(165deg, var(--surface) 0%, #0d1117 100%);
  border-radius: 36px;
  border: 3px solid var(--border);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.phone-mock::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 24px;
  background: var(--bg);
  border-radius: 999px;
}

.phone-screen {
  position: absolute;
  inset: 48px 12px 16px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(180, 108, 255, 0.16) 0%, var(--bg) 48%, rgba(147, 51, 234, 0.1) 100%);
  overflow: hidden;
}

.phone-scene {
  position: absolute;
  inset: 0;
  padding: 1rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.phone-scene-terminal {
  z-index: 2;
  opacity: 1;
  transform: scale(1) translateY(0);
}

.phone-scene-app {
  z-index: 1;
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}

.phone-screen.is-app-open .phone-scene-terminal {
  opacity: 0;
  transform: scale(0.94) translateY(6px);
  pointer-events: none;
}

.phone-screen.is-app-open .phone-scene-app {
  z-index: 3;
  opacity: 1;
  transform: scale(1);
}

.term-window {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.42);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 0.55rem 0.65rem 0.5rem;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.58rem;
  line-height: 1.5;
  color: #d4c4fe;
}

@media (min-width: 400px) {
  .term-window {
    font-size: 0.64rem;
    padding: 0.65rem 0.75rem 0.55rem;
  }
}

.term-lines {
  flex: 1;
}

.term-line {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  min-height: 1.5em;
  word-break: break-all;
}

.term-prompt {
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
  opacity: 0.9;
}

.term-text {
  color: #e8e2f8;
}

.term-cursor-wrap {
  display: flex;
  align-items: center;
  min-height: 1.2em;
  margin-top: 0.15rem;
}

.term-cursor {
  display: inline-block;
  width: 7px;
  height: 11px;
  background: var(--accent);
  border-radius: 1px;
  animation: term-cursor-blink 0.85s step-end infinite;
}

.phone-screen.is-app-open .term-cursor {
  animation: none;
  opacity: 0;
}

@keyframes term-cursor-blink {
  50% {
    opacity: 0;
  }
}

.app-status-bar {
  height: 10px;
  width: 32%;
  margin: 0 auto 0.35rem;
  background: var(--surface);
  border-radius: 999px;
  opacity: 0.65;
}

.app-splash {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 0;
  text-align: center;
  padding-inline: 0.25rem;
}

.app-infinity {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.85rem;
  height: 3.85rem;
  margin-bottom: 0.15rem;
  font-size: 3.1rem;
  font-weight: 300;
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 28px rgba(180, 108, 255, 0.55);
  animation: app-infinity-rotate 10s linear infinite;
  animation-play-state: paused;
}

.app-infinite-value {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--accent);
  line-height: 1.25;
  opacity: 0.92;
}

.phone-screen.is-app-open .app-infinity {
  animation-play-state: running;
}

@keyframes app-infinity-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-scene {
    transition: none;
  }

  .app-infinity {
    animation: none;
  }

  .term-cursor {
    animation: none;
    opacity: 0.85;
  }
}

.app-brand {
  margin: 0;
  padding: 0.12em 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--text);
  font-stretch: 100%;
}

.app-slogan {
  margin: 0;
  max-width: 14rem;
  font-size: 0.52rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-muted);
}

@media (min-width: 400px) {
  .app-infinity {
    width: 4.15rem;
    height: 4.15rem;
    font-size: 3.35rem;
  }

  .app-infinite-value {
    font-size: 0.62rem;
  }

  .app-slogan {
    font-size: 0.58rem;
  }

  .app-brand {
    font-size: 1.02rem;
    line-height: 1.3;
  }
}

.app-home-ui {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-bottom: 0.15rem;
}

.app-row {
  height: 6px;
  width: 42%;
  background: var(--accent-dim);
  border-radius: 4px;
}

.app-tile {
  height: 28px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.app-tile--short {
  width: 75%;
  height: 22px;
}

.phone-bar {
  height: 8px;
  width: 45%;
  background: var(--accent-dim);
  border-radius: 4px;
}

.phone-card {
  flex: 1;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.phone-dots {
  display: flex;
  gap: 6px;
}

.phone-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}

.phone-dots i:first-child {
  background: var(--accent);
  opacity: 1;
}

.glow-orb {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.12;
  filter: blur(60px);
  top: 20%;
  right: 10%;
  pointer-events: none;
}

/* Sections */
.section {
  padding: clamp(4.75rem, 11vw, 7.5rem) var(--space);
}

.section-header {
  max-width: 42rem;
  margin-bottom: clamp(2.75rem, 5vw, 3.5rem);
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.section h2 {
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  margin: 0 0 1.2rem;
  line-height: 1.28;
  padding-bottom: 0.02em;
}

.section-intro {
  color: var(--text-muted);
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.125rem);
  line-height: 1.65;
  max-width: 40rem;
}

/* How we work */
.section-how-we-work .section-header {
  margin-bottom: clamp(2rem, 5vw, 2.75rem);
}

.work-lead {
  color: rgba(242, 244, 248, 0.95);
  line-height: 1.7;
}

.work-chips-wrap {
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.work-chips-label {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.work-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.65rem;
}

a.work-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

a.work-chip:hover {
  color: var(--accent-hover);
  border-color: rgba(180, 108, 255, 0.5);
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.process-board {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.35rem);
  background: linear-gradient(165deg, var(--surface) 0%, rgba(18, 21, 28, 0.65) 100%);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.process-board-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
  color: var(--text);
  letter-spacing: -0.02em;
  padding-bottom: 0.04em;
}

.process-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.1rem;
  }
}

.process-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem 1.2rem;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.process-card:hover {
  border-color: rgba(180, 108, 255, 0.28);
}

.process-card-num {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 0.85rem;
}

.process-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  line-height: 1.38;
  padding-bottom: 0.04em;
}

.process-card p {
  flex: 1;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.bg-surface {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.card-grid {
  display: grid;
  gap: clamp(1.35rem, 3vw, 1.75rem);
}

@media (min-width: 640px) {
  .card-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.85rem, 4vw, 2.15rem);
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(180, 108, 255, 0.45);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  line-height: 1.38;
  padding-bottom: 0.05em;
}

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

/* Tech strip */
.tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.tech-pill {
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.tech-marquee {
  overflow: hidden;
  margin-inline: calc(var(--space) * -0.5);
  padding-block: 0.4rem;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.tech-marquee-track {
  display: flex;
  width: max-content;
  gap: 0.75rem;
  animation: tech-marquee-scroll 44s linear infinite;
}

.tech-marquee:hover .tech-marquee-track {
  animation-play-state: paused;
}

@keyframes tech-marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.tech-marquee .tech-pill {
  flex-shrink: 0;
}

/* CTA band */
.cta-band {
  margin: 0 var(--space);
  margin-bottom: clamp(4rem, 10vw, 6rem);
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(3.25rem, 7vw, 5rem) clamp(1.5rem, 5vw, 3rem);
  background: linear-gradient(135deg, var(--accent-dim) 0%, var(--surface) 45%, rgba(147, 51, 234, 0.12) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  margin: 0 0 1rem;
  line-height: 1.3;
  padding-bottom: 0.03em;
}

.cta-band p {
  color: var(--text-muted);
  margin: 0 0 1.85rem;
  max-width: 48ch;
  margin-inline: auto;
  line-height: 1.65;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: clamp(3.5rem, 8vw, 4.5rem) var(--space) clamp(3rem, 7vw, 4rem);
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr repeat(3, 1fr);
  }
}

.footer-brand p {
  color: var(--text-muted);
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  max-width: 32ch;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  line-height: 1.35;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

/* Inner pages */
.page-hero {
  padding: clamp(4.75rem, 12vw, 7.5rem) var(--space) clamp(2.75rem, 5vw, 3.75rem);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.15rem);
  margin: 0 0 1.35rem;
  line-height: 1.22;
  max-width: min(100%, 38rem);
  padding-bottom: 0.04em;
}

.page-hero .lead {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.3vw, 1.2rem);
  max-width: 56ch;
  margin: 0;
  line-height: 1.65;
}

.prose {
  max-width: 720px;
}

.prose p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.prose h2 {
  font-size: 1.4rem;
  margin: 2.75rem 0 1rem;
  color: var(--text);
  line-height: 1.35;
  padding-bottom: 0.04em;
}

.prose ul {
  color: var(--text-muted);
  padding-left: 1.25rem;
}

.legal-prose strong {
  color: var(--text);
}

.legal-disclaimer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.service-detail {
  display: grid;
  gap: 1.15rem;
  margin-bottom: clamp(2.75rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.75rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--border);
}

.service-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.service-detail h2 {
  font-size: 1.35rem;
  margin: 0;
  line-height: 1.35;
  padding-bottom: 0.04em;
}

.service-detail > p {
  margin: 0;
  color: var(--text-muted);
}

/* Contact */
.contact-layout {
  display: grid;
  gap: clamp(2.75rem, 6vw, 4rem);
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-info h2 {
  font-size: 1.25rem;
  margin: 2.35rem 0 0.85rem;
  line-height: 1.35;
  padding-bottom: 0.03em;
}

.contact-info h2:first-of-type {
  margin-top: 0;
}

.contact-info p,
.contact-info address {
  margin: 0;
  color: var(--text-muted);
  font-style: normal;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.contact-form-humor {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0 0 1.1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent-dim);
}

.contact-form-human-check {
  margin-bottom: 0.15rem;
}

.contact-form-human-check label span {
  font-weight: 600;
  color: var(--text);
}

.contact-form-math-error {
  font-size: 0.82rem;
  color: #f0a4a4;
  margin: -0.55rem 0 1rem;
}
