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

:root {
  color-scheme: dark;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --white: #ffffff;
  --ice: #dff4ff;
  --sky: #59c7f2;
  --blue: #0879bb;
  --deep: #032f55;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--deep);
  color: var(--white);
}

button,
a {
  font: inherit;
}

.hero {
  isolation: isolate;
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 48px 24px;
}

.hero__backdrop {
  position: absolute;
  z-index: -4;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(1, 28, 52, 0.78) 0%, rgba(4, 50, 81, 0.45) 45%, rgba(2, 34, 60, 0.66) 100%),
    url("assets/ocean-plastic.jpg") center / cover no-repeat;
  animation: reveal 1.4s ease-out both;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(circle at 28% 10%, rgba(113, 211, 255, 0.28), transparent 34%),
    linear-gradient(to bottom, rgba(0, 28, 51, 0.04), rgba(0, 24, 46, 0.5));
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  pointer-events: none;
}

.orb {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(89, 199, 242, 0.14);
  box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.orb--one {
  top: -90px;
  right: -70px;
  width: 310px;
  height: 310px;
}

.orb--two {
  bottom: -110px;
  left: -65px;
  width: 250px;
  height: 250px;
}

.glass-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(410px, 1.22fr);
  width: min(1040px, 100%);
  min-height: 570px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(232, 248, 255, 0.2), rgba(143, 210, 239, 0.08));
  box-shadow:
    0 40px 90px rgba(0, 18, 38, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(22px) saturate(125%);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  animation: card-in 0.85s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-panel {
  position: relative;
  display: grid;
  place-items: center;
  padding: 48px 36px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(226, 247, 255, 0.82));
}

.brand-panel::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 0;
  width: 1px;
  height: 80%;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.75), transparent);
}

.logo {
  display: block;
  width: min(66%, 215px);
  height: auto;
  filter: drop-shadow(0 18px 22px rgba(0, 74, 116, 0.14));
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px clamp(40px, 6vw, 76px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: var(--ice);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: var(--sky);
  box-shadow: 0 0 14px rgba(89, 199, 242, 0.75);
}

h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.55rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

h1 span {
  display: block;
  margin-top: 13px;
  color: #95dcfa;
  font-size: 0.57em;
  letter-spacing: -0.035em;
}

.lead {
  margin: 30px 0 36px;
  color: rgba(239, 249, 255, 0.86);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  align-self: flex-start;
  min-width: min(100%, 330px);
  padding: 16px 18px 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(0, 35, 66, 0.22);
  color: var(--deep);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.cta span,
.cta strong {
  grid-column: 1;
}

.cta span {
  margin-bottom: 2px;
  color: #47738e;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta strong {
  font-family: "Manrope", sans-serif;
  font-size: 1rem;
}

.cta svg {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 23px;
  margin-left: 24px;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.cta:hover {
  transform: translateY(-3px);
  background: var(--white);
  box-shadow: 0 18px 36px rgba(0, 30, 56, 0.32);
}

.cta:hover svg {
  transform: translateX(4px);
}

.cta:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 4px;
}

.photo-credit {
  position: absolute;
  right: 18px;
  bottom: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 760px) {
  .hero {
    align-items: center;
    padding: 24px 16px 42px;
  }

  .glass-card {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 28px;
  }

  .brand-panel {
    min-height: 225px;
    padding: 30px 56px;
  }

  .brand-panel::after {
    top: auto;
    right: 10%;
    bottom: 0;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  }

  .logo {
    width: min(62%, 165px);
  }

  .content {
    padding: 42px 30px 38px;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  .lead {
    margin: 24px 0 30px;
  }

  .cta {
    align-self: stretch;
  }

  .photo-credit {
    right: 12px;
    bottom: 10px;
  }
}

@media (max-height: 700px) and (min-width: 761px) {
  .hero {
    padding-block: 24px;
  }

  .glass-card {
    min-height: 500px;
  }

  .content {
    padding-block: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
