:root {
  --bg: #050509;
  --bg-alt: #0b0b12;
  --purple: #9200ff;
  --red: #ff2d2d;
  --yellow: #ffd84a;
  --text-main: #f5f5ff;
  --text-muted: #a3a3c2;
  --border-subtle: #2a2a3d;
  --card-radius: 18px;
  --shadow-soft: 0 18px 40px rgba(0,0,0,0.7);
  --max-width: 1040px;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1a0b33 0, #050509 55%, #000 100%);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px 16px 12px;
}

.page {
  width: 100%;
  max-width: var(--max-width);
  flex: 1;
  margin: 0 auto;
}

/* HEADER */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.logo-block img,
.logo-block div {
  pointer-events: none;
}

/* Force underline color when the browser shows one */
.logo-block:link,
.logo-block:visited,
.logo-block:hover,
.logo-block:active {
  text-decoration-color: #ff2d2d;
}

/* Only show underline on hover, in red */
.logo-block:hover {
  text-decoration: underline;
  text-decoration-color: #ff2d2d;
}

.logo-image {
  max-height: 80px;
  height: 80px;
  width: auto;
  display: block;
}

.logo-text-main {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  text-shadow: 0 0 6px rgba(146, 0, 255, 0.45);
}

.logo-tagline {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text-main);
  border-color: rgba(255,255,255,0.12);
  background: rgba(10,10,18,0.8);
}

.nav-link-primary {
  border-color: rgba(255,255,255,0.12);
  color: var(--text-main);
}

/* HERO */
.hero {
  border-radius: var(--card-radius);
  padding: 24px 20px 22px;
  background: radial-gradient(circle at top left,
    rgba(146,0,255,0.35), var(--bg-alt));
  border: 1px solid rgba(146,0,255,0.3);
  box-shadow: var(--shadow-soft);
  margin-bottom: 26px;
}

.hero-copy {
  flex: 1;
  min-width: 0;
}

.hero-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--yellow);
  margin-bottom: 6px;
}

.hero-title {
  font-size: clamp(1.8rem, 4.2vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 14px;
  color: var(--red);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  max-width: 36rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

/* BUTTONS */
.btn {
  padding: 9px 18px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: 0.12s ease-out;
  cursor: pointer;
  white-space: nowrap;
}

@keyframes btnGlow {
  0% {
    box-shadow: 0 0 12px rgba(146,0,255,0.45);
  }
  100% {
    box-shadow: 0 0 22px rgba(255,45,45,0.8);
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), var(--purple));
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(146,0,255,0.6);
  animation: btnGlow 2.4s ease-in-out infinite alternate;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.9);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border-color: rgba(255,255,255,0.2);
  font-weight: 500;
}

.btn-secondary:hover {
  background: rgba(10,10,18,0.95);
  box-shadow: 0 0 14px rgba(146,0,255,0.75);
  transform: translateY(-1px);
}

/* HERO PREVIEW CARDS */
.hero-previews {
  margin-top: 18px;
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: center;
  max-width: none;
  width: 100%;
}

.hero-preview {
  background: rgba(8,8,14,0.96);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: inherit;
  transition: 0.15s ease-out;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Cropping frame */
.photo-frame {
  position: relative;
  height: 120px;
  overflow: hidden;
  border-radius: 12px;
}

/* Image inside frame */
.photo-frame img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: auto;
  transform: translate(-50%, -50%);
  display: block;
}

/* Expanded state (click-to-expand) */
.hero-preview.expanded .photo-frame {
  height: auto;
  max-height: 70vh;
  overflow: visible;
  border-radius: var(--card-radius);
  z-index: 20;
}

.hero-preview.expanded .photo-frame img {
  position: static;
  width: 100%;
  height: auto;
  transform: none;
}

.hero-preview-caption {
  padding: 6px 8px 8px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hero-preview:hover {
  border-color: rgba(146,0,255,0.85);
  box-shadow: 0 10px 22px rgba(0,0,0,0.85);
  transform: translateY(-1px);
}

/* SECTION LABELS */
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 14px;
}

/* SERVICES GRID */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}

.card {
  background: rgba(16, 12, 28, 0.96);
  border-radius: var(--card-radius);
  border: 1px solid var(--border-subtle);
  padding: 16px 16px 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.65);
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-body {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* PILLS */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(80, 0, 160, 0.55);
  border: 1px solid rgba(146, 0, 255, 0.35);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  cursor: default;
  transition: background 0.15s ease-out, border-color 0.15s ease-out;
}

/* HOW IT WORKS (MINI) */
.how {
  background: rgba(8,8,14,0.96);
  border-radius: var(--card-radius);
  border: 1px solid var(--border-subtle);
  padding: 14px 16px 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.65);
  margin-bottom: 18px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.how-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 6px;
}

.how-step {
  flex: 1 1 140px;
}

.how-step strong {
  color: var(--text-main);
  font-weight: 600;
}

/* BOTTOM CTA */
.bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.bottom-text {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.bottom-cta {
  display: flex;
  justify-content: center;
  margin-top: 12px;
  width: 100%;
}

.bottom-cta-btn {
  max-width: 360px;
  width: 100%;
  text-align: center;
  display: inline-block;
}

/* BG glow at bottom */
body::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.4));
  z-index: -1;
}

/* FOOTER */
footer {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.04);
  text-align: left;
  letter-spacing: 0.03em;
}

footer a {
  color: var(--red);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* RESPONSIVE MAIN */
@media (max-width: 768px) {
  body {
    padding: 20px 14px 40px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* KEEP LOGO + NAME HORIZONTAL */
  .logo-block {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .hero {
    padding: 22px 16px 20px;
  }

  .hero-previews {
    max-width: 260px;
  }

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

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 10px;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Contact page */
.contact-section {
  max-width: var(--max-width);
  margin: 80px auto 96px;
  padding: 0 18px;
}

.contact-title {
  font-size: 2.5rem;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  color: #ff2d2d;
}

.contact-subtitle {
  margin: 0 0 32px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

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

.contact-row {
  width: 100%;
}

.contact-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.field input,
.field textarea {
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  font-size: 0.95rem;
  color: var(--text-main);
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--red);
}

.field textarea {
  resize: vertical;
  min-height: 200px;
}

.contact-actions {
  margin-top: 8px;
}

.contact-submit {
  padding-inline: 36px;
}

.label::after {
  color: #ff2d2d;
}

/* Mobile tweaks for contact + hero previews */
@media (max-width: 768px) {
  .contact-section {
    margin-top: 64px;
  }

  .contact-row--split {
    grid-template-columns: 1fr;
  }

  .contact-title {
    font-size: 2rem;
  }

  /* Make previews use full width on mobile */
  .hero-previews {
    max-width: none;
    width: 100%;
  }

  .bottom-cta {
    justify-content: center;
  }
}

/* Touch devices: make hero previews feel tappable */
@media (hover: none) and (pointer: coarse) {
  .hero-preview {
    cursor: pointer;
  }
}
