/* ============================================
   Revetiq — Monochrome Design System
   ============================================ */

:root {
  --black: #0a0a0a;
  --grey-900: #141414;
  --grey-800: #1f1f1f;
  --grey-700: #2e2e2e;
  --grey-600: #525252;
  --grey-500: #737373;
  --grey-400: #a3a3a3;
  --grey-300: #d4d4d4;
  --grey-200: #e5e5e5;
  --grey-100: #f5f5f5;
  --white: #ffffff;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--grey-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

.hidden {
  display: none;
}

/* ---- Typography ---- */

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-500);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--black);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.125rem;
  color: var(--grey-600);
  max-width: 560px;
  margin-top: 16px;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-primary:hover {
  background: var(--grey-800);
  border-color: var(--grey-800);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-full {
  width: 100%;
}

/* ---- Header ---- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  padding: 10px 20px !important;
  background: var(--white);
  color: var(--black) !important;
  border-radius: 2px;
}

.nav-cta:hover {
  background: var(--grey-200);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 10, 0.88) 0%,
    rgba(10, 10, 10, 0.65) 50%,
    rgba(10, 10, 10, 0.78) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-height);
  max-width: 800px;
}

.hero-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.hero-accent {
  color: var(--grey-400);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--grey-300);
  max-width: 520px;
  margin-bottom: 40px;
  line-height: 1.7;
}

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

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--grey-500);
  font-size: 0.6875rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--grey-500), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---- Stats ---- */

.stats {
  background: var(--black);
  padding: 48px 0;
  border-top: 1px solid var(--grey-800);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--grey-500);
}

/* ---- Sections ---- */

.section {
  padding: 120px 0;
}

.section-dark {
  background: var(--grey-900);
  color: var(--grey-300);
}

.section-dark .section-label {
  color: var(--grey-500);
}

.section-dark .section-title {
  color: var(--white);
}

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

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--grey-200);
  border: 1px solid var(--grey-200);
}

.service-card {
  background: var(--white);
  padding: 48px 40px;
  transition: var(--transition);
}

.service-card:hover {
  background: var(--grey-100);
}

.service-number {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--grey-400);
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--grey-600);
  line-height: 1.7;
}

/* ---- Feature Image ---- */

.feature-image {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.feature-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0.55);
}

.feature-quote {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
  max-width: 700px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

/* ---- Approach ---- */

.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.approach-step {
  padding: 32px 0;
  border-top: 1px solid var(--grey-700);
}

.approach-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  color: var(--grey-400);
}

.approach-icon svg {
  width: 100%;
  height: 100%;
}

.approach-step h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.approach-step p {
  font-size: 0.9375rem;
  color: var(--grey-500);
  line-height: 1.6;
}

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

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

.about-content p {
  margin-bottom: 20px;
  color: var(--grey-600);
  line-height: 1.7;
}

.about-list {
  margin-top: 32px;
}

.about-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--grey-700);
  font-weight: 500;
}

.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--black);
}

.about-image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--grey-300);
  transform: translate(16px, 16px);
  pointer-events: none;
}

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

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

.contact-content p {
  color: var(--grey-500);
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-link {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--white);
  border-bottom: 1px solid var(--grey-600);
  padding-bottom: 4px;
  transition: border-color var(--transition);
}

.contact-link:hover {
  border-color: var(--white);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--grey-400);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  font-family: var(--font);
  font-size: 1rem;
  padding: 14px 16px;
  background: var(--grey-800);
  border: 1px solid var(--grey-700);
  border-radius: 2px;
  color: var(--white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--grey-500);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--grey-600);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ---- Footer ---- */

.footer {
  background: var(--black);
  padding: 64px 0 32px;
  border-top: 1px solid var(--grey-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 32px 64px;
}

.footer-brand .logo {
  display: block;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--grey-500);
}

.footer-links {
  display: flex;
  gap: 32px;
  align-self: start;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--grey-500);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--grey-600);
  padding-top: 32px;
  border-top: 1px solid var(--grey-800);
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    background: var(--black);
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .nav-toggle.open span:first-child {
    transform: rotate(45deg) translate(3px, 3px);
  }

  .nav-toggle.open span:last-child {
    transform: rotate(-45deg) translate(3px, -3px);
  }

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

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

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image {
    order: -1;
    max-height: 400px;
    aspect-ratio: auto;
  }

  .section {
    padding: 80px 0;
  }

  .hero-scroll {
    display: none;
  }

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

  .footer-links {
    flex-wrap: wrap;
    gap: 16px 24px;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .service-card {
    padding: 32px 24px;
  }
}
