:root {
  --marine-ink: #111827;
  --marine-accent: #dc2626;
  --marine-accent-dark: #991b1b;
  --marine-highlight: #facc15;
  --marine-shadow: rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #f3f4f6;
  background: #050505;
}

.marine-hero-section {
  position: relative;
  background-size: cover;
  background-position: center -174px;
  background-attachment: scroll;
}

.marine-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1439792675105-701e6a4ab6f0?auto=format&fit=crop&w=1920');
  background-size: cover;
  background-position: center -174px;
  background-attachment: scroll;
  filter: grayscale(100%);
  z-index: -1;
}

/* Desktop background positioning */
@media (min-width: 1024px) {
  .marine-hero-section {
    background-position: center center;
  }
  .marine-hero-section::before {
    background-position: center center;
  }
}

.marine-service-chip {
  border: 1px solid rgba(250, 204, 21, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #f9fafb;
}

.marine-problem-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}



.marine-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 50px;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 0.75rem 1.3rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  cursor: pointer;
}

.marine-cta.primary {
  background: linear-gradient(110deg, var(--marine-accent), #b91c1c);
  color: #fff;
  box-shadow: 0 10px 35px rgba(220, 38, 38, 0.38);
}

.marine-cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(220, 38, 38, 0.45);
  background: linear-gradient(110deg, var(--marine-accent-dark), var(--marine-accent));
}

.marine-cta.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(250, 204, 21, 0.7);
}

.marine-cta.secondary:hover {
  background: rgba(250, 204, 21, 0.1);
}

.marine-service-card {
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1.2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.marine-service-card h3 {
  margin: 0 0 0.5rem 0;
  color: #111827;
  font-size: 1.25rem;
  font-weight: 700;
}

.marine-service-card p {
  margin: 0;
  color: #4b5563;
}

.marine-midband {
  background:
    radial-gradient(circle at 80% 120%, rgba(250, 204, 21, 0.14), transparent 42%),
    linear-gradient(120deg, #090909 0%, #171717 55%, #262626 100%);
}

.proof-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(250, 204, 21, 0.22);
  border-radius: 1rem;
  padding: 1.25rem;
  color: #fff;
}

.proof-item i {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--marine-highlight);
}

.proof-item h3 {
  margin: 0 0 0.45rem 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.proof-item p {
  margin: 0;
  color: #e5e7eb;
}

.faq-item {
  border: 1px solid #374151;
  border-radius: 0.85rem;
  padding: 0.8rem 1rem;
  background: #121212;
}

.faq-item summary {
  font-weight: 700;
  color: #f9fafb;
  cursor: pointer;
}

.faq-item p {
  margin: 0.7rem 0 0 0;
  color: #d1d5db;
}

.marine-endcap {
  background:
    radial-gradient(circle at 10% 10%, rgba(250, 204, 21, 0.14), transparent 32%),
    radial-gradient(circle at 92% 20%, rgba(220, 38, 38, 0.2), transparent 30%),
    linear-gradient(130deg, #050505 0%, #151515 60%, #202020 100%);
}

.marine-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.marine-modal.hidden {
  display: none;
}

.marine-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.marine-modal-panel {
  position: relative;
  width: min(560px, 95vw);
  max-height: 90vh;
  overflow: auto;
  border-radius: 1.1rem;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(250, 204, 21, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
  border: 1px solid #e5e7eb;
  box-shadow: 0 28px 75px rgba(0, 0, 0, 0.5);
  animation: modalPop 360ms cubic-bezier(0.17, 0.84, 0.44, 1);
}

@keyframes modalPop {
  from {
    transform: translateY(24px) scale(0.96);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.marine-modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #111827;
  cursor: pointer;
}

.marine-modal-kicker {
  margin: 0;
  color: var(--marine-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-size: 0.8rem;
}

.marine-modal-panel h3 {
  margin: 0.35rem 0 0.35rem 0;
  color: #111827;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.marine-modal-panel p {
  margin: 0 0 0.8rem 0;
  color: #4b5563;
}

.marine-modal-energy {
  height: 4px;
  border-radius: 999px;
  margin: 0 2.4rem 0.7rem 0;
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.12), rgba(220, 38, 38, 0.8), rgba(250, 204, 21, 0.35));
  background-size: 170% 100%;
  animation: streak 2.8s linear infinite;
}

@keyframes streak {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}


.marine-callout {
  margin-top: 0.85rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.9);
}

.marine-callout .modal-submit {
  width: 100%;
}

.marine-callout-note {
  margin: 0.7rem 0 0 0;
  font-size: 0.92rem;
  color: #4b5563;
  text-align: center;
}

.marine-callout a:focus,
.marine-modal-close:focus,
.marine-cta:focus {
  outline: 3px solid rgba(220, 38, 38, 0.24);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .marine-service-card h3 {
    font-size: 1.1rem;
  }

  .marine-modal-panel {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
