/* =============================================
   FATHOMDEEP — Global Stylesheet
   Brand: #1C2432 bg | #0077B6 accent | #FFFFFF text
   Font: Titillium Web (Google Fonts)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300;400;600;700&display=swap');

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

:root {
  --bg:       #1C2432;
  --bg-2:     #141c29;
  --bg-3:     #202c3e;
  --accent:   #0077B6;
  --accent-2: #005f8f;
  --accent-3: #00a8e0;
  --text:     #FFFFFF;
  --text-dim: rgba(255,255,255,0.55);
  --border:   rgba(255,255,255,0.08);
  --border-2: rgba(255,255,255,0.14);
  --font:     'Titillium Web', sans-serif;
  --glow:     0 0 40px rgba(0,119,182,0.25);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* =============================================
   NAVIGATION
   ============================================= */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

nav.scrolled {
  background: rgba(20, 28, 41, 0.85);
  box-shadow: 0 1px 0 var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img.mark {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-logo img.wordmark {
  height: 17px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

.nav-cta {
  background: var(--accent) !important;
  color: var(--text) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 2px;
  transition: background 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent-3) !important;
  box-shadow: 0 0 20px rgba(0,119,182,0.5) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: all 0.2s;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-block;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 2.2rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-primary {
  background: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 rgba(0,119,182,0);
}

.btn-primary:hover {
  background: var(--accent-3);
  box-shadow: 0 0 30px rgba(0,168,224,0.45);
  transform: translateY(-1px);
}

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

.btn-secondary:hover {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
  transform: translateY(-1px);
}

/* =============================================
   HERO
   ============================================= */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-2);
  padding: 7rem 1.5rem 3rem;
}

/* Atmospheric background orbs */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(0,119,182,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(0,119,182,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-video-wrap {
  position: relative;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  z-index: 1;
}

/* ---- VIDEO FACADE ---- */
.video-facade {
  display: block;
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    0 0 0 1px var(--border),
    0 40px 80px rgba(0,0,0,0.7),
    0 0 60px rgba(0,119,182,0.15);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.video-facade:hover {
  box-shadow:
    0 0 0 1px rgba(0,119,182,0.4),
    0 40px 80px rgba(0,0,0,0.7),
    0 0 80px rgba(0,119,182,0.3);
  transform: translateY(-2px);
}

.video-facade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-facade-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.video-facade:hover .video-facade-overlay {
  background: rgba(0,0,0,0.2);
}

.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0,119,182,0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(0,119,182,0.2), 0 8px 32px rgba(0,0,0,0.5);
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}

.video-facade:hover .play-btn {
  transform: scale(1.08);
  background: rgba(0,168,224,0.95);
  box-shadow: 0 0 0 12px rgba(0,119,182,0.25), 0 8px 32px rgba(0,0,0,0.5);
}

.play-btn svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  margin-left: 4px;
}

.video-watch-label {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.video-watch-label svg {
  width: 14px;
  height: 14px;
  fill: rgba(255,255,255,0.6);
}

/* Also used on kickstarter page inline */
.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: 4px;
  overflow: hidden;
}

.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Hero text below video */
.hero-text {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 3rem 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  z-index: 1;
}

.hero-headline { flex: 1; min-width: 260px; }

.hero-headline h1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.hero-headline p {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 460px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  padding-top: 0.25rem;
}

/* =============================================
   DEPTH LINE
   ============================================= */

.depth-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,119,182,0.6), transparent);
}

/* =============================================
   SECTIONS
   ============================================= */

section { padding: 6rem 1.5rem; }

.container { max-width: 1060px; margin: 0 auto; }

.section-label {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 1rem;
}

.section-heading {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.section-body {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 580px;
  line-height: 1.85;
}

/* =============================================
   DESCRIPTION SECTION
   ============================================= */

.description-section { background: var(--bg); }

.description-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.description-right p {
  color: var(--text-dim);
  margin-bottom: 1.25rem;
  line-height: 1.85;
  font-size: 0.95rem;
}

/* =============================================
   STAT STRIP
   ============================================= */

.stat-strip {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 1.5rem;
}

.stat-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 2.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.stat-item .stat-label {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: block;
}

/* =============================================
   IMAGE PLACEHOLDER
   ============================================= */

.img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #141c29 0%, #0a1220 50%, var(--bg-3) 100%);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 60%, rgba(0,119,182,0.1) 0%, transparent 70%);
}

.img-placeholder span { position: relative; z-index: 1; }

.campaign-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* =============================================
   EMAIL SECTION
   ============================================= */

.email-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.email-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0,119,182,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.email-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.email-form {
  margin-top: 2rem;
  display: flex;
  gap: 0;
  border: 1px solid var(--border-2);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.email-form:focus-within {
  border-color: rgba(0,119,182,0.6);
  box-shadow: 0 0 0 3px rgba(0,119,182,0.12);
}

.email-form input[type="email"] {
  flex: 1;
  background: rgba(255,255,255,0.04);
  border: none;
  outline: none;
  padding: 0.9rem 1.2rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
}

.email-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.25);
}

.email-form button {
  background: var(--accent);
  color: var(--text);
  border: none;
  padding: 0.9rem 1.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s;
}

.email-form button:hover {
  background: var(--accent-3);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.1);
}

.email-form input[name="_gotcha"] { display: none; }

.form-success {
  display: none;
  margin-top: 1.25rem;
  color: var(--accent-3);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* =============================================
   KICKSTARTER CARD
   ============================================= */

.ks-card {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.ks-card:hover {
  border-color: rgba(0,119,182,0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(0,119,182,0.2);
}

.ks-card-icon { font-size: 1.8rem; flex-shrink: 0; opacity: 0.5; }

.ks-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.ks-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.ks-card .ks-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--accent-3);
  font-size: 1.1rem;
}

/* =============================================
   FUTURE LIST
   ============================================= */

.future-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.future-list li {
  background: var(--bg-3);
  padding: 1.6rem 2rem;
  font-size: 0.88rem;
  color: var(--text-dim);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.future-list li:hover {
  background: rgba(0,119,182,0.06);
  color: var(--text);
}

.future-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-3);
  flex-shrink: 0;
  margin-top: 0.5rem;
}

/* =============================================
   ABOUT GRID
   ============================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.use-cases { list-style: none; margin-top: 2rem; }

.use-cases li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}

.use-cases li:hover { color: var(--text); }

.use-cases li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-3);
  flex-shrink: 0;
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */

.page-hero {
  padding: 10rem 1.5rem 5rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: -20%;
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse at left center, rgba(0,119,182,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero .container { max-width: 800px; position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-hero p {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 540px;
  line-height: 1.8;
}

/* =============================================
   FINDING CARDS
   ============================================= */

.finding-card {
  background: var(--bg-3);
  padding: 1.75rem 2rem;
  border-top: 1px solid var(--border);
  transition: background 0.2s;
}

.finding-card:first-child { border-top: none; }

.finding-card:hover { background: rgba(0,119,182,0.06); }

.finding-card h3 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.finding-card p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.75;
}

/* Challenge numbered cards */
.challenge-card {
  background: var(--bg-3);
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: start;
  border-top: 1px solid var(--border);
  transition: background 0.2s;
}

.challenge-card:first-child { border-top: none; }
.challenge-card:hover { background: rgba(0,119,182,0.06); }

.challenge-num {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-3);
  padding-top: 0.2rem;
}

.challenge-card h3 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.4rem;
}

.challenge-card p {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.75;
}

/* =============================================
   FOOTER
   ============================================= */

footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 3.5rem 1.5rem;
}

.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  text-decoration: none;
}

.footer-brand .footer-logo img {
  filter: brightness(0) invert(1);
}

.footer-brand p {
  font-size: 0.78rem;
  color: var(--text-dim);
  max-width: 220px;
  line-height: 1.7;
}

.footer-links { display: flex; gap: 3rem; }

.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul li a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1060px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(20,28,41,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 99;
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }
  .nav-toggle { display: flex; z-index: 101; }

  .hero { padding: 6rem 1.25rem 3rem; }

  .hero-text { flex-direction: column; }
  .hero-actions { flex-wrap: wrap; }

  .description-grid,
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .stat-strip .container { grid-template-columns: 1fr; gap: 2.5rem; }

  .future-list { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; }
  .footer-links { gap: 2rem; flex-wrap: wrap; }

  .ks-card { flex-wrap: wrap; }
  .ks-card .ks-arrow { margin-left: 0; }
}

@media (max-width: 480px) {
  section { padding: 4rem 1.25rem; }

  .email-form { flex-direction: column; }
  .email-form button { width: 100%; padding: 1rem; }

  .play-btn { width: 64px; height: 64px; }
  .play-btn svg { width: 22px; height: 22px; }
}
