/* Scaler Lab */

:root {
  --bg: #030508;
  --bg-alt: #080c12;
  --surface: #0d1219;
  --surface-hover: #141c28;
  --text: #f0f4fc;
  --text-muted: #6b7a94;
  --accent: #00e5ff;
  --accent-2: #7c5cff;
  --accent-dim: rgba(0, 229, 255, 0.1);
  --accent-glow: rgba(0, 229, 255, 0.45);
  --accent-glow-2: rgba(124, 92, 255, 0.35);
  --border: rgba(0, 229, 255, 0.12);
  --border-strong: rgba(0, 229, 255, 0.28);
  --display: "Syne", system-ui, sans-serif;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 6px;
  --radius-lg: 10px;
  --max: 1140px;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(3, 5, 8, 0.8);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.site-header.scrolled {
  border-color: var(--border-strong);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: block;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo-text {
  display: inline-flex;
  align-items: baseline;
  color: var(--text);
  letter-spacing: 0.01em;
}

.logo-accent {
  margin-left: 0.1em;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav a:not(.nav-cta) {
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:not(.nav-cta):hover {
  color: var(--accent);
}

.nav-cta {
  padding: 0.5rem 1.15rem;
  background: linear-gradient(135deg, var(--accent), #00b8d4);
  color: #030508 !important;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px var(--accent-glow);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.2s;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.25rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.mobile-nav a:last-child {
  border: none;
  color: var(--accent);
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3.5rem) 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(124, 92, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 45% at 15% 60%, rgba(0, 229, 255, 0.12), transparent 50%);
  pointer-events: none;
}

.hero-bg::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 5%;
  width: 320px;
  height: 320px;
  border: 1px solid var(--border);
  border-radius: 50%;
  opacity: 0.4;
  animation: pulse-ring 6s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.35; }
  50% { transform: scale(1.08); opacity: 0.55; }
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--accent-dim);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 2s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.25rem);
  max-width: 12ch;
  text-transform: uppercase;
}

.hero h1 .gradient {
  display: block;
  background: linear-gradient(105deg, var(--text) 0%, var(--accent) 50%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 44ch;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00b4d8);
  color: #030508;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-full {
  width: 100%;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stats strong {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats span {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-card {
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0, 229, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card-dots {
  display: flex;
  gap: 5px;
}

.hero-card-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.hero-card-dots span:first-child { background: #ff5f57; }
.hero-card-dots span:nth-child(2) { background: #febc2e; }
.hero-card-dots span:last-child { background: #28c840; }

.hero-card-body {
  padding: 1.5rem;
}

.card-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  margin-bottom: 0.75rem;
}

.hero-card h2 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.card-meta {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.25rem;
}

.card-tags span {
  padding: 0.3rem 0.6rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--accent);
}

.card-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.card-note::before {
  content: "→ ";
  color: var(--accent);
}

/* Logos */
.logos {
  padding: 2.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(0, 229, 255, 0.02));
}

.logos-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem 1.25rem;
  justify-items: center;
}

.logo-grid li {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.75;
  letter-spacing: 0.02em;
  text-align: center;
  transition: color 0.2s, opacity 0.2s;
}

.logo-grid li:hover {
  color: var(--accent);
  opacity: 1;
}

/* Sections */
.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-header {
  margin-bottom: 3rem;
  max-width: 640px;
}

.section-header.center {
  text-align: center;
  margin-inline: auto;
}

.section-header.split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
}

.section-header h2 {
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  margin-top: 0.5rem;
  text-transform: uppercase;
}

.section-lead {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.link-arrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.link-arrow:hover {
  text-shadow: 0 0 20px var(--accent-glow);
}

.card-grid.three {
  display: grid;
  gap: 1rem;
}

.feature-card,
.region-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.feature-card {
  padding: 1.75rem;
}

.feature-card::before,
.region-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.2s;
}

.feature-card:hover,
.region-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 229, 255, 0.06);
}

.feature-card:hover::before,
.region-card:hover::before {
  opacity: 1;
}

.feature-card .icon {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  display: inline-block;
  width: auto;
  height: auto;
}

.feature-card h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Regions */
.region-grid {
  display: grid;
  gap: 1rem;
}

.region-card {
  padding: 2rem;
}

.region-card h3 {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.region-card > p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.region-card ul {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.region-card li {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.region-card li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Process */
.process-steps {
  display: grid;
  gap: 1rem;
}

.process-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 1.5rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s;
}

.process-steps li:hover {
  border-color: var(--border-strong);
}

.step-num {
  grid-row: span 2;
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
}

.process-steps h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.process-steps p {
  grid-column: 2;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Roles */
.roles-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.role-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, padding-left 0.2s;
}

.role-row:last-child {
  border-bottom: none;
}

.role-row:hover {
  background: var(--surface-hover);
  padding-left: 1.75rem;
}

.role-row h3 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.role-row p {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.role-tag {
  padding: 0.3rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 3px;
}

/* Testimonial */
.testimonial blockquote {
  margin: 0;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  position: relative;
}

.testimonial blockquote::before {
  content: "// verified";
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.testimonial p {
  font-family: var(--sans);
  font-size: clamp(1.15rem, 2.5vw, 1.4rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--text);
}

.testimonial footer {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testimonial cite {
  font-family: var(--display);
  font-style: normal;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.testimonial footer span {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* CTA */
.cta {
  padding-bottom: 6rem;
}

.cta-inner {
  display: grid;
  gap: 3rem;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 80px rgba(124, 92, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.06) 0%, rgba(124, 92, 255, 0.08) 100%);
  pointer-events: none;
}

.cta-copy {
  position: relative;
}

.cta-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  text-transform: uppercase;
}

.cta-copy p {
  margin-top: 0.75rem;
  color: var(--text-muted);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.form-row label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim), 0 0 20px rgba(0, 229, 255, 0.15);
}

.form-row textarea {
  resize: vertical;
  min-height: 88px;
}

.form-note {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
}

/* Footer */
.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 32ch;
  line-height: 1.65;
}

.site-footer h4 {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Responsive */
@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .hero-grid {
    grid-template-columns: 1fr 340px;
    gap: 4rem;
  }

  .card-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }

  .region-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-bottom: 6rem;
  }
}
