/* ============ Coasty.app — styles ============ */
:root {
  --navy: #16294a;
  --blue: #1f6fe0;
  --blue-dark: #1a5fc4;
  --blue-bright: #338bdd;
  --sky: #eaf3fb;
  --sky-light: #f4f8fc;
  --grey-text: #47546b;
  --grey-light: #8b96a8;
  --border: #e3e9f1;
  --card-shadow: 0 6px 24px rgba(22, 41, 74, 0.08);
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  background: #fff;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============ Header ============ */
.site-header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo { display: inline-flex; flex-direction: column; line-height: 1; }

.logo-word {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.logo-app { color: var(--blue); font-weight: 700; font-size: 1.35rem; }

.logo-wave { width: 58px; height: 10px; color: var(--blue); margin-top: 2px; }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 34px;
  font-weight: 600;
  font-size: 0.98rem;
}

.main-nav a { color: var(--navy); transition: color 0.15s; }
.main-nav a:hover { color: var(--blue); }

.nav-more { display: inline-flex; align-items: center; gap: 6px; }
.nav-more svg { width: 11px; height: 8px; }

.btn-about {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 26px;
  box-shadow: 0 2px 6px rgba(22, 41, 74, 0.05);
}
.btn-about:hover { border-color: var(--blue); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  background:
    linear-gradient(90deg, #eef5fb 0%, #eef5fb 34%, rgba(238, 245, 251, 0) 62%),
    url("assets/hero.jpg") right top / cover no-repeat;
  background-color: #eef5fb;
}

.hero-inner { padding: 48px 40px 120px; }

.hero-content { max-width: 620px; }

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(22, 41, 74, 0.06);
}
.location-pill svg { width: 15px; height: 15px; color: var(--blue-bright); }

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.45rem);
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 26px 0 22px;
}
.hero h1 .accent { color: var(--blue); }

.hero-sub {
  font-size: 1.13rem;
  color: var(--grey-text);
  max-width: 420px;
  margin-bottom: 34px;
}

.btn-launch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: var(--radius);
  padding: 18px 28px;
  max-width: 420px;
  box-shadow: 0 8px 20px rgba(31, 111, 224, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-launch:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31, 111, 224, 0.4); }
.btn-launch .btn-wave { width: 36px; height: 20px; }
.btn-launch .btn-arrow { width: 20px; height: 20px; position: absolute; right: 24px; }

.store-buttons {
  display: flex;
  gap: 14px;
  margin-top: 16px;
  max-width: 420px;
}

.store-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f2f5f9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--grey-light);
  line-height: 1.35;
}
.store-btn svg { width: 22px; height: 22px; flex-shrink: 0; color: #b3bcc9; }

.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: 60px; display: block; }

/* ============ Feature strip ============ */
.features { background: var(--sky-light); padding: 26px 0 40px; }

.features-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 0 20px;
}
.feature + .feature { border-left: 1px solid var(--border); }

.feature-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #dcebfa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-bright);
}
.feature-icon svg { width: 24px; height: 24px; }

.feature h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.feature p { font-size: 0.92rem; color: var(--grey-text); max-width: 240px; }

/* ============ About + Videos ============ */
.about-videos { background: #fff; padding: 64px 0 80px; }

.about-videos-inner {
  display: grid;
  grid-template-columns: minmax(300px, 420px) 1fr;
  gap: 60px;
}

.about-col { position: relative; border-right: 1px solid var(--border); padding-right: 50px; }

.section-heading {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.about-col p {
  font-size: 0.98rem;
  color: var(--grey-text);
  margin-bottom: 18px;
  max-width: 360px;
}

.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.98rem;
  margin-top: 6px;
}
.learn-more svg { width: 17px; height: 17px; transition: transform 0.15s; }
.learn-more:hover svg { transform: translateX(3px); }

.surfboard-illustration {
  position: absolute;
  right: 40px;
  bottom: -20px;
  width: 130px;
  opacity: 0.9;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.videos-grid {
  display: grid;
  grid-template-columns: 1.18fr 1fr;
  gap: 22px;
  align-items: start;
}

.video-main {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border);
  aspect-ratio: 9 / 16;
  max-height: 600px;
  width: 100%;
  background: #000;
}
.video-main iframe {
  display: block;
  border: none;
}

.video-duration {
  position: absolute;
  left: 16px;
  bottom: 92px;
  background: rgba(15, 25, 40, 0.65);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
}

.video-caption {
  display: block;
  padding: 14px 18px 18px;
  background: linear-gradient(180deg, #10202f, #0c1926);
  color: #fff;
}
.video-caption strong { display: block; font-size: 1.15rem; font-weight: 700; margin-bottom: 5px; }
.video-caption span { display: block; font-size: 0.88rem; color: #c8d4e0; max-width: 320px; }

.video-list { display: flex; flex-direction: column; gap: 16px; }

.video-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  box-shadow: var(--card-shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.video-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(22, 41, 74, 0.12); }

.video-card img {
  width: 150px;
  aspect-ratio: 165 / 80;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.video-card-text { padding: 4px 6px 4px 0; }
.video-card-text strong { display: block; font-size: 0.95rem; font-weight: 700; margin-bottom: 2px; }
.video-card-text span { display: block; font-size: 0.82rem; color: var(--grey-text); line-height: 1.35; }
.video-card-text em {
  display: inline-block;
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--grey-text);
  background: var(--sky);
  border-radius: 6px;
  padding: 2px 8px;
  margin-top: 7px;
}

/* ============ Footer ============ */
.site-footer { background: linear-gradient(180deg, #eef4fa, #e7edf5); position: relative; }

.footer-wave {
  position: absolute;
  top: -38px;
  left: 0;
  right: 0;
  line-height: 0;
}
.footer-wave svg { width: 100%; height: 40px; display: block; }

.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 12px;
  padding-bottom: 12px;
  position: relative;
}

.footer-item { display: flex; align-items: center; gap: 14px; }
.footer-icon { width: 30px; height: 30px; color: var(--navy); flex-shrink: 0; }
.footer-item p { font-size: 0.88rem; font-weight: 500; color: var(--navy); line-height: 1.4; }

.footer-tagline { 
  padding-left: 70px;
 }
.footer-tagline p:first-child { font-size: 0.92rem; font-weight: 600; color: var(--navy); }

.handwritten {
  font-family: "Caveat", cursive;
  font-size: 1.6rem;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 2px;
}
.tagline-wave { width: 60px; height: 14px; color: var(--blue); }

.footer-illustration {
  width: 240px;
  height: auto;
  margin-left: auto;
  align-self: flex-end;
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 95% 90% at 55% 100%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 95% 90% at 55% 100%, #000 60%, transparent 100%);
  pointer-events: none;
  flex-shrink: 0;
}

@media (max-width: 1300px) {
  .footer-illustration { width: 140px; opacity: 0.55; }
}

/* ============ Responsive ============ */
@media (max-width: 1160px) {
  .about-videos-inner { grid-template-columns: 1fr; }
  .about-col { border-right: none; padding-right: 0; border-bottom: 1px solid var(--border); padding-bottom: 40px; }
  .surfboard-illustration { bottom: 30px; }
}

@media (max-width: 900px) {
  .container { padding: 0 24px; }

  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(22, 41, 74, 0.08);
  }
  body.nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0; padding: 12px 24px; }
  .main-nav li { width: 100%; }
  .main-nav li a { display: block; padding: 14px 0; }
  .btn-about { display: inline-block; margin: 10px 0 16px; }

  .hero {
    background:
      linear-gradient(180deg, rgba(238, 245, 251, 0.92) 0%, rgba(238, 245, 251, 0.55) 100%),
      url("assets/hero.jpg") center / cover no-repeat;
  }
  .hero-inner { padding: 40px 24px 100px; }

  .features-inner { grid-template-columns: 1fr; gap: 22px; }
  .feature { padding: 0; }
  .feature + .feature { border-left: none; border-top: 1px solid var(--border); padding-top: 22px; }

  .videos-grid { grid-template-columns: 1fr; }

.footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 90px; padding-right: 24px; }
  .footer-tagline { margin-left: 0; padding-right: 0; }
  .footer-illustration { width: 140px; right: 10px; }
}

@media (max-width: 520px) {
  .hero h1 { white-space: normal; }
  .hero h1 br { display: none; }
  .store-buttons { flex-direction: column; }
  .video-card { flex-direction: column; }
  .video-card img { width: 100%; }
  .surfboard-illustration { display: none; }
}
