/* ==========================================================================
   Coralist - Premium Minimalist Navy & White Design System
   Matches Coralist App Brand Identity (#042c50)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Brand Navy & White Color Hierarchy */
  --navy-primary: #042c50;
  --navy-dark: #021a30;
  --navy-hover: #073b6a;
  --navy-subtle: #f0f4f8;
  --navy-border-subtle: #dbe3eb;

  --bg-white: #ffffff;
  --bg-page: #fbfcfd;
  --bg-surface: #ffffff;
  --bg-muted: #f4f6f9;

  --border-hairline: #e5e9ef;
  --border-medium: #cbd5e1;
  --border-focus: #042c50;

  /* Typography */
  --text-primary: #042c50;
  --text-secondary: #4a5c6e;
  --text-muted: #78889b;
  --text-light: #ffffff;

  --font-brand: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Natural Elevations */
  --shadow-subtle: 0 1px 3px rgba(4, 44, 80, 0.04);
  --shadow-card: 0 8px 24px -4px rgba(4, 44, 80, 0.06), 0 2px 6px -1px rgba(4, 44, 80, 0.02);
  --shadow-float: 0 20px 40px -12px rgba(4, 44, 80, 0.12);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-brand);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Container */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ==========================================================================
   Header Navigation (Stacked Brand on Left, Navigation on Right)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-hairline);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}

/* Brand Logo (Left-Aligned, Centered Stack: Silhouette on top, CORALIST underneath) */
.brand-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-decoration: none;
  cursor: pointer;
  padding: 4px 0;
  transition: opacity 0.15s ease;
}

.brand-link:hover {
  opacity: 0.82;
}

.brand-icon-mask {
  width: 36px;
  height: 36px;
  background-color: var(--navy-primary);
  -webkit-mask-image: url('assets/coral-silhouette.png');
  mask-image: url('assets/coral-silhouette.png');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  display: block;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-brand);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-primary);
  line-height: 1;
}

/* Navigation Links (Right-Aligned) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
  position: relative;
  padding: 6px 0;
}

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

.nav-links a.active {
  color: var(--navy-primary);
  font-weight: 700;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--navy-primary);
}

.mobile-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.15rem;
  color: var(--navy-primary);
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   Typography & Hierarchy
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-brand);
  color: var(--navy-primary);
  letter-spacing: -0.015em;
  font-weight: 700;
}

/* ==========================================================================
   Hero & Under Construction Section
   ========================================================================== */
main {
  flex: 1;
}

.hero-section {
  padding: 45px 0 60px;
  text-align: center;
}

/* Beta Notice Banner */
.beta-notice-banner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 auto 36px;
  padding: 8px 22px;
  background: var(--navy-subtle);
  border: 1px solid var(--navy-border-subtle);
  border-radius: 9999px;
  font-size: 0.88rem;
  color: var(--navy-primary);
  box-shadow: 0 2px 10px rgba(4, 44, 80, 0.04);
  transition: all 0.25s ease;
}

.beta-notice-banner:hover {
  border-color: rgba(4, 44, 80, 0.25);
  box-shadow: 0 4px 16px rgba(4, 44, 80, 0.08);
}

.beta-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(4, 44, 80, 0.08);
  padding: 3px 10px;
  border-radius: 9999px;
}

.beta-notice-text {
  font-weight: 500;
  line-height: 1.4;
}

.beta-link {
  color: var(--navy-primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.beta-link:hover {
  opacity: 0.8;
}

.hero-heading {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy-primary);
  max-width: 780px;
  margin: 0 auto 20px;
  letter-spacing: -0.025em;
}

.hero-subheading {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 48px;
  line-height: 1.7;
  font-weight: 400;
}

/* ==========================================================================
   Minimal App Showcase Card
   ========================================================================== */
.showcase-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 48px;
  margin: 0 auto 60px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}

.showcase-text-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.showcase-text-col h3 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-primary);
  line-height: 1.25;
}

.showcase-text-col p {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 6px;
  margin-bottom: 10px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-item strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 2px;
}

.feature-sub {
  display: block;
  font-size: 0.86rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.55;
}

.feature-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy-primary);
  margin-top: 8px;
  flex-shrink: 0;
}

.showcase-mockup-col {
  display: flex;
  justify-content: center;
}

.gallery-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 290px;
  margin: 0 auto;
}

/* Overlay Arrow Buttons on Image */
.overlay-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(4, 44, 80, 0.15);
  color: var(--navy-primary);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(4, 44, 80, 0.14);
  transition: all 0.22s ease;
  user-select: none;
  padding-bottom: 2px;
}

.overlay-nav-btn.prev-btn {
  left: 14px;
}

.overlay-nav-btn.next-btn {
  right: 14px;
}

.overlay-nav-btn:hover {
  background: var(--navy-primary);
  color: #ffffff;
  border-color: var(--navy-primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(4, 44, 80, 0.28);
}

.overlay-nav-btn:active {
  transform: translateY(-50%) scale(0.96);
}

.phone-mockup-frame {
  width: 280px;
  max-width: 100%;
  border-radius: 30px;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-float);
}

.gallery-frame {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}

.gallery-frame:active {
  cursor: grabbing;
}

.gallery-slides {
  position: relative;
  width: 100%;
  aspect-ratio: 472 / 1024;
  overflow: hidden;
  border-radius: 22px;
  background: #f8fafc;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(18px) scale(0.98);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.gallery-slide.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.gallery-slide.slide-prev {
  transform: translateX(-18px) scale(0.98);
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22px;
  display: block;
}

/* Indicators / Tabs */
.gallery-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 4px;
}

.indicator-dot {
  padding: 4px 10px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid var(--border-medium);
  font-family: var(--font-brand);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.indicator-dot:hover {
  border-color: var(--navy-primary);
  color: var(--navy-primary);
}

.indicator-dot.active {
  background: var(--navy-primary);
  color: #ffffff;
  border-color: var(--navy-primary);
  box-shadow: 0 2px 8px rgba(4, 44, 80, 0.2);
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */
.btn-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-brand);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
}

.btn-primary {
  background-color: var(--navy-primary);
  color: #ffffff;
  border-color: var(--navy-primary);
}

.btn-primary:hover {
  background-color: var(--navy-hover);
  border-color: var(--navy-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--navy-primary);
  border-color: var(--navy-border-subtle);
}

.btn-secondary:hover {
  border-color: var(--navy-primary);
  background-color: var(--navy-subtle);
}

/* ==========================================================================
   Features Section & Breakdown Cards
   ========================================================================== */
.features-section {
  padding: 20px 0 80px;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--navy-primary);
  margin-bottom: 14px;
  line-height: 1.25;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.features-grid-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 18px;
  padding: 32px 28px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--navy-border-subtle);
}

.feature-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--navy-subtle);
  border: 1px solid var(--navy-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
  color: var(--navy-primary);
}

.feature-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-bottom: 6px;
  line-height: 1.35;
}

.feature-card .feature-tagline {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-hover);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* Minimal Notice Box */
.notice-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 80px;
  box-shadow: var(--shadow-subtle);
}

.notice-box h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.notice-box p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* ==========================================================================
   Legal Document Layout (Terms & Privacy)
   ========================================================================== */
.legal-header {
  padding: 60px 0 32px;
  text-align: center;
}

.legal-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.legal-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.legal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 16px;
  padding: 56px 64px;
  box-shadow: var(--shadow-card);
  margin-bottom: 80px;
}

.legal-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 36px;
}

.legal-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-primary);
  margin-top: 36px;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.legal-body h2:first-of-type {
  margin-top: 0;
}

.legal-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.legal-body ul, .legal-body ol {
  padding-left: 20px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.legal-body li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-body strong {
  color: var(--navy-primary);
  font-weight: 700;
}

.legal-callout {
  background: var(--navy-subtle);
  border: 1px solid var(--navy-border-subtle);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 24px 0;
}

.legal-callout p {
  color: var(--navy-primary);
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.65;
}

/* Legal Tables */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 0.85rem;
  line-height: 1.55;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--navy-border-subtle);
  color: var(--navy-primary);
}

.legal-table th {
  background: var(--navy-subtle);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.legal-table tbody tr:nth-child(even) {
  background: rgba(0, 40, 80, 0.02);
}

.legal-table tbody tr:hover {
  background: rgba(0, 40, 80, 0.04);
}

@media (max-width: 768px) {
  .legal-table {
    font-size: 0.78rem;
  }
  .legal-table th,
  .legal-table td {
    padding: 8px 10px;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-hairline);
  padding: 36px 0;
/* ==========================================================================
   Site Footer & Bottom Navigation
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-hairline);
  background: var(--bg-surface);
  padding: 44px 0 32px;
  margin-top: 40px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  transition: all 0.15s ease;
  padding: 6px 14px;
  border-radius: 8px;
}

.footer-links a:hover {
  color: var(--navy-primary);
  background-color: var(--navy-subtle);
}

.footer-links a.active {
  color: var(--navy-primary);
  font-weight: 700;
  background-color: var(--navy-subtle);
}

.footer-bottom {
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-hairline);
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 860px) {
  .showcase-card {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    text-align: center;
  }
  .showcase-text-col {
    align-items: center;
  }
  .feature-list {
    align-items: flex-start;
    text-align: left;
  }
  .btn-group {
    justify-content: center;
  }
  .features-grid,
  .features-grid-trio {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .legal-card {
    padding: 36px 24px;
  }
  .hero-heading {
    font-size: 2.2rem;
  }
  .section-header h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-toggle-btn {
    display: block;
  }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-hairline);
    padding: 24px;
    box-shadow: var(--shadow-card);
    gap: 18px;
    z-index: 100;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }
  .feature-card {
    padding: 24px 20px;
  }
  .footer-links {
    gap: 16px;
  }
}
