html {
  scroll-behavior: smooth;
}

:root {
  --ocean-top: #1768c7;
  --ocean-deep: #072647;
  --ocean-floor: #041f3a;
  --gold: #f6ac2b;
  --gold-dark: #cb8512;
  --sky: #5fb8ff;
  --white: #ffffff;
  --panel: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(124, 197, 255, 0.12), transparent 30%),
    linear-gradient(180deg, var(--ocean-top) 0%, #0d467f 14%, var(--ocean-deep) 28%, var(--ocean-floor) 100%);
  color: var(--white);
  font-family: "Trebuchet MS", "Arial Narrow", Arial, sans-serif;
}

.landing-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.landing-hero {
  position: relative;
  min-height: 70vh;
}
@font-face {
    font-family: "CustomFont";
    src: url("Antonio-VariableFont_wght.ttf") format("Antonio");
}
.landing-brand {
  font-family: CustomFont, sans-serif;
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 0.88;
  font-weight: 900;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: #313030 4px 4px 16px;
}

.submarine-wrap {
  position: absolute;
  right: 2%;
  top: 2%;
  width: min(520px, 52vw);
  height: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: drift 8s linear infinite;
  isolation: isolate;
}

.bubble-stream {
  position: absolute;
  right: 142px;
  top: -118px;
  width: 110px;
  height: 320px;
  pointer-events: none;
}

.trail-bubble {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.98), rgba(185, 224, 255, 0.86) 42%, rgba(93, 155, 221, 0.92) 100%);
  border: 2px solid rgba(10, 31, 60, 0.45);
  opacity: 0.92;
  animation: bubble-rise linear infinite;
}

.trail-bubble.b1 { left: 56px; width: 14px; height: 14px; animation-duration: 4.8s; animation-delay: 0s; }
.trail-bubble.b2 { left: 36px; width: 18px; height: 18px; animation-duration: 5.8s; animation-delay: 0.6s; }
.trail-bubble.b3 { left: 64px; width: 26px; height: 26px; animation-duration: 6.4s; animation-delay: 1.2s; }
.trail-bubble.b4 { left: 18px; width: 12px; height: 12px; animation-duration: 5.2s; animation-delay: 1.8s; }
.trail-bubble.b5 { left: 76px; width: 20px; height: 20px; animation-duration: 6.1s; animation-delay: 2.4s; }
.trail-bubble.b6 { left: 42px; width: 30px; height: 30px; animation-duration: 6.8s; animation-delay: 2.8s; }
.trail-bubble.b7 { left: 10px; width: 16px; height: 16px; animation-duration: 5.6s; animation-delay: 3.1s; }
.trail-bubble.b8 { left: 60px; width: 10px; height: 10px; animation-duration: 4.6s; animation-delay: 3.6s; }

.submarine-image {
   position: absolute;
  left: 7%;  /* Changed from right: 2% */
  top: 4%;  /* Adjusted for centering */
  width: min(453px);
  height: 360px;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: drift 8s cubic-bezier(0.39, -0.37, 0.5, 0.96) infinite;
  isolation: isolate;
  transform: translateY(-50%);  /* Added for vertical centering */
}

.hero-copy {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 36px;
  align-items: end;
  padding-top: 320px;
}

.hero-copy h1 {
  margin: 0 0 10px;
  max-width: 440px;
  color: var(--gold);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hero-copy p {
  margin: 0 0 22px;
  max-width: 420px;
  color: #ffd47b;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.landing-btn:hover {
  transform: translateY(-2px);
}

.landing-btn.primary {
  background: var(--white);
  color: #124885;
}

.landing-btn.secondary {
  background: transparent;
  color: var(--white);
}

.hero-preview {
  align-self: center;
  justify-self: center;
  width: min(320px, 100%);
  border-radius: 28px;
  background: linear-gradient(180deg, #f4ac31, #ea971a);
  border: 4px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.26);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hero-preview:hover,
.hero-preview:focus-visible {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 38px 70px rgba(0, 0, 0, 0.28);
  outline: none;
}

.preview-screen {
  width: 74%;
  height: 70%;
  border-radius: 18px;
  padding: 16px;
  background: #fff7ea;
  display: grid;
  gap: 14px;
}

.preview-nav,
.preview-bars span,
.preview-cards span {
  display: block;
  border-radius: 999px;
  background: rgba(10, 61, 112, 0.14);
}

.preview-nav {
  height: 12px;
  width: 54%;
}

.preview-bars {
  display: flex;
  align-items: end;
  gap: 10px;
}

.preview-bars span:nth-child(1) { width: 24%; height: 56px; }
.preview-bars span:nth-child(2) { width: 24%; height: 84px; }
.preview-bars span:nth-child(3) { width: 24%; height: 42px; }

.preview-cards {
  display: grid;
  gap: 10px;
}

.preview-cards span {
  height: 16px;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 54px;
}

.feature-card {
  min-height: 230px;
  padding: 26px 22px;
  background: rgba(255, 255, 255, 0.96);
  color: #0c3768;
  border-radius: 18px;
  border: 3px solid rgba(255, 189, 66, 0.18);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.16);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 30px 54px rgba(0, 0, 0, 0.2);
}

.feature-card h2 {
  margin: 0 0 14px;
  color: #1f88e2;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.feature-card p {
  margin: 0;
  line-height: 1.5;
  color: #385474;
}

.detail-panel {
  margin-top: 28px;
  padding: 24px 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.detail-copy h3 {
  margin: 0 0 10px;
  color: #ffca63;
  font-size: 1.6rem;
  text-transform: uppercase;
}

.detail-copy p {
  margin: 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
}

@keyframes drift {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@keyframes bubble-rise {
  0% {
    transform: translate3d(0, 24px, 0) scale(0.86);
    opacity: 0;
  }
  15% {
    opacity: 0.92;
  }
  50% {
    transform: translate3d(10px, -110px, 0) scale(1);
  }
  100% {
    transform: translate3d(-8px, -280px, 0) scale(1.18);
    opacity: 0;
  }
}

@media (max-width: 920px) {
  .submarine-wrap {
    position: relative;
    width: min(100%, 420px);
    margin: 20px auto 0;
    right: auto;
    top: auto;
  }

  .bubble-stream {
    right: 120px;
    top: -88px;
    height: 260px;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }

  .hero-preview {
    justify-self: start;
  }

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

  .detail-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .landing-shell {
    width: min(100% - 20px, 1080px);
  }

  .bubble-stream {
    right: 94px;
    width: 90px;
  }

  .landing-btn {
    width: 100%;
  }
}
