:root {
  --ocean-deep: #021217;
  --ocean-base: #04242B;
  --ocean-mid: #0A4F59;
  --sea-glow: #127982;
  --cyan: #00BFCB;
  --cyan-light: #A9F3ED;
  --white: #FFFFFF;
  --soft-white: #F4FEFE;
  --text-muted: #8AA8B0;
  --border-color: rgba(0, 191, 203, 0.18);
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: #021217 !important;
  color: var(--soft-white);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  background-color: transparent !important;
  color: var(--soft-white);
}

/* Full-screen animated ocean GIF background layer */
.ocean-atmosphere {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  background-color: #021217 !important;
}

.ocean-atmosphere img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: block !important;
  z-index: 1 !important;
}

.ocean-atmosphere::after {
  content: '';
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-color: rgba(2, 35, 39, 0.22) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* Ensure all main UI content sits above the background layer */
header, main, footer, .waitlist-modal {
  position: relative !important;
  z-index: 10 !important;
}

/* Full-Width Header */
.full-width-header {
  width: 100%;
  padding: 2.5rem clamp(20px, 3vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

.header-logo-mark {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.wordmark {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  align-items: center;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

nav a:hover, nav a.active {
  color: var(--white);
}

.nav-cta {
  background: var(--white);
  color: var(--ocean-deep) !important;
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.1s ease;
}

.nav-cta:hover {
  background: var(--cyan-light);
}

/* Main Hero - Optically Centered */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem 2rem 4rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-5vh);
  width: 100%;
}

h1 {
  font-size: clamp(3rem, 6vw, 4.75rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.025em;
  max-width: 800px;
}

.hero-sub {
  font-size: clamp(1.1rem, 2.1vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.25rem;
  font-weight: 400;
}

.hero-cta-wrap {
  margin-top: 0.25rem;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-pill-cta {
  background: var(--white);
  color: var(--ocean-deep);
  border: none;
  padding: 0.95rem 2.2rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  min-height: 48px;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.hero-pill-cta:hover {
  background: var(--cyan-light);
  transform: translateY(-1px);
}

/* Modal Waitlist - Perfect Viewport Center via Grid */
.waitlist-modal {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(2, 18, 23, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  display: none;
  place-items: center !important;
  z-index: 99999 !important;
  margin: 0 !important;
  padding: 1rem !important;
  overflow-y: auto;
}

.modal-content {
  background: #04242B !important;
  border: 1px solid var(--border-color) !important;
  padding: 2.5rem 3rem 2.5rem !important;
  border-radius: 16px !important;
  max-width: 480px !important;
  width: 100% !important;
  position: relative !important;
  text-align: left !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7) !important;
  margin: auto !important;
}

.close-modal {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  color: var(--white);
}

.modal-content h2 {
  font-size: 1.75rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.modal-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.waitlist-form {
  display: flex;
  background: rgba(2, 18, 23, 0.9);
  border: 1px solid var(--border-color);
  padding: 0.35rem;
  border-radius: 9999px;
  width: 100%;
}

.waitlist-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.85rem 1.25rem;
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  min-height: 44px;
}

.waitlist-input::placeholder {
  color: rgba(138, 168, 176, 0.5);
}

.waitlist-btn {
  background: var(--white);
  color: var(--ocean-deep);
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.waitlist-btn:hover {
  background: var(--cyan-light);
}

.form-message {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  min-height: 1.2rem;
}

.form-message.success {
  color: var(--cyan-light);
}

.form-message.error {
  color: #FF8A8A;
}

/* Modal Socials Section */
.modal-socials-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 191, 203, 0.12);
}

.modal-socials-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.modal-socials-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.modal-socials-row a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--soft-white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  min-height: 40px;
}

.modal-socials-row a:hover {
  color: var(--cyan);
}

.modal-socials-row .social-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.privacy-note {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: rgba(138, 168, 176, 0.6);
}

.privacy-note a {
  color: var(--text-muted);
  text-decoration: underline;
}

/* Full-Width Cinematic Footer */
.full-width-footer {
  width: 100%;
  padding: 2.5rem clamp(20px, 3vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  z-index: 10;
  margin-top: auto;
}

.footer-left-group {
  display: flex;
  gap: 2rem;
}

.footer-left-group a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  min-height: 40px;
  display: flex;
  align-items: center;
}

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

.footer-socials {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-socials a {
  color: var(--text-muted);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
}

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

.social-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.social-icon:hover {
  opacity: 1;
}

/* Editorial Styles for About & Privacy */
.editorial-main {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem 6rem;
  text-align: left;
}

.editorial-container {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.editorial-header-block h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.lead-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--soft-white);
  margin-bottom: 1.25rem;
}

.secondary-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.editorial-section h2 {
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.editorial-section h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.editorial-section p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.editorial-section ul {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.editorial-section li {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.editorial-subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.editorial-card {
  background: rgba(4, 36, 43, 0.6);
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.editorial-card p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.subnote {
  font-size: 0.85rem !important;
  color: rgba(138, 168, 176, 0.75) !important;
  border-top: 1px solid rgba(0, 191, 203, 0.1);
  padding-top: 1rem;
  margin-top: auto;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--soft-white);
  margin-bottom: 2rem;
}

.workflow-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  background: rgba(4, 36, 43, 0.35);
  border: 1px solid rgba(0, 191, 203, 0.1);
  padding: 2rem;
  border-radius: 10px;
}

.timeline-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.1em;
}

.timeline-content h4 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  margin: 0;
  font-size: 0.95rem;
}

.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.principle-item {
  background: rgba(4, 36, 43, 0.4);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 10px;
}

.principle-item h4 {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.principle-item p {
  font-size: 0.95rem;
  margin: 0;
}

.editorial-cta-box {
  text-align: center;
  margin-top: 4rem;
  padding: 5rem 2rem;
  background: rgba(4, 36, 43, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.editorial-cta-box h2 {
  font-size: 2rem;
  color: var(--white);
  margin-bottom: 2rem;
  line-height: 1.3;
}

.privacy-toc {
  background: rgba(4, 36, 43, 0.5);
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 3rem;
}

.privacy-toc h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.privacy-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
}

.privacy-toc a {
  color: var(--cyan-light);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.privacy-toc a:hover {
  color: var(--white);
  text-decoration: underline;
}

@media(max-width: 768px) {
  .full-width-header {
    padding: 1.25rem clamp(12px, 3vw, 24px);
  }
  .full-width-footer {
    padding: 2rem clamp(12px, 3vw, 24px);
    position: relative;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
  }
  .footer-left-group {
    flex-wrap: wrap;
    gap: 1rem;
  }
  .waitlist-form {
    flex-direction: column;
    border-radius: 16px;
    padding: 0.4rem;
    background: rgba(4, 36, 43, 0.95);
  }
  .waitlist-input {
    padding: 0.85rem 1rem;
    text-align: center;
    width: 100%;
  }
  .waitlist-btn {
    width: 100%;
    padding: 0.9rem;
    justify-content: center;
  }
  .editorial-subgrid, .principles-grid, .privacy-toc ul {
    grid-template-columns: 1fr;
  }
  .timeline-item {
    flex-direction: column;
    gap: 0.75rem;
  }
  .header-logo-mark {
    height: 28px;
  }
  .wordmark {
    font-size: 0.95rem;
    letter-spacing: 0.2em;
  }
  nav {
    gap: 1rem;
  }
  .nav-cta {
    padding: 0.45rem 1rem;
    font-size: 0.8rem;
  }
  .waitlist-modal {
    padding: 0.75rem !important;
  }
  .modal-content {
    padding: 2rem 1.25rem !important;
  }
  main {
    padding: 1rem 1rem 3rem;
  }
  .editorial-main {
    padding: 3rem 1rem 4rem;
  }
}
