@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --color-background: #f6f0e8;
  --color-foreground: #1f2d3d;
  --color-card: #fbf7f1;
  --color-primary: #1f5a8b;
  --color-primary-dark: #143e63;
  --color-primary-light: #2f9bd7;
  --color-secondary: #e2a534;
  --color-secondary-foreground: #1f2d3d;
  --color-muted: #6d7280;
  --color-border: #ddcfb8;
  --color-parchment: #efe3cf;
  --color-sand: #e7d3aa;
  --color-gold: #f0c74c;
  --color-white: #ffffff;
  --shadow-strong: 0 12px 30px rgba(0, 0, 0, 0.14);
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.12);
  --radius-card: 20px;
  --radius-large: 28px;
  --container-width: 1180px;
  --transition-fast: 0.2s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  color: var(--color-foreground);
  background: var(--color-background);
  line-height: 1.6;
}

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

svg {
  display: block;
}

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

.container {
  width: min(var(--container-width), calc(100% - 2rem));
  margin: 0 auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  font-family: 'Fredoka One', cursive;
  line-height: 1.1;
}

p {
  margin: 0 0 1rem;
}

.icon {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  stroke-width: 2.2;
}

.icon-gold {
  color: var(--color-gold);
}

.icon-star {
  width: 1rem;
  height: 1rem;
  color: var(--color-gold);
}

.icon-filled {
  fill: currentColor;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  color: #f9f6ef;
  text-align: center;
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-primary-dark) 100%);
}

.top-nav {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  padding: 1rem 0;
}

.nav-inner,
.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
}

.wave-bottom,
.wave-cta-top {
  position: absolute;
  left: 0;
  width: 100%;
  line-height: 0;
}

.wave-bottom {
  bottom: 0;
}

.wave-cta-top {
  top: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 7rem 0 9rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.hero h1 span {
  color: var(--color-gold);
}

.hero-subtitle {
  max-width: 760px;
  margin: 0 auto 2rem;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  opacity: 0.96;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.75rem;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), opacity var(--transition-fast);
}

.btn-secondary {
  color: var(--color-secondary-foreground);
  background: var(--color-secondary);
  box-shadow: var(--shadow-strong);
}

.btn-primary {
  font-size: 1.05rem;
}

.btn-nav {
  padding: 0.8rem 1.25rem;
  font-size: 0.95rem;
}

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

.hero-ship {
  width: min(100%, 620px);
  margin: 2.5rem auto 0;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.28));
  animation: rock 4s ease-in-out infinite;
}

.section {
  padding: 6rem 0;
}

.section-parchment {
  background: var(--color-parchment);
}

.section-center {
  text-align: center;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-intro p {
  color: var(--color-muted);
  font-size: 1.1rem;
}

.section-heading-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.section-title-icon {
  width: 2rem;
  height: 2rem;
  color: var(--color-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 980px;
  margin: 0 auto;
}

.feature-card {
  padding: 1.75rem;
  text-align: left;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
}

.feature-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(226, 165, 52, 0.18);
}

.feature-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-secondary);
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.4rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-muted);
}

.map-box {
  position: relative;
  max-width: 920px;
  margin: 4rem auto 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-strong);
}

.map-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: end;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(239, 227, 207, 0.08) 0%, rgba(239, 227, 207, 0.88) 100%);
}

.map-overlay p {
  margin: 0;
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.2rem, 3vw, 2rem);
}

.preview-section {
  background: linear-gradient(180deg, var(--color-parchment) 0%, var(--color-background) 35%);
}

.preview-card {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
  background: var(--color-card);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-card);
}

.quote-icon {
  position: absolute;
  width: 3rem;
  height: 3rem;
  color: rgba(226, 165, 52, 0.3);
}

.quote-icon-left {
  top: 1rem;
  left: 1rem;
}

.quote-icon-right {
  right: 1rem;
  bottom: 1rem;
  transform: rotate(180deg);
}

.preview-card p {
  position: relative;
  z-index: 1;
  color: var(--color-muted);
  font-size: 1.15rem;
  line-height: 1.9;
}

.preview-card .preview-lead {
  color: var(--color-foreground);
}

.dropcap {
  margin-right: 0.15rem;
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  color: var(--color-secondary);
}

.preview-end {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.preview-end p {
  margin: 0;
  font-family: 'Fredoka One', cursive;
  color: var(--color-secondary);
}

.preview-link {
  margin-top: 1.75rem;
  text-align: center;
}

.preview-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-secondary);
  font-weight: 800;
}

.author-wrap {
  display: flex;
  align-items: center;
  gap: 3rem;
  max-width: 1020px;
}

.author-avatar {
  flex: 0 0 224px;
}

.author-avatar img {
  width: 224px;
  height: 224px;
  object-fit: contain;
  padding: 1rem;
  background: var(--color-sand);
  border: 4px solid var(--color-secondary);
  border-radius: 50%;
  box-shadow: var(--shadow-strong);
  animation: float 4s ease-in-out infinite;
}

.author-copy p {
  font-size: 1.1rem;
  color: var(--color-muted);
}

.cta {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  text-align: center;
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  padding-top: 1rem;
}

.cta-anchor {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.5rem;
  color: var(--color-gold);
}

.cta p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.15rem;
  opacity: 0.88;
}

.footer {
  padding: 2.25rem 0;
  color: rgba(249, 246, 239, 0.72);
  text-align: center;
  background: var(--color-primary);
}

.footer-anchor {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 auto 0.75rem;
  color: var(--color-gold);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.footer-links a:hover {
  color: var(--color-white);
}

.legal-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--color-primary-dark) 0%, var(--color-primary) 280px, var(--color-background) 280px, var(--color-background) 100%);
}

.legal-header {
  padding: 1rem 0;
  color: var(--color-white);
}

.legal-section {
  flex: 1;
}

.legal-card {
  max-width: 900px;
  padding: 2rem;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-strong);
}

.legal-card h1 {
  margin-bottom: 1.5rem;
}

.legal-card h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rock {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }
  50% {
    transform: rotate(2deg) translateY(-10px);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 900px) {
  .features-grid,
  .author-wrap,
  .nav-inner,
  .legal-nav {
    grid-template-columns: 1fr;
  }

  .author-wrap,
  .nav-inner,
  .legal-nav {
    display: grid;
  }

  .author-wrap {
    justify-items: center;
    text-align: center;
  }

  .nav-inner,
  .legal-nav {
    justify-items: center;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 4.5rem 0;
  }

  .hero-inner {
    padding: 7rem 0 7rem;
  }

  .btn {
    width: 100%;
  }

  .top-nav .btn,
  .legal-header .btn {
    width: auto;
  }

  .preview-card,
  .legal-card,
  .feature-card {
    padding: 1.5rem;
  }

  .quote-icon {
    width: 2.4rem;
    height: 2.4rem;
  }

  .author-avatar,
  .author-avatar img {
    width: 180px;
    height: 180px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
