/* ============================================
   Flotilla Landing Page
   Aesthetic: Nautical Editorial — luxury charter
   brochure meets modern app landing page
   ============================================ */

:root {
  /* Brand palette */
  --bg: #FDFBF7;
  --bg-warm: #F7F5F0;
  --bg-deep: #115E59;
  --bg-deep-dark: #0C3F3C;
  --teal: #115E59;
  --teal-light: #0D9488;
  --gold: #C9A962;
  --gold-dark: #B8944D;
  --gold-faint: rgba(201, 169, 98, 0.08);
  --gold-border: rgba(201, 169, 98, 0.25);
  --coral: #DC6B5A;
  --text: #1F2937;
  --text-secondary: #4B5563;
  --text-muted: #9CA3AF;
  --border: #E8E4DC;
  --border-light: #F0EDE6;

  /* Type */
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
}

/* ── Reset ─────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

img, svg {
  display: block;
}

/* ── Navigation ────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  height: var(--nav-height);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--teal);
  letter-spacing: 0.5px;
}

.nav-anchor {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
  letter-spacing: 0.2px;
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-cta {
  background: var(--teal);
  color: white !important;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
}

.nav-cta:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

/* ── Buttons ───────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  background: var(--teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--gold-border);
  color: var(--teal);
  background: var(--gold-faint);
}

/* ── Section Labels ────────────────────── */

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: var(--space-md);
}

.section-label-light {
  color: rgba(201, 169, 98, 0.8);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: var(--space-md);
}

.section-title em {
  font-style: italic;
  color: var(--teal);
}

.section-title-light {
  color: white;
}

.section-title-light em {
  color: var(--gold);
}

.section-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 520px;
}

/* ── Hero ──────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + var(--space-xl)) var(--space-lg) var(--space-xl);
  gap: var(--space-xl);
}

.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(17, 94, 89, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
}

.hero-content {
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(17, 94, 89, 0.06);
  border: 1px solid rgba(17, 94, 89, 0.12);
  border-radius: 100px;
  padding: 8px 18px;
  margin-bottom: var(--space-xl);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-light);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: var(--space-lg);
}

.hero-title em {
  font-style: italic;
  color: var(--teal);
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.hero-stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--teal);
}

.hero-stat-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ── Phone Mockup ──────────────────────── */

.hero-visual {
  display: flex;
  justify-content: center;
  z-index: 1;
}

.hero-phone {
  perspective: 1200px;
}

.hero-phone-frame {
  width: 300px;
  height: 620px;
  background: #1a1a1a;
  border-radius: 40px;
  padding: 12px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 40px 80px rgba(0, 0, 0, 0.08);
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-phone-frame:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.hero-phone-notch {
  width: 100px;
  height: 26px;
  background: #1a1a1a;
  border-radius: 0 0 16px 16px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-phone-screen {
  background: var(--bg);
  border-radius: 30px;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.hero-phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 30px;
}

/* ── Features ──────────────────────────── */

.features {
  padding: var(--space-3xl) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.features-header .section-subtitle {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  position: relative;
  padding: var(--space-xl) var(--space-lg);
  border-radius: 20px;
  background: white;
  border: 1px solid var(--border-light);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  border-color: var(--gold-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold-faint);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  margin-bottom: var(--space-lg);
  color: var(--gold-dark);
  overflow: hidden;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-icon-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.feature-number {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--border);
  letter-spacing: 1px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.feature-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ── Reveal animation ──────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ── Destinations ──────────────────────── */

.destinations {
  background: var(--bg-deep);
  padding: var(--space-3xl) var(--space-lg);
  position: relative;
  overflow: hidden;
}

.destinations::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(201, 169, 98, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.destinations-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.destination-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: var(--space-xl);
}

.dest-tag {
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.25s;
  letter-spacing: 0.3px;
}

.dest-tag:hover {
  background: rgba(201, 169, 98, 0.12);
  border-color: rgba(201, 169, 98, 0.3);
  color: white;
}

/* ── Download CTA ──────────────────────── */

.download {
  padding: var(--space-3xl) var(--space-lg);
}

.download-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-2xl);
}

.store-badges {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: white;
  padding: 14px 24px;
  border-radius: 14px;
  transition: all 0.2s;
  min-width: 180px;
}

.store-badge:hover {
  background: #374151;
  transform: translateY(-2px);
}

.store-badge svg {
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
}

.store-badge-small {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.8;
  letter-spacing: 0.3px;
}

.store-badge-big {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.download-note {
  margin-top: var(--space-md);
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

.download-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.download-phone {
  perspective: 1200px;
}

.download-phone-frame {
  width: 260px;
  height: 540px;
  background: #1a1a1a;
  border-radius: 36px;
  padding: 10px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 40px 80px rgba(0, 0, 0, 0.08);
  transform: rotateY(4deg) rotateX(2deg);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-phone-frame:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.download-phone-notch {
  width: 90px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.download-phone-screen {
  background: var(--bg);
  border-radius: 28px;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.download-phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 28px;
}

/* ── Footer ────────────────────────────── */

.footer {
  background: var(--bg-warm);
  border-top: 1px solid var(--border-light);
  padding: var(--space-2xl) var(--space-lg) var(--space-lg);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--teal);
  display: block;
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--teal);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Privacy Page ──────────────────────── */

.page-privacy {
  background: var(--bg);
}

.privacy {
  max-width: 740px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-lg) var(--space-3xl);
}

.privacy-header {
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.privacy-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 52px);
  color: var(--text);
  margin-bottom: var(--space-md);
}

.privacy-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: 14px;
  color: var(--text-muted);
}

.privacy-meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
}

.privacy-body section {
  margin-bottom: var(--space-xl);
}

.privacy-body h2 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text);
  margin-bottom: var(--space-md);
  padding-top: var(--space-md);
}

.privacy-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-lg);
}

.privacy-body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  margin-top: var(--space-md);
}

.privacy-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.privacy-body ul {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

.privacy-body li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  list-style: disc;
}

.privacy-body li::marker {
  color: var(--gold);
}

.privacy-body strong {
  color: var(--text);
  font-weight: 600;
}

.privacy-body a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.privacy-body a:hover {
  color: var(--teal-light);
}

.privacy-table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-md);
  border: 1px solid var(--border-light);
  border-radius: 12px;
}

.privacy-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.privacy-body th {
  text-align: left;
  padding: 12px 16px;
  background: var(--bg-warm);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.privacy-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  line-height: 1.5;
}

.privacy-body tr:last-child td {
  border-bottom: none;
}

.privacy-contact {
  background: var(--gold-faint);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: var(--space-md) var(--space-lg);
}

.privacy-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-xl) 0;
}

.privacy-footnote {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Responsive ────────────────────────── */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    margin-bottom: var(--space-xl);
  }

  .hero-phone-frame {
    width: 260px;
    height: 540px;
    transform: none;
  }

  .hero-phone-frame:hover {
    transform: none;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-visual {
    display: none;
  }

  .store-badges {
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-items: center;
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  .hero-stat-divider {
    width: 36px;
    height: 1px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .store-badges {
    flex-direction: column;
    align-items: center;
  }

  .privacy-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xs);
  }

  .privacy-meta-divider {
    display: none;
  }

  .destination-tags {
    gap: 8px;
  }

  .dest-tag {
    padding: 10px 20px;
    font-size: 13px;
  }
}
