/* Landing page (index.html). Builds on style.css: same palette, fonts and buttons. */

.landing {
  --deep-1: #0e2a32;
  --deep-2: #0b4f5c;
  overflow-x: hidden;
}

/* ---- Navbar sits on the hero's water ---- */
.landing .navbar-dc {
  background: transparent;
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
}
.btn-ghost-light {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  font-weight: 600;
}
.btn-ghost-light:hover,
.btn-ghost-light:focus {
  color: var(--deep-1);
  background: #fff;
  border-color: #fff;
}

/* ---- Hero: deep water, light from above, rising bubbles ---- */
.hero {
  position: relative;
  color: #fff;
  padding: 7rem 0 6rem;
  background:
    radial-gradient(60rem 30rem at 75% -10%, rgba(127, 214, 226, 0.28), transparent 60%),
    radial-gradient(40rem 25rem at 10% 0%, rgba(20, 135, 154, 0.35), transparent 60%),
    linear-gradient(180deg, var(--deep-2) 0%, var(--deep-1) 75%);
  isolation: isolate;
}
.hero::before { /* shafts of light */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.045) 0 2.5rem, transparent 2.5rem 7rem);
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.hero::after { /* the depth-gauge ticks */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3.2rem;
  height: 6px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0 2px, transparent 2px 10px);
  opacity: 0.25;
}
.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 3.5rem;
  display: block;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.hero h1 em {
  font-style: italic;
  color: #ffb3a6;
}
.hero-lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
}
.hero .btn-lg {
  padding: 0.8rem 1.4rem;
  font-weight: 600;
}
.hero-note {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.bubbles span {
  position: absolute;
  bottom: -2rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.04) 60%);
  animation: rise linear infinite;
  z-index: -1;
}
@keyframes rise {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate(12px, -45vh); }
  100% { transform: translate(-8px, -95vh); opacity: 0; }
}

/* ---- Hero illustration: a labelled cylinder and one status card ---- */
.hero-art {
  position: relative;
  max-width: 22rem;
  margin: 0 auto;
  aspect-ratio: 1 / 1.25;
}
.hero-art .tank {
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  transform: translateX(-50%) rotate(-6deg);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
}
.float-card {
  position: absolute;
  left: -12%;
  bottom: 14%;
  background: #fff;
  color: var(--dc-teal-900);
  border-radius: 0.9rem;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 18px 40px rgba(3, 20, 26, 0.35);
  font-size: 0.85rem;
  animation: bob 6s ease-in-out infinite;
}
.float-card .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--dc-slate);
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid currentColor;
}
.pill-ok { color: #1e7a4c; background: #e8f6ee; }

@media (prefers-reduced-motion: reduce) {
  .bubbles { display: none; }
  .float-card { animation: none; }
}

/* ---- What it does: three short points ---- */
.points i {
  font-size: 1.6rem;
  color: var(--dc-teal-700);
}
.points h2 {
  font-size: 1.25rem;
  margin: 0.6rem 0 0.4rem;
}
.points p {
  color: var(--dc-slate);
  margin: 0;
}
.shop-line {
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dc-border);
}
.shop-line a {
  font-weight: 600;
}
.fine-print {
  margin: 0.75rem 0 0;
  color: var(--dc-slate);
  font-size: 0.82rem;
}

/* Only one set of calls to action shows: for visitors, or for logged-in users. */
.landing.signed-in .guest-only,
.landing:not(.signed-in) .member-only {
  display: none !important;
}
