:root {
  --bg: #090909;
  --bg-soft: #141414;
  --text: #f5f5f5;
  --text-muted: #c8c8c8;
  --primary: #d90429;
  --primary-hover: #ff1f45;
  --border: #232323;
  --shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  --radius: 14px;
  --container: min(1100px, 92vw);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #070707 0%, #0f0f0f 100%);
  line-height: 1.55;
}

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

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

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section-muted {
  background-color: rgba(255, 255, 255, 0.02);
}

.section-heading {
  margin-bottom: 2.2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
  letter-spacing: 0.3px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(9px);
  background: rgba(7, 7, 7, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.2rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.25s ease;
}

.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 720px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 1.04;
}

.hero-copy {
  margin: 1.3rem 0 1.9rem;
  max-width: 63ch;
  color: var(--text-muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(217, 4, 41, 0.35);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  padding: 1rem;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.13rem;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 4, 41, 0.4);
  box-shadow: var(--shadow);
}

.about {
  display: grid;
  gap: 0.95rem;
  max-width: 760px;
}

.about p {
  margin: 0;
  color: var(--text-muted);
}

.contact-form {
  max-width: 720px;
  display: grid;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #111;
  color: var(--text);
  padding: 0.75rem 0.85rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.2);
}

.error-text {
  min-height: 1.05rem;
  color: #ff5e77;
  font-size: 0.82rem;
}

.form-status {
  margin: 0.2rem 0 0;
  color: #72e2a6;
  font-weight: 500;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem 0;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: fade-slide 0.65s ease forwards;
  animation-play-state: paused;
}

.reveal.visible {
  animation-play-state: running;
}

@keyframes fade-slide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .navbar {
    position: relative;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    right: 0;
    top: 100%;
    width: min(260px, 90vw);
    background: #0f0f0f;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.7rem;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(4px);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.45rem 0.4rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4.2rem 0;
  }

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

  .hero {
    min-height: auto;
    padding-top: 2.4rem;
  }
}
