/* ============================================================
   Fathom-specific overlay on the darklake.ai design system.
   Shifts the accent gradient toward the iceberg palette
   (ice-white → cobalt → deep navy) and adds page-specific
   components: hero logo, install cards, mac-menubar mockup.
   ============================================================ */

:root {
  /* Cooler palette overriding the cyan/purple gradient.
     Mirrors the iceberg logo: light surface, cobalt mass,
     deep navy underneath. */
  --ice-bright:  #d8efff;
  --ice-cool:    #87cfff;
  --cobalt:      #4f86bf;
  --cobalt-deep: #2c4d7a;
  --navy-deep:   #010313;
}

body.fathom {
  /* Subtle vignette so the deep navy reads as water depth. */
  background:
    radial-gradient(1400px 600px at 50% -10%, rgba(135, 207, 255, 0.06), transparent 60%),
    var(--bg-primary);
}

/* Fathom brandmark in the nav */
.logo-iceberg {
  background: var(--navy-deep);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(135, 207, 255, 0.15);
}

.logo-iceberg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name-fathom {
  background: linear-gradient(135deg, var(--ice-bright), var(--cobalt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

/* Hero */
.hero-fathom {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}

.hero-fathom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
}

.hero-fathom-logo {
  width: 240px;
  height: 240px;
  border-radius: 32px;
  box-shadow:
    0 0 80px rgba(135, 207, 255, 0.25),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

.hero-title-fathom {
  max-width: 14ch;
}

.gradient-text-ice {
  background: linear-gradient(135deg, var(--ice-bright), var(--ice-cool), var(--cobalt));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

.badge-iceberg {
  background: rgba(135, 207, 255, 0.08);
  border-color: rgba(135, 207, 255, 0.25);
  color: var(--ice-cool);
}

.badge-iceberg .badge-dot {
  background: var(--ice-cool);
}

.hero-bg-iceberg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 50% 30%, rgba(79, 134, 191, 0.18), transparent 70%),
    radial-gradient(800px 400px at 50% 90%, rgba(44, 77, 122, 0.25), transparent 80%);
  z-index: 1;
  pointer-events: none;
}

/* Install section */
.install-section {
  padding: 80px 0 60px;
  border-top: 1px solid var(--border);
}

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

.install-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.install-card-tag {
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ice-cool);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(135, 207, 255, 0.1);
  width: fit-content;
}

.install-card-tag-muted {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.install-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.install-card-note {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0;
}

.install-card-note code {
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
}

.terminal-window-compact {
  margin: 0;
}

.terminal-window-compact .terminal-body {
  padding: 14px 16px;
}

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

/* Mac app section */
.mac-app-section {
  padding: 80px 0;
  background:
    radial-gradient(800px 400px at 50% 50%, rgba(79, 134, 191, 0.05), transparent 70%);
}

.mac-app-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.section-tag {
  display: inline-flex;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ice-cool);
  margin-bottom: 12px;
}

.mac-app-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin: 16px 0 24px;
}

.mac-app-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mac-app-features li {
  color: var(--text-secondary);
  font-size: 14px;
  padding-left: 24px;
  position: relative;
}

.mac-app-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--ice-bright), var(--cobalt));
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.mac-app-features code {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--ice-bright);
}

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

/* Mac menubar mock visual */
.mac-menubar-mock {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.menubar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.menubar-spacer {
  flex: 1;
}

.menubar-item {
  font-weight: 600;
  color: var(--text-primary);
}

.menubar-icon {
  font-size: 12px;
  opacity: 0.7;
}

.menubar-icon-fathom {
  width: 16px;
  height: 16px;
  background: var(--navy-deep);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  box-shadow: 0 0 12px rgba(135, 207, 255, 0.4);
}

.menubar-icon-fathom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.menubar-time {
  font-variant-numeric: tabular-nums;
}

.menubar-popover {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.popover-mute {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.popover-msg {
  font-size: 13px;
  line-height: 1.55;
  padding: 10px 12px;
  border-radius: 10px;
}

.popover-msg-user {
  background: rgba(135, 207, 255, 0.1);
  color: var(--ice-bright);
  align-self: flex-end;
  max-width: 80%;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.popover-msg-assistant {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
}

.popover-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.popover-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--ice-cool);
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to { visibility: hidden; }
}

@media (max-width: 900px) {
  .mac-app-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================================
   Modes section — personal / team / enterprise feature matrix.
   Three cards; middle one (Team) gets a featured cobalt rim.
   ============================================================ */

.modes-section {
  padding: 90px 0 70px;
}
.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
@media (max-width: 920px) {
  .modes-grid { grid-template-columns: 1fr; }
}

.mode-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.18s, transform 0.18s;
}
.mode-card:hover {
  border-color: var(--ice-cool);
}
.mode-card-featured {
  border-color: rgba(135, 207, 255, 0.35);
  box-shadow: 0 0 30px rgba(79, 134, 191, 0.18);
  background:
    radial-gradient(400px 200px at 50% -20%, rgba(135, 207, 255, 0.10), transparent 80%),
    var(--bg-secondary);
}

.mode-card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mode-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
}
.mode-tag-featured {
  color: var(--ice-bright);
  background: rgba(135, 207, 255, 0.12);
}
.mode-card h3 {
  font-size: 22px;
  margin: 0;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.mode-price {
  font-size: 12px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

.mode-blurb {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.mode-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.mode-list li {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
}
.mode-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ice-cool);
  opacity: 0.7;
}

.mode-cmd {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--ice-bright);
  margin-top: auto;
}
.mode-cmd code {
  background: transparent;
  padding: 0;
}

.mode-footnote {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}
.mode-footnote code {
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
}
.mode-footnote a {
  color: var(--ice-cool);
  text-decoration: none;
}
.mode-footnote a:hover { text-decoration: underline; }

.modes-postscript {
  margin-top: 36px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.modes-postscript code {
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
