@font-face {
  font-family: "Flot Sans";
  src: url("/assets/Inter-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Flot Sans";
  src: url("/assets/Inter-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  --navy-950: #031017;
  --navy-900: #061721;
  --navy-800: #092b3c;
  --blue-700: #075e82;
  --cyan: #27d7e8;
  --sky: #8bdef4;
  --foam: #eefcff;
  --sand: #f4cda8;
  --paper: #eef2eb;
  --ink: #071a22;
  --line: rgba(6, 23, 33, 0.14);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Baskerville, Georgia, serif;
  --sans: "Flot Sans", ui-sans-serif, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--foam);
  color: var(--navy-950);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(100% - 48px, 1280px);
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--foam);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(26, 212, 228, 0.18);
}

nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
}

nav > a:not(.nav-cta) {
  color: rgba(238, 252, 255, 0.68);
  transition: color 180ms ease;
}

nav > a:not(.nav-cta):hover {
  color: var(--foam);
}

.nav-cta {
  padding: 11px 18px;
  border: 1px solid rgba(238, 252, 255, 0.25);
  border-radius: 999px;
  background: rgba(238, 252, 255, 0.08);
  backdrop-filter: blur(12px);
  transition: background 180ms ease, transform 180ms ease;
}

.nav-cta:hover {
  background: rgba(238, 252, 255, 0.15);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: min(920px, 100svh);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.82fr);
  align-items: center;
  gap: 48px;
  overflow: hidden;
  padding: 132px max(5vw, calc((100vw - 1280px) / 2)) 80px;
  color: var(--foam);
  background:
    radial-gradient(circle at 78% 22%, rgba(39, 215, 232, 0.18), transparent 28%),
    radial-gradient(circle at 18% 58%, rgba(13, 99, 136, 0.22), transparent 36%),
    linear-gradient(132deg, #020d13 0%, #061b26 45%, #07354a 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: url("/assets/marine-water.png");
  background-size: cover;
  background-position: center 35%;
  mix-blend-mode: screen;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' 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='.12'/%3E%3C/svg%3E");
  opacity: 0.16;
  mix-blend-mode: soft-light;
}

.hero-glow {
  position: absolute;
  top: -14vw;
  right: -4vw;
  width: 42vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(121, 234, 245, 0.1);
  filter: blur(2px);
  box-shadow: 0 0 140px rgba(39, 215, 232, 0.12);
}

.hero-copy,
.phone-stage {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 690px;
  padding-bottom: 7vh;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: rgba(238, 252, 255, 0.58);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 24px;
  height: 1px;
  background: var(--cyan);
}

.eyebrow.dark {
  color: rgba(7, 26, 34, 0.52);
}

h1,
h2,
h3,
p {
  text-wrap: balance;
}

h1,
h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

h1 {
  font-size: clamp(68px, 7.4vw, 118px);
}

h1 em,
h2 em {
  color: var(--cyan);
  font-weight: 400;
}

.lede {
  max-width: 570px;
  margin: 38px 0 0;
  color: rgba(238, 252, 255, 0.67);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 38px;
}

.hero-actions > span {
  color: rgba(238, 252, 255, 0.43);
  font-size: 12px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy-950);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(39, 215, 232, 0.16);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 54px rgba(39, 215, 232, 0.25);
}

.phone-stage {
  justify-self: center;
  width: min(440px, 36vw);
  height: 660px;
  margin-bottom: -180px;
}

.phone-shell {
  position: absolute;
  z-index: 2;
  top: 2%;
  left: 50%;
  width: 330px;
  padding: 8px;
  overflow: hidden;
  border: 1px solid rgba(238, 252, 255, 0.25);
  border-radius: 54px 54px 0 0;
  background: #04121a;
  box-shadow: 0 52px 110px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(5, 27, 38, 0.55);
  transform: translateX(-50%) rotate(2.4deg);
}

.phone-shell img {
  width: 100%;
  border-radius: 46px 46px 0 0;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(139, 222, 244, 0.12);
  border-radius: 50%;
}

.orbit-one {
  inset: 1% -20% 0;
  transform: rotate(-18deg);
}

.orbit-two {
  inset: 13% -5% 8%;
  transform: rotate(29deg);
}

.tide-badge {
  position: absolute;
  z-index: 3;
  min-width: 128px;
  padding: 13px 16px;
  border: 1px solid rgba(238, 252, 255, 0.16);
  border-radius: 16px;
  background: rgba(8, 38, 52, 0.67);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.tide-badge small {
  display: block;
  margin-bottom: 5px;
  color: rgba(238, 252, 255, 0.48);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.tide-badge strong {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}

.tide-badge strong span {
  color: var(--sky);
  font-size: 14px;
}

.tide-badge-now {
  top: 23%;
  left: -13%;
}

.tide-badge-next {
  right: -19%;
  bottom: 30%;
}

.hero-bottom {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 180px;
  opacity: 0.75;
}

.tide-line {
  width: 100%;
  height: 100%;
}

.tide-line-main,
.tide-line-shadow {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 2100;
  stroke-dashoffset: 2100;
  animation: draw-tide 2.4s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.tide-line-main {
  stroke: rgba(39, 215, 232, 0.52);
  stroke-width: 2;
}

.tide-line-shadow {
  stroke: rgba(39, 215, 232, 0.08);
  stroke-width: 18;
  filter: blur(7px);
}

@keyframes draw-tide {
  to { stroke-dashoffset: 0; }
}

.marquee {
  overflow: hidden;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: #dff6f2;
}

.marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 30px;
  animation: marquee 28s linear infinite;
}

.marquee span {
  color: rgba(7, 26, 34, 0.62);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.marquee i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.section {
  padding: 128px max(5vw, calc((100vw - 1280px) / 2));
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 72px;
}

.section-heading .eyebrow {
  align-self: start;
  margin-top: 11px;
}

h2 {
  font-size: clamp(56px, 6.2vw, 92px);
}

.clarity h2 em {
  color: #088ba0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
}

.feature {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 36px;
  border-radius: 2px;
  background: #dfe7e2;
}

.feature-large {
  grid-row: span 2;
  min-height: 858px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--navy-900);
  color: var(--foam);
}

.feature-number {
  position: relative;
  z-index: 2;
  margin: 0;
  color: currentColor;
  opacity: 0.42;
  font-size: 10px;
  letter-spacing: 0.15em;
}

.feature h3 {
  position: relative;
  z-index: 2;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 3.1vw, 54px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.feature > div > p,
.feature-small > p:last-child {
  position: relative;
  z-index: 2;
  max-width: 480px;
  margin: 22px 0 0;
  opacity: 0.59;
  font-size: 14px;
  line-height: 1.65;
}

.mini-chart {
  position: absolute;
  right: -4%;
  bottom: 2%;
  left: -2%;
  height: 48%;
}

.mini-chart svg {
  width: 100%;
  height: 100%;
}

.chart-area {
  fill: url("#chart-fill");
}

.chart-stroke {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2.5;
}

.chart-point {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 3px solid var(--navy-900);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 1px var(--cyan), 0 0 26px var(--cyan);
}

.point-low { left: 33%; top: 79%; }
.point-high { right: 27%; top: 22%; }

.feature-small {
  display: flex;
  flex-direction: column;
}

.feature-small h3 {
  margin-top: auto;
  font-size: clamp(32px, 3vw, 47px);
}

.feature-small.cyan {
  background: #4fd7df;
}

.feature-small.sand {
  background: var(--sand);
}

.feature-icon {
  position: absolute;
  top: 55px;
  right: 36px;
  font-family: var(--serif);
  font-size: 108px;
  font-style: italic;
  line-height: 1;
  opacity: 0.14;
}

.sun-mark {
  position: absolute;
  top: 54px;
  right: 44px;
  width: 72px;
  height: 36px;
  overflow: hidden;
  opacity: 0.32;
}

.sun-mark span {
  position: absolute;
  top: 8px;
  left: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.sun-mark::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
}

.everywhere {
  min-height: 850px;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 72px;
  overflow: hidden;
  color: var(--foam);
  background: var(--navy-900);
}

.everywhere h2 em {
  color: var(--sky);
}

.everywhere-copy > p:not(.eyebrow) {
  max-width: 470px;
  margin: 34px 0 0;
  color: rgba(238, 252, 255, 0.58);
  font-size: 15px;
  line-height: 1.75;
}

.everywhere ul {
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(238, 252, 255, 0.12);
}

.everywhere li {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(238, 252, 255, 0.12);
  color: rgba(238, 252, 255, 0.75);
  font-size: 12px;
}

.everywhere li span {
  color: var(--cyan);
  font-size: 9px;
}

.desktop-stage {
  position: relative;
  width: 64vw;
  max-width: 980px;
}

.desktop-stage img {
  position: relative;
  z-index: 2;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.52);
  transform: perspective(1400px) rotateY(-5deg) rotateX(1.5deg);
}

.desktop-halo {
  position: absolute;
  z-index: 1;
  inset: 6% 5%;
  border-radius: 50%;
  background: rgba(39, 215, 232, 0.22);
  filter: blur(100px);
}

.closing {
  position: relative;
  min-height: 760px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  color: var(--foam);
  background: #0a4358;
}

.closing-water {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 16, 23, 0.12), rgba(3, 16, 23, 0.58)),
    url("/assets/marine-water.png") center 55% / cover;
  filter: saturate(0.9);
}

.closing-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.closing-content > img {
  margin-bottom: 42px;
  border-radius: 23px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.closing .eyebrow {
  margin-bottom: 26px;
}

.closing h2 {
  font-size: clamp(60px, 7vw, 106px);
}

.closing .primary-button {
  margin-top: 42px;
}

.primary-button.light {
  background: var(--foam);
}

footer {
  min-height: 130px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  padding: 30px max(5vw, calc((100vw - 1280px) / 2));
  color: rgba(238, 252, 255, 0.54);
  background: var(--navy-950);
  font-size: 10px;
}

.footer-brand {
  color: var(--foam);
  font-size: 16px;
}

.footer-brand img {
  border-radius: 9px;
}

footer > p {
  text-align: center;
}

footer > div {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}

footer a:hover {
  color: var(--foam);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.phone-stage[data-reveal] {
  transform: translateY(38px) scale(0.97);
  transition-delay: 160ms;
}

.phone-stage[data-reveal].is-visible {
  transform: translateY(0) scale(1);
}

@media (max-width: 960px) {
  .hero {
    min-height: 1020px;
    grid-template-columns: 1fr;
    align-content: start;
    padding-top: 160px;
  }

  .hero-copy {
    max-width: 760px;
    padding-bottom: 0;
  }

  .phone-stage {
    width: 430px;
    max-width: 90vw;
    height: 540px;
    margin: 0 auto -160px;
  }

  .phone-shell { width: 295px; }
  .tide-badge-now { left: 0; }
  .tide-badge-next { right: -1%; }

  .section-heading {
    display: block;
  }

  .section-heading .eyebrow {
    margin-bottom: 28px;
  }

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

  .feature-large {
    grid-column: span 2;
    grid-row: auto;
    min-height: 680px;
  }

  .everywhere {
    grid-template-columns: 1fr;
  }

  .everywhere-copy {
    max-width: 650px;
  }

  .desktop-stage {
    width: 108vw;
  }
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100% - 32px);
    height: 78px;
  }

  .site-header .brand img { width: 36px; height: 36px; }
  .site-header .brand span { font-size: 18px; }
  nav > a:not(.nav-cta) { display: none; }

  .hero {
    min-height: 940px;
    padding: 130px 22px 50px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .phone-stage {
    height: 500px;
    margin-top: 15px;
  }

  .phone-shell { width: 262px; border-radius: 44px 44px 0 0; }
  .phone-shell img { border-radius: 37px 37px 0 0; }
  .tide-badge { display: none; }

  .section {
    padding: 88px 22px;
  }

  .feature-grid {
    display: block;
  }

  .feature {
    min-height: 400px;
    margin-bottom: 14px;
    padding: 28px;
  }

  .feature-large {
    min-height: 620px;
  }

  .everywhere {
    gap: 56px;
  }

  .desktop-stage {
    width: 132vw;
    margin-left: -3vw;
  }

  .closing {
    min-height: 650px;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 42px 22px;
    text-align: center;
  }

  footer > div {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
