:root {
  --bg-primary: #101214;
  --bg-secondary: #171a1f;
  --panel-overlay: rgba(11, 13, 16, 0.8);
  --text-primary: #f2f4f8;
  --text-secondary: #a4adb8;
  --accent-red: #b11226;
  --line-color: #2a313c;
  --max-content: 80rem;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
}

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

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 20% 15%, #1e232c 0%, transparent 40%),
    radial-gradient(circle at 80% 90%, #1a1f27 0%, transparent 45%),
    linear-gradient(160deg, var(--bg-primary), #0b0d10 70%);
  color: var(--text-primary);
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

body.is-ready {
  opacity: 1;
  transform: translateY(0);
}

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

.scanline-overlay,
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.scanline-overlay {
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.015) 0,
    rgba(255, 255, 255, 0.015) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.35;
}

.grid-overlay {
  background-image:
    linear-gradient(rgba(177, 18, 38, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 18, 38, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, #000 35%, transparent 90%);
  animation: grid-drift 18s linear infinite;
  opacity: 0.22;
}

.site-shell,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-shell {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: var(--space-6) var(--space-3) var(--space-6);
  display: grid;
  gap: var(--space-4);
}

.section {
  border: 1px solid var(--line-color);
  background: linear-gradient(160deg, rgba(23, 26, 31, 0.74), var(--panel-overlay));
  padding: clamp(1.1rem, 3.5vw, 2rem);
}

.hero {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  padding-top: var(--space-5);
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.5rem;
}

.hero-logo img {
  width: clamp(220px, 22vw, 420px);
  height: auto;
  display: block;
  margin: 0 auto 2rem auto;
  filter:
    drop-shadow(0 0 10px rgba(255, 60, 60, 0.35))
    drop-shadow(0 0 20px rgba(255, 60, 60, 0.2));
  animation: heroFloat 6s ease-in-out infinite;
}

h1,
h2,
h3 {
  font-family: "Orbitron", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.15;
}

.subtitle {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: clamp(0.78rem, 1.9vw, 1rem);
}

.hero-copy {
  max-width: 68ch;
  color: #c7ced8;
  font-size: clamp(0.98rem, 1.9vw, 1.14rem);
}

.button {
  margin-top: var(--space-2);
  border: 1px solid var(--accent-red);
  background: linear-gradient(140deg, rgba(177, 18, 38, 0.95), rgba(126, 16, 31, 0.95));
  color: var(--text-primary);
  font-family: "Orbitron", "Segoe UI", sans-serif;
  font-size: clamp(0.78rem, 1.8vw, 0.9rem);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  text-decoration: none;
  padding: 0.78rem 1.1rem;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(177, 18, 38, 0.25);
  filter: brightness(1.05);
  outline: none;
}

.section h2 {
  font-size: clamp(1.2rem, 3vw, 2rem);
  margin-bottom: var(--space-3);
}

.section p,
.section li,
label {
  color: #c7ced8;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.service-card {
  border: 1px solid var(--line-color);
  background: rgba(16, 18, 20, 0.75);
  padding: var(--space-3);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.service-card h3 {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  margin-bottom: var(--space-2);
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(177, 18, 38, 0.75);
  box-shadow: 0 14px 26px rgba(177, 18, 38, 0.15);
}

ul {
  display: grid;
  gap: var(--space-1);
  padding-left: 1.2rem;
}

.contact form {
  display: grid;
  gap: var(--space-3);
}

.field-grid {
  display: grid;
  gap: var(--space-3);
}

label {
  display: grid;
  gap: var(--space-1);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-color);
  background: rgba(12, 14, 17, 0.9);
  color: var(--text-primary);
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  font-size: 1rem;
  padding: 0.72rem 0.82rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 1px solid rgba(177, 18, 38, 0.65);
  border-color: rgba(177, 18, 38, 0.65);
}

textarea {
  resize: vertical;
  min-height: 7rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 1.2rem;
}

.form-status.success {
  color: #8bd7aa;
}

.form-status.error {
  color: #ef93a0;
}

.site-footer {
  text-align: center;
  padding: var(--space-5) var(--space-3) var(--space-6);
  color: #8f98a5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: grid;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.footer-title {
  color: var(--text-primary);
}

@keyframes grid-drift {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(44px);
  }
}

@keyframes heroFloat {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0px);
  }
}

@media (min-width: 768px) {
  .site-shell {
    padding: var(--space-7) var(--space-4);
    gap: var(--space-5);
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .site-shell {
    padding-top: 5rem;
  }

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

@media (max-width: 768px) {
  .hero-logo img {
    width: clamp(180px, 40vw, 260px);
  }
}

@media (min-width: 1200px) {
  .hero-logo img {
    width: clamp(280px, 20vw, 480px);
  }
}

@media (min-width: 1280px) {
  .site-shell {
    padding-left: var(--space-6);
    padding-right: var(--space-6);
  }

  .section {
    padding: 2rem 2.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .grid-overlay,
  .service-card,
  .button,
  .hero-logo img {
    animation: none;
    transition: none;
  }
}
