:root {
  --primary: #9d1111;
  --primary-dark: #5f0505;
  --accent: #ff6b3d;
  --bg-light: #f4f6f9;
  --text-main: #191919;
  --text-muted: #6b7280;
  --white: #ffffff;
  --border-soft: #e5e7eb;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.15);
  --radius-lg: 1rem;
  --radius-full: 999px;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
}

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

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

/* Layout */

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(
    to right,
    var(--primary-dark),
    var(--primary)
  );
  color: var(--white);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.35);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.nav-brand {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

.nav-brand span:first-child {
  font-size: 1.2rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
}

.nav-menu a {
  opacity: 0.9;
  padding-bottom: 0.1rem;
  border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.9);
}

.btn,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background 0.12s ease, color 0.12s ease;
}

.btn {
  background: var(--accent);
  color: #111827;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.25);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.35);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #f9fafb;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero */

.hero {
  background: radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.05),
      transparent
    ),
    url("https://images.pexels.com/photos/7224035/pexels-photo-7224035.jpeg?auto=compress&cs=tinysrgb&w=1600")
      center/cover no-repeat;
  color: var(--white);
  padding: 4.5rem 0 5rem;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(17, 24, 39, 0.9),
    rgba(17, 24, 39, 0.9)
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw + 1.5rem, 3rem);
  margin: 0 0 0.75rem;
}

.hero h1 span {
  display: block;
}

.hero-subtitle {
  font-size: 0.98rem;
  opacity: 0.92;
  margin-bottom: 1.5rem;
}

.hero-tags {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.8;
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
}

/* Generic sections */

.section {
  padding: 3.5rem 0;
}

.section-muted {
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.section-heading {
  text-align: center;
  font-size: 1.7rem;
  margin: 0;
}

.section-heading span.dot {
  color: var(--accent);
}

.section-lead {
  max-width: 640px;
  margin: 0.75rem auto 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Feature cards */

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.3rem;
  box-shadow: var(--shadow-soft);
  border-top: 3px solid var(--primary);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(157, 17, 17, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.feature-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Two-column section */

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(157, 17, 17, 0.06);
  color: var(--primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.7rem;
}

.h2 {
  font-size: 1.6rem;
  margin: 0 0 0.5rem;
}

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

.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.checklist li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.93rem;
  margin-bottom: 0.5rem;
}

.checklist span.icon {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: var(--primary);
}

/* Network section */

.network {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.network p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */

footer {
  background: var(--primary-dark);
  color: #f9fafb;
  padding: 2.8rem 0 2rem;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.2fr repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #e5e7eb;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
}

.footer-links li {
  margin-bottom: 0.25rem;
}

.footer-links a {
  color: #e5e7eb;
  opacity: 0.9;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-meta {
  border-top: 1px solid rgba(148, 163, 184, 0.5);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  color: #e5e7eb;
  font-size: 0.8rem;
}

/* About page */

.page-hero {
  background: var(--bg-light);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border-soft);
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.page-hero h1 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.9rem;
}

.page-hero p {
  margin: 0;
  max-width: 640px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.columns-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 2.2rem;
}

/* Contact page */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding: 1.7rem 1.6rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.3rem;
}

.form-grid-full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
  color: #374151;
}

input,
textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border-soft);
  font: inherit;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(157, 17, 17, 0.08);
}

/* Utilities */

.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.75rem;
}
.mt-3 {
  margin-top: 1.25rem;
}

.small {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */

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

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

  .navbar {
    flex-wrap: wrap;
    gap: 1rem;
  }

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

@media (max-width: 640px) {
  .features {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding: 3.3rem 0 3.4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-menu {
    width: 100%;
    justify-content: flex-end;
    gap: 1rem;
  }
}
