:root {
  --bg: #ffffff;
  --surface: #f4f4f4;
  --text-main: #111111;
  --text-muted: #555555;
  --text-light: #999999;
  --border: #eaeaea;
  --brand: #4982f4;
  --header-h: 4.5rem;
  --container-width: 1100px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background: var(--brand);
  color: var(--bg);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body.variant-3 {
  font-family: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text-main);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.bg-surface {
  background-color: var(--surface);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  scroll-margin-top: var(--header-h);
  padding: 6rem 0;
}

/* Typography */
h1, h2, h3, h4, .brand {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--text-muted);
}

.brand-accent {
  color: var(--brand);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 0.25rem 0;
}

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

.brand {
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
  margin-right: 2rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--brand);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  text-decoration: none;
  background: var(--text-main);
  color: var(--bg);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 0;
  border: 1px solid var(--text-main);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(73, 130, 244, 0.2);
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--surface);
  border-color: var(--text-main);
  color: var(--text-main);
  box-shadow: none;
}

/* Nav Toggle */
.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--text-main);
  position: absolute;
  transition: transform 0.3s ease, background 0.3s ease;
  border-radius: 2px;
}

.nav-toggle span {
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before {
  transform: translateY(-0.35rem);
}

.nav-toggle span::after {
  transform: translateY(0.35rem);
}

body.nav-open .nav-toggle span {
  background: transparent;
}
body.nav-open .nav-toggle span::before {
  transform: rotate(45deg) translateY(0);
}
body.nav-open .nav-toggle span::after {
  transform: rotate(-45deg) translateY(0);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 2rem;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  width: 100%;
}

.hero-content {
  max-width: 800px;
  margin: auto;
}

.label-wrapper {
  margin-bottom: 1.5rem;
}

.label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--brand);
  background: rgba(73, 130, 244, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 0;
}

.blinking-cursor {
  font-weight: 400;
  color: var(--brand);
  animation: blink 1.2s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-copy {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 650px;
  margin: 0 auto;
  color: var(--text-muted);
}

.hero-logos {
  border-top: 1px solid var(--border);
  padding-top: 3rem;
  width: 100%;
}

.logos-caption {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.logos-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.logos-track img {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Sections Global */
.section-header {
  margin-bottom: 4rem;
  max-width: 600px;
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.section-subtitle {
  font-size: 0.85rem;
  color: var(--brand);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  display: block;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
  border-color: var(--brand);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(73, 130, 244, 0.1);
  color: var(--brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Process Grid */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.process-card {
  position: relative;
}

.process-num {
  font-size: 3rem;
  font-weight: 700;
  color: var(--surface);
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
  letter-spacing: -0.05em;
  transition: color 0.3s ease;
}

.process-card:hover .process-num {
  color: rgba(73, 130, 244, 0.2);
}

.process-card h3 {
  font-size: 1.25rem;
}

.process-card p {
  font-size: 0.95rem;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  padding: 2.5rem;
  background: var(--bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}

.quote-mark {
  font-size: 4rem;
  color: var(--surface);
  font-family: serif;
  line-height: 0;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.testimonial-card blockquote {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.person-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.person-info .person {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.1rem;
}

.person-info .role {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* Contact */
.contact-box {
  background: var(--text-main);
  border-radius: 0;
  padding: 6rem 4rem;
  color: var(--bg);
  text-align: center;
}

.contact-content {
  max-width: 700px;
  margin: 0 auto;
}

.status-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: var(--bg);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 0;
  margin-bottom: 2rem;
}

.contact-content h2 {
  color: var(--bg);
  margin-bottom: 1.5rem;
}

.contact-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  margin-bottom: 3rem;
}

.contact-content .btn {
  background: var(--bg);
  color: var(--text-main);
  border-color: var(--bg);
}

.contact-content .btn:hover {
  background: var(--brand);
  color: var(--bg);
  border-color: var(--brand);
}

.meta-section {
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-meta {
  display: flex;
  justify-content: center;
  gap: 3rem;
  text-align: center;
}

.meta-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meta-item p {
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.social-links a {
  color: var(--bg);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--brand);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-inner .brand {
  font-size: 1.1rem;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.2, 0, 0, 1), transform 0.8s cubic-bezier(0.2, 0, 0, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }
  
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    flex-direction: column;
    padding: 4rem 3rem;
  }
  
  .contact-meta {
    flex-direction: row;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 4rem;
  }

  .desktop-only {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
  
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-h));
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin: 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1200;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    font-size: 1.25rem;
    border: none;
    padding: 0;
  }

  section {
    padding: 4rem 0;
  }

  .hero {
    padding-top: calc(var(--header-h) + 2rem);
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-box {
    padding: 3rem 2rem;
  }
  
  .contact-meta {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
