/* ===== Design tokens ===== */
:root {
  --bg: #07060c;
  --bg-elev: #0d0c17;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #d8d5e4;
  --text-h: #f6f4fb;
  --muted: #9d98b3;
  --accent: #aa3bff;
  --accent-2: #863bff;
  --accent-soft: rgba(170, 59, 255, 0.16);
  --teal: #33e2c0;
  --shadow-soft: 0 30px 90px rgba(6, 4, 16, 0.55);
  --sans: 'Inter', 'Segoe UI', sans-serif;
  --heading: 'Space Grotesk', 'Segoe UI', sans-serif;
  font: 17px/1.6 var(--sans);
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 96px;
}

::selection {
  background: var(--accent-2);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-strong);
  border-radius: 999px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-soft);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -10%, rgba(170, 59, 255, 0.28), transparent 40%),
    radial-gradient(circle at 88% 0%, rgba(51, 226, 192, 0.14), transparent 34%),
    radial-gradient(circle at 50% 120%, rgba(134, 59, 255, 0.16), transparent 95%),
    linear-gradient(180deg, rgb(from var(--bg) r g b / 80%) 0%, var(--bg-elev) 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, 0.5), transparent 75%);
}

a {
  color: inherit;
}

.lang-switch {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 20;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.lang-switch a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.lang-switch a.is-active {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
}

.lang-switch a:hover:not(.is-active) {
  color: var(--text-h);
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--heading);
  color: var(--text-h);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  background: linear-gradient(135deg, var(--text-h) 20%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  text-wrap: balance;
}

h3 {
  font-size: 1.25rem;
}

.eyebrow {
  margin: 0 0 16px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--teal);
}

.lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
  text-wrap: pretty;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 16px 40px rgba(170, 59, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 20px 50px rgba(170, 59, 255, 0.45);
}

.btn-secondary {
  color: var(--text-h);
  background: var(--surface);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--surface-strong);
}

/* ===== Glass surface shared style ===== */
.coming-card,
.site-header,
.hero-copy,
.hero-panel,
.service-card,
.stack-card,
.contact-section,
.signal-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, var(--surface), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-soft);
}

/* ===== Coming soon page ===== */
.coming-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface), rgba(255, 255, 255, 0.02));
}

.coming-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: 56px;
  text-align: left;
  animation: rise-in 0.8s ease both;
}

.coming-card .lead {
  margin: 0 0 26px;
}

.coming-points {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.coming-points li {
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-h);
  font-size: 0.95rem;
}

/* ===== Studio page shell ===== */
.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.site-header,
.hero-section,
.metrics-strip,
.services-section,
.approach-section,
.contact-section {
  animation: rise-in 0.7s ease both;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding: 16px 22px;
  animation-delay: 0.02s;
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 42px;
  display: block;
  filter: drop-shadow(0 6px 16px rgb(from var(--accent) r g b / 45%));
  animation: logo-float 6s ease-in-out infinite;
  transition:
    transform 0.4s ease,
    filter 0.4s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.08);
  filter: drop-shadow(0 10px 24px rgb(from var(--accent) r g b / 60%));
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-family: var(--heading);
  font-size: 1rem;
  color: var(--text-h);
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text-h);
}

/* Hero */
.hero-section {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 28px;
  align-items: stretch;
  animation-delay: 0.08s;
}

.hero-copy {
  padding: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h1 {
  margin-bottom: 20px;
}

.hero-copy .lead {
  margin-bottom: 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.5;
}

.glow-one {
  width: 220px;
  height: 220px;
  top: -50px;
  right: -60px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.glow-two {
  width: 260px;
  height: 260px;
  bottom: -80px;
  left: -80px;
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
}

.hero-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.4;
}

.hero-path-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 12;
  animation: dash-flow 4s linear infinite;
}

@keyframes dash-flow {
  to {
    stroke-dashoffset: -180;
  }
}

.signal-card {
  position: relative;
  padding: 26px;
  margin-bottom: 18px;
  background: linear-gradient(160deg, var(--accent-soft), rgba(255, 255, 255, 0.02));
}

.signal-card span,
.stack-label,
.service-card span,
.signal-grid span {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.signal-card strong {
  display: block;
  max-width: 18rem;
  font-family: var(--heading);
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--text-h);
}

.signal-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.signal-grid article {
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.signal-grid article:hover {
  transform: translateY(-3px);
  border-color: rgb(from var(--accent) r g b / 35%);
}

.signal-grid h2 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.signal-grid p {
  color: var(--muted);
  font-size: 0.86rem;
}

/* Metrics strip */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0;
  animation-delay: 0.14s;
}

.metrics-strip p {
  margin: 0;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-h);
  font-size: 0.94rem;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.metrics-strip p:hover {
  transform: translateY(-3px);
  border-color: rgb(from var(--accent) r g b / 35%);
}

/* Services */
.services-section {
  padding: 40px;
  margin-bottom: 22px;
  animation-delay: 0.2s;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-top: 8px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  padding: 26px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgb(from var(--accent) r g b / 35%);
}

.service-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card:hover .service-icon {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
}

.service-card h3 {
  margin: 0 0 10px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* Approach */
.approach-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: 40px;
  margin-bottom: 22px;
  animation-delay: 0.26s;
}

.approach-copy {
  max-width: 40rem;
}

.approach-copy h2 {
  margin: 10px 0 16px;
}

.approach-copy p {
  color: var(--muted);
}

.stack-card {
  padding: 28px;
}

.stack-label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stack-list span {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(170, 59, 255, 0.28);
  color: var(--text-h);
  font-size: 0.86rem;
}

/* Contact */
.contact-section {
  display: grid;
  grid-template-columns: 1.2fr auto;
  align-items: center;
  gap: 24px;
  padding: 40px;
  animation-delay: 0.32s;
}

.contact-copy h2 {
  margin: 10px 0 14px;
}

.contact-copy p {
  color: var(--muted);
}

/* ===== Footer ===== */
.site-footer {
  margin-top: 48px;
  padding: 44px 22px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
}

.footer-brand .brand {
  margin-bottom: 4px;
}

.footer-blurb {
  margin-top: 14px;
  max-width: 26rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-links-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px;
}

.footer-links a,
.footer-contact a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--text-h);
}

.footer-meta {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .coming-card,
  .site-header,
  .hero-section,
  .metrics-strip,
  .services-section,
  .approach-section,
  .contact-section {
    animation: none;
  }

  .btn:hover,
  .service-card:hover,
  .signal-grid article:hover,
  .metrics-strip p:hover {
    transform: none;
  }

  .brand-mark,
  .orbit-mark,
  .orbit-ring,
  .orbit-dot,
  .hero-path-line {
    animation: none !important;
  }
}

/* ===== Brand orbit illustration (coming-soon page) ===== */
.brand-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  margin: -320px 0 0 -320px;
  pointer-events: none;
  z-index: 0;
}

.orbit-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 92px;
  margin: -46px 0 0 -48px;
  opacity: 0.55;
  filter: drop-shadow(0 0 40px rgb(from var(--accent) r g b / 55%));
  animation: logo-pulse 6s ease-in-out infinite;
}

@keyframes logo-pulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 0.65;
    transform: scale(1.06);
  }
}

.orbit-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
}

.ring-a {
  inset: 60px;
  animation: spin 55s linear infinite;
}

.ring-b {
  inset: 0;
  animation: spin 90s linear infinite reverse;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.orbit-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px 2px rgb(from var(--teal) r g b / 60%);
}

.dot-a {
  animation: orbit-a 46s linear infinite;
}

.dot-b {
  animation: orbit-b 64s linear infinite reverse;
  background: var(--accent);
  box-shadow: 0 0 12px 2px rgb(from var(--accent) r g b / 60%);
}

.dot-c {
  animation: orbit-c 34s linear infinite;
}

@keyframes orbit-a {
  from {
    transform: translate(-50%, -50%) rotate(0deg) translateX(260px);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg) translateX(260px);
  }
}

@keyframes orbit-b {
  from {
    transform: translate(-50%, -50%) rotate(0deg) translateX(300px);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg) translateX(300px);
  }
}

@keyframes orbit-c {
  from {
    transform: translate(-50%, -50%) rotate(0deg) translateX(195px);
  }

  to {
    transform: translate(-50%, -50%) rotate(360deg) translateX(195px);
  }
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-section,
  .service-grid,
  .approach-section,
  .contact-section,
  .metrics-strip,
  .signal-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .hero-copy,
  .services-section,
  .approach-section,
  .contact-section {
    padding: 30px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  :root {
    font-size: 16px;
  }

  .coming-card {
    padding: 34px 26px;
    border-radius: 24px;
  }

  .brand-orbit {
    width: 420px;
    height: 420px;
    margin: -210px 0 0 -210px;
  }

  .page-shell {
    padding-top: 12px;
  }

  .hero-copy,
  .hero-panel,
  .services-section,
  .approach-section,
  .contact-section {
    padding: 24px;
    border-radius: 22px;
  }

  .btn {
    width: 100%;
  }
}