@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/InterVariable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #0A0A0A;
  --color-bg-raised: #111111;
  --color-bg-subtle: #0E0E0E;
  --color-text: #E8E8E8;
  --color-text-muted: #888888;
  --color-text-subtle: #555555;
  --color-accent: #60A5FA;
  --color-accent-hover: #93C5FD;
  --color-accent-glow: rgba(96, 165, 250, 0.15);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-hover: rgba(255, 255, 255, 0.15);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  --size-hero: clamp(2.5rem, 2rem + 3vw, 4rem);
  --size-h2: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --size-h3: 1.25rem;
  --size-body: 1.125rem;
  --size-small: 0.875rem;
  --size-nav: 0.9375rem;

  --max-width: 1120px;
  --max-text: 640px;
  --header-h: 64px;

  --radius: 12px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

/* --- Reset --- */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--size-body);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* --- Skip Link --- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 8px 16px;
  background: var(--color-accent);
  color: var(--color-bg);
  border-radius: var(--radius-sm);
  z-index: 100;
  font-weight: 500;
  font-size: var(--size-small);
}

.skip-link:focus {
  top: 16px;
}

/* --- Layout --- */

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

.section {
  padding: 80px 0;
}

.section--lg {
  padding: 120px 0;
}

/* --- Typography --- */

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text);
}

h1 {
  font-size: var(--size-hero);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }

.text-muted { color: var(--color-text-muted); }
.text-subtle { color: var(--color-text-subtle); }

/* --- Header --- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--color-border);
}

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

.logo {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-text);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: var(--color-text-muted);
  font-size: var(--size-nav);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

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

.nav-lang {
  color: var(--color-text-subtle);
  font-size: var(--size-small);
  padding: 5px 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  text-decoration: none;
  margin-left: 12px;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.nav-lang:hover {
  color: var(--color-text-muted);
  border-color: var(--color-border-hover);
}

/* --- Hamburger --- */

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 60;
  position: relative;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  position: relative;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --- Hero --- */

.hero {
  padding: 180px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 40%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse, var(--color-accent-glow), transparent 70%);
  pointer-events: none;
  opacity: 0.7;
}

.hero-content {
  position: relative;
  max-width: 680px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.2rem);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  padding: 13px 26px;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  border: none;
  letter-spacing: 0.005em;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-accent);
  color: #0A0A0A;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  color: #0A0A0A;
  box-shadow: 0 0 40px var(--color-accent-glow);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: scale(0.98) translateY(0);
}

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

.btn-secondary:hover {
  color: var(--color-text);
  border-color: var(--color-border-hover);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: scale(0.98) translateY(0);
}

/* --- Credibility Strip --- */

.credibility {
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.credibility-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.credibility-item {
  font-size: var(--size-small);
  color: var(--color-text-subtle);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Section Headers --- */

.section-header {
  margin-bottom: 48px;
}

.section-header h2 {
  margin-bottom: 8px;
}

.section-header p {
  color: var(--color-text-muted);
  max-width: var(--max-text);
}

/* --- Cards --- */

.card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.65;
}

.card-link {
  font-size: var(--size-small);
  font-weight: 500;
}

/* --- Grids --- */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* --- Process --- */

.process-step {
  padding: 24px 0;
}

.process-number {
  font-size: var(--size-small);
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 14px;
  display: block;
  letter-spacing: 0.02em;
}

.process-step h3 {
  margin-bottom: 8px;
}

.process-step p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* --- Project Cards --- */

.project-card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  transition: border-color 0.2s var(--ease);
}

.project-card:hover {
  border-color: var(--color-border-hover);
}

.project-meta {
  font-size: var(--size-small);
  color: var(--color-text-subtle);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.1);
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.project-card h3 {
  font-size: var(--size-h2);
  margin-bottom: 16px;
}

.project-card p {
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: var(--max-text);
}

/* --- Final CTA --- */

.final-cta {
  background: var(--color-bg-raised);
  padding: 96px 0;
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 16px;
}

.final-cta p {
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.email-fallback {
  display: block;
  margin-top: 20px;
  font-size: var(--size-small);
  color: var(--color-text-subtle);
}

.email-fallback a {
  color: var(--color-text-muted);
}

/* --- Testimonials --- */

.testimonial {
  border-left: 2px solid var(--color-border);
  padding-left: 24px;
  margin-bottom: 40px;
}

.testimonial blockquote {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 12px;
  font-style: italic;
}

.testimonial cite {
  font-size: var(--size-small);
  color: var(--color-text-subtle);
  font-style: normal;
}

/* --- Services Page --- */

.service-track {
  margin-bottom: 64px;
  max-width: var(--max-text);
}

.service-track h2 {
  margin-bottom: 16px;
}

.service-track > p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-track h3 {
  margin-bottom: 16px;
  margin-top: 32px;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  color: var(--color-text-muted);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--color-text-subtle);
}

.service-best-for {
  margin-top: 24px;
  font-size: var(--size-small);
  color: var(--color-text-subtle);
  line-height: 1.6;
}

.service-best-for strong {
  color: var(--color-text-muted);
}

/* --- About Page --- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 300px;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.about-text h1 {
  margin-bottom: 28px;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  max-width: var(--max-text);
  line-height: 1.7;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.value-item h3 {
  margin-bottom: 6px;
}

.value-item p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* --- Contact Page --- */

.contact-content {
  max-width: 520px;
}

.contact-content h1 {
  margin-bottom: 8px;
}

.contact-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 48px;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
}

.contact-email {
  display: inline-block;
  font-size: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--color-border);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.contact-email:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.steps-heading {
  font-size: var(--size-h3);
  margin-bottom: 28px;
}

.steps {
  counter-reset: step;
}

.step {
  counter-increment: step;
  padding-left: 40px;
  position: relative;
  margin-bottom: 20px;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(96, 165, 250, 0.1);
}

.step p {
  color: var(--color-text-muted);
  line-height: 1.6;
}

.response-time {
  margin-top: 28px;
  font-size: var(--size-small);
  color: var(--color-text-subtle);
}

/* --- Content Box (markdown pages) --- */

.content-box {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto;
}

.content-box h1 {
  font-size: var(--size-h2);
  margin-bottom: 24px;
}

.content-box h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.content-box h3 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.content-box p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.content-box ul, .content-box ol {
  color: var(--color-text-muted);
  margin-left: 1.5rem;
  margin-bottom: 16px;
}

.content-box li {
  margin-bottom: 6px;
  line-height: 1.6;
}

.content-box hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 32px 0;
}

.content-box a {
  color: var(--color-accent);
}

.content-box em {
  color: var(--color-text-subtle);
}

.content-box strong {
  color: var(--color-text);
  font-weight: 600;
}

/* --- NDA Block --- */

.nda-block {
  border-left: 2px solid var(--color-border);
  padding-left: 24px;
}

.nda-block p {
  color: var(--color-text-muted);
  max-width: var(--max-text);
  line-height: 1.7;
}

.nda-block p + p {
  margin-top: 12px;
  color: var(--color-text-subtle);
}

/* --- Industries --- */

.industries-text {
  color: var(--color-text-muted);
  max-width: var(--max-text);
  line-height: 1.7;
}

/* --- Footer --- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0;
  margin-top: 0;
}

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

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--color-text-subtle);
  font-size: var(--size-small);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

.footer-nav a:hover {
  color: var(--color-text-muted);
}

.footer-copy {
  font-size: var(--size-small);
  color: var(--color-text-subtle);
}

/* --- Scroll Reveal --- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }

/* --- Responsive: Desktop --- */

@media (min-width: 768px) {
  .section { padding: 128px 0; }
  .section--lg { padding: 160px 0; }

  .hero { padding: 220px 0 160px; }

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

  .about-grid {
    grid-template-columns: 280px 1fr;
    gap: 64px;
  }

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

  .content-box {
    padding: 56px;
  }

  .final-cta {
    padding: 128px 0;
  }
}

/* --- Responsive: Mobile --- */

@media (max-width: 767px) {
  .container { padding: 0 20px; }

  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 55;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav .nav-link {
    font-size: 1.5rem;
    padding: 14px 24px;
    font-weight: 500;
  }

  .main-nav .nav-lang {
    margin-left: 0;
    margin-top: 20px;
    font-size: var(--size-nav);
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 140px 0 80px;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }

  .credibility-items {
    flex-direction: column;
    gap: 8px;
  }

  .project-card {
    padding: 28px;
  }

  .about-photo {
    max-width: 220px;
    margin: 0 auto;
  }

  .final-cta {
    padding: 64px 0;
  }

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

  .footer-nav {
    justify-content: center;
  }

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

  .section-header {
    text-align: center;
  }
}

/* --- Reduced Motion --- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}
