@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Playfair+Display:wght@500;600;700&display=swap");

:root {
  --ink: #102b38;
  --deep-water: #17495c;
  --mist: #dcecf0;
  --sand: #f7f0e5;
  --surface: #fffdf8;
  --coral: #e9866b;
  --coral-dark: #c9634b;
  --plant: #78a66d;
  --text: #18313c;
  --muted: #5d7480;
  --line: #cddde1;
  --white: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--sand);
  color: var(--text);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
}

#header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(16, 43, 56, 0.94);
  backdrop-filter: blur(10px);
}

#nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1150px, 90%);
  min-height: 72px;
  margin: auto;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 1.9rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--coral);
  border-radius: 50%;
  color: var(--coral);
  font-family: Arial, sans-serif;
  font-size: 1.1rem;
}

#nav-bar ul,
footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  list-style: none;
}

#nav-bar a:not(.brand) {
  color: var(--mist);
  font-size: 0.9rem;
  text-decoration: none;
}

#nav-bar a:not(.brand):hover,
#nav-bar a:not(.brand):focus-visible {
  color: var(--coral);
}

.hero {
  position: relative;
  display: grid;
  min-height: 680px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(9, 36, 48, 0.94), rgba(9, 36, 48, 0.42)),
    url("images/aquarium-hero.jpg") center / cover;
}

.hero::after {
  position: absolute;
  right: 8%;
  bottom: -10rem;
  width: 30rem;
  aspect-ratio: 1;
  border: 1px solid rgba(220, 236, 240, 0.35);
  border-radius: 50%;
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1150px, 90%);
  padding: 6rem 0;
  color: var(--white);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.05;
}

.hero h1 {
  max-width: 9ch;
  font-size: clamp(3.5rem, 8vw, 6.8rem);
}

.hero-content > p:not(.eyebrow) {
  max-width: 47ch;
  margin: 1.6rem 0 2rem;
  color: var(--mist);
  font-size: 1.1rem;
}

.hero-note {
  position: absolute;
  z-index: 1;
  right: 5%;
  bottom: 2rem;
  color: var(--mist);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button {
  display: inline-block;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  outline: 3px solid rgba(233, 134, 107, 0.35);
  outline-offset: 3px;
}

.button-coral {
  background-color: var(--coral);
  color: var(--ink);
}

.button-coral:hover,
.button-coral:focus-visible {
  background-color: #f3a18b;
}

.button-outline {
  border-color: var(--deep-water);
  color: var(--deep-water);
}

.button-outline:hover,
.button-outline:focus-visible {
  background-color: var(--deep-water);
  color: var(--white);
}

.email-section,
.section,
.process-section {
  width: min(1150px, 90%);
  margin: auto;
}

.email-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 5rem 0;
}

h2 {
  font-size: clamp(2.3rem, 4vw, 4rem);
}

.email-section > div > p:last-child,
.section-heading + p {
  color: var(--muted);
}

#form {
  display: flex;
  align-self: center;
  gap: 0.6rem;
}

input {
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  background-color: var(--surface);
  color: var(--text);
  font: inherit;
}

input[type="email"] {
  flex: 1;
}

input[type="submit"] {
  border-color: var(--coral);
  background-color: var(--coral);
  color: var(--ink);
  cursor: pointer;
  font-weight: bold;
}

input[type="submit"]:hover,
input[type="submit"]:focus-visible {
  background-color: #f3a18b;
  outline: 3px solid rgba(233, 134, 107, 0.35);
  outline-offset: 3px;
}

.section {
  padding: 6rem 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 3rem;
}

.feature-grid,
.kit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  min-height: 250px;
  padding: 1.75rem;
  border-radius: 0.75rem;
  background-color: var(--surface);
}

.feature-icon {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--coral);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.3rem;
}

.feature-card h3,
.kit-card h3,
.process-list h3 {
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
}

.feature-card p,
.kit-description {
  color: var(--muted);
}

.process-section {
  padding: 6rem 0;
}

.process-section::before {
  display: block;
  width: 100vw;
  height: 100%;
  background-color: var(--mist);
  content: "";
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 3rem 0;
  list-style: none;
}

.process-list li {
  display: flex;
  gap: 1rem;
}

.process-list span {
  color: var(--coral-dark);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
}

.video-wrapper {
  overflow: hidden;
  aspect-ratio: 16 / 8;
  border-radius: 0.75rem;
  background-color: var(--ink);
}

#video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-note {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.85rem;
}

code {
  color: var(--coral-dark);
}

.kits-section {
  padding-bottom: 7rem;
}

.kit-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 450px;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background-color: var(--surface);
}

.kit-card.recommended {
  border: 2px solid var(--coral);
  box-shadow: 8px 8px 0 #f2c5b8;
}

.popular-label {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  padding: 0.35rem 0.75rem;
  border-radius: 99px;
  background-color: var(--coral);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.kit-label {
  color: var(--plant);
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kit-card h3 {
  margin-top: 0.6rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
}

.price {
  margin: 0.6rem 0 1rem;
  color: var(--deep-water);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  font-weight: bold;
}

.kit-card ul {
  display: grid;
  flex: 1;
  gap: 0.65rem;
  margin: 1.5rem 0;
  list-style: none;
}

.kit-card li::before {
  margin-right: 0.55rem;
  color: var(--plant);
  content: "●";
  font-size: 0.7rem;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem 5%;
  background-color: var(--ink);
  color: var(--mist);
}

footer p {
  font-size: 0.9rem;
}

footer ul a {
  color: var(--mist);
  font-size: 0.85rem;
  text-decoration: none;
}

footer ul a:hover,
footer ul a:focus-visible {
  color: var(--coral);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 800px) {
  #nav-bar,
  .email-section,
  footer {
    flex-direction: column;
    justify-content: center;
  }

  #nav-bar {
    padding: 1rem 0;
  }

  #nav-bar ul {
    justify-content: center;
  }

  .email-section,
  .feature-grid,
  .process-list,
  .kit-grid {
    grid-template-columns: 1fr;
  }

  .email-section {
    gap: 2rem;
  }

  .process-list {
    gap: 1.5rem;
  }

  .hero {
    min-height: 600px;
  }

  #form {
    flex-direction: column;
  }

  .kit-card {
    min-height: auto;
  }

  footer {
    text-align: center;
  }
}

@media (max-width: 500px) {
  #nav-bar ul {
    gap: 0.7rem;
  }

  #nav-bar a:not(.brand) {
    font-size: 0.78rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .hero-note {
    display: none;
  }
}